PythonQtWrapper_QTextListFormat.h
46 lines
| 1.7 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTLISTFORMAT_H | ||
#define PYTHONQTWRAPPER_QTEXTLISTFORMAT_H | ||||
#include <qtextformat.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qcolor.h> | ||||
#include <qpen.h> | ||||
#include <qtextformat.h> | ||||
#include <qvector.h> | ||||
florianlink
|
r24 | class PythonQtShell_QTextListFormat : public QTextListFormat | ||
{ | ||||
public: | ||||
PythonQtShell_QTextListFormat():QTextListFormat(),_wrapper(NULL) {}; | ||||
PythonQtShell_QTextListFormat(const QTextFormat& fmt):QTextListFormat(fmt),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QTextListFormat : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Style ) | ||||
enum Style{ | ||||
ListDisc = QTextListFormat::ListDisc, ListCircle = QTextListFormat::ListCircle, ListSquare = QTextListFormat::ListSquare, ListDecimal = QTextListFormat::ListDecimal, ListLowerAlpha = QTextListFormat::ListLowerAlpha, ListUpperAlpha = QTextListFormat::ListUpperAlpha, ListStyleUndefined = QTextListFormat::ListStyleUndefined}; | ||||
public slots: | ||||
QTextListFormat* new_QTextListFormat(); | ||||
florianlink
|
r24 | QTextListFormat* new_QTextListFormat(const QTextListFormat& other) { | ||
PythonQtShell_QTextListFormat* a = new PythonQtShell_QTextListFormat(); | ||||
*((QTextListFormat*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTextListFormat(QTextListFormat* obj) { delete obj; } | ||
void setIndent(QTextListFormat* theWrappedObject, int indent); | ||||
QTextListFormat::Style style(QTextListFormat* theWrappedObject) const; | ||||
florianlink
|
r24 | int indent(QTextListFormat* theWrappedObject) const; | ||
void setStyle(QTextListFormat* theWrappedObject, QTextListFormat::Style style); | ||||
florianlink
|
r28 | bool isValid(QTextListFormat* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTLISTFORMAT_H | ||||