#include <mmsprogressbarwidgetclass.h>
Public Member Functions | |
MMSProgressBarWidgetClass () | |
Constructor of class MMSProgressBarWidgetClass. | |
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 | isColor () |
Check if the color is set. This color will be used to draw the unselected progress bar. | |
void | setColor (MMSFBColor color) |
Set the color which is used to draw the unselected progress bar. | |
void | unsetColor () |
Mark the color as not set. | |
MMSFBColor | getColor () |
Get the color which is used to draw the unselected progress bar. | |
bool | isSelColor () |
Check if the color is set. This color will be used for the selected progress bar. | |
void | setSelColor (MMSFBColor selcolor) |
Set the color which is used to draw the selected progress bar. | |
void | unsetSelColor () |
Mark the color as not set. | |
MMSFBColor | getSelColor () |
Get the color which is used to draw the selected progress bar. | |
bool | isProgress () |
Check if the progress value is set. | |
void | setProgress (unsigned int progress) |
Set the progress. | |
void | unsetProgress () |
Mark the progress as not set. | |
unsigned int | getProgress () |
Get the progress. | |
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 | iscolor |
is color set? | |
MMSFBColor | color |
color if the widget is not selected | |
bool | isselcolor |
is selcolor set? | |
MMSFBColor | selcolor |
color if the widget is selected | |
bool | isprogress |
is progress value set? | |
unsigned int | progress |
progress value in percent | |
Friends | |
class | MMSThemeManager |
class | MMSDialogManager |
This class is the base for the MMSProgressBarWidget class. 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 95 of file mmsprogressbarwidgetclass.h.
MMSProgressBarWidgetClass::MMSProgressBarWidgetClass | ( | ) |
Constructor of class MMSProgressBarWidgetClass.
Definition at line 46 of file mmsprogressbarwidgetclass.cpp.
void MMSProgressBarWidgetClass::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 57 of file mmsprogressbarwidgetclass.cpp.
void MMSProgressBarWidgetClass::unsetAll | ( | ) |
void MMSProgressBarWidgetClass::setClassName | ( | string | className | ) |
Set the name of the theme class.
classname | name of the class |
Definition at line 219 of file mmsprogressbarwidgetclass.cpp.
string MMSProgressBarWidgetClass::getClassName | ( | ) |
Get the name of the theme class.
Definition at line 223 of file mmsprogressbarwidgetclass.cpp.
bool MMSProgressBarWidgetClass::isColor | ( | ) |
Check if the color is set. This color will be used to draw the unselected progress bar.
Definition at line 227 of file mmsprogressbarwidgetclass.cpp.
void MMSProgressBarWidgetClass::setColor | ( | MMSFBColor | color | ) |
Set the color which is used to draw the unselected progress bar.
color | color for unselected bar |
Definition at line 231 of file mmsprogressbarwidgetclass.cpp.
void MMSProgressBarWidgetClass::unsetColor | ( | ) |
MMSFBColor MMSProgressBarWidgetClass::getColor | ( | ) |
Get the color which is used to draw the unselected progress bar.
Definition at line 240 of file mmsprogressbarwidgetclass.cpp.
bool MMSProgressBarWidgetClass::isSelColor | ( | ) |
Check if the color is set. This color will be used for the selected progress bar.
Definition at line 244 of file mmsprogressbarwidgetclass.cpp.
void MMSProgressBarWidgetClass::setSelColor | ( | MMSFBColor | selcolor | ) |
Set the color which is used to draw the selected progress bar.
selcolor | color for selected bar |
Definition at line 248 of file mmsprogressbarwidgetclass.cpp.
void MMSProgressBarWidgetClass::unsetSelColor | ( | ) |
MMSFBColor MMSProgressBarWidgetClass::getSelColor | ( | ) |
Get the color which is used to draw the selected progress bar.
Definition at line 257 of file mmsprogressbarwidgetclass.cpp.
bool MMSProgressBarWidgetClass::isProgress | ( | ) |
void MMSProgressBarWidgetClass::setProgress | ( | unsigned int | progress | ) |
Set the progress.
progress | progress in percent (0-100) |
Definition at line 265 of file mmsprogressbarwidgetclass.cpp.
void MMSProgressBarWidgetClass::unsetProgress | ( | ) |
unsigned int MMSProgressBarWidgetClass::getProgress | ( | ) |
friend class MMSThemeManager [friend] |
Definition at line 205 of file mmsprogressbarwidgetclass.h.
friend class MMSDialogManager [friend] |
Definition at line 206 of file mmsprogressbarwidgetclass.h.
string MMSProgressBarWidgetClass::className [private] |
bool MMSProgressBarWidgetClass::iscolor [private] |
MMSFBColor MMSProgressBarWidgetClass::color [private] |
bool MMSProgressBarWidgetClass::isselcolor [private] |
bool MMSProgressBarWidgetClass::isprogress [private] |
unsigned int MMSProgressBarWidgetClass::progress [private] |