PythonQtWrapper_QListView.h
229 lines
| 12.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QLISTVIEW_H | ||
#define PYTHONQTWRAPPER_QLISTVIEW_H | ||||
#include <qlistview.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 <qicon.h> | ||||
#include <qinputcontext.h> | ||||
#include <qitemselectionmodel.h> | ||||
#include <qkeysequence.h> | ||||
#include <qlayout.h> | ||||
#include <qlist.h> | ||||
#include <qlistview.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_QListView : public QListView | ||
{ | ||||
public: | ||||
PythonQtShell_QListView(QWidget* parent = 0):QListView(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* e); | ||||
virtual void dragMoveEvent(QDragMoveEvent* e); | ||||
virtual void dropEvent(QDropEvent* e); | ||||
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* e); | ||||
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* e); | ||||
virtual void mousePressEvent(QMouseEvent* event); | ||||
virtual void mouseReleaseEvent(QMouseEvent* e); | ||||
virtual void moveEvent(QMoveEvent* arg__1); | ||||
virtual QPaintEngine* paintEngine() const; | ||||
virtual void paintEvent(QPaintEvent* e); | ||||
virtual void reset(); | ||||
virtual void resizeEvent(QResizeEvent* e); | ||||
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* e); | ||||
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_QListView : public QListView | ||||
{ public: | ||||
florianlink
|
r28 | inline void promoted_updateGeometries() { QListView::updateGeometries(); } | ||
inline void promoted_resizeEvent(QResizeEvent* e) { QListView::resizeEvent(e); } | ||||
inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QListView::selectionChanged(selected, deselected); } | ||||
inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QListView::setSelection(rect, command); } | ||||
inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QListView::dragLeaveEvent(e); } | ||||
inline void promoted_dropEvent(QDropEvent* e) { QListView::dropEvent(e); } | ||||
inline QList<QModelIndex > promoted_selectedIndexes() const { return QListView::selectedIndexes(); } | ||||
inline void promoted_mouseMoveEvent(QMouseEvent* e) { QListView::mouseMoveEvent(e); } | ||||
inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QListView::dataChanged(topLeft, bottomRight); } | ||||
inline void promoted_timerEvent(QTimerEvent* e) { QListView::timerEvent(e); } | ||||
inline QModelIndex promoted_indexAt(const QPoint& p) const { return QListView::indexAt(p); } | ||||
inline void promoted_scrollContentsBy(int dx, int dy) { QListView::scrollContentsBy(dx, dy); } | ||||
inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QListView::isIndexHidden(index); } | ||||
inline void promoted_reset() { QListView::reset(); } | ||||
inline bool promoted_event(QEvent* e) { return QListView::event(e); } | ||||
inline int promoted_horizontalOffset() const { return QListView::horizontalOffset(); } | ||||
inline void promoted_setRootIndex(const QModelIndex& index) { QListView::setRootIndex(index); } | ||||
inline QRect promoted_visualRect(const QModelIndex& index) const { return QListView::visualRect(index); } | ||||
inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QListView::mouseReleaseEvent(e); } | ||||
inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QListView::rowsAboutToBeRemoved(parent, start, end); } | ||||
inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QListView::visualRegionForSelection(selection); } | ||||
inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QListView::scrollTo(index, hint); } | ||||
inline void promoted_paintEvent(QPaintEvent* e) { QListView::paintEvent(e); } | ||||
inline void promoted_doItemsLayout() { QListView::doItemsLayout(); } | ||||
inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QListView::rowsInserted(parent, start, end); } | ||||
inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QListView::currentChanged(current, previous); } | ||||
inline void promoted_startDrag(Qt::DropActions supportedActions) { QListView::startDrag(supportedActions); } | ||||
inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QListView::dragMoveEvent(e); } | ||||
inline int promoted_verticalOffset() const { return QListView::verticalOffset(); } | ||||
inline QStyleOptionViewItem promoted_viewOptions() const { return QListView::viewOptions(); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QListView : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QListView* new_QListView(QWidget* parent = 0); | ||||
void delete_QListView(QListView* obj) { delete obj; } | ||||
florianlink
|
r24 | void updateGeometries(QListView* theWrappedObject); | ||
florianlink
|
r13 | void setResizeMode(QListView* theWrappedObject, QListView::ResizeMode mode); | ||
florianlink
|
r24 | QListView::ViewMode viewMode(QListView* theWrappedObject) const; | ||
void resizeEvent(QListView* theWrappedObject, QResizeEvent* e); | ||||
florianlink
|
r13 | void setSpacing(QListView* theWrappedObject, int space); | ||
florianlink
|
r28 | QListView::Flow flow(QListView* theWrappedObject) const; | ||
florianlink
|
r24 | void selectionChanged(QListView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); | ||
florianlink
|
r28 | void setSelection(QListView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); | ||
void setBatchSize(QListView* theWrappedObject, int batchSize); | ||||
florianlink
|
r24 | bool wordWrap(QListView* theWrappedObject) const; | ||
florianlink
|
r28 | void setViewMode(QListView* theWrappedObject, QListView::ViewMode mode); | ||
void dragLeaveEvent(QListView* theWrappedObject, QDragLeaveEvent* e); | ||||
florianlink
|
r24 | void dropEvent(QListView* theWrappedObject, QDropEvent* e); | ||
QListView::Movement movement(QListView* theWrappedObject) const; | ||||
QList<QModelIndex > selectedIndexes(QListView* theWrappedObject) const; | ||||
void mouseMoveEvent(QListView* theWrappedObject, QMouseEvent* e); | ||||
florianlink
|
r28 | void dataChanged(QListView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight); | ||
void timerEvent(QListView* theWrappedObject, QTimerEvent* e); | ||||
florianlink
|
r24 | void setFlow(QListView* theWrappedObject, QListView::Flow flow); | ||
QModelIndex indexAt(QListView* theWrappedObject, const QPoint& p) const; | ||||
florianlink
|
r28 | void scrollContentsBy(QListView* theWrappedObject, int dx, int dy); | ||
florianlink
|
r24 | bool isIndexHidden(QListView* theWrappedObject, const QModelIndex& index) const; | ||
QListView::ResizeMode resizeMode(QListView* theWrappedObject) const; | ||||
void reset(QListView* theWrappedObject); | ||||
void setWrapping(QListView* theWrappedObject, bool enable); | ||||
florianlink
|
r28 | int spacing(QListView* theWrappedObject) const; | ||
bool event(QListView* theWrappedObject, QEvent* e); | ||||
florianlink
|
r24 | int horizontalOffset(QListView* theWrappedObject) const; | ||
florianlink
|
r28 | int modelColumn(QListView* theWrappedObject) const; | ||
florianlink
|
r24 | void setRootIndex(QListView* theWrappedObject, const QModelIndex& index); | ||
florianlink
|
r13 | QRect visualRect(QListView* theWrappedObject, const QModelIndex& index) const; | ||
florianlink
|
r28 | void mouseReleaseEvent(QListView* theWrappedObject, QMouseEvent* e); | ||
florianlink
|
r24 | bool isRowHidden(QListView* theWrappedObject, int row) const; | ||
florianlink
|
r28 | void setUniformItemSizes(QListView* theWrappedObject, bool enable); | ||
florianlink
|
r24 | void setModelColumn(QListView* theWrappedObject, int column); | ||
void rowsAboutToBeRemoved(QListView* theWrappedObject, const QModelIndex& parent, int start, int end); | ||||
QRegion visualRegionForSelection(QListView* theWrappedObject, const QItemSelection& selection) const; | ||||
int batchSize(QListView* theWrappedObject) const; | ||||
void setRowHidden(QListView* theWrappedObject, int row, bool hide); | ||||
florianlink
|
r28 | bool isSelectionRectVisible(QListView* theWrappedObject) const; | ||
bool isWrapping(QListView* theWrappedObject) const; | ||||
florianlink
|
r24 | void setSelectionRectVisible(QListView* theWrappedObject, bool show); | ||
florianlink
|
r28 | void setWordWrap(QListView* theWrappedObject, bool on); | ||
bool uniformItemSizes(QListView* theWrappedObject) const; | ||||
void scrollTo(QListView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); | ||||
void paintEvent(QListView* theWrappedObject, QPaintEvent* e); | ||||
void doItemsLayout(QListView* theWrappedObject); | ||||
void rowsInserted(QListView* theWrappedObject, const QModelIndex& parent, int start, int end); | ||||
QListView::LayoutMode layoutMode(QListView* theWrappedObject) const; | ||||
void currentChanged(QListView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); | ||||
void startDrag(QListView* theWrappedObject, Qt::DropActions supportedActions); | ||||
void setGridSize(QListView* theWrappedObject, const QSize& size); | ||||
void dragMoveEvent(QListView* theWrappedObject, QDragMoveEvent* e); | ||||
void clearPropertyFlags(QListView* theWrappedObject); | ||||
void setMovement(QListView* theWrappedObject, QListView::Movement movement); | ||||
QSize gridSize(QListView* theWrappedObject) const; | ||||
void setLayoutMode(QListView* theWrappedObject, QListView::LayoutMode mode); | ||||
int verticalOffset(QListView* theWrappedObject) const; | ||||
QStyleOptionViewItem viewOptions(QListView* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QLISTVIEW_H | ||||