TdkDlgController Class Reference

Defines the TdkDlgController class. This class defines the a abstract dialog controller. More...

#include <TdkDlgController.h>

Inheritance diagram for TdkDlgController:

TdkObserver TdkSubject TdkAddThemeDlgController TdkAddViewDlgController TdkConnectedViewsDlgController TdkDatabaseDlgController TdkImportDataDlgController TdkImportRasterDlgController TdkMainDlgController TdkProjectionDlgController TdkVisualDlgController List of all members.

All Dialogs Common Methods

Methods common to all controllers.

void showWindow (const bool isDialog=true)
 Shows the dialog.
void closeWindow ()
 Close the dialog.
virtual void setInitialState ()=0
 Sets dialog to initial state.
virtual string dlgName ()=0
 Retrieves the definition dialog name.
TdkDlggetDialog ()
 Retrieves the pointer to controlled dialog.
void setDialog (TdkDlg *newDialog)
 Sets the controlled dialog.
virtual int getActionId (const string &action)
 Retrieves the action id int value correspondent to action string paramater.
void removeDialog ()
 Removes the controlled dialog.
TdkInterfaceControllergetInterfaceController ()
 Retrieves the dialogs interface controller.
static void setDlgFactoryNames (const map< string, string > &fctNames)
 Updates the factories names map.
static map< string, string > & getDlgFactoryNames ()
 Retrieves the factories names map.

Public Member Functions

Constructor and Destructor Methods
Methods related to instantiation and destruction.

 TdkDlgController (TdkDlg *dlg)
 Constructor.
virtual ~TdkDlgController ()
 Virtual destructor.

Static Public Attributes

static map< string, string > _dlgFactoryNames
 Factories names map.

Protected Attributes

TdkDlg_dlg
 Pointer to controlled dialog.
TdkInterfaceController_pic
 Pointer to dialog's interface controller.

Detailed Description

Defines the TdkDlgController class. This class defines the a abstract dialog controller.

TODO: 1) 2) 3)

See also:
TdkDlgController, TdkInterfaceController, TdkObserver


Constructor & Destructor Documentation

TdkDlgController::TdkDlgController ( TdkDlg dlg  )  [inline]

Constructor.

Parameters:
dlg Pointer to connect database dialog.

TdkDlgController::~TdkDlgController (  )  [inline, virtual]

Virtual destructor.


Member Function Documentation

void TdkDlgController::showWindow ( const bool  isDialog = true  )  [inline]

Shows the dialog.

void TdkDlgController::closeWindow (  )  [inline]

Close the dialog.

virtual void TdkDlgController::setInitialState (  )  [pure virtual]

Sets dialog to initial state.

Implemented in TdkAddThemeDlgController, TdkAddViewDlgController, TdkConnectedViewsDlgController, TdkDatabaseDlgController, TdkImportDataDlgController, TdkImportRasterDlgController, TdkMainDlgController, TdkProjectionDlgController, and TdkVisualDlgController.

virtual string TdkDlgController::dlgName (  )  [pure virtual]

Retrieves the definition dialog name.

Returns:
String definition of dialog's name.

Implemented in TdkAddThemeDlgController, TdkAddViewDlgController, TdkConnectedViewsDlgController, TdkDatabaseDlgController, TdkImportDataDlgController, TdkImportRasterDlgController, TdkMainDlgController, TdkProjectionDlgController, and TdkVisualDlgController.

TdkDlg * TdkDlgController::getDialog (  )  [inline]

Retrieves the pointer to controlled dialog.

Returns:
Pointer to controlled dialog.

void TdkDlgController::setDialog ( TdkDlg newDialog  )  [inline]

Sets the controlled dialog.

Parameters:
newDialog Dialog to be controlled.

int TdkDlgController::getActionId ( const string &  action  )  [inline, virtual]

Retrieves the action id int value correspondent to action string paramater.

Returns:
Int value action id.

Reimplemented in TdkAddThemeDlgController, and TdkDatabaseDlgController.

void TdkDlgController::setDlgFactoryNames ( const map< string, string > &  fctNames  )  [inline, static]

Updates the factories names map.

Parameters:
fctNames Map of factories names.

map< string, string > & TdkDlgController::getDlgFactoryNames (  )  [inline, static]

Retrieves the factories names map.

Returns:
Map of factories names.

void TdkDlgController::removeDialog (  )  [inline]

Removes the controlled dialog.

TdkInterfaceController * TdkDlgController::getInterfaceController (  )  [inline]

Retrieves the dialogs interface controller.

Returns:
Dialogs interface controller.


Member Data Documentation

map<string, string> TdkDlgController::_dlgFactoryNames [static]

Factories names map.

TdkDlg* TdkDlgController::_dlg [protected]

Pointer to controlled dialog.

TdkInterfaceController* TdkDlgController::_pic [protected]

Pointer to dialog's interface controller.


The documentation for this class was generated from the following file:
Generated on Fri Jun 15 16:54:36 2007 for TDK by  doxygen 1.5.2