PythonQtWrapper_QAction.h
101 lines
| 4.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QACTION_H | ||
#define PYTHONQTWRAPPER_QACTION_H | ||||
#include <qaction.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qaction.h> | ||||
#include <qactiongroup.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qfont.h> | ||||
#include <qicon.h> | ||||
#include <qkeysequence.h> | ||||
#include <qlist.h> | ||||
#include <qmenu.h> | ||||
#include <qobject.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QAction : public QAction | ||
{ | ||||
public: | ||||
PythonQtShell_QAction(QObject* parent):QAction(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QAction(const QIcon& icon, const QString& text, QObject* parent):QAction(icon, text, parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QAction(const QString& text, QObject* parent):QAction(text, parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QAction : public QAction | ||||
{ public: | ||||
florianlink
|
r28 | inline bool promoted_event(QEvent* arg__1) { return QAction::event(arg__1); } | ||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QAction : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ActionEvent ) | ||||
enum ActionEvent{ | ||||
Trigger = QAction::Trigger, Hover = QAction::Hover}; | ||||
public slots: | ||||
QAction* new_QAction(QObject* parent); | ||||
QAction* new_QAction(const QIcon& icon, const QString& text, QObject* parent); | ||||
QAction* new_QAction(const QString& text, QObject* parent); | ||||
void delete_QAction(QAction* obj) { delete obj; } | ||||
florianlink
|
r28 | void setData(QAction* theWrappedObject, const QVariant& var); | ||
florianlink
|
r73 | QIcon icon(QAction* theWrappedObject) const; | ||
void setShortcuts(QAction* theWrappedObject, const QList<QKeySequence >& shortcuts); | ||||
florianlink
|
r28 | QString whatsThis(QAction* theWrappedObject) const; | ||
florianlink
|
r73 | void setIconText(QAction* theWrappedObject, const QString& text); | ||
florianlink
|
r28 | bool isVisible(QAction* theWrappedObject) const; | ||
florianlink
|
r73 | void setSeparator(QAction* theWrappedObject, bool b); | ||
bool isEnabled(QAction* theWrappedObject) const; | ||||
florianlink
|
r28 | void setText(QAction* theWrappedObject, const QString& text); | ||
QList<QKeySequence > shortcuts(QAction* theWrappedObject) const; | ||||
florianlink
|
r73 | QWidget* parentWidget(QAction* theWrappedObject) const; | ||
void setWhatsThis(QAction* theWrappedObject, const QString& what); | ||||
void setIconVisibleInMenu(QAction* theWrappedObject, bool visible); | ||||
florianlink
|
r28 | QActionGroup* actionGroup(QAction* theWrappedObject) const; | ||
void setMenuRole(QAction* theWrappedObject, QAction::MenuRole menuRole); | ||||
florianlink
|
r73 | QString statusTip(QAction* theWrappedObject) const; | ||
void setShortcutContext(QAction* theWrappedObject, Qt::ShortcutContext context); | ||||
florianlink
|
r28 | QString iconText(QAction* theWrappedObject) const; | ||
void setAutoRepeat(QAction* theWrappedObject, bool arg__1); | ||||
florianlink
|
r73 | bool isChecked(QAction* theWrappedObject) const; | ||
florianlink
|
r28 | void setStatusTip(QAction* theWrappedObject, const QString& statusTip); | ||
florianlink
|
r73 | bool showStatusText(QAction* theWrappedObject, QWidget* widget = 0); | ||
florianlink
|
r28 | QVariant data(QAction* theWrappedObject) const; | ||
florianlink
|
r73 | void setFont(QAction* theWrappedObject, const QFont& font); | ||
void setShortcuts(QAction* theWrappedObject, QKeySequence::StandardKey arg__1); | ||||
florianlink
|
r28 | bool isSeparator(QAction* theWrappedObject) const; | ||
florianlink
|
r73 | bool autoRepeat(QAction* theWrappedObject) const; | ||
void setActionGroup(QAction* theWrappedObject, QActionGroup* group); | ||||
QFont font(QAction* theWrappedObject) const; | ||||
void setToolTip(QAction* theWrappedObject, const QString& tip); | ||||
void setShortcut(QAction* theWrappedObject, const QKeySequence& shortcut); | ||||
void activate(QAction* theWrappedObject, QAction::ActionEvent event); | ||||
QAction::MenuRole menuRole(QAction* theWrappedObject) const; | ||||
bool event(QAction* theWrappedObject, QEvent* arg__1); | ||||
Qt::ShortcutContext shortcutContext(QAction* theWrappedObject) const; | ||||
void setMenu(QAction* theWrappedObject, QMenu* menu); | ||||
QString toolTip(QAction* theWrappedObject) const; | ||||
QKeySequence shortcut(QAction* theWrappedObject) const; | ||||
bool isCheckable(QAction* theWrappedObject) const; | ||||
QString text(QAction* theWrappedObject) const; | ||||
QList<QWidget* > associatedWidgets(QAction* theWrappedObject) const; | ||||
florianlink
|
r28 | void setIcon(QAction* theWrappedObject, const QIcon& icon); | ||
florianlink
|
r73 | QMenu* menu(QAction* theWrappedObject) const; | ||
void setCheckable(QAction* theWrappedObject, bool arg__1); | ||||
bool isIconVisibleInMenu(QAction* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QACTION_H | ||||