##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

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