PythonQtWrapper_QMenu.h
160 lines
| 7.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QMENU_H | ||
#define PYTHONQTWRAPPER_QMENU_H | ||||
#include <qmenu.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qicon.h> | ||||
#include <qinputcontext.h> | ||||
#include <qkeysequence.h> | ||||
#include <qlayout.h> | ||||
#include <qlist.h> | ||||
#include <qlocale.h> | ||||
#include <qmenu.h> | ||||
#include <qobject.h> | ||||
#include <qpaintdevice.h> | ||||
#include <qpaintengine.h> | ||||
#include <qpainter.h> | ||||
#include <qpalette.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstyle.h> | ||||
#include <qstyleoption.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QMenu : public QMenu | ||
{ | ||||
public: | ||||
PythonQtShell_QMenu(QWidget* parent = 0):QMenu(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QMenu(const QString& title, QWidget* parent = 0):QMenu(title, parent),_wrapper(NULL) {}; | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
virtual void changeEvent(QEvent* arg__1); | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void closeEvent(QCloseEvent* arg__1); | ||||
virtual void contextMenuEvent(QContextMenuEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual int devType() const; | ||||
virtual void dragEnterEvent(QDragEnterEvent* arg__1); | ||||
virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); | ||||
virtual void dragMoveEvent(QDragMoveEvent* arg__1); | ||||
virtual void dropEvent(QDropEvent* arg__1); | ||||
virtual void enterEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void focusInEvent(QFocusEvent* arg__1); | ||||
virtual bool focusNextPrevChild(bool next); | ||||
virtual void focusOutEvent(QFocusEvent* arg__1); | ||||
virtual int heightForWidth(int arg__1) const; | ||||
virtual void hideEvent(QHideEvent* arg__1); | ||||
virtual void inputMethodEvent(QInputMethodEvent* arg__1); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; | ||||
virtual void keyPressEvent(QKeyEvent* arg__1); | ||||
virtual void keyReleaseEvent(QKeyEvent* arg__1); | ||||
virtual void languageChange(); | ||||
virtual void leaveEvent(QEvent* arg__1); | ||||
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; | ||||
virtual QSize minimumSizeHint() const; | ||||
virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); | ||||
virtual void mouseMoveEvent(QMouseEvent* arg__1); | ||||
virtual void mousePressEvent(QMouseEvent* arg__1); | ||||
virtual void mouseReleaseEvent(QMouseEvent* arg__1); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* arg__1); | ||||
virtual void resizeEvent(QResizeEvent* arg__1); | ||||
virtual void showEvent(QShowEvent* arg__1); | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QMenu : public QMenu | ||||
{ public: | ||||
florianlink
|
r28 | inline void promoted_enterEvent(QEvent* arg__1) { QMenu::enterEvent(arg__1); } | ||
florianlink
|
r73 | inline void promoted_paintEvent(QPaintEvent* arg__1) { QMenu::paintEvent(arg__1); } | ||
florianlink
|
r28 | inline void promoted_changeEvent(QEvent* arg__1) { QMenu::changeEvent(arg__1); } | ||
inline void promoted_leaveEvent(QEvent* arg__1) { QMenu::leaveEvent(arg__1); } | ||||
inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QMenu::mouseMoveEvent(arg__1); } | ||||
inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QMenu::keyPressEvent(arg__1); } | ||||
florianlink
|
r73 | inline void promoted_wheelEvent(QWheelEvent* arg__1) { QMenu::wheelEvent(arg__1); } | ||
inline void promoted_actionEvent(QActionEvent* arg__1) { QMenu::actionEvent(arg__1); } | ||||
florianlink
|
r28 | inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QMenu::mousePressEvent(arg__1); } | ||
florianlink
|
r73 | inline bool promoted_event(QEvent* arg__1) { return QMenu::event(arg__1); } | ||
inline void promoted_hideEvent(QHideEvent* arg__1) { QMenu::hideEvent(arg__1); } | ||||
inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QMenu::mouseReleaseEvent(arg__1); } | ||||
inline bool promoted_focusNextPrevChild(bool next) { return QMenu::focusNextPrevChild(next); } | ||||
inline void promoted_timerEvent(QTimerEvent* arg__1) { QMenu::timerEvent(arg__1); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QMenu : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QMenu* new_QMenu(QWidget* parent = 0); | ||||
QMenu* new_QMenu(const QString& title, QWidget* parent = 0); | ||||
void delete_QMenu(QMenu* obj) { delete obj; } | ||||
florianlink
|
r73 | QAction* exec(QMenu* theWrappedObject, const QPoint& pos, QAction* at = 0); | ||
QAction* addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text); | ||||
QString title(QMenu* theWrappedObject) const; | ||||
void setDefaultAction(QMenu* theWrappedObject, QAction* arg__1); | ||||
QRect actionGeometry(QMenu* theWrappedObject, QAction* arg__1) const; | ||||
florianlink
|
r28 | void enterEvent(QMenu* theWrappedObject, QEvent* arg__1); | ||
florianlink
|
r73 | QMenu* addMenu(QMenu* theWrappedObject, const QIcon& icon, const QString& title); | ||
florianlink
|
r28 | QAction* static_QMenu_exec(QList<QAction* > actions, const QPoint& pos, QAction* at = 0); | ||
florianlink
|
r73 | void setSeparatorsCollapsible(QMenu* theWrappedObject, bool collapse); | ||
florianlink
|
r13 | QAction* exec(QMenu* theWrappedObject); | ||
florianlink
|
r73 | void paintEvent(QMenu* theWrappedObject, QPaintEvent* arg__1); | ||
QAction* addMenu(QMenu* theWrappedObject, QMenu* menu); | ||||
void changeEvent(QMenu* theWrappedObject, QEvent* arg__1); | ||||
void setIcon(QMenu* theWrappedObject, const QIcon& icon); | ||||
florianlink
|
r28 | void leaveEvent(QMenu* theWrappedObject, QEvent* arg__1); | ||
florianlink
|
r73 | void setActiveAction(QMenu* theWrappedObject, QAction* act); | ||
florianlink
|
r28 | QAction* actionAt(QMenu* theWrappedObject, const QPoint& arg__1) const; | ||
florianlink
|
r73 | void mouseMoveEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); | ||
QAction* insertMenu(QMenu* theWrappedObject, QAction* before, QMenu* menu); | ||||
void keyPressEvent(QMenu* theWrappedObject, QKeyEvent* arg__1); | ||||
florianlink
|
r28 | void wheelEvent(QMenu* theWrappedObject, QWheelEvent* arg__1); | ||
florianlink
|
r73 | void actionEvent(QMenu* theWrappedObject, QActionEvent* arg__1); | ||
bool isTearOffMenuVisible(QMenu* theWrappedObject) const; | ||||
bool isEmpty(QMenu* theWrappedObject) const; | ||||
void mousePressEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); | ||||
void hideTearOffMenu(QMenu* theWrappedObject); | ||||
florianlink
|
r24 | bool separatorsCollapsible(QMenu* theWrappedObject) const; | ||
florianlink
|
r73 | bool event(QMenu* theWrappedObject, QEvent* arg__1); | ||
QSize sizeHint(QMenu* theWrappedObject) const; | ||||
florianlink
|
r28 | void hideEvent(QMenu* theWrappedObject, QHideEvent* arg__1); | ||
florianlink
|
r73 | void popup(QMenu* theWrappedObject, const QPoint& pos, QAction* at = 0); | ||
QAction* insertSeparator(QMenu* theWrappedObject, QAction* before); | ||||
void mouseReleaseEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); | ||||
bool focusNextPrevChild(QMenu* theWrappedObject, bool next); | ||||
florianlink
|
r28 | QIcon icon(QMenu* theWrappedObject) const; | ||
florianlink
|
r73 | void timerEvent(QMenu* theWrappedObject, QTimerEvent* arg__1); | ||
florianlink
|
r24 | QAction* addSeparator(QMenu* theWrappedObject); | ||
florianlink
|
r73 | QAction* menuAction(QMenu* theWrappedObject) const; | ||
QAction* defaultAction(QMenu* theWrappedObject) const; | ||||
florianlink
|
r28 | void setTitle(QMenu* theWrappedObject, const QString& title); | ||
bool isTearOffEnabled(QMenu* theWrappedObject) const; | ||||
florianlink
|
r73 | QMenu* addMenu(QMenu* theWrappedObject, const QString& title); | ||
QAction* addAction(QMenu* theWrappedObject, const QString& text); | ||||
void setTearOffEnabled(QMenu* theWrappedObject, bool arg__1); | ||||
QAction* activeAction(QMenu* theWrappedObject) const; | ||||
void clear(QMenu* theWrappedObject); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QMENU_H | ||||