#ifndef PYTHONQTWRAPPER_QSTANDARDITEM_H #define PYTHONQTWRAPPER_QSTANDARDITEM_H #include #include #include #include #include #include #include #include #include #include #include class PythonQtWrapper_QStandardItem : public QObject { Q_OBJECT public: Q_ENUMS(ItemType ) enum ItemType{ Type = QStandardItem::Type, UserType = QStandardItem::UserType}; public slots: QStandardItem* new_QStandardItem(); QStandardItem* new_QStandardItem(const QIcon& icon, const QString& text); QStandardItem* new_QStandardItem(const QString& text); QStandardItem* new_QStandardItem(int rows, int columns = 1); void delete_QStandardItem(QStandardItem* obj) { delete obj; } QString accessibleDescription(QStandardItem* theWrappedObject) const; QString accessibleText(QStandardItem* theWrappedObject) const; void appendColumn(QStandardItem* theWrappedObject, const QList& items); void appendRow(QStandardItem* theWrappedObject, QStandardItem* item); void appendRow(QStandardItem* theWrappedObject, const QList& items); void appendRows(QStandardItem* theWrappedObject, const QList& items); QBrush background(QStandardItem* theWrappedObject) const; Qt::CheckState checkState(QStandardItem* theWrappedObject) const; QStandardItem* child(QStandardItem* theWrappedObject, int row, int column = 0) const; QStandardItem* clone(QStandardItem* theWrappedObject) const; int column(QStandardItem* theWrappedObject) const; int columnCount(QStandardItem* theWrappedObject) const; QVariant data(QStandardItem* theWrappedObject, int role = Qt::UserRole + 1) const; Qt::ItemFlags flags(QStandardItem* theWrappedObject) const; QFont font(QStandardItem* theWrappedObject) const; QBrush foreground(QStandardItem* theWrappedObject) const; bool hasChildren(QStandardItem* theWrappedObject) const; QIcon icon(QStandardItem* theWrappedObject) const; QModelIndex index(QStandardItem* theWrappedObject) const; void insertColumn(QStandardItem* theWrappedObject, int column, const QList& items); void insertColumns(QStandardItem* theWrappedObject, int column, int count); void insertRow(QStandardItem* theWrappedObject, int row, QStandardItem* item); void insertRow(QStandardItem* theWrappedObject, int row, const QList& items); void insertRows(QStandardItem* theWrappedObject, int row, const QList& items); void insertRows(QStandardItem* theWrappedObject, int row, int count); bool isCheckable(QStandardItem* theWrappedObject) const; bool isDragEnabled(QStandardItem* theWrappedObject) const; bool isDropEnabled(QStandardItem* theWrappedObject) const; bool isEditable(QStandardItem* theWrappedObject) const; bool isEnabled(QStandardItem* theWrappedObject) const; bool isSelectable(QStandardItem* theWrappedObject) const; bool isTristate(QStandardItem* theWrappedObject) const; QStandardItemModel* model(QStandardItem* theWrappedObject) const; void writeTo(QStandardItem* theWrappedObject, QDataStream& out); void readFrom(QStandardItem* theWrappedObject, QDataStream& in); QStandardItem* parent(QStandardItem* theWrappedObject) const; void removeColumn(QStandardItem* theWrappedObject, int column); void removeColumns(QStandardItem* theWrappedObject, int column, int count); void removeRow(QStandardItem* theWrappedObject, int row); void removeRows(QStandardItem* theWrappedObject, int row, int count); int row(QStandardItem* theWrappedObject) const; int rowCount(QStandardItem* theWrappedObject) const; void setAccessibleDescription(QStandardItem* theWrappedObject, const QString& accessibleDescription); void setAccessibleText(QStandardItem* theWrappedObject, const QString& accessibleText); void setBackground(QStandardItem* theWrappedObject, const QBrush& brush); void setCheckState(QStandardItem* theWrappedObject, Qt::CheckState checkState); void setCheckable(QStandardItem* theWrappedObject, bool checkable); void setChild(QStandardItem* theWrappedObject, int row, QStandardItem* item); void setChild(QStandardItem* theWrappedObject, int row, int column, QStandardItem* item); void setColumnCount(QStandardItem* theWrappedObject, int columns); void setData(QStandardItem* theWrappedObject, const QVariant& value, int role = Qt::UserRole + 1); void setDragEnabled(QStandardItem* theWrappedObject, bool dragEnabled); void setDropEnabled(QStandardItem* theWrappedObject, bool dropEnabled); void setEditable(QStandardItem* theWrappedObject, bool editable); void setEnabled(QStandardItem* theWrappedObject, bool enabled); void setFlags(QStandardItem* theWrappedObject, Qt::ItemFlags flags); void setFont(QStandardItem* theWrappedObject, const QFont& font); void setForeground(QStandardItem* theWrappedObject, const QBrush& brush); void setIcon(QStandardItem* theWrappedObject, const QIcon& icon); void setRowCount(QStandardItem* theWrappedObject, int rows); void setSelectable(QStandardItem* theWrappedObject, bool selectable); void setSizeHint(QStandardItem* theWrappedObject, const QSize& sizeHint); void setStatusTip(QStandardItem* theWrappedObject, const QString& statusTip); void setText(QStandardItem* theWrappedObject, const QString& text); void setTextAlignment(QStandardItem* theWrappedObject, Qt::Alignment textAlignment); void setToolTip(QStandardItem* theWrappedObject, const QString& toolTip); void setTristate(QStandardItem* theWrappedObject, bool tristate); void setWhatsThis(QStandardItem* theWrappedObject, const QString& whatsThis); QSize sizeHint(QStandardItem* theWrappedObject) const; void sortChildren(QStandardItem* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); QString statusTip(QStandardItem* theWrappedObject) const; QStandardItem* takeChild(QStandardItem* theWrappedObject, int row, int column = 0); QList takeColumn(QStandardItem* theWrappedObject, int column); QList takeRow(QStandardItem* theWrappedObject, int row); QString text(QStandardItem* theWrappedObject) const; Qt::Alignment textAlignment(QStandardItem* theWrappedObject) const; QString toolTip(QStandardItem* theWrappedObject) const; int type(QStandardItem* theWrappedObject) const; QString whatsThis(QStandardItem* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QSTANDARDITEM_H