PythonQtWrapper_QDateTimeEdit.h
184 lines
| 9.6 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QDATETIMEEDIT_H | ||
#define PYTHONQTWRAPPER_QDATETIMEEDIT_H | ||||
#include <qdatetimeedit.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qcalendarwidget.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qdatetime.h> | ||||
#include <qdatetimeedit.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qicon.h> | ||||
#include <qinputcontext.h> | ||||
#include <qkeysequence.h> | ||||
#include <qlayout.h> | ||||
#include <qlineedit.h> | ||||
#include <qlist.h> | ||||
#include <qlocale.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_QDateTimeEdit : public QDateTimeEdit | ||
{ | ||||
public: | ||||
PythonQtShell_QDateTimeEdit(QWidget* parent = 0):QDateTimeEdit(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QDateTimeEdit(const QDate& d, QWidget* parent = 0):QDateTimeEdit(d, parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QDateTimeEdit(const QDateTime& dt, QWidget* parent = 0):QDateTimeEdit(dt, parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QDateTimeEdit(const QTime& t, QWidget* parent = 0):QDateTimeEdit(t, parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QDateTimeEdit(const QVariant& val, QVariant::Type parserType, QWidget* parent = 0):QDateTimeEdit(val, parserType, parent),_wrapper(NULL) {}; | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
virtual void changeEvent(QEvent* event); | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void clear(); | ||||
virtual void closeEvent(QCloseEvent* event); | ||||
virtual void contextMenuEvent(QContextMenuEvent* event); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual QDateTime dateTimeFromText(const QString& text) const; | ||||
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* event); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void fixup(QString& input) const; | ||||
virtual void focusInEvent(QFocusEvent* event); | ||||
virtual bool focusNextPrevChild(bool next); | ||||
virtual void focusOutEvent(QFocusEvent* event); | ||||
virtual int heightForWidth(int arg__1) const; | ||||
virtual void hideEvent(QHideEvent* event); | ||||
virtual void inputMethodEvent(QInputMethodEvent* arg__1); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; | ||||
virtual void keyPressEvent(QKeyEvent* event); | ||||
virtual void keyReleaseEvent(QKeyEvent* event); | ||||
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* event); | ||||
virtual void mousePressEvent(QMouseEvent* event); | ||||
virtual void mouseReleaseEvent(QMouseEvent* event); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* event); | ||||
virtual void resizeEvent(QResizeEvent* event); | ||||
virtual void showEvent(QShowEvent* event); | ||||
virtual void stepBy(int steps); | ||||
virtual QAbstractSpinBox::StepEnabled stepEnabled() const; | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual QString textFromDateTime(const QDateTime& dt) const; | ||||
virtual void timerEvent(QTimerEvent* event); | ||||
virtual QValidator::State validate(QString& input, int& pos) const; | ||||
virtual void wheelEvent(QWheelEvent* event); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QDateTimeEdit : public QDateTimeEdit | ||||
{ public: | ||||
florianlink
|
r73 | inline QAbstractSpinBox::StepEnabled promoted_stepEnabled() const { return QDateTimeEdit::stepEnabled(); } | ||
inline void promoted_keyPressEvent(QKeyEvent* event) { QDateTimeEdit::keyPressEvent(event); } | ||||
inline void promoted_mousePressEvent(QMouseEvent* event) { QDateTimeEdit::mousePressEvent(event); } | ||||
inline void promoted_fixup(QString& input) const { QDateTimeEdit::fixup(input); } | ||||
inline QString promoted_textFromDateTime(const QDateTime& dt) const { return QDateTimeEdit::textFromDateTime(dt); } | ||||
inline bool promoted_event(QEvent* event) { return QDateTimeEdit::event(event); } | ||||
florianlink
|
r28 | inline void promoted_wheelEvent(QWheelEvent* event) { QDateTimeEdit::wheelEvent(event); } | ||
inline QDateTime promoted_dateTimeFromText(const QString& text) const { return QDateTimeEdit::dateTimeFromText(text); } | ||||
inline void promoted_paintEvent(QPaintEvent* event) { QDateTimeEdit::paintEvent(event); } | ||||
florianlink
|
r73 | inline bool promoted_focusNextPrevChild(bool next) { return QDateTimeEdit::focusNextPrevChild(next); } | ||
inline void promoted_stepBy(int steps) { QDateTimeEdit::stepBy(steps); } | ||||
inline void promoted_focusInEvent(QFocusEvent* event) { QDateTimeEdit::focusInEvent(event); } | ||||
florianlink
|
r28 | inline QValidator::State promoted_validate(QString& input, int& pos) const { return QDateTimeEdit::validate(input, pos); } | ||
inline void promoted_clear() { QDateTimeEdit::clear(); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QDateTimeEdit : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QDateTimeEdit* new_QDateTimeEdit(QWidget* parent = 0); | ||||
QDateTimeEdit* new_QDateTimeEdit(const QDate& d, QWidget* parent = 0); | ||||
QDateTimeEdit* new_QDateTimeEdit(const QDateTime& dt, QWidget* parent = 0); | ||||
QDateTimeEdit* new_QDateTimeEdit(const QTime& t, QWidget* parent = 0); | ||||
void delete_QDateTimeEdit(QDateTimeEdit* obj) { delete obj; } | ||||
florianlink
|
r73 | void setCurrentSectionIndex(QDateTimeEdit* theWrappedObject, int index); | ||
QAbstractSpinBox::StepEnabled stepEnabled(QDateTimeEdit* theWrappedObject) const; | ||||
QDateTimeEdit::Sections displayedSections(QDateTimeEdit* theWrappedObject) const; | ||||
void setCalendarWidget(QDateTimeEdit* theWrappedObject, QCalendarWidget* calendarWidget); | ||||
void keyPressEvent(QDateTimeEdit* theWrappedObject, QKeyEvent* event); | ||||
void setDateTimeRange(QDateTimeEdit* theWrappedObject, const QDateTime& min, const QDateTime& max); | ||||
QDateTimeEdit::Section sectionAt(QDateTimeEdit* theWrappedObject, int index) const; | ||||
void mousePressEvent(QDateTimeEdit* theWrappedObject, QMouseEvent* event); | ||||
QDateTime minimumDateTime(QDateTimeEdit* theWrappedObject) const; | ||||
florianlink
|
r28 | void clearMaximumDateTime(QDateTimeEdit* theWrappedObject); | ||
florianlink
|
r73 | QString sectionText(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) const; | ||
void fixup(QDateTimeEdit* theWrappedObject, QString& input) const; | ||||
void clearMaximumTime(QDateTimeEdit* theWrappedObject); | ||||
florianlink
|
r24 | void clearMaximumDate(QDateTimeEdit* theWrappedObject); | ||
void clearMinimumDateTime(QDateTimeEdit* theWrappedObject); | ||||
florianlink
|
r73 | QTime minimumTime(QDateTimeEdit* theWrappedObject) const; | ||
QString textFromDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) const; | ||||
void setSelectedSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section); | ||||
void clearMinimumDate(QDateTimeEdit* theWrappedObject); | ||||
QDate date(QDateTimeEdit* theWrappedObject) const; | ||||
bool event(QDateTimeEdit* theWrappedObject, QEvent* event); | ||||
Qt::TimeSpec timeSpec(QDateTimeEdit* theWrappedObject) const; | ||||
void clearMinimumTime(QDateTimeEdit* theWrappedObject); | ||||
void wheelEvent(QDateTimeEdit* theWrappedObject, QWheelEvent* event); | ||||
void setDateRange(QDateTimeEdit* theWrappedObject, const QDate& min, const QDate& max); | ||||
QDate maximumDate(QDateTimeEdit* theWrappedObject) const; | ||||
void setCalendarPopup(QDateTimeEdit* theWrappedObject, bool enable); | ||||
florianlink
|
r24 | QTime time(QDateTimeEdit* theWrappedObject) const; | ||
QDateTime dateTimeFromText(QDateTimeEdit* theWrappedObject, const QString& text) const; | ||||
florianlink
|
r28 | void setDisplayFormat(QDateTimeEdit* theWrappedObject, const QString& format); | ||
florianlink
|
r73 | QDateTime dateTime(QDateTimeEdit* theWrappedObject) const; | ||
void paintEvent(QDateTimeEdit* theWrappedObject, QPaintEvent* event); | ||||
QDate minimumDate(QDateTimeEdit* theWrappedObject) const; | ||||
void setMaximumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt); | ||||
bool focusNextPrevChild(QDateTimeEdit* theWrappedObject, bool next); | ||||
void setMaximumDate(QDateTimeEdit* theWrappedObject, const QDate& max); | ||||
florianlink
|
r28 | void setMinimumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt); | ||
florianlink
|
r73 | void setTimeRange(QDateTimeEdit* theWrappedObject, const QTime& min, const QTime& max); | ||
florianlink
|
r24 | QTime maximumTime(QDateTimeEdit* theWrappedObject) const; | ||
florianlink
|
r73 | int currentSectionIndex(QDateTimeEdit* theWrappedObject) const; | ||
int sectionCount(QDateTimeEdit* theWrappedObject) const; | ||||
QSize sizeHint(QDateTimeEdit* theWrappedObject) const; | ||||
bool calendarPopup(QDateTimeEdit* theWrappedObject) const; | ||||
QDateTimeEdit::Section currentSection(QDateTimeEdit* theWrappedObject) const; | ||||
QString displayFormat(QDateTimeEdit* theWrappedObject) const; | ||||
florianlink
|
r28 | void setMinimumTime(QDateTimeEdit* theWrappedObject, const QTime& min); | ||
void stepBy(QDateTimeEdit* theWrappedObject, int steps); | ||||
florianlink
|
r24 | void setCurrentSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section); | ||
florianlink
|
r73 | void focusInEvent(QDateTimeEdit* theWrappedObject, QFocusEvent* event); | ||
florianlink
|
r24 | QValidator::State validate(QDateTimeEdit* theWrappedObject, QString& input, int& pos) const; | ||
florianlink
|
r28 | void clear(QDateTimeEdit* theWrappedObject); | ||
florianlink
|
r73 | void setMaximumTime(QDateTimeEdit* theWrappedObject, const QTime& max); | ||
void setMinimumDate(QDateTimeEdit* theWrappedObject, const QDate& min); | ||||
QCalendarWidget* calendarWidget(QDateTimeEdit* theWrappedObject) const; | ||||
QDateTime maximumDateTime(QDateTimeEdit* theWrappedObject) const; | ||||
florianlink
|
r28 | void setTimeSpec(QDateTimeEdit* theWrappedObject, Qt::TimeSpec spec); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QDATETIMEEDIT_H | ||||