#ifndef PYTHONQTWRAPPER_QTEXTBOUNDARYFINDER_H #define PYTHONQTWRAPPER_QTEXTBOUNDARYFINDER_H #include #include #include #include #include class PythonQtWrapper_QTextBoundaryFinder : public QObject { Q_OBJECT public: Q_ENUMS(BoundaryReason BoundaryType ) Q_FLAGS(BoundaryReasons ) 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}; Q_DECLARE_FLAGS(BoundaryReasons, BoundaryReason) 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; } void setPosition(QTextBoundaryFinder* theWrappedObject, int position); int position(QTextBoundaryFinder* theWrappedObject) const; int toPreviousBoundary(QTextBoundaryFinder* theWrappedObject); QTextBoundaryFinder::BoundaryReasons boundaryReasons(QTextBoundaryFinder* theWrappedObject) const; bool isValid(QTextBoundaryFinder* theWrappedObject) const; QTextBoundaryFinder::BoundaryType type(QTextBoundaryFinder* theWrappedObject) const; QString string(QTextBoundaryFinder* theWrappedObject) const; bool isAtBoundary(QTextBoundaryFinder* theWrappedObject) const; void toEnd(QTextBoundaryFinder* theWrappedObject); int toNextBoundary(QTextBoundaryFinder* theWrappedObject); void toStart(QTextBoundaryFinder* theWrappedObject); }; #endif // PYTHONQTWRAPPER_QTEXTBOUNDARYFINDER_H