##// END OF EJS Templates
added experimental compacting to avoid generation of hundreds of files that all include the same stuff...
added experimental compacting to avoid generation of hundreds of files that all include the same stuff git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@128 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r92:f97ec94c87a9
Show More
PythonQtWrapper_QAbstractItemView.h
267 lines | 17.8 KiB | text/x-c | CLexer
/ generated_cpp / com_trolltech_qt_gui / PythonQtWrapper_QAbstractItemView.h
#ifndef PYTHONQTWRAPPER_QABSTRACTITEMVIEW_H
#define PYTHONQTWRAPPER_QABSTRACTITEMVIEW_H
#include <qabstractitemview.h>
#include <QObject>
#include <PythonQt.h>
#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>
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:
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); }
inline void promoted_updateGeometries() { QAbstractItemView::updateGeometries(); }
inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QAbstractItemView::setSelectionModel(selectionModel); }
inline void promoted_dropEvent(QDropEvent* event) { QAbstractItemView::dropEvent(event); }
inline void promoted_resizeEvent(QResizeEvent* event) { QAbstractItemView::resizeEvent(event); }
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); }
inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QAbstractItemView::mouseDoubleClickEvent(event); }
inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QAbstractItemView::currentChanged(current, previous); }
inline void promoted_closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) { QAbstractItemView::closeEditor(editor, hint); }
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); }
inline void promoted_verticalScrollbarValueChanged(int value) { QAbstractItemView::verticalScrollbarValueChanged(value); }
inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QAbstractItemView::dataChanged(topLeft, bottomRight); }
inline void promoted_keyboardSearch(const QString& search) { QAbstractItemView::keyboardSearch(search); }
inline QItemSelectionModel::SelectionFlags promoted_selectionCommand(const QModelIndex& index, const QEvent* event = 0) const { return QAbstractItemView::selectionCommand(index, event); }
inline void promoted_focusOutEvent(QFocusEvent* event) { QAbstractItemView::focusOutEvent(event); }
inline void promoted_keyPressEvent(QKeyEvent* event) { QAbstractItemView::keyPressEvent(event); }
inline bool promoted_focusNextPrevChild(bool next) { return QAbstractItemView::focusNextPrevChild(next); }
inline QStyleOptionViewItem promoted_viewOptions() const { return QAbstractItemView::viewOptions(); }
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); }
inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QAbstractItemView::rowsInserted(parent, start, end); }
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(); }
inline int promoted_sizeHintForRow(int row) const { return QAbstractItemView::sizeHintForRow(row); }
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); }
};
class PythonQtWrapper_QAbstractItemView : public QObject
{ Q_OBJECT
public:
Q_ENUMS(EditTrigger )
Q_FLAGS(EditTriggers )
enum EditTrigger{
NoEditTriggers = QAbstractItemView::NoEditTriggers, CurrentChanged = QAbstractItemView::CurrentChanged, DoubleClicked = QAbstractItemView::DoubleClicked, SelectedClicked = QAbstractItemView::SelectedClicked, EditKeyPressed = QAbstractItemView::EditKeyPressed, AnyKeyPressed = QAbstractItemView::AnyKeyPressed, AllEditTriggers = QAbstractItemView::AllEditTriggers};
Q_DECLARE_FLAGS(EditTriggers, EditTrigger)
public slots:
QAbstractItemView* new_QAbstractItemView(QWidget* parent = 0);
void delete_QAbstractItemView(QAbstractItemView* obj) { delete obj; }
bool dragEnabled(QAbstractItemView* theWrappedObject) const;
void setItemDelegate(QAbstractItemView* theWrappedObject, QAbstractItemDelegate* delegate);
void focusInEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event);
void dragLeaveEvent(QAbstractItemView* theWrappedObject, QDragLeaveEvent* event);
QAbstractItemView::ScrollMode verticalScrollMode(QAbstractItemView* theWrappedObject) const;
Qt::TextElideMode textElideMode(QAbstractItemView* theWrappedObject) const;
QAbstractItemView::ScrollMode horizontalScrollMode(QAbstractItemView* theWrappedObject) const;
void setEditTriggers(QAbstractItemView* theWrappedObject, QAbstractItemView::EditTriggers triggers);
QModelIndex rootIndex(QAbstractItemView* theWrappedObject) const;
void closePersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index);
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);
void setDropIndicatorShown(QAbstractItemView* theWrappedObject, bool enable);
QItemSelectionModel* selectionModel(QAbstractItemView* theWrappedObject) const;
QAbstractItemDelegate* itemDelegateForColumn(QAbstractItemView* theWrappedObject, int column) const;
bool alternatingRowColors(QAbstractItemView* theWrappedObject) const;
void setModel(QAbstractItemView* theWrappedObject, QAbstractItemModel* model);
bool edit(QAbstractItemView* theWrappedObject, const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event);
void mouseDoubleClickEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event);
int sizeHintForColumn(QAbstractItemView* theWrappedObject, int column) const;
void setSelectionMode(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionMode mode);
void dragEnterEvent(QAbstractItemView* theWrappedObject, QDragEnterEvent* event);
QAbstractItemDelegate* itemDelegate(QAbstractItemView* theWrappedObject) const;
void setTabKeyNavigation(QAbstractItemView* theWrappedObject, bool enable);
void setSelectionBehavior(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionBehavior behavior);
void openPersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index);
void keyboardSearch(QAbstractItemView* theWrappedObject, const QString& search);
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;
QAbstractItemView::DragDropMode dragDropMode(QAbstractItemView* theWrappedObject) const;
QAbstractItemView::EditTriggers editTriggers(QAbstractItemView* theWrappedObject) const;
void focusOutEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event);
void keyPressEvent(QAbstractItemView* theWrappedObject, QKeyEvent* event);
void setAutoScrollMargin(QAbstractItemView* theWrappedObject, int margin);
bool focusNextPrevChild(QAbstractItemView* theWrappedObject, bool next);
QStyleOptionViewItem viewOptions(QAbstractItemView* theWrappedObject) const;
void setDragDropOverwriteMode(QAbstractItemView* theWrappedObject, bool overwrite);
bool hasAutoScroll(QAbstractItemView* theWrappedObject) const;
bool tabKeyNavigation(QAbstractItemView* theWrappedObject) const;
QSize sizeHintForIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index) const;
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);
void setTextElideMode(QAbstractItemView* theWrappedObject, Qt::TextElideMode mode);
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);
};
#endif // PYTHONQTWRAPPER_QABSTRACTITEMVIEW_H