PythonQtWrapper_QTextTableFormat.h
52 lines
| 2.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTTABLEFORMAT_H | ||
#define PYTHONQTWRAPPER_QTEXTTABLEFORMAT_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_QTextTableFormat : public QTextTableFormat | ||
{ | ||||
public: | ||||
PythonQtShell_QTextTableFormat():QTextTableFormat(),_wrapper(NULL) {}; | ||||
PythonQtShell_QTextTableFormat(const QTextFormat& fmt):QTextTableFormat(fmt),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QTextTableFormat : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTextTableFormat* new_QTextTableFormat(); | ||||
florianlink
|
r24 | QTextTableFormat* new_QTextTableFormat(const QTextTableFormat& other) { | ||
PythonQtShell_QTextTableFormat* a = new PythonQtShell_QTextTableFormat(); | ||||
*((QTextTableFormat*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTextTableFormat(QTextTableFormat* obj) { delete obj; } | ||
florianlink
|
r24 | QVector<QTextLength > columnWidthConstraints(QTextTableFormat* theWrappedObject) const; | ||
void setCellPadding(QTextTableFormat* theWrappedObject, qreal padding); | ||||
florianlink
|
r13 | int headerRowCount(QTextTableFormat* theWrappedObject) const; | ||
bool isValid(QTextTableFormat* theWrappedObject) const; | ||||
florianlink
|
r24 | void setHeaderRowCount(QTextTableFormat* theWrappedObject, int count); | ||
florianlink
|
r13 | void setAlignment(QTextTableFormat* theWrappedObject, Qt::Alignment alignment); | ||
void setColumnWidthConstraints(QTextTableFormat* theWrappedObject, const QVector<QTextLength >& constraints); | ||||
florianlink
|
r24 | void setCellSpacing(QTextTableFormat* theWrappedObject, qreal spacing); | ||
Qt::Alignment alignment(QTextTableFormat* theWrappedObject) const; | ||||
florianlink
|
r13 | void setColumns(QTextTableFormat* theWrappedObject, int columns); | ||
florianlink
|
r24 | qreal cellSpacing(QTextTableFormat* theWrappedObject) const; | ||
void clearColumnWidthConstraints(QTextTableFormat* theWrappedObject); | ||||
florianlink
|
r73 | qreal cellPadding(QTextTableFormat* theWrappedObject) const; | ||
int columns(QTextTableFormat* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTTABLEFORMAT_H | ||||