##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QTextFrameFormat.h
56 lines | 3.4 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H
#define PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H
#include <qtextformat.h>
#include <QObject>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qpen.h>
#include <qtextformat.h>
#include <qvector.h>
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();
void delete_QTextFrameFormat(QTextFrameFormat* obj) { delete obj; }
qreal border(QTextFrameFormat* theWrappedObject) const;
QBrush borderBrush(QTextFrameFormat* theWrappedObject) const;
QTextFrameFormat::BorderStyle borderStyle(QTextFrameFormat* theWrappedObject) const;
qreal bottomMargin(QTextFrameFormat* theWrappedObject) const;
QTextLength height(QTextFrameFormat* theWrappedObject) const;
bool isValid(QTextFrameFormat* theWrappedObject) const;
qreal leftMargin(QTextFrameFormat* theWrappedObject) const;
qreal margin(QTextFrameFormat* theWrappedObject) const;
qreal padding(QTextFrameFormat* theWrappedObject) const;
QTextFormat::PageBreakFlags pageBreakPolicy(QTextFrameFormat* theWrappedObject) const;
QTextFrameFormat::Position position(QTextFrameFormat* theWrappedObject) const;
qreal rightMargin(QTextFrameFormat* theWrappedObject) const;
void setBorder(QTextFrameFormat* theWrappedObject, qreal border);
void setBorderBrush(QTextFrameFormat* theWrappedObject, const QBrush& brush);
void setBorderStyle(QTextFrameFormat* theWrappedObject, QTextFrameFormat::BorderStyle style);
void setBottomMargin(QTextFrameFormat* theWrappedObject, qreal margin);
void setHeight(QTextFrameFormat* theWrappedObject, const QTextLength& height);
void setHeight(QTextFrameFormat* theWrappedObject, qreal height);
void setLeftMargin(QTextFrameFormat* theWrappedObject, qreal margin);
void setMargin(QTextFrameFormat* theWrappedObject, qreal margin);
void setPadding(QTextFrameFormat* theWrappedObject, qreal padding);
void setPageBreakPolicy(QTextFrameFormat* theWrappedObject, QTextFormat::PageBreakFlags flags);
void setPosition(QTextFrameFormat* theWrappedObject, QTextFrameFormat::Position f);
void setRightMargin(QTextFrameFormat* theWrappedObject, qreal margin);
void setTopMargin(QTextFrameFormat* theWrappedObject, qreal margin);
void setWidth(QTextFrameFormat* theWrappedObject, const QTextLength& length);
void setWidth(QTextFrameFormat* theWrappedObject, qreal width);
qreal topMargin(QTextFrameFormat* theWrappedObject) const;
QTextLength width(QTextFrameFormat* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTEXTFRAMEFORMAT_H