PythonQtWrapper_QTreeView.h
252 lines
| 15.1 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTREEVIEW_H | ||
#define PYTHONQTWRAPPER_QTREEVIEW_H | ||||
#include <qtreeview.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractitemdelegate.h> | ||||
#include <qabstractitemmodel.h> | ||||
#include <qaction.h> | ||||
#include <qbitmap.h> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qfont.h> | ||||
#include <qheaderview.h> | ||||
#include <qicon.h> | ||||
#include <qinputcontext.h> | ||||
#include <qitemselectionmodel.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 <qscrollbar.h> | ||||
#include <qsize.h> | ||||
#include <qsizepolicy.h> | ||||
#include <qstyle.h> | ||||
#include <qstyleoption.h> | ||||
#include <qtreeview.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QTreeView : public QTreeView | ||
{ | ||||
public: | ||||
PythonQtShell_QTreeView(QWidget* parent = 0):QTreeView(parent),_wrapper(NULL) {}; | ||||
virtual void actionEvent(QActionEvent* arg__1); | ||||
virtual void changeEvent(QEvent* arg__1); | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); | ||||
virtual void closeEvent(QCloseEvent* arg__1); | ||||
virtual void commitData(QWidget* editor); | ||||
virtual void contextMenuEvent(QContextMenuEvent* arg__1); | ||||
virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); | ||||
virtual int devType() const; | ||||
virtual void doItemsLayout(); | ||||
virtual void dragEnterEvent(QDragEnterEvent* event); | ||||
virtual void dragLeaveEvent(QDragLeaveEvent* event); | ||||
virtual void dragMoveEvent(QDragMoveEvent* event); | ||||
virtual void drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const; | ||||
virtual void drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; | ||||
virtual void dropEvent(QDropEvent* event); | ||||
virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); | ||||
virtual void editorDestroyed(QObject* editor); | ||||
virtual void enterEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* event); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
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* arg__1); | ||||
virtual int horizontalOffset() const; | ||||
virtual void horizontalScrollbarAction(int action); | ||||
virtual void horizontalScrollbarValueChanged(int value); | ||||
virtual QModelIndex indexAt(const QPoint& p) const; | ||||
virtual void inputMethodEvent(QInputMethodEvent* event); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; | ||||
virtual bool isIndexHidden(const QModelIndex& index) const; | ||||
virtual void keyPressEvent(QKeyEvent* event); | ||||
virtual void keyReleaseEvent(QKeyEvent* arg__1); | ||||
virtual void keyboardSearch(const QString& search); | ||||
virtual void languageChange(); | ||||
virtual void leaveEvent(QEvent* arg__1); | ||||
virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; | ||||
virtual void mouseDoubleClickEvent(QMouseEvent* event); | ||||
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 reset(); | ||||
virtual void resizeEvent(QResizeEvent* event); | ||||
virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); | ||||
virtual void rowsInserted(const QModelIndex& parent, int start, int end); | ||||
virtual void scrollContentsBy(int dx, int dy); | ||||
virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); | ||||
virtual void selectAll(); | ||||
virtual QList<QModelIndex > selectedIndexes() const; | ||||
virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); | ||||
virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; | ||||
virtual void setModel(QAbstractItemModel* model); | ||||
virtual void setRootIndex(const QModelIndex& index); | ||||
virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); | ||||
virtual void setSelectionModel(QItemSelectionModel* selectionModel); | ||||
virtual void showEvent(QShowEvent* arg__1); | ||||
virtual int sizeHintForColumn(int column) const; | ||||
virtual int sizeHintForRow(int row) const; | ||||
virtual void startDrag(Qt::DropActions supportedActions); | ||||
virtual void tabletEvent(QTabletEvent* arg__1); | ||||
virtual void timerEvent(QTimerEvent* event); | ||||
virtual void updateEditorData(); | ||||
virtual void updateEditorGeometries(); | ||||
virtual void updateGeometries(); | ||||
virtual int verticalOffset() const; | ||||
virtual void verticalScrollbarAction(int action); | ||||
virtual void verticalScrollbarValueChanged(int value); | ||||
virtual QStyleOptionViewItem viewOptions() const; | ||||
virtual bool viewportEvent(QEvent* event); | ||||
virtual QRect visualRect(const QModelIndex& index) const; | ||||
virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; | ||||
virtual void wheelEvent(QWheelEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QTreeView : public QTreeView | ||||
{ public: | ||||
florianlink
|
r73 | inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QTreeView::mouseReleaseEvent(event); } | ||
florianlink
|
r28 | inline void promoted_setModel(QAbstractItemModel* model) { QTreeView::setModel(model); } | ||
florianlink
|
r73 | inline void promoted_doItemsLayout() { QTreeView::doItemsLayout(); } | ||
inline void promoted_scrollContentsBy(int dx, int dy) { QTreeView::scrollContentsBy(dx, dy); } | ||||
inline int promoted_verticalOffset() const { return QTreeView::verticalOffset(); } | ||||
inline void promoted_drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const { QTreeView::drawRow(painter, options, index); } | ||||
inline void promoted_mouseMoveEvent(QMouseEvent* event) { QTreeView::mouseMoveEvent(event); } | ||||
florianlink
|
r28 | inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QTreeView::setSelection(rect, command); } | ||
inline void promoted_horizontalScrollbarAction(int action) { QTreeView::horizontalScrollbarAction(action); } | ||||
florianlink
|
r73 | inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QTreeView::visualRegionForSelection(selection); } | ||
inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QTreeView::rowsInserted(parent, start, end); } | ||||
florianlink
|
r28 | inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QTreeView::mouseDoubleClickEvent(event); } | ||
florianlink
|
r73 | inline QList<QModelIndex > promoted_selectedIndexes() const { return QTreeView::selectedIndexes(); } | ||
inline bool promoted_viewportEvent(QEvent* event) { return QTreeView::viewportEvent(event); } | ||||
inline void promoted_mousePressEvent(QMouseEvent* event) { QTreeView::mousePressEvent(event); } | ||||
inline void promoted_updateGeometries() { QTreeView::updateGeometries(); } | ||||
florianlink
|
r28 | inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QTreeView::scrollTo(index, hint); } | ||
inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QTreeView::rowsAboutToBeRemoved(parent, start, end); } | ||||
florianlink
|
r73 | inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QTreeView::selectionChanged(selected, deselected); } | ||
inline void promoted_reset() { QTreeView::reset(); } | ||||
inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QTreeView::dataChanged(topLeft, bottomRight); } | ||||
inline void promoted_keyPressEvent(QKeyEvent* event) { QTreeView::keyPressEvent(event); } | ||||
inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QTreeView::dragMoveEvent(event); } | ||||
inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QTreeView::isIndexHidden(index); } | ||||
inline void promoted_paintEvent(QPaintEvent* event) { QTreeView::paintEvent(event); } | ||||
inline void promoted_selectAll() { QTreeView::selectAll(); } | ||||
inline QModelIndex promoted_indexAt(const QPoint& p) const { return QTreeView::indexAt(p); } | ||||
florianlink
|
r28 | inline int promoted_sizeHintForColumn(int column) const { return QTreeView::sizeHintForColumn(column); } | ||
florianlink
|
r73 | inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QTreeView::setSelectionModel(selectionModel); } | ||
inline void promoted_setRootIndex(const QModelIndex& index) { QTreeView::setRootIndex(index); } | ||||
inline int promoted_horizontalOffset() const { return QTreeView::horizontalOffset(); } | ||||
florianlink
|
r28 | inline void promoted_timerEvent(QTimerEvent* event) { QTreeView::timerEvent(event); } | ||
florianlink
|
r73 | inline QRect promoted_visualRect(const QModelIndex& index) const { return QTreeView::visualRect(index); } | ||
inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QTreeView::currentChanged(current, previous); } | ||||
inline void promoted_keyboardSearch(const QString& search) { QTreeView::keyboardSearch(search); } | ||||
inline void promoted_drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const { QTreeView::drawBranches(painter, rect, index); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QTreeView : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTreeView* new_QTreeView(QWidget* parent = 0); | ||||
void delete_QTreeView(QTreeView* obj) { delete obj; } | ||||
florianlink
|
r73 | void setWordWrap(QTreeView* theWrappedObject, bool on); | ||
florianlink
|
r24 | void setExpandsOnDoubleClick(QTreeView* theWrappedObject, bool enable); | ||
florianlink
|
r73 | bool isAnimated(QTreeView* theWrappedObject) const; | ||
florianlink
|
r28 | bool expandsOnDoubleClick(QTreeView* theWrappedObject) const; | ||
florianlink
|
r73 | void mouseReleaseEvent(QTreeView* theWrappedObject, QMouseEvent* event); | ||
void setModel(QTreeView* theWrappedObject, QAbstractItemModel* model); | ||||
bool wordWrap(QTreeView* theWrappedObject) const; | ||||
void setUniformRowHeights(QTreeView* theWrappedObject, bool uniform); | ||||
void doItemsLayout(QTreeView* theWrappedObject); | ||||
bool isSortingEnabled(QTreeView* theWrappedObject) const; | ||||
void scrollContentsBy(QTreeView* theWrappedObject, int dx, int dy); | ||||
bool allColumnsShowFocus(QTreeView* theWrappedObject) const; | ||||
florianlink
|
r28 | int verticalOffset(QTreeView* theWrappedObject) const; | ||
bool isFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const; | ||||
florianlink
|
r73 | void drawRow(QTreeView* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; | ||
void setRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool hide); | ||||
void mouseMoveEvent(QTreeView* theWrappedObject, QMouseEvent* event); | ||||
florianlink
|
r28 | int autoExpandDelay(QTreeView* theWrappedObject) const; | ||
void setSelection(QTreeView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); | ||||
florianlink
|
r24 | void horizontalScrollbarAction(QTreeView* theWrappedObject, int action); | ||
florianlink
|
r73 | QRegion visualRegionForSelection(QTreeView* theWrappedObject, const QItemSelection& selection) const; | ||
void setColumnWidth(QTreeView* theWrappedObject, int column, int width); | ||||
void setAnimated(QTreeView* theWrappedObject, bool enable); | ||||
void rowsInserted(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end); | ||||
florianlink
|
r24 | void mouseDoubleClickEvent(QTreeView* theWrappedObject, QMouseEvent* event); | ||
florianlink
|
r73 | QList<QModelIndex > selectedIndexes(QTreeView* theWrappedObject) const; | ||
bool isColumnHidden(QTreeView* theWrappedObject, int column) const; | ||||
bool viewportEvent(QTreeView* theWrappedObject, QEvent* event); | ||||
void mousePressEvent(QTreeView* theWrappedObject, QMouseEvent* event); | ||||
QModelIndex indexBelow(QTreeView* theWrappedObject, const QModelIndex& index) const; | ||||
void updateGeometries(QTreeView* theWrappedObject); | ||||
florianlink
|
r24 | void scrollTo(QTreeView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); | ||
florianlink
|
r73 | int columnViewportPosition(QTreeView* theWrappedObject, int column) const; | ||
void setHeaderHidden(QTreeView* theWrappedObject, bool hide); | ||||
void rowsAboutToBeRemoved(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end); | ||||
void selectionChanged(QTreeView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); | ||||
void reset(QTreeView* theWrappedObject); | ||||
void setHeader(QTreeView* theWrappedObject, QHeaderView* header); | ||||
florianlink
|
r24 | bool rootIsDecorated(QTreeView* theWrappedObject) const; | ||
florianlink
|
r73 | void setRootIsDecorated(QTreeView* theWrappedObject, bool show); | ||
void keyPressEvent(QTreeView* theWrappedObject, QKeyEvent* event); | ||||
void dragMoveEvent(QTreeView* theWrappedObject, QDragMoveEvent* event); | ||||
int columnWidth(QTreeView* theWrappedObject, int column) const; | ||||
int columnAt(QTreeView* theWrappedObject, int x) const; | ||||
void setItemsExpandable(QTreeView* theWrappedObject, bool enable); | ||||
bool isExpanded(QTreeView* theWrappedObject, const QModelIndex& index) const; | ||||
bool isIndexHidden(QTreeView* theWrappedObject, const QModelIndex& index) const; | ||||
void paintEvent(QTreeView* theWrappedObject, QPaintEvent* event); | ||||
bool isRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const; | ||||
QHeaderView* header(QTreeView* theWrappedObject) const; | ||||
void setSortingEnabled(QTreeView* theWrappedObject, bool enable); | ||||
QModelIndex indexAt(QTreeView* theWrappedObject, const QPoint& p) const; | ||||
florianlink
|
r28 | void sortByColumn(QTreeView* theWrappedObject, int column, Qt::SortOrder order); | ||
florianlink
|
r73 | void setColumnHidden(QTreeView* theWrappedObject, int column, bool hide); | ||
florianlink
|
r28 | int sizeHintForColumn(QTreeView* theWrappedObject, int column) const; | ||
florianlink
|
r73 | bool uniformRowHeights(QTreeView* theWrappedObject) const; | ||
bool itemsExpandable(QTreeView* theWrappedObject) const; | ||||
florianlink
|
r28 | void setFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool span); | ||
florianlink
|
r73 | QModelIndex indexAbove(QTreeView* theWrappedObject, const QModelIndex& index) const; | ||
void setSelectionModel(QTreeView* theWrappedObject, QItemSelectionModel* selectionModel); | ||||
void setRootIndex(QTreeView* theWrappedObject, const QModelIndex& index); | ||||
int horizontalOffset(QTreeView* theWrappedObject) const; | ||||
florianlink
|
r28 | void timerEvent(QTreeView* theWrappedObject, QTimerEvent* event); | ||
florianlink
|
r73 | QRect visualRect(QTreeView* theWrappedObject, const QModelIndex& index) const; | ||
void currentChanged(QTreeView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); | ||||
void setAutoExpandDelay(QTreeView* theWrappedObject, int delay); | ||||
void setIndentation(QTreeView* theWrappedObject, int i); | ||||
void setExpanded(QTreeView* theWrappedObject, const QModelIndex& index, bool expand); | ||||
bool isHeaderHidden(QTreeView* theWrappedObject) const; | ||||
void keyboardSearch(QTreeView* theWrappedObject, const QString& search); | ||||
void setAllColumnsShowFocus(QTreeView* theWrappedObject, bool enable); | ||||
int indentation(QTreeView* theWrappedObject) const; | ||||
void drawBranches(QTreeView* theWrappedObject, QPainter* painter, const QRect& rect, const QModelIndex& index) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTREEVIEW_H | ||||