MMSDialogManager Class Reference

With this class you can load dialog files written in disko's XML syntax. More...

#include <mmsdialogmanager.h>

List of all members.


Public Member Functions

 MMSDialogManager (bool leave_window=false)
 MMSDialogManager (MMSWindow *rootWindow)
 ~MMSDialogManager ()
bool isLoaded ()
MMSWindowloadDialog (string filename, MMSTheme *theme=NULL)
MMSChildWindowloadChildDialog (string filename, MMSTheme *theme=NULL)
MMSWidgetfindWidget (string name)
MMSWidgetoperator[] (string name)
MMSWindowgetWindow ()
MMSDescriptionClass getDescription ()
MMSWidgetcreateWidgetFromTemplate (string className, MMSWidget *parentWidget, MMSWindow *rootWindow=NULL, MMSTheme *theme=NULL)
MMSWidgetaddWidgetFromTemplate (string className, MMSWidget *parentWidget, MMSWindow *rootWindow=NULL, MMSTheme *theme=NULL)

Private Member Functions

void insertNamedWidget (MMSWidget *widget)
void throughDoc (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme, bool only_first_child=false)
void getDescriptionValues (MMSTaffFile *tafff, MMSTheme *theme)
void getMainWindowValues (MMSTaffFile *tafff, MMSTheme *theme)
void getPopupWindowValues (MMSTaffFile *tafff, MMSTheme *theme)
void getRootWindowValues (MMSTaffFile *tafff, MMSTheme *theme)
void getChildWindowValues (MMSTaffFile *tafff, MMSWindow *rootWindow, MMSTheme *theme)
string getTemplateValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getVBoxValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getHBoxValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getLabelValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getButtonValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getCanvasValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getImageValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getProgressBarValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
bool getMenuItems (MMSTaffFile *tafff, MMSMenuWidget *menu, MMSTheme *theme)
string getMenuValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getTextBoxValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getArrowValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getSliderValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getInputValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getCheckBoxValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
string getGapValues (MMSTaffFile *tafff, MMSWidget *currentWidget, MMSWindow *rootWindow, MMSTheme *theme)
void updateTAFFAttributes (MMSTaffFile *tafff, MMSWidget *widget, string &widgetName)

Private Attributes

bool leave_window
 if leave_window, then you can use a single MMSDialogManager instance to load more than one dialog window with the loadDialog() method
MMSWindowrootWindow
 pointer to the instantiated window
bool rootWindow_is_mine
 is window instantiated by me?
vector< MMSChildWindow * > childWins
 loaded child windows
string filename
 filename of dialog's XML source
MMSDescriptionClass description
 description of the dialog
vector< MMSWidget * > namedWidgets
 list of widgets with a name

Detailed Description

With this class you can load dialog files written in disko's XML syntax.

It is recommended to use XML files to describe the layout of your dialog windows. So you can change it (design it) without changing your C++ code. With the dialog manager you also minimize the lines of your C++ code.

Author:
Jens Schneider

Definition at line 53 of file mmsdialogmanager.h.


Constructor & Destructor Documentation

MMSDialogManager::MMSDialogManager ( bool  leave_window = false  ) 

Definition at line 91 of file mmsdialogmanager.cpp.

MMSDialogManager::MMSDialogManager ( MMSWindow rootWindow  ) 

Definition at line 97 of file mmsdialogmanager.cpp.

MMSDialogManager::~MMSDialogManager (  ) 

Definition at line 103 of file mmsdialogmanager.cpp.


Member Function Documentation

void MMSDialogManager::insertNamedWidget ( MMSWidget widget  )  [private]

Definition at line 126 of file mmsdialogmanager.cpp.

void MMSDialogManager::throughDoc ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme,
bool  only_first_child = false 
) [private]

Definition at line 262 of file mmsdialogmanager.cpp.

void MMSDialogManager::getDescriptionValues ( MMSTaffFile tafff,
MMSTheme theme 
) [private]

Definition at line 359 of file mmsdialogmanager.cpp.

void MMSDialogManager::getMainWindowValues ( MMSTaffFile tafff,
MMSTheme theme 
) [private]

Definition at line 364 of file mmsdialogmanager.cpp.

void MMSDialogManager::getPopupWindowValues ( MMSTaffFile tafff,
MMSTheme theme 
) [private]

Definition at line 445 of file mmsdialogmanager.cpp.

void MMSDialogManager::getRootWindowValues ( MMSTaffFile tafff,
MMSTheme theme 
) [private]

