PythonQtWrapper_QSystemTrayIcon.h
42 lines
| 1.9 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QSYSTEMTRAYICON_H | ||
#define PYTHONQTWRAPPER_QSYSTEMTRAYICON_H | ||||
#include <qsystemtrayicon.h> | ||||
#include <QObject> | ||||
#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> | ||||
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; } | ||||
QMenu* contextMenu(QSystemTrayIcon* theWrappedObject) const; | ||||
QRect geometry(QSystemTrayIcon* theWrappedObject) const; | ||||
QIcon icon(QSystemTrayIcon* theWrappedObject) const; | ||||
bool static_QSystemTrayIcon_isSystemTrayAvailable(); | ||||
bool isVisible(QSystemTrayIcon* theWrappedObject) const; | ||||
void setContextMenu(QSystemTrayIcon* theWrappedObject, QMenu* menu); | ||||
void setIcon(QSystemTrayIcon* theWrappedObject, const QIcon& icon); | ||||
void setToolTip(QSystemTrayIcon* theWrappedObject, const QString& tip); | ||||
void showMessage(QSystemTrayIcon* theWrappedObject, const QString& title, const QString& msg, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000); | ||||
bool static_QSystemTrayIcon_supportsMessages(); | ||||
QString toolTip(QSystemTrayIcon* theWrappedObject) const; | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QSYSTEMTRAYICON_H | ||||