##// END OF EJS Templates
allow to pass invalid QVariants as QVariant parameter of slots...
allow to pass invalid QVariants as QVariant parameter of slots git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@127 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r91:7fc8b24bca05
Show More
PythonQtWrapper_QTextFrameFormat.h
72 lines | 3.9 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H
#define PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H
#include <qtextformat.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qpen.h>
#include <qtextformat.h>
#include <qvector.h>
class PythonQtShell_QTextFrameFormat : public QTextFrameFormat
{
public:
PythonQtShell_QTextFrameFormat():QTextFrameFormat(),_wrapper(NULL) {};
PythonQtShell_QTextFrameFormat(const QTextFormat& fmt):QTextFrameFormat(fmt),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QTextFrameFormat : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Position BorderStyle )
enum Position{
InFlow = QTextFrameFormat::InFlow, FloatLeft = QTextFrameFormat::FloatLeft, FloatRight = QTextFrameFormat::FloatRight};
enum BorderStyle{
BorderStyle_None = QTextFrameFormat::BorderStyle_None, BorderStyle_Dotted = QTextFrameFormat::BorderStyle_Dotted, BorderStyle_Dashed = QTextFrameFormat::BorderStyle_Dashed, BorderStyle_Solid = QTextFrameFormat::BorderStyle_Solid, BorderStyle_Double = QTextFrameFormat::BorderStyle_Double, BorderStyle_DotDash = QTextFrameFormat::BorderStyle_DotDash, BorderStyle_DotDotDash = QTextFrameFormat::BorderStyle_DotDotDash, BorderStyle_Groove = QTextFrameFormat::BorderStyle_Groove, BorderStyle_Ridge = QTextFrameFormat::BorderStyle_Ridge, BorderStyle_Inset = QTextFrameFormat::BorderStyle_Inset, BorderStyle_Outset = QTextFrameFormat::BorderStyle_Outset};
public slots:
QTextFrameFormat* new_QTextFrameFormat();
QTextFrameFormat* new_QTextFrameFormat(const QTextFrameFormat& other) {
PythonQtShell_QTextFrameFormat* a = new PythonQtShell_QTextFrameFormat();
*((QTextFrameFormat*)a) = other;
return a; }
void delete_QTextFrameFormat(QTextFrameFormat* obj) { delete obj; }
QTextLength width(QTextFrameFormat* theWrappedObject) const;
void setWidth(QTextFrameFormat* theWrappedObject, const QTextLength& length);
qreal margin(QTextFrameFormat* theWrappedObject) const;
qreal padding(QTextFrameFormat* theWrappedObject) const;
QBrush borderBrush(QTextFrameFormat* theWrappedObject) const;
void setPosition(QTextFrameFormat* theWrappedObject, QTextFrameFormat::Position f);
bool isValid(QTextFrameFormat* theWrappedObject) const;
void setBorderBrush(QTextFrameFormat* theWrappedObject, const QBrush& brush);
qreal rightMargin(QTextFrameFormat* theWrappedObject) const;
void setBorder(QTextFrameFormat* theWrappedObject, qreal border);
void setWidth(QTextFrameFormat* theWrappedObject, qreal width);
void setHeight(QTextFrameFormat* theWrappedObject, qreal height);
void setHeight(QTextFrameFormat* theWrappedObject, const QTextLength& height);
QTextFrameFormat::BorderStyle borderStyle(QTextFrameFormat* theWrappedObject) const;
QTextFrameFormat::Position position(QTextFrameFormat* theWrappedObject) const;
void setLeftMargin(QTextFrameFormat* theWrappedObject, qreal margin);
qreal topMargin(QTextFrameFormat* theWrappedObject) const;
qreal leftMargin(QTextFrameFormat* theWrappedObject) const;
void setTopMargin(QTextFrameFormat* theWrappedObject, qreal margin);
void setPadding(QTextFrameFormat* theWrappedObject, qreal padding);
void setBorderStyle(QTextFrameFormat* theWrappedObject, QTextFrameFormat::BorderStyle style);
QTextLength height(QTextFrameFormat* theWrappedObject) const;
QTextFormat::PageBreakFlags pageBreakPolicy(QTextFrameFormat* theWrappedObject) const;
void setMargin(QTextFrameFormat* theWrappedObject, qreal margin);
qreal border(QTextFrameFormat* theWrappedObject) const;
qreal bottomMargin(QTextFrameFormat* theWrappedObject) const;
void setPageBreakPolicy(QTextFrameFormat* theWrappedObject, QTextFormat::PageBreakFlags flags);
void setRightMargin(QTextFrameFormat* theWrappedObject, qreal margin);
void setBottomMargin(QTextFrameFormat* theWrappedObject, qreal margin);
};
#endif // PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H