##// END OF EJS Templates
added experimental compacting to avoid generation of hundreds of files that all include the same stuff...
added experimental compacting to avoid generation of hundreds of files that all include the same stuff git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@128 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r92:f97ec94c87a9
Show More
PythonQtWrapper_QTextBlockFormat.h
60 lines | 2.5 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTBLOCKFORMAT_H
#define PYTHONQTWRAPPER_QTEXTBLOCKFORMAT_H
#include <qtextformat.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qlist.h>
#include <qpen.h>
#include <qtextformat.h>
#include <qvector.h>
class PythonQtShell_QTextBlockFormat : public QTextBlockFormat
{
public:
PythonQtShell_QTextBlockFormat():QTextBlockFormat(),_wrapper(NULL) {};
PythonQtShell_QTextBlockFormat(const QTextFormat& fmt):QTextBlockFormat(fmt),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QTextBlockFormat : public QObject
{ Q_OBJECT
public:
public slots:
QTextBlockFormat* new_QTextBlockFormat();
QTextBlockFormat* new_QTextBlockFormat(const QTextBlockFormat& other) {
PythonQtShell_QTextBlockFormat* a = new PythonQtShell_QTextBlockFormat();
*((QTextBlockFormat*)a) = other;
return a; }
void delete_QTextBlockFormat(QTextBlockFormat* obj) { delete obj; }
void setLeftMargin(QTextBlockFormat* theWrappedObject, qreal margin);
void setTopMargin(QTextBlockFormat* theWrappedObject, qreal margin);
void setBottomMargin(QTextBlockFormat* theWrappedObject, qreal margin);
void setRightMargin(QTextBlockFormat* theWrappedObject, qreal margin);
qreal textIndent(QTextBlockFormat* theWrappedObject) const;
qreal topMargin(QTextBlockFormat* theWrappedObject) const;
qreal rightMargin(QTextBlockFormat* theWrappedObject) const;
void setTextIndent(QTextBlockFormat* theWrappedObject, qreal margin);
qreal bottomMargin(QTextBlockFormat* theWrappedObject) const;
bool isValid(QTextBlockFormat* theWrappedObject) const;
bool nonBreakableLines(QTextBlockFormat* theWrappedObject) const;
qreal leftMargin(QTextBlockFormat* theWrappedObject) const;
void setIndent(QTextBlockFormat* theWrappedObject, int indent);
QList<QTextOption::Tab > tabPositions(QTextBlockFormat* theWrappedObject) const;
Qt::Alignment alignment(QTextBlockFormat* theWrappedObject) const;
void setTabPositions(QTextBlockFormat* theWrappedObject, const QList<QTextOption::Tab >& tabs);
void setAlignment(QTextBlockFormat* theWrappedObject, Qt::Alignment alignment);
int indent(QTextBlockFormat* theWrappedObject) const;
void setNonBreakableLines(QTextBlockFormat* theWrappedObject, bool b);
QTextFormat::PageBreakFlags pageBreakPolicy(QTextBlockFormat* theWrappedObject) const;
void setPageBreakPolicy(QTextBlockFormat* theWrappedObject, QTextFormat::PageBreakFlags flags);
};
#endif // PYTHONQTWRAPPER_QTEXTBLOCKFORMAT_H