#include <KoFontDiaPreview.h>
Fonctions membres publiques | |
| KoFontDiaPreview (QWidget *parent=0, const char *name=0, Qt::WFlags fl=0) | |
| ~KoFontDiaPreview () | |
| void | setText (const QString &text) |
| void | setFont (const QFont &font) |
| void | setFontColor (const QColor &textColor) |
| void | setBackgroundColor (const QColor &backgroundColor) |
| void | setShadow (double sdx, double sdy, QColor shadowColor) |
| void | setUnderlining (int underlining, int underliningStyle, const QColor underliningColor, bool wordByWord) |
| void | setWordByWord (bool wordByWord) |
| void | setStrikethrough (int strikethrough, int strikethroughStylestrikethrough, bool wordByWord) |
| void | setCapitalisation (int capitalisation) |
| void | setSubSuperscript (int subSuper, int offset, double relativeSize) |
Fonctions membres privées | |
| void | drawContents (QPainter *) |
| QString | formatCapitalisation (const QString &string) |
| void | drawUnderline (int x, int y, int width, int thickness, QColor &color, QPainter *p) |
| void | drawUnderlineWave (int x, int y, int width, int thickness, QColor &color, QPainter *p) |
| void | drawStrikethrough (int x, int y, int width, int thickness, QPainter *p) |
Attributs privés | |
| QString | m_text |
| QString | displayText |
| QFont | m_font |
| QFont | displayFont |
| int | m_fontSize |
| QColor | m_textColor |
| QColor | m_backgroundColor |
| double | m_shadowDistanceX |
| double | m_shadowDistanceY |
| QColor | m_shadowColor |
| int | m_underlining |
| int | m_underliningStyle |
| QColor | m_underliningColor |
| bool | m_wordByWord |
| int | m_strikethrough |
| int | m_strikethroughStyle |
| int | m_capitalisation |
| int | m_subSuper |
| int | m_offset |
| double | m_relativeSize |
Définition à la ligne 32 du fichier KoFontDiaPreview.h.
| KoFontDiaPreview::KoFontDiaPreview | ( | QWidget * | parent = 0, |
|
| const char * | name = 0, |
|||
| Qt::WFlags | fl = 0 | |||
| ) |
Constructor
Définition à la ligne 40 du fichier KoFontDiaPreview.cpp.
Références setBackgroundColor().
Voici le graphe d'appel pour cette fonction :
| KoFontDiaPreview::~KoFontDiaPreview | ( | ) |
Définition à la ligne 68 du fichier KoFontDiaPreview.cpp.
| void KoFontDiaPreview::setText | ( | const QString & | text | ) |
| void KoFontDiaPreview::setFont | ( | const QFont & | font | ) |
Définition à la ligne 78 du fichier KoFontDiaPreview.cpp.
Références m_font, et m_fontSize.
Référencé par KoFontDia::slotFontBoldChanged(), KoFontDia::slotFontFamilyChanged(), KoFontDia::slotFontItalicChanged(), et KoFontDia::slotFontSizeChanged().
| void KoFontDiaPreview::setFontColor | ( | const QColor & | textColor | ) |
Définition à la ligne 85 du fichier KoFontDiaPreview.cpp.
Références m_textColor.
Référencé par KoFontDia::slotFontColorChanged().
| void KoFontDiaPreview::setBackgroundColor | ( | const QColor & | backgroundColor | ) |
Définition à la ligne 91 du fichier KoFontDiaPreview.cpp.
Références m_backgroundColor.
Référencé par KoFontDiaPreview(), et KoFontDia::slotBackgroundColorChanged().
Voici le graphe d'appel pour cette fonction :
| void KoFontDiaPreview::setShadow | ( | double | sdx, | |
| double | sdy, | |||
| QColor | shadowColor | |||
| ) |
Définition à la ligne 97 du fichier KoFontDiaPreview.cpp.
Références m_shadowColor, m_shadowDistanceX, et m_shadowDistanceY.
Référencé par KoFontDia::slotShadowColorChanged(), KoFontDia::slotShadowDirectionChanged(), et KoFontDia::slotShadowDistanceChanged().
| void KoFontDiaPreview::setUnderlining | ( | int | underlining, | |
| int | underliningStyle, | |||
| const QColor | underliningColor, | |||
| bool | wordByWord | |||
| ) |
Définition à la ligne 105 du fichier KoFontDiaPreview.cpp.
Références m_underlining, m_underliningColor, m_underliningStyle, et m_wordByWord.
Référencé par KoFontDia::slotUnderlineChanged(), KoFontDia::slotUnderlineColorChanged(), et KoFontDia::slotUnderlineStyleChanged().
| void KoFontDiaPreview::setWordByWord | ( | bool | wordByWord | ) |
Définition à la ligne 114 du fichier KoFontDiaPreview.cpp.
Références m_wordByWord.
Référencé par KoFontDia::slotWordByWordChanged().
| void KoFontDiaPreview::setStrikethrough | ( | int | strikethrough, | |
| int | strikethroughStylestrikethrough, | |||
| bool | wordByWord | |||
| ) |
Définition à la ligne 120 du fichier KoFontDiaPreview.cpp.
Références m_strikethrough, m_strikethroughStyle, et m_wordByWord.
Référencé par KoFontDia::slotStrikethroughChanged(), et KoFontDia::slotStrikethroughStyleChanged().
| void KoFontDiaPreview::setCapitalisation | ( | int | capitalisation | ) |
Définition à la ligne 128 du fichier KoFontDiaPreview.cpp.
Références m_capitalisation.
Référencé par KoFontDia::slotCapitalisationChanged().
| void KoFontDiaPreview::setSubSuperscript | ( | int | subSuper, | |
| int | offset, | |||
| double | relativeSize | |||
| ) |
Définition à la ligne 134 du fichier KoFontDiaPreview.cpp.
Références m_offset, m_relativeSize, et m_subSuper.
Référencé par KoFontDia::slotOffsetChanged(), KoFontDia::slotRelativeSizeChanged(), et KoFontDia::slotSubSuperChanged().
| void KoFontDiaPreview::drawContents | ( | QPainter * | ) | [private] |
Définition à la ligne 159 du fichier KoFontDiaPreview.cpp.
Références KoTextFormat::ATT_LOWER, KoTextFormat::ATT_NONE, KoTextFormat::ATT_SMALL_CAPS, KoTextFormat::ATT_UPPER, displayFont, displayText, drawStrikethrough(), drawUnderline(), drawUnderlineWave(), formatCapitalisation(), KoPageFormat::height(), Py::int, m_backgroundColor, m_capitalisation, m_font, m_offset, m_relativeSize, m_shadowColor, m_shadowDistanceX, m_shadowDistanceY, m_strikethrough, m_subSuper, m_text, m_textColor, m_underlining, m_underliningColor, m_wordByWord, KoTextFormat::S_DOUBLE, KoTextFormat::S_NONE, KoTextFormat::S_SIMPLE, KoTextFormat::S_SIMPLE_BOLD, KoTextFormat::U_DOUBLE, KoTextFormat::U_NONE, KoTextFormat::U_SIMPLE, KoTextFormat::U_SIMPLE_BOLD, KoTextFormat::U_WAVE, et KoPageFormat::width().
Voici le graphe d'appel pour cette fonction :
| QString KoFontDiaPreview::formatCapitalisation | ( | const QString & | string | ) | [private] |
Définition à la ligne 142 du fichier KoFontDiaPreview.cpp.
Références KoTextFormat::ATT_LOWER, KoTextFormat::ATT_NONE, KoTextFormat::ATT_SMALL_CAPS, KoTextFormat::ATT_UPPER, et m_capitalisation.
Référencé par drawContents().
Voici le graphe d'appel pour cette fonction :
| void KoFontDiaPreview::drawUnderline | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | thickness, | |||
| QColor & | color, | |||
| QPainter * | p | |||
| ) | [private] |
Définition à la ligne 366 du fichier KoFontDiaPreview.cpp.
Références m_underliningStyle, KoTextFormat::U_DASH, KoTextFormat::U_DASH_DOT, KoTextFormat::U_DASH_DOT_DOT, KoTextFormat::U_DOT, et KoTextFormat::U_SOLID.
Référencé par drawContents().
Voici le graphe d'appel pour cette fonction :
| void KoFontDiaPreview::drawUnderlineWave | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | thickness, | |||
| QColor & | color, | |||
| QPainter * | p | |||
| ) | [private] |
Définition à la ligne 392 du fichier KoFontDiaPreview.cpp.
Références gensymbolfontmap::pos.
Référencé par drawContents().
Voici le graphe d'appel pour cette fonction :
| void KoFontDiaPreview::drawStrikethrough | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | thickness, | |||
| QPainter * | p | |||
| ) | [private] |
Définition à la ligne 419 du fichier KoFontDiaPreview.cpp.
Références m_strikethroughStyle, KoTextFormat::S_DASH, KoTextFormat::S_DASH_DOT, KoTextFormat::S_DASH_DOT_DOT, KoTextFormat::S_DOT, et KoTextFormat::S_SOLID.
Référencé par drawContents().
Voici le graphe d'appel pour cette fonction :
QString KoFontDiaPreview::m_text [private] |
QString KoFontDiaPreview::displayText [private] |
QFont KoFontDiaPreview::m_font [private] |
QFont KoFontDiaPreview::displayFont [private] |
int KoFontDiaPreview::m_fontSize [private] |
QColor KoFontDiaPreview::m_textColor [private] |
Définition à la ligne 62 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setFontColor().
QColor KoFontDiaPreview::m_backgroundColor [private] |
Définition à la ligne 63 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setBackgroundColor().
double KoFontDiaPreview::m_shadowDistanceX [private] |
Définition à la ligne 64 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setShadow().
double KoFontDiaPreview::m_shadowDistanceY [private] |
Définition à la ligne 65 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setShadow().
QColor KoFontDiaPreview::m_shadowColor [private] |
Définition à la ligne 66 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setShadow().
int KoFontDiaPreview::m_underlining [private] |
Définition à la ligne 67 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setUnderlining().
int KoFontDiaPreview::m_underliningStyle [private] |
Définition à la ligne 68 du fichier KoFontDiaPreview.h.
Référencé par drawUnderline(), et setUnderlining().
QColor KoFontDiaPreview::m_underliningColor [private] |
Définition à la ligne 69 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setUnderlining().
bool KoFontDiaPreview::m_wordByWord [private] |
Définition à la ligne 70 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), setStrikethrough(), setUnderlining(), et setWordByWord().
int KoFontDiaPreview::m_strikethrough [private] |
Définition à la ligne 71 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setStrikethrough().
int KoFontDiaPreview::m_strikethroughStyle [private] |
Définition à la ligne 72 du fichier KoFontDiaPreview.h.
Référencé par drawStrikethrough(), et setStrikethrough().
int KoFontDiaPreview::m_capitalisation [private] |
Définition à la ligne 73 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), formatCapitalisation(), et setCapitalisation().
int KoFontDiaPreview::m_subSuper [private] |
Définition à la ligne 74 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setSubSuperscript().
int KoFontDiaPreview::m_offset [private] |
Définition à la ligne 75 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setSubSuperscript().
double KoFontDiaPreview::m_relativeSize [private] |
Définition à la ligne 76 du fichier KoFontDiaPreview.h.
Référencé par drawContents(), et setSubSuperscript().
1.5.1-p1