PythonQtWrapper_QCalendarWidget.h
144 lines
| 6.9 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QCALENDARWIDGET_H | ||
#define PYTHONQTWRAPPER_QCALENDARWIDGET_H | ||||
#include <qcalendarwidget.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QTextCharFormat> | ||
#include <QVariant> | ||||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qcalendarwidget.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qdatetime.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 <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 <qtextformat.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QCalendarWidget : public QCalendarWidget | ||
{ | ||||
public: | ||||
PythonQtShell_QCalendarWidget(QWidget* parent = 0):QCalendarWidget(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* event); | ||||
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 QSize minimumSizeHint() const; | ||||
virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); | ||||
virtual void mouseMoveEvent(QMouseEvent* arg__1); | ||||
virtual void mousePressEvent(QMouseEvent* event); | ||||
virtual void mouseReleaseEvent(QMouseEvent* arg__1); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual void paintCell(QPainter* painter, const QRect& rect, const QDate& date) const; | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* arg__1); | ||||
virtual void resizeEvent(QResizeEvent* event); | ||||
virtual void showEvent(QShowEvent* arg__1); | ||||
virtual QSize sizeHint() const; | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QCalendarWidget : public QCalendarWidget | ||||
{ public: | ||||
florianlink
|
r28 | inline bool promoted_event(QEvent* event) { return QCalendarWidget::event(event); } | ||
inline QSize promoted_sizeHint() const { return QCalendarWidget::sizeHint(); } | ||||
inline void promoted_resizeEvent(QResizeEvent* event) { QCalendarWidget::resizeEvent(event); } | ||||
inline QSize promoted_minimumSizeHint() const { return QCalendarWidget::minimumSizeHint(); } | ||||
inline void promoted_keyPressEvent(QKeyEvent* event) { QCalendarWidget::keyPressEvent(event); } | ||||
inline void promoted_mousePressEvent(QMouseEvent* event) { QCalendarWidget::mousePressEvent(event); } | ||||
inline void promoted_paintCell(QPainter* painter, const QRect& rect, const QDate& date) const { QCalendarWidget::paintCell(painter, rect, date); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QCalendarWidget : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QCalendarWidget* new_QCalendarWidget(QWidget* parent = 0); | ||||
void delete_QCalendarWidget(QCalendarWidget* obj) { delete obj; } | ||||
florianlink
|
r28 | void setFirstDayOfWeek(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek); | ||
QTextCharFormat dateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date) const; | ||||
QDate minimumDate(QCalendarWidget* theWrappedObject) const; | ||||
bool event(QCalendarWidget* theWrappedObject, QEvent* event); | ||||
QSize sizeHint(QCalendarWidget* theWrappedObject) const; | ||||
int dateEditAcceptDelay(QCalendarWidget* theWrappedObject) const; | ||||
florianlink
|
r24 | int monthShown(QCalendarWidget* theWrappedObject) const; | ||
florianlink
|
r28 | void resizeEvent(QCalendarWidget* theWrappedObject, QResizeEvent* event); | ||
void setWeekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek, const QTextCharFormat& format); | ||||
florianlink
|
r24 | QCalendarWidget::VerticalHeaderFormat verticalHeaderFormat(QCalendarWidget* theWrappedObject) const; | ||
florianlink
|
r28 | void setHorizontalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::HorizontalHeaderFormat format); | ||
QSize minimumSizeHint(QCalendarWidget* theWrappedObject) const; | ||||
florianlink
|
r24 | void keyPressEvent(QCalendarWidget* theWrappedObject, QKeyEvent* event); | ||
QTextCharFormat headerTextFormat(QCalendarWidget* theWrappedObject) const; | ||||
florianlink
|
r28 | QDate maximumDate(QCalendarWidget* theWrappedObject) const; | ||
QCalendarWidget::HorizontalHeaderFormat horizontalHeaderFormat(QCalendarWidget* theWrappedObject) const; | ||||
void mousePressEvent(QCalendarWidget* theWrappedObject, QMouseEvent* event); | ||||
florianlink
|
r13 | void setHeaderTextFormat(QCalendarWidget* theWrappedObject, const QTextCharFormat& format); | ||
florianlink
|
r24 | void setDateEditEnabled(QCalendarWidget* theWrappedObject, bool enable); | ||
florianlink
|
r13 | void setMaximumDate(QCalendarWidget* theWrappedObject, const QDate& date); | ||
florianlink
|
r28 | QDate selectedDate(QCalendarWidget* theWrappedObject) const; | ||
Qt::DayOfWeek firstDayOfWeek(QCalendarWidget* theWrappedObject) const; | ||||
florianlink
|
r24 | QCalendarWidget::SelectionMode selectionMode(QCalendarWidget* theWrappedObject) const; | ||
florianlink
|
r28 | void setMinimumDate(QCalendarWidget* theWrappedObject, const QDate& date); | ||
florianlink
|
r13 | void setSelectionMode(QCalendarWidget* theWrappedObject, QCalendarWidget::SelectionMode mode); | ||
florianlink
|
r28 | void setDateEditAcceptDelay(QCalendarWidget* theWrappedObject, int delay); | ||
bool isDateEditEnabled(QCalendarWidget* theWrappedObject) const; | ||||
florianlink
|
r24 | void paintCell(QCalendarWidget* theWrappedObject, QPainter* painter, const QRect& rect, const QDate& date) const; | ||
florianlink
|
r28 | bool isNavigationBarVisible(QCalendarWidget* theWrappedObject) const; | ||
bool isGridVisible(QCalendarWidget* theWrappedObject) const; | ||||
florianlink
|
r13 | QTextCharFormat weekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek) const; | ||
florianlink
|
r28 | int yearShown(QCalendarWidget* theWrappedObject) const; | ||
florianlink
|
r24 | QMap<QDate , QTextCharFormat > dateTextFormat(QCalendarWidget* theWrappedObject) const; | ||
florianlink
|
r28 | void setDateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date, const QTextCharFormat& format); | ||
florianlink
|
r24 | void setVerticalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::VerticalHeaderFormat format); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QCALENDARWIDGET_H | ||||