##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QSystemTrayIcon.h
42 lines | 1.9 KiB | text/x-c | CLexer
#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