gtFont Class Reference
#include <gtfont.h>
Public Member Functions | |
| void | noEffects () |
| bool | isToggled (FontEffect fe) |
| bool | toggleEffect (FontEffect fe) |
| int | getEffectsValue () |
| void | setName (QString newName) |
| void | setFamily (QString newFamily) |
| QString | getFamily () |
| void | setWeight (FontWeight newWeight) |
| void | setWeight (QString newWeight) |
| QString | getWeight () |
| void | setSlant (FontSlant newSlant) |
| void | setSlant (QString newSlant) |
| QString | getSlant () |
| void | setWidth (FontWidth newWidth) |
| void | setWidth (QString newWidth) |
| QString | getWidth () |
| void | setSize (int newSize) |
| void | setSize (double newSize) |
| void | setColor (QString newColor) |
| void | setShade (int newShade) |
| void | setStrokeColor (QString newColor) |
| void | setStrokeShade (int newShade) |
| QString | getName () |
| QString | getName (uint i) |
| int | getSize () |
| QString | getColor () |
| int | getShade () |
| QString | getStrokeColor () |
| int | getStrokeShade () |
| int | getHscale () |
| void | setHscale (int newHscale) |
| int | getKerning () |
| void | setKerning (int newKerning) |
| gtFont () | |
| gtFont (const gtFont &f) | |
| ~gtFont () | |
Static Public Attributes | |
| static const QString | fontWeights [] |
| static const QString | fontSlants [] |
| static const QString | fontWidths [] |
| static const int | NAMECOUNT = 14 |
Private Member Functions | |
| void | initArrays () |
| void | parseName () |
| void | parseWeight () |
| void | parseSlant () |
| void | parseWidth () |
| void | parseFamily () |
| int | find (const QString &where, const QString &what) |
Private Attributes | |
| QString | name |
| QString | family |
| QString | weight |
| QString | slant |
| QString | width |
| QString | append |
| int | size |
| bool | fontEffects [FontEffectMAX] |
| QString | color |
| int | shade |
| QString | strokeColor |
| int | strokeShade |
| int | hscale |
| int | kerning |
| bool | useFullName |
| int | weightIndex |
| int | slantIndex |
| int | widthIndex |
| int | smallestIndex |
| int | biggestIndex |
| int | index |
| int | tmpWeightIndex |
| int | tmpSlantIndex |
| int | tmpWidthIndex |
Detailed Description
Definition at line 91 of file gtfont.h.
Constructor & Destructor Documentation
| gtFont::gtFont | ( | ) |
Definition at line 70 of file gtfont.cpp.
References append, biggestIndex, color, family, hscale, index, kerning, name, noEffects(), shade, size, slant, slantIndex, smallestIndex, strokeColor, strokeShade, tmpSlantIndex, tmpWeightIndex, tmpWidthIndex, useFullName, weight, weightIndex, width, and widthIndex.
| gtFont::gtFont | ( | const gtFont & | f | ) |
Definition at line 98 of file gtfont.cpp.
References append, biggestIndex, color, family, fontEffects, hscale, index, kerning, name, NORMAL, OUTLINE, shade, size, slant, slantIndex, SMALL_CAPS, smallestIndex, STRIKETHROUGH, strokeColor, strokeShade, SUBSCRIPT, SUPERSCRIPT, tmpSlantIndex, tmpWeightIndex, tmpWidthIndex, UNDERLINE, useFullName, weight, weightIndex, width, and widthIndex.
| gtFont::~gtFont | ( | ) |
Definition at line 726 of file gtfont.cpp.
Member Function Documentation
| void gtFont::initArrays | ( | ) | [private] |
| void gtFont::parseName | ( | ) | [private] |
Definition at line 509 of file gtfont.cpp.
References biggestIndex, index, parseFamily(), parseSlant(), parseWeight(), parseWidth(), smallestIndex, tmpSlantIndex, tmpWeightIndex, and tmpWidthIndex.
Referenced by setName().
| void gtFont::parseWeight | ( | ) | [private] |
Definition at line 525 of file gtfont.cpp.
References biggestIndex, FontWeightMAX, fontWeights, index, name, NO_WEIGHT, smallestIndex, tmpWeightIndex, and weight.
Referenced by parseName().
| void gtFont::parseSlant | ( | ) | [private] |
Definition at line 580 of file gtfont.cpp.
References biggestIndex, FontSlantMAX, fontSlants, index, name, NO_SLANT, slant, smallestIndex, and tmpSlantIndex.
Referenced by parseName().
| void gtFont::parseWidth | ( | ) | [private] |
Definition at line 602 of file gtfont.cpp.
References biggestIndex, FontWidthMAX, fontWidths, index, name, NO_WIDTH, smallestIndex, tmpWidthIndex, and width.
Referenced by parseName().
| void gtFont::parseFamily | ( | ) | [private] |
Definition at line 657 of file gtfont.cpp.
References append, biggestIndex, family, name, slantIndex, smallestIndex, tmpSlantIndex, tmpWeightIndex, tmpWidthIndex, weightIndex, and widthIndex.
Referenced by parseName().
| int gtFont::find | ( | const QString & | where, | |
| const QString & | what | |||
| ) | [private] |
| void gtFont::noEffects | ( | ) |
Definition at line 478 of file gtfont.cpp.
References fontEffects, NORMAL, OUTLINE, SMALL_CAPS, STRIKETHROUGH, SUBSCRIPT, SUPERSCRIPT, and UNDERLINE.
Referenced by gtFont(), and toggleEffect().
| bool gtFont::isToggled | ( | FontEffect | fe | ) |
| bool gtFont::toggleEffect | ( | FontEffect | fe | ) |
Definition at line 137 of file gtfont.cpp.
References fontEffects, noEffects(), NORMAL, SUBSCRIPT, and SUPERSCRIPT.
Referenced by StyleReader::styleProperties(), and StyleReader::updateStyle().
| int gtFont::getEffectsValue | ( | ) |
Definition at line 169 of file gtfont.cpp.
References isToggled(), NORMAL, OUTLINE, SMALL_CAPS, STRIKETHROUGH, SUBSCRIPT, SUPERSCRIPT, and UNDERLINE.
Referenced by gtAction::createParagraphStyle(), gtAction::updateParagraphStyle(), and gtAction::write().
| void gtFont::setName | ( | QString | newName | ) |
Definition at line 189 of file gtfont.cpp.
References name, NO_SLANT, NO_WEIGHT, NO_WIDTH, parseName(), setSlant(), setWeight(), setWidth(), and useFullName.
Referenced by gtAction::getFrameFont(), StyleReader::styleProperties(), StyleReader::updateStyle(), and gtAction::write().
| void gtFont::setFamily | ( | QString | newFamily | ) |
Definition at line 199 of file gtfont.cpp.
References family, and useFullName.
Referenced by gtAction::validateFont().
| QString gtFont::getFamily | ( | ) |
Definition at line 205 of file gtfont.cpp.
References family.
Referenced by gtAction::validateFont().
| void gtFont::setWeight | ( | FontWeight | newWeight | ) |
Definition at line 210 of file gtfont.cpp.
References fontWeights, NO_SLANT, NO_WIDTH, REGULAR, ROMAN, setSlant(), setWidth(), slantIndex, useFullName, weight, weightIndex, and widthIndex.
Referenced by setName(), setSlant(), CsvIm::setupPStyles(), setWidth(), StyleReader::styleProperties(), StyleReader::updateStyle(), and gtAction::validateFont().
| void gtFont::setWeight | ( | QString | newWeight | ) |
Definition at line 227 of file gtfont.cpp.
References fontWeights, NO_SLANT, NO_WIDTH, REGULAR, ROMAN, setSlant(), setWidth(), slantIndex, useFullName, weight, weightIndex, and widthIndex.
| QString gtFont::getWeight | ( | ) |
Definition at line 245 of file gtfont.cpp.
References weight.
Referenced by gtAction::validateFont().
| void gtFont::setSlant | ( | FontSlant | newSlant | ) |
Definition at line 250 of file gtfont.cpp.
References fontSlants, fontWeights, NO_SLANT, NO_WEIGHT, REGULAR, ROMAN, setWeight(), slant, slantIndex, useFullName, weight, weightIndex, and widthIndex.
Referenced by setName(), setWeight(), StyleReader::styleProperties(), StyleReader::updateStyle(), and gtAction::validateFont().
| void gtFont::setSlant | ( | QString | newSlant | ) |
Definition at line 269 of file gtfont.cpp.
References fontWeights, NO_WEIGHT, REGULAR, ROMAN, setWeight(), slant, slantIndex, useFullName, weight, weightIndex, and widthIndex.
| QString gtFont::getSlant | ( | ) |
Definition at line 288 of file gtfont.cpp.
References slant.
Referenced by gtAction::validateFont().
| void gtFont::setWidth | ( | FontWidth | newWidth | ) |
Definition at line 293 of file gtfont.cpp.
References fontWeights, fontWidths, NO_WEIGHT, NO_WIDTH, REGULAR, ROMAN, setWeight(), slantIndex, useFullName, weight, weightIndex, width, and widthIndex.
Referenced by setName(), and setWeight().
| void gtFont::setWidth | ( | QString | newWidth | ) |
Definition at line 312 of file gtfont.cpp.
References fontWeights, NO_WEIGHT, REGULAR, ROMAN, setWeight(), slantIndex, useFullName, weight, weightIndex, width, and widthIndex.
| QString gtFont::getWidth | ( | ) |
| void gtFont::setSize | ( | int | newSize | ) |
Definition at line 336 of file gtfont.cpp.
References size.
Referenced by gtAction::getFrameFont(), CsvIm::setupPStyles(), StyleReader::styleProperties(), and StyleReader::updateStyle().
| void gtFont::setSize | ( | double | newSize | ) |
| void gtFont::setColor | ( | QString | newColor | ) |
Definition at line 346 of file gtfont.cpp.
References color.
Referenced by gtAction::getFrameFont(), StyleReader::styleProperties(), and StyleReader::updateStyle().
| void gtFont::setShade | ( | int | newShade | ) |
Definition at line 351 of file gtfont.cpp.
References shade.
Referenced by gtAction::getFrameFont().
| void gtFont::setStrokeColor | ( | QString | newColor | ) |
Definition at line 356 of file gtfont.cpp.
References strokeColor.
Referenced by gtAction::getFrameFont(), StyleReader::styleProperties(), and StyleReader::updateStyle().
| void gtFont::setStrokeShade | ( | int | newShade | ) |
Definition at line 361 of file gtfont.cpp.
References strokeShade.
Referenced by gtAction::getFrameFont().
| QString gtFont::getName | ( | ) |
Definition at line 366 of file gtfont.cpp.
References append, family, name, slant, slantIndex, useFullName, weight, weightIndex, width, and widthIndex.
Referenced by gtAction::findFontName(), and gtAction::validateFont().
| QString gtFont::getName | ( | uint | i | ) |
Definition at line 399 of file gtfont.cpp.
References append, family, fontWeights, REGULAR, ROMAN, slant, weight, and width.
| int gtFont::getSize | ( | ) |
Definition at line 453 of file gtfont.cpp.
References size.
Referenced by gtAction::createParagraphStyle(), CsvIm::setupPStyles(), StyleReader::styleProperties(), gtAction::updateParagraphStyle(), StyleReader::updateStyle(), and gtAction::write().
| QString gtFont::getColor | ( | ) |
Definition at line 458 of file gtfont.cpp.
References color.
Referenced by gtAction::createParagraphStyle(), StyleReader::setStyle(), gtAction::updateParagraphStyle(), and gtAction::write().
| int gtFont::getShade | ( | ) |
Definition at line 463 of file gtfont.cpp.
References shade.
Referenced by gtAction::createParagraphStyle(), gtAction::updateParagraphStyle(), and gtAction::write().
| QString gtFont::getStrokeColor | ( | ) |
Definition at line 468 of file gtfont.cpp.
References strokeColor.
Referenced by gtAction::createParagraphStyle(), StyleReader::setStyle(), gtAction::updateParagraphStyle(), and gtAction::write().
| int gtFont::getStrokeShade | ( | ) |
Definition at line 473 of file gtfont.cpp.
References strokeShade.
Referenced by gtAction::createParagraphStyle(), gtAction::updateParagraphStyle(), and gtAction::write().
| int gtFont::getHscale | ( | ) |
| void gtFont::setHscale | ( | int | newHscale | ) |
Definition at line 494 of file gtfont.cpp.
References hscale.
Referenced by gtAction::getFrameFont(), StyleReader::styleProperties(), and StyleReader::updateStyle().
| int gtFont::getKerning | ( | ) |
| void gtFont::setKerning | ( | int | newKerning | ) |
Definition at line 504 of file gtfont.cpp.
References kerning.
Referenced by gtAction::getFrameFont(), StyleReader::styleProperties(), and StyleReader::updateStyle().
Member Data Documentation
QString gtFont::name [private] |
Definition at line 94 of file gtfont.h.
Referenced by getName(), gtFont(), parseFamily(), parseSlant(), parseWeight(), parseWidth(), and setName().
QString gtFont::family [private] |
Definition at line 95 of file gtfont.h.
Referenced by getFamily(), getName(), gtFont(), parseFamily(), and setFamily().
QString gtFont::weight [private] |
Definition at line 96 of file gtfont.h.
Referenced by getName(), getWeight(), gtFont(), parseWeight(), setSlant(), setWeight(), and setWidth().
QString gtFont::slant [private] |
Definition at line 97 of file gtfont.h.
Referenced by getName(), getSlant(), gtFont(), parseSlant(), and setSlant().
QString gtFont::width [private] |
Definition at line 98 of file gtfont.h.
Referenced by getName(), getWidth(), gtFont(), parseWidth(), and setWidth().
QString gtFont::append [private] |
int gtFont::size [private] |
bool gtFont::fontEffects[FontEffectMAX] [private] |
Definition at line 101 of file gtfont.h.
Referenced by gtFont(), isToggled(), noEffects(), and toggleEffect().
QString gtFont::color [private] |
int gtFont::shade [private] |
QString gtFont::strokeColor [private] |
Definition at line 104 of file gtfont.h.
Referenced by getStrokeColor(), gtFont(), and setStrokeColor().
int gtFont::strokeShade [private] |
Definition at line 105 of file gtfont.h.
Referenced by getStrokeShade(), gtFont(), and setStrokeShade().
int gtFont::hscale [private] |
int gtFont::kerning [private] |
bool gtFont::useFullName [private] |
Definition at line 109 of file gtfont.h.
Referenced by getName(), gtFont(), setFamily(), setName(), setSlant(), setWeight(), and setWidth().
int gtFont::weightIndex [private] |
Definition at line 110 of file gtfont.h.
Referenced by getName(), gtFont(), parseFamily(), setSlant(), setWeight(), and setWidth().
int gtFont::slantIndex [private] |
Definition at line 111 of file gtfont.h.
Referenced by getName(), gtFont(), parseFamily(), setSlant(), setWeight(), and setWidth().
int gtFont::widthIndex [private] |
Definition at line 112 of file gtfont.h.
Referenced by getName(), gtFont(), parseFamily(), setSlant(), setWeight(), and setWidth().
int gtFont::smallestIndex [private] |
Definition at line 113 of file gtfont.h.
Referenced by gtFont(), parseFamily(), parseName(), parseSlant(), parseWeight(), and parseWidth().
int gtFont::biggestIndex [private] |
Definition at line 114 of file gtfont.h.
Referenced by gtFont(), parseFamily(), parseName(), parseSlant(), parseWeight(), and parseWidth().
int gtFont::index [private] |
Definition at line 115 of file gtfont.h.
Referenced by find(), gtFont(), parseName(), parseSlant(), parseWeight(), and parseWidth().
int gtFont::tmpWeightIndex [private] |
Definition at line 116 of file gtfont.h.
Referenced by gtFont(), parseFamily(), parseName(), and parseWeight().
int gtFont::tmpSlantIndex [private] |
Definition at line 117 of file gtfont.h.
Referenced by gtFont(), parseFamily(), parseName(), and parseSlant().
int gtFont::tmpWidthIndex [private] |
Definition at line 118 of file gtfont.h.
Referenced by gtFont(), parseFamily(), parseName(), and parseWidth().
const QString gtFont::fontWeights [static] |
Initial value:
{
"",
"Demi Bold",
"Extra Black",
"Extra Bold",
"Extra Heavy",
"Extra Light",
"Semi Bold",
"Black",
"Bold",
"Book",
"Demi",
"Heavy",
"Light",
"Lite",
"Medium",
"Regular",
"Roman"
}
Definition at line 127 of file gtfont.h.
Referenced by getName(), parseWeight(), setSlant(), setWeight(), and setWidth().
const QString gtFont::fontSlants [static] |
Initial value:
{
"",
"Italic",
"Oblique"
}
Definition at line 128 of file gtfont.h.
Referenced by parseSlant(), setSlant(), and gtAction::validateFont().
const QString gtFont::fontWidths [static] |
Initial value:
{
"",
"Extra Condensed",
"Semi Condensed",
"Ultra Condensed",
"Extra Compressed",
"Semi Compressed",
"Ultra Compressed",
"Condensed",
"Compressed"
}
Definition at line 129 of file gtfont.h.
Referenced by parseWidth(), and setWidth().
const int gtFont::NAMECOUNT = 14 [static] |
The documentation for this class was generated from the following files:
