MMSTextBaseClass Class Reference

A base class for MMSLabelWidgetClass, MMSTextBoxWidgetClass and MMSInputWidgetClass. More...

#include <mmstextbaseclass.h>

Inheritance diagram for MMSTextBaseClass:

List of all members.


Public Member Functions

 MMSTextBaseClass ()
 Constructor of class MMSTextBaseClass.
virtual ~MMSTextBaseClass ()
 Destructor of class MMSTextBaseClass.
virtual void unsetAll ()
 Mark all attributes as not set.
bool isFontPath ()
 Check if the fontpath is set.
void setFontPath (string fontpath)
 Set the fontpath which is used to draw the text.
void unsetFontPath ()
 Mark the fontpath as not set.
string getFontPath ()
 Get the fontpath which is used to draw the text.
bool isFontSize ()
 Check if the fontsize is set.
void setFontSize (unsigned int fontsize)
 Set the fontsize which is used to draw the text.
void unsetFontSize ()
 Mark the fontsize as not set.
unsigned int getFontSize ()
 Get the fontsize which is used to draw the text.
bool isFontName (MMSLanguage lang=MMSLANG_NONE)
 Check if the fontname is set.
void setFontName (string fontname, MMSLanguage lang=MMSLANG_NONE)
 Set the fontname which is used to draw the text.
void unsetFontName (MMSLanguage lang=MMSLANG_NONE)
 Mark the fontname as not set.
void unsetFontNames ()
 Mark all fontnames as not set.
string getFontName (MMSLanguage lang=MMSLANG_NONE)
 Get the fontname which is used to draw the text.
bool isAlignment ()
 Check if alignment is set.
void setAlignment (MMSALIGNMENT alignment)
 Set the alignment of the text (see MMSALIGNMENT values).
void unsetAlignment ()
 Mark the alignment as not set.
MMSALIGNMENT getAlignment ()
 Get the alignment of the text (see MMSALIGNMENT values).
bool isColor ()
 Check if the color is set. This color will be used for the unselected text.
void setColor (MMSFBColor color)
 Set the color which is used to draw the unselected text.
void unsetColor ()
 Mark the color as not set.
MMSFBColor getColor ()
 Get the color which is used to draw the unselected text.
bool isSelColor ()
 Check if the color is set. This color will be used for the selected text.
void setSelColor (MMSFBColor selcolor)
 Set the color which is used to draw the selected text.
void unsetSelColor ()
 Mark the color as not set.
MMSFBColor getSelColor ()
 Get the color which is used to draw the selected text.
bool isColor_p ()
 Check if the color_p is set. This color will be used for the unselected, pressed text.
void setColor_p (MMSFBColor color_p)
 Set the color which is used to draw the unselected, pressed text.
void unsetColor_p ()
 Mark the color_p as not set.
MMSFBColor getColor_p ()
 Get the color which is used to draw the unselected, pressed text.
bool isSelColor_p ()
 Check if the color is set. This color will be used for the selected, pressed text.
void setSelColor_p (MMSFBColor selcolor_p)
 Set the color which is used to draw the selected, pressed text.
void unsetSelColor_p ()
 Mark the color_p as not set.
MMSFBColor getSelColor_p ()
 Get the color which is used to draw the selected, pressed text.
bool isColor_i ()
 Check if the color_i is set. This color will be used for the unselected, inactive text.
void setColor_i (MMSFBColor color_i)
 Set the color which is used to draw the unselected, inactive text.
void unsetColor_i ()
 Mark the color_i as not set.
MMSFBColor getColor_i ()
 Get the color which is used to draw the unselected, inactive text.
bool isSelColor_i ()
 Check if the color is set. This color will be used for the selected, inactive text.
void setSelColor_i (MMSFBColor selcolor_i)
 Set the color which is used to draw the selected, inactive text.
void unsetSelColor_i ()
 Mark the color_i as not set.
MMSFBColor getSelColor_i ()
 Get the color which is used to draw the selected, inactive text.
bool isText ()
 Check if the text is set.
void setText (string *text)
 Set the text to be drawn.
void setText (string text)
 Set the text to be drawn.
void unsetText ()
 Mark the text as not set.
string getText ()
 Get the current text.
bool isShadowColor (MMSPOSITION position)
void setShadowColor (MMSPOSITION position, MMSFBColor color)
void unsetShadowColor (MMSPOSITION position)
void unsetShadowColors ()
MMSFBColor getShadowColor (MMSPOSITION position)
bool isSelShadowColor (MMSPOSITION position)
void setSelShadowColor (MMSPOSITION position, MMSFBColor selcolor)
void unsetSelShadowColor (MMSPOSITION position)
void unsetSelShadowColors ()
MMSFBColor getSelShadowColor (MMSPOSITION position)

Private Attributes

bool isfontpath
 is fontpath set?
string fontpath
 path to the font
bool isfontsize
 is fontsize set?
unsigned int fontsize
 size of the font
MMSTEXTBASEFONTNAME fontname [MMSLANG_SIZE]
 language dependent font filenames
bool isalignment
 is alignment set?
MMSALIGNMENT alignment
 alignment of the text
bool iscolor
 is color set?
MMSFBColor color
 color of the text if the widget is not selected
bool isselcolor
 is selcolor set?
MMSFBColor selcolor
 color of the text if the widget is selected
bool iscolor_p
 is color_p set?
MMSFBColor color_p
 color of the text if the widget is not selected but pressed
bool isselcolor_p
 is selcolor_p set?
MMSFBColor selcolor_p
 color of the text if the widget is selected and pressed
bool iscolor_i
 is color_i set?
MMSFBColor color_i
 color of the text if the widget is not selected and disabled
bool isselcolor_i
 is selcolor_i set?
MMSFBColor selcolor_i
 color of the text if the widget is selected and disabled
bool istext
 is text set?
string text
 text to draw
MMSTEXTBASESHADOW shadow [MMSPOSITION_SIZE]
 text shadows (eight directions)

Friends

class MMSThemeManager
class MMSDialogManager

Classes

struct  MMSTEXTBASEFONTNAME
 describes name of a font More...
struct  MMSTEXTBASESHADOW
 describes shadow of a text More...

Detailed Description

A base class for MMSLabelWidgetClass, MMSTextBoxWidgetClass and MMSInputWidgetClass.

Note:
This class will be internally used by MMSLabelWidgetClass, MMSTextBoxWidgetClass and MMSInputWidgetClass.
Author:
Jens Schneider

Definition at line 927 of file mmstextbaseclass.h.


Constructor & Destructor Documentation

MMSTextBaseClass::MMSTextBaseClass (  ) 

Constructor of class MMSTextBaseClass.

Definition at line 36 of file mmstextbaseclass.cpp.

MMSTextBaseClass::~MMSTextBaseClass (  )  [virtual]

Destructor of class MMSTextBaseClass.

Definition at line 40 of file mmstextbaseclass.cpp.


Member Function Documentation

void MMSTextBaseClass::unsetAll (  )  [virtual]

Mark all attributes as not set.

Reimplemented in MMSInputWidgetClass, MMSLabelWidgetClass, and MMSTextBoxWidgetClass.

Definition at line 44 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isFontPath (  ) 

Check if the fontpath is set.

Definition at line 61 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setFontPath ( string  fontpath  ) 

Set the fontpath which is used to draw the text.

Parameters:
fontpath path to the font

Definition at line 65 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetFontPath (  ) 

Mark the fontpath as not set.

Definition at line 70 of file mmstextbaseclass.cpp.

string MMSTextBaseClass::getFontPath (  ) 

Get the fontpath which is used to draw the text.

Returns:
path to the font

Definition at line 74 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isFontSize (  ) 

Check if the fontsize is set.

Definition at line 78 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setFontSize ( unsigned int  fontsize  ) 

Set the fontsize which is used to draw the text.

Parameters:
fontsize size of the font

Definition at line 82 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetFontSize (  ) 

Mark the fontsize as not set.

Definition at line 87 of file mmstextbaseclass.cpp.

unsigned int MMSTextBaseClass::getFontSize (  ) 

Get the fontsize which is used to draw the text.

Returns:
size of the font

Definition at line 91 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isFontName ( MMSLanguage  lang = MMSLANG_NONE  ) 

Check if the fontname is set.

Parameters:
lang optional language

Definition at line 96 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setFontName ( string  fontname,
MMSLanguage  lang = MMSLANG_NONE 
)

Set the fontname which is used to draw the text.

Parameters:
fontname name of the font
lang optional language

Definition at line 101 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetFontName ( MMSLanguage  lang = MMSLANG_NONE  ) 

Mark the fontname as not set.

Parameters:
lang optional language

Definition at line 107 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetFontNames (  ) 

Mark all fontnames as not set.

Definition at line 112 of file mmstextbaseclass.cpp.

string MMSTextBaseClass::getFontName ( MMSLanguage  lang = MMSLANG_NONE  ) 

Get the fontname which is used to draw the text.

Parameters:
lang optional language
Returns:
name of the font

Definition at line 118 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isAlignment (  ) 

Check if alignment is set.

Definition at line 124 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setAlignment ( MMSALIGNMENT  alignment  ) 

Set the alignment of the text (see MMSALIGNMENT values).

Parameters:
alignment text alignment

Definition at line 128 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetAlignment (  ) 

Mark the alignment as not set.

Definition at line 133 of file mmstextbaseclass.cpp.

MMSALIGNMENT MMSTextBaseClass::getAlignment (  ) 

Get the alignment of the text (see MMSALIGNMENT values).

Returns:
size of the font

Definition at line 137 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isColor (  ) 

Check if the color is set. This color will be used for the unselected text.

Definition at line 141 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setColor ( MMSFBColor  color  ) 

Set the color which is used to draw the unselected text.

Parameters:
color color for unselected text

Definition at line 145 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetColor (  ) 

Mark the color as not set.

Definition at line 150 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getColor (  ) 

Get the color which is used to draw the unselected text.

Returns:
color for unselected text

Definition at line 154 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isSelColor (  ) 

Check if the color is set. This color will be used for the selected text.

Definition at line 158 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setSelColor ( MMSFBColor  selcolor  ) 

Set the color which is used to draw the selected text.

Parameters:
selcolor color for selected text

Definition at line 162 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetSelColor (  ) 

Mark the color as not set.

Definition at line 167 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getSelColor (  ) 

Get the color which is used to draw the selected text.

Returns:
color for selected text

Definition at line 171 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isColor_p (  ) 

Check if the color_p is set. This color will be used for the unselected, pressed text.

Definition at line 176 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setColor_p ( MMSFBColor  color_p  ) 

Set the color which is used to draw the unselected, pressed text.

Parameters:
color_p color for unselected, pressed text

Definition at line 180 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetColor_p (  ) 

Mark the color_p as not set.

Definition at line 185 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getColor_p (  ) 

Get the color which is used to draw the unselected, pressed text.

Returns:
color for unselected, pressed text

Definition at line 189 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isSelColor_p (  ) 

Check if the color is set. This color will be used for the selected, pressed text.

Definition at line 193 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setSelColor_p ( MMSFBColor  selcolor_p  ) 

Set the color which is used to draw the selected, pressed text.

Parameters:
selcolor_p color for selected, pressed text

Definition at line 197 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetSelColor_p (  ) 

Mark the color_p as not set.

Definition at line 202 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getSelColor_p (  ) 

Get the color which is used to draw the selected, pressed text.

Returns:
color for selected, pressed text

Definition at line 206 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isColor_i (  ) 

Check if the color_i is set. This color will be used for the unselected, inactive text.

Definition at line 211 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setColor_i ( MMSFBColor  color_i  ) 

Set the color which is used to draw the unselected, inactive text.

Parameters:
color_i color for unselected, inactive text

Definition at line 215 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetColor_i (  ) 

Mark the color_i as not set.

Definition at line 220 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getColor_i (  ) 

Get the color which is used to draw the unselected, inactive text.

Returns:
color for unselected, inactive text

Definition at line 224 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isSelColor_i (  ) 

Check if the color is set. This color will be used for the selected, inactive text.

Definition at line 228 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setSelColor_i ( MMSFBColor  selcolor_i  ) 

Set the color which is used to draw the selected, inactive text.

Parameters:
selcolor_i color for selected, inactive text

Definition at line 232 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetSelColor_i (  ) 

Mark the color_i as not set.

Definition at line 237 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getSelColor_i (  ) 

Get the color which is used to draw the selected, inactive text.

Returns:
color for selected, inactive text

Definition at line 241 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isText (  ) 

Check if the text is set.

