PythonQtWrapper_QCompleter.h
60 lines
| 3.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QCOMPLETER_H | ||
#define PYTHONQTWRAPPER_QCOMPLETER_H | ||||
#include <qcompleter.h> | ||||
#include <QObject> | ||||
#include <QVariant> | ||||
#include <qabstractitemmodel.h> | ||||
#include <qabstractitemview.h> | ||||
#include <qbytearray.h> | ||||
#include <qcompleter.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qobject.h> | ||||
#include <qrect.h> | ||||
#include <qstringlist.h> | ||||
#include <qwidget.h> | ||||
class PythonQtWrapper_QCompleter : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ModelSorting CompletionMode ) | ||||
enum ModelSorting{ | ||||
UnsortedModel = QCompleter::UnsortedModel, CaseSensitivelySortedModel = QCompleter::CaseSensitivelySortedModel, CaseInsensitivelySortedModel = QCompleter::CaseInsensitivelySortedModel}; | ||||
enum CompletionMode{ | ||||
PopupCompletion = QCompleter::PopupCompletion, UnfilteredPopupCompletion = QCompleter::UnfilteredPopupCompletion, InlineCompletion = QCompleter::InlineCompletion}; | ||||
public slots: | ||||
QCompleter* new_QCompleter(QAbstractItemModel* model, QObject* parent = 0); | ||||
QCompleter* new_QCompleter(QObject* parent = 0); | ||||
QCompleter* new_QCompleter(const QStringList& completions, QObject* parent = 0); | ||||
void delete_QCompleter(QCompleter* obj) { delete obj; } | ||||
Qt::CaseSensitivity caseSensitivity(QCompleter* theWrappedObject) const; | ||||
int completionColumn(QCompleter* theWrappedObject) const; | ||||
int completionCount(QCompleter* theWrappedObject) const; | ||||
QCompleter::CompletionMode completionMode(QCompleter* theWrappedObject) const; | ||||
QAbstractItemModel* completionModel(QCompleter* theWrappedObject) const; | ||||
QString completionPrefix(QCompleter* theWrappedObject) const; | ||||
int completionRole(QCompleter* theWrappedObject) const; | ||||
QString currentCompletion(QCompleter* theWrappedObject) const; | ||||
QModelIndex currentIndex(QCompleter* theWrappedObject) const; | ||||
int currentRow(QCompleter* theWrappedObject) const; | ||||
QAbstractItemModel* model(QCompleter* theWrappedObject) const; | ||||
QCompleter::ModelSorting modelSorting(QCompleter* theWrappedObject) const; | ||||
QString pathFromIndex(QCompleter* theWrappedObject, const QModelIndex& index) const; | ||||
QAbstractItemView* popup(QCompleter* theWrappedObject) const; | ||||
void setCaseSensitivity(QCompleter* theWrappedObject, Qt::CaseSensitivity caseSensitivity); | ||||
void setCompletionColumn(QCompleter* theWrappedObject, int column); | ||||
void setCompletionMode(QCompleter* theWrappedObject, QCompleter::CompletionMode mode); | ||||
void setCompletionRole(QCompleter* theWrappedObject, int role); | ||||
bool setCurrentRow(QCompleter* theWrappedObject, int row); | ||||
void setModel(QCompleter* theWrappedObject, QAbstractItemModel* c); | ||||
void setModelSorting(QCompleter* theWrappedObject, QCompleter::ModelSorting sorting); | ||||
void setPopup(QCompleter* theWrappedObject, QAbstractItemView* popup); | ||||
void setWidget(QCompleter* theWrappedObject, QWidget* widget); | ||||
QStringList splitPath(QCompleter* theWrappedObject, const QString& path) const; | ||||
QWidget* widget(QCompleter* theWrappedObject) const; | ||||
bool wrapAround(QCompleter* theWrappedObject) const; | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QCOMPLETER_H | ||||