PythonQtWrapper_QMessageBox.h
162 lines
| 10.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QMESSAGEBOX_H | ||
#define PYTHONQTWRAPPER_QMESSAGEBOX_H | ||||
#include <qmessagebox.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QPixmap> | ||
#include <QVariant> | ||||
#include <qabstractbutton.h> | ||||
#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 <qmessagebox.h> | ||||
#include <qobject.h> | ||||
#include <qpaintdevice.h> | ||||
#include <qpaintengine.h> | ||||
#include <qpainter.h> | ||||
#include <qpalette.h> | ||||
#include <qpixmap.h> | ||||
#include <qpoint.h> | ||||
#include <qpushbutton.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstyle.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QMessageBox : public QMessageBox | ||
{ | ||||
public: | ||||
PythonQtShell_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::NoButton, QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint):QMessageBox(icon, title, text, buttons, parent, f),_wrapper(NULL) {}; | ||||
PythonQtShell_QMessageBox(QWidget* parent = 0):QMessageBox(parent),_wrapper(NULL) {}; | ||||
virtual void accept(); | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
virtual void changeEvent(QEvent* event); | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void closeEvent(QCloseEvent* event); | ||||
virtual void contextMenuEvent(QContextMenuEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual int devType() const; | ||||
virtual void done(int arg__1); | ||||
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* e); | ||||
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* event); | ||||
virtual void keyReleaseEvent(QKeyEvent* arg__1); | ||||
virtual void languageChange(); | ||||
virtual void leaveEvent(QEvent* arg__1); | ||||
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) 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 reject(); | ||||
virtual void resizeEvent(QResizeEvent* event); | ||||
virtual void showEvent(QShowEvent* event); | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QMessageBox : public QMessageBox | ||||
{ public: | ||||
florianlink
|
r28 | inline void promoted_showEvent(QShowEvent* event) { QMessageBox::showEvent(event); } | ||
inline bool promoted_event(QEvent* e) { return QMessageBox::event(e); } | ||||
inline void promoted_closeEvent(QCloseEvent* event) { QMessageBox::closeEvent(event); } | ||||
florianlink
|
r73 | inline void promoted_changeEvent(QEvent* event) { QMessageBox::changeEvent(event); } | ||
florianlink
|
r28 | inline void promoted_keyPressEvent(QKeyEvent* event) { QMessageBox::keyPressEvent(event); } | ||
florianlink
|
r73 | inline void promoted_resizeEvent(QResizeEvent* event) { QMessageBox::resizeEvent(event); } | ||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QMessageBox : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ButtonRole StandardButton ) | ||||
florianlink
|
r73 | Q_FLAGS(StandardButtons ) | ||
florianlink
|
r13 | enum ButtonRole{ | ||
InvalidRole = QMessageBox::InvalidRole, AcceptRole = QMessageBox::AcceptRole, RejectRole = QMessageBox::RejectRole, DestructiveRole = QMessageBox::DestructiveRole, ActionRole = QMessageBox::ActionRole, HelpRole = QMessageBox::HelpRole, YesRole = QMessageBox::YesRole, NoRole = QMessageBox::NoRole, ResetRole = QMessageBox::ResetRole, ApplyRole = QMessageBox::ApplyRole, NRoles = QMessageBox::NRoles}; | ||||
enum StandardButton{ | ||||
NoButton = QMessageBox::NoButton, Ok = QMessageBox::Ok, Save = QMessageBox::Save, SaveAll = QMessageBox::SaveAll, Open = QMessageBox::Open, Yes = QMessageBox::Yes, YesToAll = QMessageBox::YesToAll, No = QMessageBox::No, NoToAll = QMessageBox::NoToAll, Abort = QMessageBox::Abort, Retry = QMessageBox::Retry, Ignore = QMessageBox::Ignore, Close = QMessageBox::Close, Cancel = QMessageBox::Cancel, Discard = QMessageBox::Discard, Help = QMessageBox::Help, Apply = QMessageBox::Apply, Reset = QMessageBox::Reset, RestoreDefaults = QMessageBox::RestoreDefaults, FirstButton = QMessageBox::FirstButton, LastButton = QMessageBox::LastButton, YesAll = QMessageBox::YesAll, NoAll = QMessageBox::NoAll, Default = QMessageBox::Default, Escape = QMessageBox::Escape, FlagMask = QMessageBox::FlagMask, ButtonMask = QMessageBox::ButtonMask}; | ||||
florianlink
|
r73 | Q_DECLARE_FLAGS(StandardButtons, StandardButton) | ||
florianlink
|
r13 | public slots: | ||
QMessageBox* new_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::NoButton, QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint); | ||||
QMessageBox* new_QMessageBox(QWidget* parent = 0); | ||||
void delete_QMessageBox(QMessageBox* obj) { delete obj; } | ||||
florianlink
|
r73 | QMessageBox::StandardButton static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); | ||
int static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); | ||||
void setIconPixmap(QMessageBox* theWrappedObject, const QPixmap& pixmap); | ||||
void showEvent(QMessageBox* theWrappedObject, QShowEvent* event); | ||||
void static_QMessageBox_about(QWidget* parent, const QString& title, const QString& text); | ||||
QSize sizeHint(QMessageBox* theWrappedObject) const; | ||||
QString text(QMessageBox* theWrappedObject) const; | ||||
void setTextFormat(QMessageBox* theWrappedObject, Qt::TextFormat format); | ||||
bool event(QMessageBox* theWrappedObject, QEvent* e); | ||||
void closeEvent(QMessageBox* theWrappedObject, QCloseEvent* event); | ||||
void setDefaultButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); | ||||
void setEscapeButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); | ||||
void addButton(QMessageBox* theWrappedObject, QAbstractButton* button, QMessageBox::ButtonRole role); | ||||
void setStandardButtons(QMessageBox* theWrappedObject, QMessageBox::StandardButtons buttons); | ||||
void changeEvent(QMessageBox* theWrappedObject, QEvent* event); | ||||
void setDetailedText(QMessageBox* theWrappedObject, const QString& text); | ||||
florianlink
|
r28 | QPushButton* addButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); | ||
florianlink
|
r73 | void setDefaultButton(QMessageBox* theWrappedObject, QPushButton* button); | ||
void setText(QMessageBox* theWrappedObject, const QString& text); | ||||
QMessageBox::StandardButton static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); | ||||
void static_QMessageBox_aboutQt(QWidget* parent, const QString& title = QString()); | ||||
QPushButton* defaultButton(QMessageBox* theWrappedObject) const; | ||||
QMessageBox::StandardButton standardButton(QMessageBox* theWrappedObject, QAbstractButton* button) const; | ||||
florianlink
|
r28 | QAbstractButton* button(QMessageBox* theWrappedObject, QMessageBox::StandardButton which) const; | ||
florianlink
|
r73 | QMessageBox::StandardButton static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); | ||
florianlink
|
r28 | QAbstractButton* escapeButton(QMessageBox* theWrappedObject) const; | ||
QString informativeText(QMessageBox* theWrappedObject) const; | ||||
florianlink
|
r73 | void keyPressEvent(QMessageBox* theWrappedObject, QKeyEvent* event); | ||
florianlink
|
r28 | int static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); | ||
QAbstractButton* clickedButton(QMessageBox* theWrappedObject) const; | ||||
Qt::TextFormat textFormat(QMessageBox* theWrappedObject) const; | ||||
QMessageBox::Icon icon(QMessageBox* theWrappedObject) const; | ||||
florianlink
|
r73 | QMessageBox::StandardButton static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1 = QMessageBox::NoButton); | ||
florianlink
|
r28 | void setEscapeButton(QMessageBox* theWrappedObject, QAbstractButton* button); | ||
void setIcon(QMessageBox* theWrappedObject, QMessageBox::Icon arg__1); | ||||
florianlink
|
r73 | QString detailedText(QMessageBox* theWrappedObject) const; | ||
QPixmap iconPixmap(QMessageBox* theWrappedObject) const; | ||||
void removeButton(QMessageBox* theWrappedObject, QAbstractButton* button); | ||||
void setInformativeText(QMessageBox* theWrappedObject, const QString& text); | ||||
florianlink
|
r24 | QMessageBox::StandardButton static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); | ||
florianlink
|
r13 | int static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); | ||
florianlink
|
r28 | void resizeEvent(QMessageBox* theWrappedObject, QResizeEvent* event); | ||
florianlink
|
r24 | QMessageBox::StandardButtons standardButtons(QMessageBox* theWrappedObject) const; | ||
florianlink
|
r73 | QPushButton* addButton(QMessageBox* theWrappedObject, const QString& text, QMessageBox::ButtonRole role); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QMESSAGEBOX_H | ||||