PythonQtWrapper_QTextBoundaryFinder.h
38 lines
| 1.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTBOUNDARYFINDER_H | ||
#define PYTHONQTWRAPPER_QTEXTBOUNDARYFINDER_H | ||||
#include <qtextboundaryfinder.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qtextboundaryfinder.h> | ||||
class PythonQtWrapper_QTextBoundaryFinder : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(BoundaryReason BoundaryType ) | ||||
enum BoundaryReason{ | ||||
NotAtBoundary = QTextBoundaryFinder::NotAtBoundary, StartWord = QTextBoundaryFinder::StartWord, EndWord = QTextBoundaryFinder::EndWord}; | ||||
enum BoundaryType{ | ||||
Grapheme = QTextBoundaryFinder::Grapheme, Word = QTextBoundaryFinder::Word, Line = QTextBoundaryFinder::Line, Sentence = QTextBoundaryFinder::Sentence}; | ||||
public slots: | ||||
QTextBoundaryFinder* new_QTextBoundaryFinder(); | ||||
QTextBoundaryFinder* new_QTextBoundaryFinder(QTextBoundaryFinder::BoundaryType type, const QString& string); | ||||
QTextBoundaryFinder* new_QTextBoundaryFinder(const QTextBoundaryFinder& other); | ||||
void delete_QTextBoundaryFinder(QTextBoundaryFinder* obj) { delete obj; } | ||||
QTextBoundaryFinder::BoundaryReasons boundaryReasons(QTextBoundaryFinder* theWrappedObject) const; | ||||
florianlink
|
r28 | int toPreviousBoundary(QTextBoundaryFinder* theWrappedObject); | ||
florianlink
|
r24 | bool isValid(QTextBoundaryFinder* theWrappedObject) const; | ||
florianlink
|
r13 | QString string(QTextBoundaryFinder* theWrappedObject) const; | ||
florianlink
|
r24 | bool isAtBoundary(QTextBoundaryFinder* theWrappedObject) const; | ||
florianlink
|
r13 | int toNextBoundary(QTextBoundaryFinder* theWrappedObject); | ||
QTextBoundaryFinder::BoundaryType type(QTextBoundaryFinder* theWrappedObject) const; | ||||
florianlink
|
r24 | int position(QTextBoundaryFinder* theWrappedObject) const; | ||
void toEnd(QTextBoundaryFinder* theWrappedObject); | ||||
void toStart(QTextBoundaryFinder* theWrappedObject); | ||||
florianlink
|
r28 | void setPosition(QTextBoundaryFinder* theWrappedObject, int position); | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTBOUNDARYFINDER_H | ||||