Definition at line 527 of file mmsdialogmanager.cpp.

void MMSDialogManager::getChildWindowValues ( MMSTaffFile tafff,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 607 of file mmsdialogmanager.cpp.

string MMSDialogManager::getTemplateValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 700 of file mmsdialogmanager.cpp.

string MMSDialogManager::getVBoxValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 817 of file mmsdialogmanager.cpp.

string MMSDialogManager::getHBoxValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 846 of file mmsdialogmanager.cpp.

string MMSDialogManager::getLabelValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 876 of file mmsdialogmanager.cpp.

string MMSDialogManager::getButtonValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 921 of file mmsdialogmanager.cpp.

string MMSDialogManager::getCanvasValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 964 of file mmsdialogmanager.cpp.

string MMSDialogManager::getImageValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1022 of file mmsdialogmanager.cpp.

string MMSDialogManager::getProgressBarValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1066 of file mmsdialogmanager.cpp.

bool MMSDialogManager::getMenuItems ( MMSTaffFile tafff,
MMSMenuWidget menu,
MMSTheme theme 
) [private]

if the user enters this item, the parent menu (if does exist) will be shown

Definition at line 1110 of file mmsdialogmanager.cpp.

string MMSDialogManager::getMenuValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1238 of file mmsdialogmanager.cpp.

string MMSDialogManager::getTextBoxValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1333 of file mmsdialogmanager.cpp.

string MMSDialogManager::getArrowValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1376 of file mmsdialogmanager.cpp.

string MMSDialogManager::getSliderValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1419 of file mmsdialogmanager.cpp.

string MMSDialogManager::getInputValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1462 of file mmsdialogmanager.cpp.

string MMSDialogManager::getCheckBoxValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1506 of file mmsdialogmanager.cpp.

string MMSDialogManager::getGapValues ( MMSTaffFile tafff,
MMSWidget currentWidget,
MMSWindow rootWindow,
MMSTheme theme 
) [private]

Definition at line 1549 of file mmsdialogmanager.cpp.

void MMSDialogManager::updateTAFFAttributes ( MMSTaffFile tafff,
MMSWidget widget,
string &  widgetName 
) [private]

Definition at line 1584 of file mmsdialogmanager.cpp.

bool MMSDialogManager::isLoaded (  ) 

Definition at line 122 of file mmsdialogmanager.cpp.

MMSWindow * MMSDialogManager::loadDialog ( string  filename,
MMSTheme theme = NULL 
)

Definition at line 148 of file mmsdialogmanager.cpp.

MMSChildWindow * MMSDialogManager::loadChildDialog ( string  filename,
MMSTheme theme = NULL 
)

Definition at line 207 of file mmsdialogmanager.cpp.

MMSWidget * MMSDialogManager::findWidget ( string  name  ) 

Definition at line 131 of file mmsdialogmanager.cpp.

MMSWidget * MMSDialogManager::operator[] ( string  name  ) 

Definition at line 138 of file mmsdialogmanager.cpp.

MMSWindow * MMSDialogManager::getWindow (  ) 

Definition at line 1579 of file mmsdialogmanager.cpp.

MMSDescriptionClass MMSDialogManager::getDescription (  ) 

Definition at line 257 of file mmsdialogmanager.cpp.

MMSWidget * MMSDialogManager::createWidgetFromTemplate ( string  className,
MMSWidget parentWidget,
MMSWindow rootWindow = NULL,
MMSTheme theme = NULL 
)

Definition at line 1704 of file mmsdialogmanager.cpp.

MMSWidget * MMSDialogManager::addWidgetFromTemplate ( string  className,
MMSWidget parentWidget,
MMSWindow rootWindow = NULL,
MMSTheme theme = NULL 
)

Definition at line 1741 of file mmsdialogmanager.cpp.


Member Data Documentation

if leave_window, then you can use a single MMSDialogManager instance to load more than one dialog window with the loadDialog() method

Definition at line 57 of file mmsdialogmanager.h.

pointer to the instantiated window

Definition at line 60 of file mmsdialogmanager.h.

is window instantiated by me?

Definition at line 63 of file mmsdialogmanager.h.

loaded child windows

Definition at line 66 of file mmsdialogmanager.h.

string MMSDialogManager::filename [private]

filename of dialog's XML source

Definition at line 69 of file mmsdialogmanager.h.

description of the dialog

Definition at line 72 of file mmsdialogmanager.h.

list of widgets with a name

Definition at line 75 of file mmsdialogmanager.h.


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