MMSCanvasWidgetClass Class Reference

A data access class for the canvas widget. More...

#include <mmscanvaswidgetclass.h>

List of all members.


Public Member Functions

 MMSCanvasWidgetClass ()
 Constructor of class MMSCanvasWidgetClass.
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 isAttributes ()
 Check if the attributes string that is handed to the derived class is set.
void setAttributes (string attributes)
 Set the attributes string that is handed to the derived class.
void unsetAttributes ()
 Mark the attributes string that is handed to the derived class as not set.
string getAttributes ()
 Get the attributes string that is handed to the derived class.

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
string attributes
 generic attributes
bool isattributes
 generic attributes are set

Friends

class MMSThemeManager
class MMSDialogManager

Detailed Description

A data access class for the canvas widget.

This class is the base for the MMSCanvasWidget 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.

Note:
This class will be internally used by class MMSCanvasWidget.
Author:
Stefan Schwarzer

Definition at line 75 of file mmscanvaswidgetclass.h.


Constructor & Destructor Documentation

MMSCanvasWidgetClass::MMSCanvasWidgetClass (  ) 

Constructor of class MMSCanvasWidgetClass.

Definition at line 46 of file mmscanvaswidgetclass.cpp.


Member Function Documentation

void MMSCanvasWidgetClass::setAttributesFromTAFF ( MMSTaffFile tafff,
string *  prefix = NULL,
string *  path = NULL,
bool  reset_paths = false 
) [private]

Read and set all attributes from the given TAFF buffer.

Parameters:
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 55 of file mmscanvaswidgetclass.cpp.

void MMSCanvasWidgetClass::unsetAll (  ) 

Mark all attributes as not set.

Definition at line 50 of file mmscanvaswidgetclass.cpp.

void MMSCanvasWidgetClass::setClassName ( string  className  ) 

Set the name of the theme class.

Parameters:
className name of the class

Definition at line 70 of file mmscanvaswidgetclass.cpp.

string MMSCanvasWidgetClass::getClassName (  ) 

Get the name of the theme class.

Returns:
name of the class

Definition at line 74 of file mmscanvaswidgetclass.cpp.

bool MMSCanvasWidgetClass::isAttributes (  ) 

Check if the attributes string that is handed to the derived class is set.

Definition at line 78 of file mmscanvaswidgetclass.cpp.

void MMSCanvasWidgetClass::setAttributes ( string  attributes  ) 

Set the attributes string that is handed to the derived class.

Parameters:
imagepath_p path to pressed unselected image

Definition at line 82 of file mmscanvaswidgetclass.cpp.

void MMSCanvasWidgetClass::unsetAttributes (  ) 

Mark the attributes string that is handed to the derived class as not set.

Definition at line 87 of file mmscanvaswidgetclass.cpp.

string MMSCanvasWidgetClass::getAttributes (  ) 

Get the attributes string that is handed to the derived class.

Returns:
path to the pressed unselected image

Definition at line 92 of file mmscanvaswidgetclass.cpp.


Friends And Related Function Documentation

friend class MMSThemeManager [friend]

Definition at line 140 of file mmscanvaswidgetclass.h.

friend class MMSDialogManager [friend]

Definition at line 141 of file mmscanvaswidgetclass.h.


Member Data Documentation

name of the theme class

Definition at line 78 of file mmscanvaswidgetclass.h.

generic attributes

Definition at line 81 of file mmscanvaswidgetclass.h.

generic attributes are set

Definition at line 84 of file mmscanvaswidgetclass.h.

stores base widget attributes

Definition at line 98 of file mmscanvaswidgetclass.h.


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