PythonQtWrapper_QSystemTrayIcon.h
65 lines
| 2.7 KiB
| text/x-c
|
CLexer
|
r13 | #ifndef PYTHONQTWRAPPER_QSYSTEMTRAYICON_H | ||
#define PYTHONQTWRAPPER_QSYSTEMTRAYICON_H | ||||
#include <qsystemtrayicon.h> | ||||
#include <QObject> | ||||
|
r24 | #include <PythonQt.h> | ||
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qicon.h> | ||||
#include <qlist.h> | ||||
#include <qmenu.h> | ||||
#include <qobject.h> | ||||
#include <qrect.h> | ||||
#include <qsystemtrayicon.h> | ||||
|
r24 | class PythonQtShell_QSystemTrayIcon : public QSystemTrayIcon | ||
{ | ||||
public: | ||||
PythonQtShell_QSystemTrayIcon(QObject* parent = 0):QSystemTrayIcon(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QSystemTrayIcon(const QIcon& icon, QObject* parent = 0):QSystemTrayIcon(icon, parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* event); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QSystemTrayIcon : public QSystemTrayIcon | ||||
{ public: | ||||
|
r28 | inline bool promoted_event(QEvent* event) { return QSystemTrayIcon::event(event); } | ||
|
r24 | }; | ||
|
r13 | class PythonQtWrapper_QSystemTrayIcon : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(MessageIcon ActivationReason ) | ||||
enum MessageIcon{ | ||||
NoIcon = QSystemTrayIcon::NoIcon, Information = QSystemTrayIcon::Information, Warning = QSystemTrayIcon::Warning, Critical = QSystemTrayIcon::Critical}; | ||||
enum ActivationReason{ | ||||
Unknown = QSystemTrayIcon::Unknown, Context = QSystemTrayIcon::Context, DoubleClick = QSystemTrayIcon::DoubleClick, Trigger = QSystemTrayIcon::Trigger, MiddleClick = QSystemTrayIcon::MiddleClick}; | ||||
public slots: | ||||
QSystemTrayIcon* new_QSystemTrayIcon(QObject* parent = 0); | ||||
QSystemTrayIcon* new_QSystemTrayIcon(const QIcon& icon, QObject* parent = 0); | ||||
void delete_QSystemTrayIcon(QSystemTrayIcon* obj) { delete obj; } | ||||
|
r73 | bool static_QSystemTrayIcon_isSystemTrayAvailable(); | ||
QIcon icon(QSystemTrayIcon* theWrappedObject) const; | ||||
bool isVisible(QSystemTrayIcon* theWrappedObject) const; | ||||
void showMessage(QSystemTrayIcon* theWrappedObject, const QString& title, const QString& msg, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000); | ||||
void setIcon(QSystemTrayIcon* theWrappedObject, const QIcon& icon); | ||||
|
r28 | bool static_QSystemTrayIcon_supportsMessages(); | ||
void setContextMenu(QSystemTrayIcon* theWrappedObject, QMenu* menu); | ||||
|
r73 | QMenu* contextMenu(QSystemTrayIcon* theWrappedObject) const; | ||
|
r13 | void setToolTip(QSystemTrayIcon* theWrappedObject, const QString& tip); | ||
|
r73 | bool event(QSystemTrayIcon* theWrappedObject, QEvent* event); | ||
|
r28 | QRect geometry(QSystemTrayIcon* theWrappedObject) const; | ||
|
r13 | QString toolTip(QSystemTrayIcon* theWrappedObject) const; | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QSYSTEMTRAYICON_H | ||||