##// END OF EJS Templates
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes...
improved so that dict contains properties and that dir() shows all available things, including the derived base attributes git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@70 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r34:5daedfb035c8
Show More
PythonQtWrapper_QListView.h
229 lines | 12.7 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QLISTVIEW_H
#define PYTHONQTWRAPPER_QLISTVIEW_H
#include <qlistview.h>
#include <QObject>
#include <PythonQt.h>
#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>
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:
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(); }
};
class PythonQtWrapper_QListView : public QObject
{ Q_OBJECT
public:
public slots:
QListView* new_QListView(QWidget* parent = 0);
void delete_QListView(QListView* obj) { delete obj; }
void updateGeometries(QListView* theWrappedObject);
void setResizeMode(QListView* theWrappedObject, QListView::ResizeMode mode);
QListView::ViewMode viewMode(QListView* theWrappedObject) const;
void resizeEvent(QListView* theWrappedObject, QResizeEvent* e);
void setSpacing(QListView* theWrappedObject, int space);
QListView::Flow flow(QListView* theWrappedObject) const;
void selectionChanged(QListView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected);
void setSelection(QListView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command);
void setBatchSize(QListView* theWrappedObject, int batchSize);
bool wordWrap(QListView* theWrappedObject) const;
void setViewMode(QListView* theWrappedObject, QListView::ViewMode mode);
void dragLeaveEvent(QListView* theWrappedObject, QDragLeaveEvent* e);
void dropEvent(QListView* theWrappedObject, QDropEvent* e);
QListView::Movement movement(QListView* theWrappedObject) const;
QList<QModelIndex > selectedIndexes(QListView* theWrappedObject) const;
void mouseMoveEvent(QListView* theWrappedObject, QMouseEvent* e);
void dataChanged(QListView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight);
void timerEvent(QListView* theWrappedObject, QTimerEvent* e);
void setFlow(QListView* theWrappedObject, QListView::Flow flow);
QModelIndex indexAt(QListView* theWrappedObject, const QPoint& p) const;
void scrollContentsBy(QListView* theWrappedObject, int dx, int dy);
bool isIndexHidden(QListView* theWrappedObject, const QModelIndex& index) const;
QListView::ResizeMode resizeMode(QListView* theWrappedObject) const;
void reset(QListView* theWrappedObject);
void setWrapping(QListView* theWrappedObject, bool enable);
int spacing(QListView* theWrappedObject) const;
bool event(QListView* theWrappedObject, QEvent* e);
int horizontalOffset(QListView* theWrappedObject) const;
int modelColumn(QListView* theWrappedObject) const;
void setRootIndex(QListView* theWrappedObject, const QModelIndex& index);
QRect visualRect(QListView* theWrappedObject, const QModelIndex& index) const;
void mouseReleaseEvent(QListView* theWrappedObject, QMouseEvent* e);
bool isRowHidden(QListView* theWrappedObject, int row) const;
void setUniformItemSizes(QListView* theWrappedObject, bool enable);
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);
bool isSelectionRectVisible(QListView* theWrappedObject) const;
bool isWrapping(QListView* theWrappedObject) const;
void setSelectionRectVisible(QListView* theWrappedObject, bool show);
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;
};
#endif // PYTHONQTWRAPPER_QLISTVIEW_H