##// END OF EJS Templates
added builtin support for variants etc., this will replace the direct includes in PythonQt...
added builtin support for variants etc., this will replace the direct includes in PythonQt git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@129 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r93:7b53f64eae84
Show More
PythonQtWrapper_QTextFormat.h
86 lines | 8.3 KiB | text/x-c | CLexer
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #ifndef PYTHONQTWRAPPER_QTEXTFORMAT_H
#define PYTHONQTWRAPPER_QTEXTFORMAT_H
#include <qtextformat.h>
#include <QObject>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQt.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qdatastream.h>
#include <qpen.h>
#include <qtextformat.h>
#include <qvector.h>
class PythonQtWrapper_QTextFormat : public QObject
{ Q_OBJECT
public:
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 Q_ENUMS(Property FormatType ObjectTypes PageBreakFlag )
florianlink
recreated wrappers to match current python qt version...
r73 Q_FLAGS(PageBreakFlags )
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 enum Property{
ObjectIndex = QTextFormat::ObjectIndex, CssFloat = QTextFormat::CssFloat, LayoutDirection = QTextFormat::LayoutDirection, OutlinePen = QTextFormat::OutlinePen, BackgroundBrush = QTextFormat::BackgroundBrush, ForegroundBrush = QTextFormat::ForegroundBrush, BackgroundImageUrl = QTextFormat::BackgroundImageUrl, BlockAlignment = QTextFormat::BlockAlignment, BlockTopMargin = QTextFormat::BlockTopMargin, BlockBottomMargin = QTextFormat::BlockBottomMargin, BlockLeftMargin = QTextFormat::BlockLeftMargin, BlockRightMargin = QTextFormat::BlockRightMargin, TextIndent = QTextFormat::TextIndent, TabPositions = QTextFormat::TabPositions, BlockIndent = QTextFormat::BlockIndent, BlockNonBreakableLines = QTextFormat::BlockNonBreakableLines, BlockTrailingHorizontalRulerWidth = QTextFormat::BlockTrailingHorizontalRulerWidth, FirstFontProperty = QTextFormat::FirstFontProperty, FontCapitalization = QTextFormat::FontCapitalization, FontLetterSpacing = QTextFormat::FontLetterSpacing, FontWordSpacing = QTextFormat::FontWordSpacing, FontFamily = QTextFormat::FontFamily, FontPointSize = QTextFormat::FontPointSize, FontSizeAdjustment = QTextFormat::FontSizeAdjustment, FontSizeIncrement = QTextFormat::FontSizeIncrement, FontWeight = QTextFormat::FontWeight, FontItalic = QTextFormat::FontItalic, FontUnderline = QTextFormat::FontUnderline, FontOverline = QTextFormat::FontOverline, FontStrikeOut = QTextFormat::FontStrikeOut, FontFixedPitch = QTextFormat::FontFixedPitch, FontPixelSize = QTextFormat::FontPixelSize, LastFontProperty = QTextFormat::LastFontProperty, TextUnderlineColor = QTextFormat::TextUnderlineColor, TextVerticalAlignment = QTextFormat::TextVerticalAlignment, TextOutline = QTextFormat::TextOutline, TextUnderlineStyle = QTextFormat::TextUnderlineStyle, TextToolTip = QTextFormat::TextToolTip, IsAnchor = QTextFormat::IsAnchor, AnchorHref = QTextFormat::AnchorHref, AnchorName = QTextFormat::AnchorName, ObjectType = QTextFormat::ObjectType, ListStyle = QTextFormat::ListStyle, ListIndent = QTextFormat::ListIndent, FrameBorder = QTextFormat::FrameBorder, FrameMargin = QTextFormat::FrameMargin, FramePadding = QTextFormat::FramePadding, FrameWidth = QTextFormat::FrameWidth, FrameHeight = QTextFormat::FrameHeight, FrameTopMargin = QTextFormat::FrameTopMargin, FrameBottomMargin = QTextFormat::FrameBottomMargin, FrameLeftMargin = QTextFormat::FrameLeftMargin, FrameRightMargin = QTextFormat::FrameRightMargin, FrameBorderBrush = QTextFormat::FrameBorderBrush, FrameBorderStyle = QTextFormat::FrameBorderStyle, TableColumns = QTextFormat::TableColumns, TableColumnWidthConstraints = QTextFormat::TableColumnWidthConstraints, TableCellSpacing = QTextFormat::TableCellSpacing, TableCellPadding = QTextFormat::TableCellPadding, TableHeaderRowCount = QTextFormat::TableHeaderRowCount, TableCellRowSpan = QTextFormat::TableCellRowSpan, TableCellColumnSpan = QTextFormat::TableCellColumnSpan, TableCellTopPadding = QTextFormat::TableCellTopPadding, TableCellBottomPadding = QTextFormat::TableCellBottomPadding, TableCellLeftPadding = QTextFormat::TableCellLeftPadding, TableCellRightPadding = QTextFormat::TableCellRightPadding, ImageName = QTextFormat::ImageName, ImageWidth = QTextFormat::ImageWidth, ImageHeight = QTextFormat::ImageHeight, FullWidthSelection = QTextFormat::FullWidthSelection, PageBreakPolicy = QTextFormat::PageBreakPolicy, UserProperty = QTextFormat::UserProperty};
enum FormatType{
InvalidFormat = QTextFormat::InvalidFormat, BlockFormat = QTextFormat::BlockFormat, CharFormat = QTextFormat::CharFormat, ListFormat = QTextFormat::ListFormat, TableFormat = QTextFormat::TableFormat, FrameFormat = QTextFormat::FrameFormat, UserFormat = QTextFormat::UserFormat};
enum ObjectTypes{
NoObject = QTextFormat::NoObject, ImageObject = QTextFormat::ImageObject, TableObject = QTextFormat::TableObject, TableCellObject = QTextFormat::TableCellObject, UserObject = QTextFormat::UserObject};
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 enum PageBreakFlag{
PageBreak_Auto = QTextFormat::PageBreak_Auto, PageBreak_AlwaysBefore = QTextFormat::PageBreak_AlwaysBefore, PageBreak_AlwaysAfter = QTextFormat::PageBreak_AlwaysAfter};
florianlink
recreated wrappers to match current python qt version...
r73 Q_DECLARE_FLAGS(PageBreakFlags, PageBreakFlag)
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 public slots:
QTextFormat* new_QTextFormat();
QTextFormat* new_QTextFormat(const QTextFormat& rhs);
QTextFormat* new_QTextFormat(int type);
void delete_QTextFormat(QTextFormat* obj) { delete obj; }
florianlink
recreated wrappers to match current python qt version...
r73 int type(QTextFormat* theWrappedObject) const;
int intProperty(QTextFormat* theWrappedObject, int propertyId) const;
void merge(QTextFormat* theWrappedObject, const QTextFormat& other);
florianlink
upgraded wrappers to current generator version...
r28 void setObjectType(QTextFormat* theWrappedObject, int type);
florianlink
recreated wrappers to match current python qt version...
r73 bool isTableCellFormat(QTextFormat* theWrappedObject) const;
Qt::LayoutDirection layoutDirection(QTextFormat* theWrappedObject) const;
int objectIndex(QTextFormat* theWrappedObject) const;
void clearBackground(QTextFormat* theWrappedObject);
QTextCharFormat toCharFormat(QTextFormat* theWrappedObject) const;
int propertyCount(QTextFormat* theWrappedObject) const;
QTextListFormat toListFormat(QTextFormat* theWrappedObject) const;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 int objectType(QTextFormat* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 QVariant property(QTextFormat* theWrappedObject, int propertyId) const;
florianlink
recreated wrappers to match current python qt version...
r73 bool isValid(QTextFormat* theWrappedObject) const;
void clearProperty(QTextFormat* theWrappedObject, int propertyId);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QMap<int , QVariant > properties(QTextFormat* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 void setLayoutDirection(QTextFormat* theWrappedObject, Qt::LayoutDirection direction);
qreal doubleProperty(QTextFormat* theWrappedObject, int propertyId) const;
florianlink
upgraded wrappers to current generator version...
r28 void readFrom(QTextFormat* theWrappedObject, QDataStream& arg__1);
void writeTo(QTextFormat* theWrappedObject, QDataStream& arg__1);
florianlink
recreated wrappers to match current python qt version...
r73 void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVariant& value);
bool isListFormat(QTextFormat* theWrappedObject) const;
bool operator_equal(QTextFormat* theWrappedObject, const QTextFormat& rhs) const;
florianlink
upgraded wrappers to current generator version...
r28 QColor colorProperty(QTextFormat* theWrappedObject, int propertyId) const;
bool isFrameFormat(QTextFormat* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 bool isImageFormat(QTextFormat* theWrappedObject) const;
QString stringProperty(QTextFormat* theWrappedObject, int propertyId) const;
QBrush brushProperty(QTextFormat* theWrappedObject, int propertyId) const;
QPen penProperty(QTextFormat* theWrappedObject, int propertyId) const;
bool boolProperty(QTextFormat* theWrappedObject, int propertyId) const;
QTextFrameFormat toFrameFormat(QTextFormat* theWrappedObject) const;
QTextImageFormat toImageFormat(QTextFormat* theWrappedObject) const;
bool isBlockFormat(QTextFormat* theWrappedObject) const;
QBrush foreground(QTextFormat* theWrappedObject) const;
void setBackground(QTextFormat* theWrappedObject, const QBrush& brush);
bool hasProperty(QTextFormat* theWrappedObject, int propertyId) const;
void setObjectIndex(QTextFormat* theWrappedObject, int object);
QTextLength lengthProperty(QTextFormat* theWrappedObject, int propertyId) const;
QBrush background(QTextFormat* theWrappedObject) const;
void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVector<QTextLength >& lengths);
void clearForeground(QTextFormat* theWrappedObject);
QVector<QTextLength > lengthVectorProperty(QTextFormat* theWrappedObject, int propertyId) const;
QTextTableCellFormat toTableCellFormat(QTextFormat* theWrappedObject) const;
florianlink
upgraded wrappers to current generator version...
r28 QTextBlockFormat toBlockFormat(QTextFormat* theWrappedObject) const;
florianlink
recreated wrappers to match current python qt version...
r73 void setForeground(QTextFormat* theWrappedObject, const QBrush& brush);
bool isTableFormat(QTextFormat* theWrappedObject) const;
QTextTableFormat toTableFormat(QTextFormat* theWrappedObject) const;
bool isCharFormat(QTextFormat* theWrappedObject) const;
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 };
#endif // PYTHONQTWRAPPER_QTEXTFORMAT_H