##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QTextCharFormat.h
74 lines | 4.6 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTCHARFORMAT_H
#define PYTHONQTWRAPPER_QTEXTCHARFORMAT_H
#include <qtextformat.h>
#include <QObject>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qfont.h>
#include <qpen.h>
#include <qstringlist.h>
#include <qtextformat.h>
#include <qvector.h>
class PythonQtWrapper_QTextCharFormat : public QObject
{ Q_OBJECT
public:
Q_ENUMS(VerticalAlignment UnderlineStyle )
enum VerticalAlignment{
AlignNormal = QTextCharFormat::AlignNormal, AlignSuperScript = QTextCharFormat::AlignSuperScript, AlignSubScript = QTextCharFormat::AlignSubScript, AlignMiddle = QTextCharFormat::AlignMiddle, AlignTop = QTextCharFormat::AlignTop, AlignBottom = QTextCharFormat::AlignBottom};
enum UnderlineStyle{
NoUnderline = QTextCharFormat::NoUnderline, SingleUnderline = QTextCharFormat::SingleUnderline, DashUnderline = QTextCharFormat::DashUnderline, DotLine = QTextCharFormat::DotLine, DashDotLine = QTextCharFormat::DashDotLine, DashDotDotLine = QTextCharFormat::DashDotDotLine, WaveUnderline = QTextCharFormat::WaveUnderline, SpellCheckUnderline = QTextCharFormat::SpellCheckUnderline};
public slots:
QTextCharFormat* new_QTextCharFormat();
void delete_QTextCharFormat(QTextCharFormat* obj) { delete obj; }
QString anchorHref(QTextCharFormat* theWrappedObject) const;
QStringList anchorNames(QTextCharFormat* theWrappedObject) const;
QFont font(QTextCharFormat* theWrappedObject) const;
QFont::Capitalization fontCapitalization(QTextCharFormat* theWrappedObject) const;
QString fontFamily(QTextCharFormat* theWrappedObject) const;
bool fontFixedPitch(QTextCharFormat* theWrappedObject) const;
bool fontItalic(QTextCharFormat* theWrappedObject) const;
qreal fontLetterSpacing(QTextCharFormat* theWrappedObject) const;
bool fontOverline(QTextCharFormat* theWrappedObject) const;
qreal fontPointSize(QTextCharFormat* theWrappedObject) const;
bool fontStrikeOut(QTextCharFormat* theWrappedObject) const;
bool fontUnderline(QTextCharFormat* theWrappedObject) const;
int fontWeight(QTextCharFormat* theWrappedObject) const;
qreal fontWordSpacing(QTextCharFormat* theWrappedObject) const;
bool isAnchor(QTextCharFormat* theWrappedObject) const;
bool isValid(QTextCharFormat* theWrappedObject) const;
void setAnchor(QTextCharFormat* theWrappedObject, bool anchor);
void setAnchorHref(QTextCharFormat* theWrappedObject, const QString& value);
void setAnchorNames(QTextCharFormat* theWrappedObject, const QStringList& names);
void setFont(QTextCharFormat* theWrappedObject, const QFont& font);
void setFontCapitalization(QTextCharFormat* theWrappedObject, QFont::Capitalization capitalization);
void setFontFamily(QTextCharFormat* theWrappedObject, const QString& family);
void setFontFixedPitch(QTextCharFormat* theWrappedObject, bool fixedPitch);
void setFontItalic(QTextCharFormat* theWrappedObject, bool italic);
void setFontLetterSpacing(QTextCharFormat* theWrappedObject, qreal spacing);
void setFontOverline(QTextCharFormat* theWrappedObject, bool overline);
void setFontPointSize(QTextCharFormat* theWrappedObject, qreal size);
void setFontStrikeOut(QTextCharFormat* theWrappedObject, bool strikeOut);
void setFontUnderline(QTextCharFormat* theWrappedObject, bool underline);
void setFontWeight(QTextCharFormat* theWrappedObject, int weight);
void setFontWordSpacing(QTextCharFormat* theWrappedObject, qreal spacing);
void setTableCellColumnSpan(QTextCharFormat* theWrappedObject, int tableCellColumnSpan);
void setTableCellRowSpan(QTextCharFormat* theWrappedObject, int tableCellRowSpan);
void setTextOutline(QTextCharFormat* theWrappedObject, const QPen& pen);
void setToolTip(QTextCharFormat* theWrappedObject, const QString& tip);
void setUnderlineColor(QTextCharFormat* theWrappedObject, const QColor& color);
void setUnderlineStyle(QTextCharFormat* theWrappedObject, QTextCharFormat::UnderlineStyle style);
void setVerticalAlignment(QTextCharFormat* theWrappedObject, QTextCharFormat::VerticalAlignment alignment);
int tableCellColumnSpan(QTextCharFormat* theWrappedObject) const;
int tableCellRowSpan(QTextCharFormat* theWrappedObject) const;
QPen textOutline(QTextCharFormat* theWrappedObject) const;
QString toolTip(QTextCharFormat* theWrappedObject) const;
QColor underlineColor(QTextCharFormat* theWrappedObject) const;
QTextCharFormat::UnderlineStyle underlineStyle(QTextCharFormat* theWrappedObject) const;
QTextCharFormat::VerticalAlignment verticalAlignment(QTextCharFormat* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTEXTCHARFORMAT_H