##// END OF EJS Templates
started to update/improve docs...
started to update/improve docs git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@68 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r28:cf202027b50b
r32:ae159b178ea0
Show More
PythonQtWrapper_QTextCursor.h
100 lines | 6.6 KiB | text/x-c | CLexer
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QTEXTCURSOR_H
#define PYTHONQTWRAPPER_QTEXTCURSOR_H
#include <qtextcursor.h>
#include <QObject>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQt.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QTextBlock>
#include <QTextDocumentFragment>
#include <QVariant>
#include <qtextcursor.h>
#include <qtextdocument.h>
#include <qtextdocumentfragment.h>
#include <qtextformat.h>
#include <qtextlist.h>
#include <qtextobject.h>
#include <qtexttable.h>
class PythonQtWrapper_QTextCursor : public QObject
{ Q_OBJECT
public:
Q_ENUMS(MoveMode MoveOperation SelectionType )
enum MoveMode{
MoveAnchor = QTextCursor::MoveAnchor, KeepAnchor = QTextCursor::KeepAnchor};
enum MoveOperation{
NoMove = QTextCursor::NoMove, Start = QTextCursor::Start, Up = QTextCursor::Up, StartOfLine = QTextCursor::StartOfLine, StartOfBlock = QTextCursor::StartOfBlock, StartOfWord = QTextCursor::StartOfWord, PreviousBlock = QTextCursor::PreviousBlock, PreviousCharacter = QTextCursor::PreviousCharacter, PreviousWord = QTextCursor::PreviousWord, Left = QTextCursor::Left, WordLeft = QTextCursor::WordLeft, End = QTextCursor::End, Down = QTextCursor::Down, EndOfLine = QTextCursor::EndOfLine, EndOfWord = QTextCursor::EndOfWord, EndOfBlock = QTextCursor::EndOfBlock, NextBlock = QTextCursor::NextBlock, NextCharacter = QTextCursor::NextCharacter, NextWord = QTextCursor::NextWord, Right = QTextCursor::Right, WordRight = QTextCursor::WordRight};
enum SelectionType{
WordUnderCursor = QTextCursor::WordUnderCursor, LineUnderCursor = QTextCursor::LineUnderCursor, BlockUnderCursor = QTextCursor::BlockUnderCursor, Document = QTextCursor::Document};
public slots:
QTextCursor* new_QTextCursor();
QTextCursor* new_QTextCursor(QTextDocument* document);
QTextCursor* new_QTextCursor(QTextFrame* frame);
QTextCursor* new_QTextCursor(const QTextBlock& block);
QTextCursor* new_QTextCursor(const QTextCursor& cursor);
void delete_QTextCursor(QTextCursor* obj) { delete obj; }
florianlink
upgraded wrappers to current generator version...
r28 void deletePreviousChar(QTextCursor* theWrappedObject);
QTextList* createList(QTextCursor* theWrappedObject, const QTextListFormat& format);
void insertBlock(QTextCursor* theWrappedObject);
QTextList* createList(QTextCursor* theWrappedObject, QTextListFormat::Style style);
void insertText(QTextCursor* theWrappedObject, const QString& text);
bool operator_less(QTextCursor* theWrappedObject, const QTextCursor& rhs) const;
QString selectedText(QTextCursor* theWrappedObject) const;
QTextDocumentFragment selection(QTextCursor* theWrappedObject) const;
bool hasSelection(QTextCursor* theWrappedObject) const;
void insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format);
void joinPreviousEditBlock(QTextCursor* theWrappedObject);
void insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format, QTextFrameFormat::Position alignment);
void setPosition(QTextCursor* theWrappedObject, int pos, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor);
void clearSelection(QTextCursor* theWrappedObject);
QTextCharFormat charFormat(QTextCursor* theWrappedObject) const;
void select(QTextCursor* theWrappedObject, QTextCursor::SelectionType selection);
QTextTable* insertTable(QTextCursor* theWrappedObject, int rows, int cols);
void mergeBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QTextBlock block(QTextCursor* theWrappedObject) const;
void insertFragment(QTextCursor* theWrappedObject, const QTextDocumentFragment& fragment);
void insertHtml(QTextCursor* theWrappedObject, const QString& html);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 bool atStart(QTextCursor* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 bool hasComplexSelection(QTextCursor* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void selectedTableCells(QTextCursor* theWrappedObject, int* firstRow, int* numRows, int* firstColumn, int* numColumns) const;
int blockNumber(QTextCursor* theWrappedObject) const;
QTextList* insertList(QTextCursor* theWrappedObject, const QTextListFormat& format);
bool atBlockEnd(QTextCursor* theWrappedObject) const;
bool operator_equal(QTextCursor* theWrappedObject, const QTextCursor& rhs) const;
florianlink
upgraded wrappers to current generator version...
r28 void removeSelectedText(QTextCursor* theWrappedObject);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format);
florianlink
upgraded wrappers to current generator version...
r28 void setBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& format);
QTextFrame* currentFrame(QTextCursor* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void insertImage(QTextCursor* theWrappedObject, const QString& name);
florianlink
upgraded wrappers to current generator version...
r28 bool atEnd(QTextCursor* theWrappedObject) const;
QTextFrame* insertFrame(QTextCursor* theWrappedObject, const QTextFrameFormat& format);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QTextList* insertList(QTextCursor* theWrappedObject, QTextListFormat::Style style);
florianlink
upgraded wrappers to current generator version...
r28 bool isNull(QTextCursor* theWrappedObject) const;
int anchor(QTextCursor* theWrappedObject) const;
QTextTable* insertTable(QTextCursor* theWrappedObject, int rows, int cols, const QTextTableFormat& format);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void setBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format);
florianlink
upgraded wrappers to current generator version...
r28 void insertText(QTextCursor* theWrappedObject, const QString& text, const QTextCharFormat& format);
void setVisualNavigation(QTextCursor* theWrappedObject, bool b);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 bool atBlockStart(QTextCursor* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 int position(QTextCursor* theWrappedObject) const;
void endEditBlock(QTextCursor* theWrappedObject);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 bool movePosition(QTextCursor* theWrappedObject, QTextCursor::MoveOperation op, QTextCursor::MoveMode arg__2 = QTextCursor::MoveAnchor, int n = 1);
florianlink
upgraded wrappers to current generator version...
r28 QTextCharFormat blockCharFormat(QTextCursor* theWrappedObject) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 QTextBlockFormat blockFormat(QTextCursor* theWrappedObject) const;
QTextTable* currentTable(QTextCursor* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 void deleteChar(QTextCursor* theWrappedObject);
int selectionEnd(QTextCursor* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 int selectionStart(QTextCursor* theWrappedObject) const;
void setCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 bool isCopyOf(QTextCursor* theWrappedObject, const QTextCursor& other) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 bool visualNavigation(QTextCursor* theWrappedObject) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 void mergeCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier);
florianlink
upgraded wrappers to current generator version...
r28 void beginEditBlock(QTextCursor* theWrappedObject);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format, const QTextCharFormat& charFormat);
QTextList* currentList(QTextCursor* theWrappedObject) const;
int columnNumber(QTextCursor* theWrappedObject) const;
void mergeBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& modifier);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 };
#endif // PYTHONQTWRAPPER_QTEXTCURSOR_H