|
|
#ifndef PYTHONQTWRAPPER_QLISTWIDGET_H
|
|
|
#define PYTHONQTWRAPPER_QLISTWIDGET_H
|
|
|
|
|
|
#include <qlistwidget.h>
|
|
|
#include <QObject>
|
|
|
|
|
|
#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 <qlistwidget.h>
|
|
|
#include <qlocale.h>
|
|
|
#include <qmimedata.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 <qstringlist.h>
|
|
|
#include <qstyle.h>
|
|
|
#include <qstyleoption.h>
|
|
|
#include <qwidget.h>
|
|
|
|
|
|
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<QListWidgetItem* > 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<QListWidgetItem* > 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
|
|
|
|