#include <mmslabelwidgetclass.h>
Public Member Functions | |
MMSLabelWidgetClass () | |
Constructor of class MMSLabelWidgetClass. | |
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 | isSlidable () |
Check if the slidable flag is set. | |
void | setSlidable (bool slidable) |
Set the slidable flag. | |
void | unsetSlidable () |
Mark the slidable flag as not set. | |
bool | getSlidable () |
Get the slidable flag. | |
bool | isSlideSpeed () |
Check if the slide speed is set. | |
void | setSlideSpeed (unsigned char slidespeed) |
Set the slide speed. | |
void | unsetSlideSpeed () |
Mark the slide speed as not set. | |
unsigned char | getSlideSpeed () |
Get the slide speed. | |
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. | |
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 | isslidable |
is slidable set? | |
bool | slidable |
if true and size of the text string is greater than widget dimension, the text will slide over the widget | |
bool | isslidespeed |
is slide speed set? | |
unsigned int | slidespeed |
slide speed used if slidable set to true | |
bool | istranslate |
is translate set? | |
bool | translate |
if true the text will be translated before displayed | |
Friends | |
class | MMSThemeManager |
class | MMSDialogManager |
This class is the base for the MMSLabelWidget 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 86 of file mmslabelwidgetclass.h.
MMSLabelWidgetClass::MMSLabelWidgetClass | ( | ) |
void MMSLabelWidgetClass::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 58 of file mmslabelwidgetclass.cpp.
void MMSLabelWidgetClass::unsetAll | ( | ) | [virtual] |
Mark all attributes as not set.
Reimplemented from MMSTextBaseClass.
Definition at line 50 of file mmslabelwidgetclass.cpp.
void MMSLabelWidgetClass::setClassName | ( | string | className | ) |
Set the name of the theme class.
classname | name of the class |
Definition at line 147 of file mmslabelwidgetclass.cpp.
string MMSLabelWidgetClass::getClassName | ( | ) |
Get the name of the theme class.
Definition at line 151 of file mmslabelwidgetclass.cpp.
bool MMSLabelWidgetClass::isSlidable | ( | ) |
void MMSLabelWidgetClass::setSlidable | ( | bool | slidable | ) |
Set the slidable flag.
slidable | true/false |
Definition at line 159 of file mmslabelwidgetclass.cpp.
void MMSLabelWidgetClass::unsetSlidable | ( | ) |
bool MMSLabelWidgetClass::getSlidable | ( | ) |
bool MMSLabelWidgetClass::isSlideSpeed | ( | ) |
void MMSLabelWidgetClass::setSlideSpeed | ( | unsigned char | slidespeed | ) |
Set the slide speed.
slidespeed | speed in pixel per second |
Definition at line 176 of file mmslabelwidgetclass.cpp.
void MMSLabelWidgetClass::unsetSlideSpeed | ( | ) |
unsigned char MMSLabelWidgetClass::getSlideSpeed | ( | ) |
bool MMSLabelWidgetClass::isTranslate | ( | ) |
void MMSLabelWidgetClass::setTranslate | ( | bool | translate | ) |
Set the translate flag.
translate | true/false |
Definition at line 194 of file mmslabelwidgetclass.cpp.
void MMSLabelWidgetClass::unsetTranslate | ( | ) |
bool MMSLabelWidgetClass::getTranslate | ( | ) |
friend class MMSThemeManager [friend] |
friend class MMSDialogManager [friend] |
string MMSLabelWidgetClass::className [private] |
bool MMSLabelWidgetClass::isslidable [private] |
bool MMSLabelWidgetClass::slidable [private] |
if true and size of the text string is greater than widget dimension, the text will slide over the widget
Definition at line 95 of file mmslabelwidgetclass.h.
bool MMSLabelWidgetClass::isslidespeed [private] |
unsigned int MMSLabelWidgetClass::slidespeed [private] |
bool MMSLabelWidgetClass::istranslate [private] |
bool MMSLabelWidgetClass::translate [private] |
if true the text will be translated before displayed
Definition at line 107 of file mmslabelwidgetclass.h.