Definition at line 247 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setText ( string *  text  ) 

Set the text to be drawn.

Parameters:
text pointer to any text string

Definition at line 251 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setText ( string  text  ) 

Set the text to be drawn.

Parameters:
text any text string

Definition at line 256 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetText (  ) 

Mark the text as not set.

Definition at line 260 of file mmstextbaseclass.cpp.

string MMSTextBaseClass::getText (  ) 

Get the current text.

Returns:
text string

Definition at line 264 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isShadowColor ( MMSPOSITION  position  ) 

Definition at line 270 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setShadowColor ( MMSPOSITION  position,
MMSFBColor  color 
)

Definition at line 274 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetShadowColor ( MMSPOSITION  position  ) 

Definition at line 279 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetShadowColors (  ) 

Definition at line 283 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getShadowColor ( MMSPOSITION  position  ) 

Definition at line 289 of file mmstextbaseclass.cpp.

bool MMSTextBaseClass::isSelShadowColor ( MMSPOSITION  position  ) 

Definition at line 293 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::setSelShadowColor ( MMSPOSITION  position,
MMSFBColor  selcolor 
)

Definition at line 297 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetSelShadowColor ( MMSPOSITION  position  ) 

Definition at line 302 of file mmstextbaseclass.cpp.

void MMSTextBaseClass::unsetSelShadowColors (  ) 

Definition at line 306 of file mmstextbaseclass.cpp.

MMSFBColor MMSTextBaseClass::getSelShadowColor ( MMSPOSITION  position  ) 

Definition at line 312 of file mmstextbaseclass.cpp.


Friends And Related Function Documentation

friend class MMSThemeManager [friend]

Reimplemented in MMSInputWidgetClass, MMSLabelWidgetClass, and MMSTextBoxWidgetClass.

Definition at line 1277 of file mmstextbaseclass.h.

friend class MMSDialogManager [friend]

Reimplemented in MMSInputWidgetClass, MMSLabelWidgetClass, and MMSTextBoxWidgetClass.

Definition at line 1278 of file mmstextbaseclass.h.


Member Data Documentation

is fontpath set?

Definition at line 930 of file mmstextbaseclass.h.

string MMSTextBaseClass::fontpath [private]

path to the font

Definition at line 933 of file mmstextbaseclass.h.

is fontsize set?

Definition at line 936 of file mmstextbaseclass.h.

unsigned int MMSTextBaseClass::fontsize [private]

size of the font

Definition at line 939 of file mmstextbaseclass.h.

language dependent font filenames

Definition at line 952 of file mmstextbaseclass.h.

is alignment set?

Definition at line 957 of file mmstextbaseclass.h.

alignment of the text

Definition at line 960 of file mmstextbaseclass.h.

bool MMSTextBaseClass::iscolor [private]

is color set?

Definition at line 963 of file mmstextbaseclass.h.

color of the text if the widget is not selected

Definition at line 966 of file mmstextbaseclass.h.

is selcolor set?

Definition at line 969 of file mmstextbaseclass.h.

color of the text if the widget is selected

Definition at line 972 of file mmstextbaseclass.h.

is color_p set?

Definition at line 976 of file mmstextbaseclass.h.

color of the text if the widget is not selected but pressed

Definition at line 979 of file mmstextbaseclass.h.

is selcolor_p set?

Definition at line 982 of file mmstextbaseclass.h.

color of the text if the widget is selected and pressed

Definition at line 985 of file mmstextbaseclass.h.

is color_i set?

Definition at line 989 of file mmstextbaseclass.h.

color of the text if the widget is not selected and disabled

Definition at line 992 of file mmstextbaseclass.h.

is selcolor_i set?

Definition at line 995 of file mmstextbaseclass.h.

color of the text if the widget is selected and disabled

Definition at line 998 of file mmstextbaseclass.h.

bool MMSTextBaseClass::istext [private]

is text set?

Definition at line 1002 of file mmstextbaseclass.h.

string MMSTextBaseClass::text [private]

text to draw

Definition at line 1005 of file mmstextbaseclass.h.

MMSTEXTBASESHADOW MMSTextBaseClass::shadow[MMSPOSITION_SIZE] [private]

text shadows (eight directions)

Definition at line 1025 of file mmstextbaseclass.h.


The documentation for this class was generated from the following files: