PythonQtWrapper_QContextMenuEvent.h
43 lines
| 2.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QCONTEXTMENUEVENT_H | ||
#define PYTHONQTWRAPPER_QCONTEXTMENUEVENT_H | ||||
#include <qevent.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qpoint.h> | ||||
florianlink
|
r24 | class PythonQtShell_QContextMenuEvent : public QContextMenuEvent | ||
{ | ||||
public: | ||||
PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos):QContextMenuEvent(reason, pos),_wrapper(NULL) {}; | ||||
PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos):QContextMenuEvent(reason, pos, globalPos),_wrapper(NULL) {}; | ||||
PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers):QContextMenuEvent(reason, pos, globalPos, modifiers),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QContextMenuEvent : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Reason ) | ||||
enum Reason{ | ||||
Mouse = QContextMenuEvent::Mouse, Keyboard = QContextMenuEvent::Keyboard, Other = QContextMenuEvent::Other}; | ||||
public slots: | ||||
QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos); | ||||
QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos); | ||||
QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers); | ||||
void delete_QContextMenuEvent(QContextMenuEvent* obj) { delete obj; } | ||||
florianlink
|
r73 | const QPoint* globalPos(QContextMenuEvent* theWrappedObject) const; | ||
florianlink
|
r13 | int globalX(QContextMenuEvent* theWrappedObject) const; | ||
int globalY(QContextMenuEvent* theWrappedObject) const; | ||||
florianlink
|
r24 | int y(QContextMenuEvent* theWrappedObject) const; | ||
florianlink
|
r13 | QContextMenuEvent::Reason reason(QContextMenuEvent* theWrappedObject) const; | ||
int x(QContextMenuEvent* theWrappedObject) const; | ||||
florianlink
|
r73 | const QPoint* pos(QContextMenuEvent* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QCONTEXTMENUEVENT_H | ||||