PythonQtWrapper_QTextCharFormat.h
90 lines
| 5.1 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTCHARFORMAT_H | ||
#define PYTHONQTWRAPPER_QTEXTCHARFORMAT_H | ||||
#include <qtextformat.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qcolor.h> | ||||
#include <qfont.h> | ||||
#include <qpen.h> | ||||
#include <qstringlist.h> | ||||
#include <qtextformat.h> | ||||
#include <qvector.h> | ||||
florianlink
|
r24 | class PythonQtShell_QTextCharFormat : public QTextCharFormat | ||
{ | ||||
public: | ||||
PythonQtShell_QTextCharFormat():QTextCharFormat(),_wrapper(NULL) {}; | ||||
PythonQtShell_QTextCharFormat(const QTextFormat& fmt):QTextCharFormat(fmt),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | 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(); | ||||
florianlink
|
r24 | QTextCharFormat* new_QTextCharFormat(const QTextCharFormat& other) { | ||
PythonQtShell_QTextCharFormat* a = new PythonQtShell_QTextCharFormat(); | ||||
*((QTextCharFormat*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTextCharFormat(QTextCharFormat* obj) { delete obj; } | ||
florianlink
|
r24 | int tableCellRowSpan(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setTableCellRowSpan(QTextCharFormat* theWrappedObject, int tableCellRowSpan); | ||
florianlink
|
r24 | void setUnderlineStyle(QTextCharFormat* theWrappedObject, QTextCharFormat::UnderlineStyle style); | ||
florianlink
|
r73 | bool fontUnderline(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r13 | QFont font(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setAnchorHref(QTextCharFormat* theWrappedObject, const QString& value); | ||
florianlink
|
r24 | void setFontOverline(QTextCharFormat* theWrappedObject, bool overline); | ||
florianlink
|
r73 | QString fontFamily(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r28 | void setFontCapitalization(QTextCharFormat* theWrappedObject, QFont::Capitalization capitalization); | ||
florianlink
|
r24 | QStringList anchorNames(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setFontItalic(QTextCharFormat* theWrappedObject, bool italic); | ||
void setUnderlineColor(QTextCharFormat* theWrappedObject, const QColor& color); | ||||
florianlink
|
r13 | bool isValid(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setTextOutline(QTextCharFormat* theWrappedObject, const QPen& pen); | ||
florianlink
|
r13 | void setAnchorNames(QTextCharFormat* theWrappedObject, const QStringList& names); | ||
florianlink
|
r28 | bool isAnchor(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r73 | QPen textOutline(QTextCharFormat* theWrappedObject) const; | ||
void setAnchor(QTextCharFormat* theWrappedObject, bool anchor); | ||||
void setFontPointSize(QTextCharFormat* theWrappedObject, qreal size); | ||||
int tableCellColumnSpan(QTextCharFormat* theWrappedObject) const; | ||||
QFont::Capitalization fontCapitalization(QTextCharFormat* theWrappedObject) const; | ||||
bool fontStrikeOut(QTextCharFormat* theWrappedObject) const; | ||||
void setToolTip(QTextCharFormat* theWrappedObject, const QString& tip); | ||||
void setFontWordSpacing(QTextCharFormat* theWrappedObject, qreal spacing); | ||||
qreal fontLetterSpacing(QTextCharFormat* theWrappedObject) const; | ||||
int fontWeight(QTextCharFormat* theWrappedObject) const; | ||||
void setFont(QTextCharFormat* theWrappedObject, const QFont& font); | ||||
florianlink
|
r24 | void setFontFixedPitch(QTextCharFormat* theWrappedObject, bool fixedPitch); | ||
florianlink
|
r73 | void setFontFamily(QTextCharFormat* theWrappedObject, const QString& family); | ||
florianlink
|
r24 | void setFontUnderline(QTextCharFormat* theWrappedObject, bool underline); | ||
florianlink
|
r73 | QString anchorHref(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r24 | QTextCharFormat::VerticalAlignment verticalAlignment(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r28 | QColor underlineColor(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r24 | void setFontWeight(QTextCharFormat* theWrappedObject, int weight); | ||
florianlink
|
r73 | bool fontItalic(QTextCharFormat* theWrappedObject) const; | ||
void setTableCellColumnSpan(QTextCharFormat* theWrappedObject, int tableCellColumnSpan); | ||||
qreal fontWordSpacing(QTextCharFormat* theWrappedObject) const; | ||||
bool fontOverline(QTextCharFormat* theWrappedObject) const; | ||||
florianlink
|
r13 | QTextCharFormat::UnderlineStyle underlineStyle(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r73 | void setFontLetterSpacing(QTextCharFormat* theWrappedObject, qreal spacing); | ||
void setFontStrikeOut(QTextCharFormat* theWrappedObject, bool strikeOut); | ||||
florianlink
|
r24 | qreal fontPointSize(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r73 | bool fontFixedPitch(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r28 | void setVerticalAlignment(QTextCharFormat* theWrappedObject, QTextCharFormat::VerticalAlignment alignment); | ||
florianlink
|
r73 | QString toolTip(QTextCharFormat* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QTEXTCHARFORMAT_H | ||||