#include <mmstextboxwidgetclass.h>
Public Member Functions | |
MMSTextBoxWidgetClass () | |
Constructor of class MMSTextBoxWidgetClass. | |
void | unsetAll () |
Mark all attributes as not set. | |
void | setClassName (string className) |
Set the name of the theme class. | |
string | getClassName () |
Get the name of the theme class. | |
bool | isWrap () |
Check if the wrap flag is set. | |
void | setWrap (bool wrap) |
Set the wrap flag. | |
void | unsetWrap () |
Mark the wrap flag as not set. | |
bool | getWrap () |
Get the wrap flag. | |
bool | isSplitWords () |
Check if splitwords is set. | |
void | setSplitWords (bool splitwords) |
Set the splitwords flag. | |
void | unsetSplitWords () |
Mark splitwords as not set. | |
bool | getSplitWords () |
Get the splitwords flag. | |
bool | isTranslate () |
Check if the translate flag is set. | |
void | setTranslate (bool translate) |
Set the translate flag. | |
void | unsetTranslate () |
Mark the translate flag as not set. | |
bool | getTranslate () |
Get the translate flag. | |
bool | isFilePath () |
Check if the filepath is set. | |
void | setFilePath (string filepath) |
Set the filepath which is used to load the text. | |
void | unsetFilePath () |
Mark the filepath as not set. | |
string | getFilePath () |
Get the filepath which is used to load the text. | |
bool | isFileName () |
Check if the filename is set. | |
void | setFileName (string filename) |
Set the filename which is used to load the text. | |
void | unsetFileName () |
Mark the filename as not set. | |
string | getFileName () |
Get the filename which is used to load the text. | |
Public Attributes | |
MMSWidgetClass | widgetClass |
stores base widget attributes | |
Private Member Functions | |
void | setAttributesFromTAFF (MMSTaffFile *tafff, string *prefix=NULL, string *path=NULL, bool reset_paths=false) |
Read and set all attributes from the given TAFF buffer. | |
Private Attributes | |
string | className |
name of the theme class | |
bool | iswrap |
is wrap flag set? | |
bool | wrap |
wrap (true/false) the text | |
bool | issplitwords |
is splitwords flag set? | |
bool | splitwords |
splitwords (true/false) | |
bool | istranslate |
is translate set? | |
bool | translate |
if true the text will be translated before displayed | |
bool | isfilepath |
is filepath set? | |
string | filepath |
path to the file | |
bool | isfilename |
is filename set? | |
string | filename |
name of the file | |
Friends | |
class | MMSThemeManager |
class | MMSDialogManager |
This class is the base for the MMSTextBoxWidget class and is derived from MMSTextBaseClass which is the base for all widgets with text output. With this data store you have access to all changeable widget attributes. It is also one of the base classes for MMSThemeManager and MMSDialogManager which are main features of the MMSGUI.
Definition at line 90 of file mmstextboxwidgetclass.h.
MMSTextBoxWidgetClass::MMSTextBoxWidgetClass | ( | ) |
Constructor of class MMSTextBoxWidgetClass.
Definition at line 46 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::setAttributesFromTAFF | ( | MMSTaffFile * | tafff, | |
string * | prefix = NULL , |
|||
string * | path = NULL , |
|||
bool | reset_paths = false | |||
) | [private] |
Read and set all attributes from the given TAFF buffer.
tafff | pointer to the TAFF buffer | |
prefix | optional, prefix to all attribute names (<prefix><attrname>=<attrvalue>) | |
path | optional, path needed for empty path values from the TAFF buffer | |
reset_paths | optional, should reset all path attributes? |
Definition at line 60 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::unsetAll | ( | ) | [virtual] |
Mark all attributes as not set.
Reimplemented from MMSTextBaseClass.
Definition at line 50 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::setClassName | ( | string | className | ) |
Set the name of the theme class.
classname | name of the class |
Definition at line 172 of file mmstextboxwidgetclass.cpp.
string MMSTextBoxWidgetClass::getClassName | ( | ) |
Get the name of the theme class.
Definition at line 176 of file mmstextboxwidgetclass.cpp.
bool MMSTextBoxWidgetClass::isWrap | ( | ) |
void MMSTextBoxWidgetClass::setWrap | ( | bool | wrap | ) |
Set the wrap flag.
wrap | wrap the text if set to true |
Definition at line 185 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::unsetWrap | ( | ) |
bool MMSTextBoxWidgetClass::getWrap | ( | ) |
bool MMSTextBoxWidgetClass::isSplitWords | ( | ) |
void MMSTextBoxWidgetClass::setSplitWords | ( | bool | splitwords | ) |
Set the splitwords flag.
splitwords | split words at the end of a line |
Definition at line 202 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::unsetSplitWords | ( | ) |
bool MMSTextBoxWidgetClass::getSplitWords | ( | ) |
Get the splitwords flag.
Definition at line 211 of file mmstextboxwidgetclass.cpp.
bool MMSTextBoxWidgetClass::isTranslate | ( | ) |
void MMSTextBoxWidgetClass::setTranslate | ( | bool | translate | ) |
Set the translate flag.
translate | true/false |
Definition at line 220 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::unsetTranslate | ( | ) |
bool MMSTextBoxWidgetClass::getTranslate | ( | ) |
Get the translate flag.
Definition at line 229 of file mmstextboxwidgetclass.cpp.
bool MMSTextBoxWidgetClass::isFilePath | ( | ) |
void MMSTextBoxWidgetClass::setFilePath | ( | string | filepath | ) |
Set the filepath which is used to load the text.
filepath | path to the file |
Definition at line 237 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::unsetFilePath | ( | ) |
string MMSTextBoxWidgetClass::getFilePath | ( | ) |
Get the filepath which is used to load the text.
Definition at line 246 of file mmstextboxwidgetclass.cpp.
bool MMSTextBoxWidgetClass::isFileName | ( | ) |
void MMSTextBoxWidgetClass::setFileName | ( | string | filename | ) |
Set the filename which is used to load the text.
filename | name of the file |
Definition at line 254 of file mmstextboxwidgetclass.cpp.
void MMSTextBoxWidgetClass::unsetFileName | ( | ) |
string MMSTextBoxWidgetClass::getFileName | ( | ) |
Get the filename which is used to load the text.
Definition at line 263 of file mmstextboxwidgetclass.cpp.
friend class MMSThemeManager [friend] |
friend class MMSDialogManager [friend] |
string MMSTextBoxWidgetClass::className [private] |
bool MMSTextBoxWidgetClass::iswrap [private] |
bool MMSTextBoxWidgetClass::wrap [private] |
bool MMSTextBoxWidgetClass::issplitwords [private] |
bool MMSTextBoxWidgetClass::splitwords [private] |
bool MMSTextBoxWidgetClass::istranslate [private] |
bool MMSTextBoxWidgetClass::translate [private] |
if true the text will be translated before displayed
Definition at line 111 of file mmstextboxwidgetclass.h.
bool MMSTextBoxWidgetClass::isfilepath [private] |
string MMSTextBoxWidgetClass::filepath [private] |
bool MMSTextBoxWidgetClass::isfilename [private] |
string MMSTextBoxWidgetClass::filename [private] |