##// END OF EJS Templates
added builtin support for variants etc., this will replace the direct includes in PythonQt...
added builtin support for variants etc., this will replace the direct includes in PythonQt git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@129 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r93:7b53f64eae84
Show More
PythonQtWrapper_QToolBar.h
137 lines | 5.8 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTOOLBAR_H
#define PYTHONQTWRAPPER_QTOOLBAR_H
#include <qtoolbar.h>
#include <QObject>
#include <PythonQt.h>
#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 <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 <qtoolbar.h>
#include <qwidget.h>
class PythonQtShell_QToolBar : public QToolBar
{
public:
PythonQtShell_QToolBar(QWidget* parent = 0):QToolBar(parent),_wrapper(NULL) {};
PythonQtShell_QToolBar(const QString& title, QWidget* parent = 0):QToolBar(title, parent),_wrapper(NULL) {};
virtual void actionEvent(QActionEvent* event);
virtual void changeEvent(QEvent* event);
virtual void childEvent(QChildEvent* event);
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* 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* event);
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_QToolBar : public QToolBar
{ public:
inline void promoted_paintEvent(QPaintEvent* event) { QToolBar::paintEvent(event); }
inline bool promoted_event(QEvent* event) { return QToolBar::event(event); }
inline void promoted_changeEvent(QEvent* event) { QToolBar::changeEvent(event); }
inline void promoted_childEvent(QChildEvent* event) { QToolBar::childEvent(event); }
inline void promoted_actionEvent(QActionEvent* event) { QToolBar::actionEvent(event); }
inline void promoted_resizeEvent(QResizeEvent* event) { QToolBar::resizeEvent(event); }
};
class PythonQtWrapper_QToolBar : public QObject
{ Q_OBJECT
public:
public slots:
QToolBar* new_QToolBar(QWidget* parent = 0);
QToolBar* new_QToolBar(const QString& title, QWidget* parent = 0);
void delete_QToolBar(QToolBar* obj) { delete obj; }
void paintEvent(QToolBar* theWrappedObject, QPaintEvent* event);
void setMovable(QToolBar* theWrappedObject, bool movable);
QAction* actionAt(QToolBar* theWrappedObject, const QPoint& p) const;
QSize iconSize(QToolBar* theWrappedObject) const;
bool isAreaAllowed(QToolBar* theWrappedObject, Qt::ToolBarArea area) const;
QAction* insertSeparator(QToolBar* theWrappedObject, QAction* before);
bool isMovable(QToolBar* theWrappedObject) const;
QAction* toggleViewAction(QToolBar* theWrappedObject) const;
QAction* addSeparator(QToolBar* theWrappedObject);
void clear(QToolBar* theWrappedObject);
QAction* insertWidget(QToolBar* theWrappedObject, QAction* before, QWidget* widget);
void setFloatable(QToolBar* theWrappedObject, bool floatable);
bool isFloatable(QToolBar* theWrappedObject) const;
void setAllowedAreas(QToolBar* theWrappedObject, Qt::ToolBarAreas areas);
QAction* addAction(QToolBar* theWrappedObject, const QString& text);
void setOrientation(QToolBar* theWrappedObject, Qt::Orientation orientation);
bool event(QToolBar* theWrappedObject, QEvent* event);
Qt::ToolButtonStyle toolButtonStyle(QToolBar* theWrappedObject) const;
void changeEvent(QToolBar* theWrappedObject, QEvent* event);
bool isFloating(QToolBar* theWrappedObject) const;
QRect actionGeometry(QToolBar* theWrappedObject, QAction* action) const;
Qt::Orientation orientation(QToolBar* theWrappedObject) const;
QAction* addAction(QToolBar* theWrappedObject, const QIcon& icon, const QString& text);
void childEvent(QToolBar* theWrappedObject, QChildEvent* event);
QAction* addWidget(QToolBar* theWrappedObject, QWidget* widget);
void actionEvent(QToolBar* theWrappedObject, QActionEvent* event);
QAction* actionAt(QToolBar* theWrappedObject, int x, int y) const;
Qt::ToolBarAreas allowedAreas(QToolBar* theWrappedObject) const;
void resizeEvent(QToolBar* theWrappedObject, QResizeEvent* event);
QWidget* widgetForAction(QToolBar* theWrappedObject, QAction* action) const;
};
#endif // PYTHONQTWRAPPER_QTOOLBAR_H