#ifndef PYTHONQTWRAPPER_QLISTWIDGET_H #define PYTHONQTWRAPPER_QLISTWIDGET_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class PythonQtWrapper_QListWidget : public QObject { Q_OBJECT public: public slots: QListWidget* new_QListWidget(QWidget* parent = 0); void delete_QListWidget(QListWidget* obj) { delete obj; } void addItem(QListWidget* theWrappedObject, QListWidgetItem* item); void addItem(QListWidget* theWrappedObject, const QString& label); void addItems(QListWidget* theWrappedObject, const QStringList& labels); void closePersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item); int count(QListWidget* theWrappedObject) const; QListWidgetItem* currentItem(QListWidget* theWrappedObject) const; int currentRow(QListWidget* theWrappedObject) const; void dropEvent(QListWidget* theWrappedObject, QDropEvent* event); void editItem(QListWidget* theWrappedObject, QListWidgetItem* item); QList findItems(QListWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const; void insertItem(QListWidget* theWrappedObject, int row, QListWidgetItem* item); void insertItem(QListWidget* theWrappedObject, int row, const QString& label); void insertItems(QListWidget* theWrappedObject, int row, const QStringList& labels); bool isSortingEnabled(QListWidget* theWrappedObject) const; QListWidgetItem* item(QListWidget* theWrappedObject, int row) const; QListWidgetItem* itemAt(QListWidget* theWrappedObject, const QPoint& p) const; QListWidgetItem* itemAt(QListWidget* theWrappedObject, int x, int y) const; QWidget* itemWidget(QListWidget* theWrappedObject, QListWidgetItem* item) const; void openPersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item); void removeItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item); int row(QListWidget* theWrappedObject, const QListWidgetItem* item) const; QList selectedItems(QListWidget* theWrappedObject) const; void setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item); void setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item, QItemSelectionModel::SelectionFlags command); void setCurrentRow(QListWidget* theWrappedObject, int row); void setCurrentRow(QListWidget* theWrappedObject, int row, QItemSelectionModel::SelectionFlags command); void setItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item, QWidget* widget); void setSortingEnabled(QListWidget* theWrappedObject, bool enable); void sortItems(QListWidget* theWrappedObject, Qt::SortOrder order = Qt::AscendingOrder); QListWidgetItem* takeItem(QListWidget* theWrappedObject, int row); QRect visualItemRect(QListWidget* theWrappedObject, const QListWidgetItem* item) const; }; #endif // PYTHONQTWRAPPER_QLISTWIDGET_H