#ifndef PYTHONQTWRAPPER_QTEXTLISTFORMAT_H #define PYTHONQTWRAPPER_QTEXTLISTFORMAT_H #include #include #include #include #include #include #include #include #include class PythonQtShell_QTextListFormat : public QTextListFormat { public: PythonQtShell_QTextListFormat():QTextListFormat(),_wrapper(NULL) {}; PythonQtShell_QTextListFormat(const QTextFormat& fmt):QTextListFormat(fmt),_wrapper(NULL) {}; PythonQtInstanceWrapper* _wrapper; }; 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(); QTextListFormat* new_QTextListFormat(const QTextListFormat& other) { PythonQtShell_QTextListFormat* a = new PythonQtShell_QTextListFormat(); *((QTextListFormat*)a) = other; return a; } void delete_QTextListFormat(QTextListFormat* obj) { delete obj; } void setStyle(QTextListFormat* theWrappedObject, QTextListFormat::Style style); void setIndent(QTextListFormat* theWrappedObject, int indent); bool isValid(QTextListFormat* theWrappedObject) const; QTextListFormat::Style style(QTextListFormat* theWrappedObject) const; int indent(QTextListFormat* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QTEXTLISTFORMAT_H