PythonQtWrapper_QAbstractItemView.h
267 lines
| 17.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QABSTRACTITEMVIEW_H | ||
#define PYTHONQTWRAPPER_QABSTRACTITEMVIEW_H | ||||
#include <qabstractitemview.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractitemdelegate.h> | ||||
#include <qabstractitemmodel.h> | ||||
#include <qabstractitemview.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 <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 <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QAbstractItemView : public QAbstractItemView | ||
{ | ||||
public: | ||||
PythonQtShell_QAbstractItemView(QWidget* parent = 0):QAbstractItemView(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 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& point) 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 QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* arg__1); | ||||
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 = 0) 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_QAbstractItemView : public QAbstractItemView | ||||
{ public: | ||||
florianlink
|
r73 | inline void promoted_reset() { QAbstractItemView::reset(); } | ||
inline void promoted_focusInEvent(QFocusEvent* event) { QAbstractItemView::focusInEvent(event); } | ||||
inline void promoted_doItemsLayout() { QAbstractItemView::doItemsLayout(); } | ||||
inline void promoted_updateEditorData() { QAbstractItemView::updateEditorData(); } | ||||
inline void promoted_selectAll() { QAbstractItemView::selectAll(); } | ||||
inline void promoted_dragLeaveEvent(QDragLeaveEvent* event) { QAbstractItemView::dragLeaveEvent(event); } | ||||
inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QAbstractItemView::selectionChanged(selected, deselected); } | ||||
florianlink
|
r28 | inline void promoted_updateGeometries() { QAbstractItemView::updateGeometries(); } | ||
florianlink
|
r73 | inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QAbstractItemView::setSelectionModel(selectionModel); } | ||
florianlink
|
r28 | inline void promoted_dropEvent(QDropEvent* event) { QAbstractItemView::dropEvent(event); } | ||
florianlink
|
r73 | inline void promoted_resizeEvent(QResizeEvent* event) { QAbstractItemView::resizeEvent(event); } | ||
florianlink
|
r28 | inline bool promoted_viewportEvent(QEvent* event) { return QAbstractItemView::viewportEvent(event); } | ||
inline void promoted_setModel(QAbstractItemModel* model) { QAbstractItemView::setModel(model); } | ||||
inline bool promoted_edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) { return QAbstractItemView::edit(index, trigger, event); } | ||||
florianlink
|
r73 | inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QAbstractItemView::mouseDoubleClickEvent(event); } | ||
florianlink
|
r28 | inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QAbstractItemView::currentChanged(current, previous); } | ||
florianlink
|
r73 | inline void promoted_closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) { QAbstractItemView::closeEditor(editor, hint); } | ||
florianlink
|
r28 | inline int promoted_sizeHintForColumn(int column) const { return QAbstractItemView::sizeHintForColumn(column); } | ||
inline void promoted_commitData(QWidget* editor) { QAbstractItemView::commitData(editor); } | ||||
inline void promoted_dragEnterEvent(QDragEnterEvent* event) { QAbstractItemView::dragEnterEvent(event); } | ||||
florianlink
|
r73 | inline void promoted_verticalScrollbarValueChanged(int value) { QAbstractItemView::verticalScrollbarValueChanged(value); } | ||
inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QAbstractItemView::dataChanged(topLeft, bottomRight); } | ||||
florianlink
|
r28 | inline void promoted_keyboardSearch(const QString& search) { QAbstractItemView::keyboardSearch(search); } | ||
florianlink
|
r73 | inline QItemSelectionModel::SelectionFlags promoted_selectionCommand(const QModelIndex& index, const QEvent* event = 0) const { return QAbstractItemView::selectionCommand(index, event); } | ||
florianlink
|
r28 | inline void promoted_focusOutEvent(QFocusEvent* event) { QAbstractItemView::focusOutEvent(event); } | ||
florianlink
|
r73 | inline void promoted_keyPressEvent(QKeyEvent* event) { QAbstractItemView::keyPressEvent(event); } | ||
inline bool promoted_focusNextPrevChild(bool next) { return QAbstractItemView::focusNextPrevChild(next); } | ||||
florianlink
|
r28 | inline QStyleOptionViewItem promoted_viewOptions() const { return QAbstractItemView::viewOptions(); } | ||
florianlink
|
r73 | inline void promoted_verticalScrollbarAction(int action) { QAbstractItemView::verticalScrollbarAction(action); } | ||
inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QAbstractItemView::inputMethodQuery(query); } | ||||
inline void promoted_editorDestroyed(QObject* editor) { QAbstractItemView::editorDestroyed(editor); } | ||||
inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QAbstractItemView::mouseReleaseEvent(event); } | ||||
florianlink
|
r28 | inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QAbstractItemView::rowsInserted(parent, start, end); } | ||
florianlink
|
r73 | inline void promoted_mousePressEvent(QMouseEvent* event) { QAbstractItemView::mousePressEvent(event); } | ||
inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QAbstractItemView::dragMoveEvent(event); } | ||||
inline QList<QModelIndex > promoted_selectedIndexes() const { return QAbstractItemView::selectedIndexes(); } | ||||
inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QAbstractItemView::inputMethodEvent(event); } | ||||
inline void promoted_startDrag(Qt::DropActions supportedActions) { QAbstractItemView::startDrag(supportedActions); } | ||||
inline bool promoted_event(QEvent* event) { return QAbstractItemView::event(event); } | ||||
inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QAbstractItemView::rowsAboutToBeRemoved(parent, start, end); } | ||||
inline void promoted_updateEditorGeometries() { QAbstractItemView::updateEditorGeometries(); } | ||||
florianlink
|
r28 | inline int promoted_sizeHintForRow(int row) const { return QAbstractItemView::sizeHintForRow(row); } | ||
florianlink
|
r73 | inline void promoted_timerEvent(QTimerEvent* event) { QAbstractItemView::timerEvent(event); } | ||
inline void promoted_setRootIndex(const QModelIndex& index) { QAbstractItemView::setRootIndex(index); } | ||||
inline void promoted_horizontalScrollbarAction(int action) { QAbstractItemView::horizontalScrollbarAction(action); } | ||||
inline void promoted_horizontalScrollbarValueChanged(int value) { QAbstractItemView::horizontalScrollbarValueChanged(value); } | ||||
inline void promoted_mouseMoveEvent(QMouseEvent* event) { QAbstractItemView::mouseMoveEvent(event); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QAbstractItemView : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(EditTrigger ) | ||||
florianlink
|
r73 | Q_FLAGS(EditTriggers ) | ||
florianlink
|
r13 | enum EditTrigger{ | ||
NoEditTriggers = QAbstractItemView::NoEditTriggers, CurrentChanged = QAbstractItemView::CurrentChanged, DoubleClicked = QAbstractItemView::DoubleClicked, SelectedClicked = QAbstractItemView::SelectedClicked, EditKeyPressed = QAbstractItemView::EditKeyPressed, AnyKeyPressed = QAbstractItemView::AnyKeyPressed, AllEditTriggers = QAbstractItemView::AllEditTriggers}; | ||||
florianlink
|
r73 | Q_DECLARE_FLAGS(EditTriggers, EditTrigger) | ||
florianlink
|
r13 | public slots: | ||
florianlink
|
r24 | QAbstractItemView* new_QAbstractItemView(QWidget* parent = 0); | ||
florianlink
|
r13 | void delete_QAbstractItemView(QAbstractItemView* obj) { delete obj; } | ||
florianlink
|
r73 | bool dragEnabled(QAbstractItemView* theWrappedObject) const; | ||
void setItemDelegate(QAbstractItemView* theWrappedObject, QAbstractItemDelegate* delegate); | ||||
florianlink
|
r28 | void focusInEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event); | ||
florianlink
|
r73 | void dragLeaveEvent(QAbstractItemView* theWrappedObject, QDragLeaveEvent* event); | ||
QAbstractItemView::ScrollMode verticalScrollMode(QAbstractItemView* theWrappedObject) const; | ||||
Qt::TextElideMode textElideMode(QAbstractItemView* theWrappedObject) const; | ||||
florianlink
|
r24 | QAbstractItemView::ScrollMode horizontalScrollMode(QAbstractItemView* theWrappedObject) const; | ||
void setEditTriggers(QAbstractItemView* theWrappedObject, QAbstractItemView::EditTriggers triggers); | ||||
florianlink
|
r73 | QModelIndex rootIndex(QAbstractItemView* theWrappedObject) const; | ||
florianlink
|
r24 | void closePersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index); | ||
florianlink
|
r73 | QAbstractItemModel* model(QAbstractItemView* theWrappedObject) const; | ||
void setSelectionModel(QAbstractItemView* theWrappedObject, QItemSelectionModel* selectionModel); | ||||
void dropEvent(QAbstractItemView* theWrappedObject, QDropEvent* event); | ||||
QModelIndex currentIndex(QAbstractItemView* theWrappedObject) const; | ||||
void resizeEvent(QAbstractItemView* theWrappedObject, QResizeEvent* event); | ||||
bool dragDropOverwriteMode(QAbstractItemView* theWrappedObject) const; | ||||
bool viewportEvent(QAbstractItemView* theWrappedObject, QEvent* event); | ||||
florianlink
|
r24 | void setDropIndicatorShown(QAbstractItemView* theWrappedObject, bool enable); | ||
florianlink
|
r73 | QItemSelectionModel* selectionModel(QAbstractItemView* theWrappedObject) const; | ||
QAbstractItemDelegate* itemDelegateForColumn(QAbstractItemView* theWrappedObject, int column) const; | ||||
florianlink
|
r28 | bool alternatingRowColors(QAbstractItemView* theWrappedObject) const; | ||
florianlink
|
r73 | void setModel(QAbstractItemView* theWrappedObject, QAbstractItemModel* model); | ||
bool edit(QAbstractItemView* theWrappedObject, const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); | ||||
void mouseDoubleClickEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); | ||||
florianlink
|
r24 | int sizeHintForColumn(QAbstractItemView* theWrappedObject, int column) const; | ||
void setSelectionMode(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionMode mode); | ||||
void dragEnterEvent(QAbstractItemView* theWrappedObject, QDragEnterEvent* event); | ||||
florianlink
|
r73 | QAbstractItemDelegate* itemDelegate(QAbstractItemView* theWrappedObject) const; | ||
void setTabKeyNavigation(QAbstractItemView* theWrappedObject, bool enable); | ||||
void setSelectionBehavior(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionBehavior behavior); | ||||
florianlink
|
r24 | void openPersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index); | ||
void keyboardSearch(QAbstractItemView* theWrappedObject, const QString& search); | ||||
florianlink
|
r73 | int autoScrollMargin(QAbstractItemView* theWrappedObject) const; | ||
QAbstractItemDelegate* itemDelegate(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; | ||||
QItemSelectionModel::SelectionFlags selectionCommand(QAbstractItemView* theWrappedObject, const QModelIndex& index, const QEvent* event = 0) const; | ||||
florianlink
|
r28 | QAbstractItemView::DragDropMode dragDropMode(QAbstractItemView* theWrappedObject) const; | ||
florianlink
|
r73 | QAbstractItemView::EditTriggers editTriggers(QAbstractItemView* theWrappedObject) const; | ||
florianlink
|
r24 | void focusOutEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event); | ||
florianlink
|
r73 | void keyPressEvent(QAbstractItemView* theWrappedObject, QKeyEvent* event); | ||
florianlink
|
r24 | void setAutoScrollMargin(QAbstractItemView* theWrappedObject, int margin); | ||
florianlink
|
r73 | bool focusNextPrevChild(QAbstractItemView* theWrappedObject, bool next); | ||
florianlink
|
r24 | QStyleOptionViewItem viewOptions(QAbstractItemView* theWrappedObject) const; | ||
void setDragDropOverwriteMode(QAbstractItemView* theWrappedObject, bool overwrite); | ||||
florianlink
|
r73 | bool hasAutoScroll(QAbstractItemView* theWrappedObject) const; | ||
bool tabKeyNavigation(QAbstractItemView* theWrappedObject) const; | ||||
florianlink
|
r28 | QSize sizeHintForIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; | ||
florianlink
|
r73 | QSize iconSize(QAbstractItemView* theWrappedObject) const; | ||
QVariant inputMethodQuery(QAbstractItemView* theWrappedObject, Qt::InputMethodQuery query) const; | ||||
void setItemDelegateForRow(QAbstractItemView* theWrappedObject, int row, QAbstractItemDelegate* delegate); | ||||
void mouseReleaseEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); | ||||
void setItemDelegateForColumn(QAbstractItemView* theWrappedObject, int column, QAbstractItemDelegate* delegate); | ||||
bool showDropIndicator(QAbstractItemView* theWrappedObject) const; | ||||
void setIconSize(QAbstractItemView* theWrappedObject, const QSize& size); | ||||
QAbstractItemDelegate* itemDelegateForRow(QAbstractItemView* theWrappedObject, int row) const; | ||||
void mousePressEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); | ||||
void setHorizontalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode); | ||||
void setVerticalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode); | ||||
florianlink
|
r24 | void setTextElideMode(QAbstractItemView* theWrappedObject, Qt::TextElideMode mode); | ||
florianlink
|
r73 | void dragMoveEvent(QAbstractItemView* theWrappedObject, QDragMoveEvent* event); | ||
QList<QModelIndex > selectedIndexes(QAbstractItemView* theWrappedObject) const; | ||||
void inputMethodEvent(QAbstractItemView* theWrappedObject, QInputMethodEvent* event); | ||||
void setDragEnabled(QAbstractItemView* theWrappedObject, bool enable); | ||||
QAbstractItemView::SelectionMode selectionMode(QAbstractItemView* theWrappedObject) const; | ||||
void startDrag(QAbstractItemView* theWrappedObject, Qt::DropActions supportedActions); | ||||
void setIndexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index, QWidget* widget); | ||||
bool event(QAbstractItemView* theWrappedObject, QEvent* event); | ||||
void setDragDropMode(QAbstractItemView* theWrappedObject, QAbstractItemView::DragDropMode behavior); | ||||
void setAutoScroll(QAbstractItemView* theWrappedObject, bool enable); | ||||
int sizeHintForRow(QAbstractItemView* theWrappedObject, int row) const; | ||||
void setAlternatingRowColors(QAbstractItemView* theWrappedObject, bool enable); | ||||
void timerEvent(QAbstractItemView* theWrappedObject, QTimerEvent* event); | ||||
QWidget* indexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; | ||||
QAbstractItemView::SelectionBehavior selectionBehavior(QAbstractItemView* theWrappedObject) const; | ||||
void mouseMoveEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QABSTRACTITEMVIEW_H | ||||