#ifndef PYTHONQTWRAPPER_QSTANDARDITEMMODEL_H #define PYTHONQTWRAPPER_QSTANDARDITEMMODEL_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class PythonQtWrapper_QStandardItemModel : public QObject { Q_OBJECT public: public slots: QStandardItemModel* new_QStandardItemModel(QObject* parent = 0); QStandardItemModel* new_QStandardItemModel(int rows, int columns, QObject* parent = 0); void delete_QStandardItemModel(QStandardItemModel* obj) { delete obj; } void appendColumn(QStandardItemModel* theWrappedObject, const QList& items); void appendRow(QStandardItemModel* theWrappedObject, QStandardItem* item); void appendRow(QStandardItemModel* theWrappedObject, const QList& items); void clear(QStandardItemModel* theWrappedObject); int columnCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; QVariant data(QStandardItemModel* theWrappedObject, const QModelIndex& index, int role = Qt::DisplayRole) const; QList findItems(QStandardItemModel* theWrappedObject, const QString& text, Qt::MatchFlags flags = Qt::MatchExactly, int column = 0) const; Qt::ItemFlags flags(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; bool hasChildren(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; QVariant headerData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QStandardItem* horizontalHeaderItem(QStandardItemModel* theWrappedObject, int column) const; QModelIndex index(QStandardItemModel* theWrappedObject, int row, int column, const QModelIndex& parent = QModelIndex()) const; QModelIndex indexFromItem(QStandardItemModel* theWrappedObject, const QStandardItem* item) const; void insertColumn(QStandardItemModel* theWrappedObject, int column, const QList& items); bool insertColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); void insertRow(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); void insertRow(QStandardItemModel* theWrappedObject, int row, const QList& items); bool insertRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); QStandardItem* invisibleRootItem(QStandardItemModel* theWrappedObject) const; QStandardItem* item(QStandardItemModel* theWrappedObject, int row, int column = 0) const; QMap itemData(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; QStandardItem* itemFromIndex(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; const QStandardItem* itemPrototype(QStandardItemModel* theWrappedObject) const; QModelIndex parent(QStandardItemModel* theWrappedObject, const QModelIndex& child) const; bool removeColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); bool removeRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); int rowCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; void setColumnCount(QStandardItemModel* theWrappedObject, int columns); bool setData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); bool setHeaderData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); void setHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column, QStandardItem* item); void setHorizontalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels); void setItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); void setItem(QStandardItemModel* theWrappedObject, int row, int column, QStandardItem* item); bool setItemData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles); void setItemPrototype(QStandardItemModel* theWrappedObject, const QStandardItem* item); void setRowCount(QStandardItemModel* theWrappedObject, int rows); void setSortRole(QStandardItemModel* theWrappedObject, int role); void setVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); void setVerticalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels); void sort(QStandardItemModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); int sortRole(QStandardItemModel* theWrappedObject) const; Qt::DropActions supportedDropActions(QStandardItemModel* theWrappedObject) const; QList takeColumn(QStandardItemModel* theWrappedObject, int column); QStandardItem* takeHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column); QStandardItem* takeItem(QStandardItemModel* theWrappedObject, int row, int column = 0); QList takeRow(QStandardItemModel* theWrappedObject, int row); QStandardItem* takeVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row); QStandardItem* verticalHeaderItem(QStandardItemModel* theWrappedObject, int row) const; }; #endif // PYTHONQTWRAPPER_QSTANDARDITEMMODEL_H