TdkAddThemeDlgController Class Reference

#include <TdkAddThemeDlgController.h>

Inheritance diagram for TdkAddThemeDlgController:

TdkDlgController TdkObserver TdkSubject List of all members.

Behavioral Methods

Methods related dialog's behavior.

virtual void setInitialState ()
 Sets the initial state of the dialog.
virtual string dlgName ()
 Retrieves dialog's definiton name.
virtual void update (TdkSubject *changedObject)
 Updates the dialog state. This method is called every time dialog's state changed.
virtual void setViewList (const vector< string > &viewList)
 Sets the view list in dialog.
virtual void setLayerList (const vector< string > &layerList)
 Sets the layer list in dialog.
virtual void setLayerListCurrentItem (const int &itemIdx)
 Sets the layers list current item.
virtual void setViewListCurrentItem (const int &itemIdx)
 Sets the views list current item.
virtual void setDbIdx (const int &dbIdx) throw (TdkException)
 Sets the db idx parameter. This parameter allows access the database driver in the connections pool.
virtual TdkThemegetCreatedTheme ()
 Retrieves the created theme.
virtual int getActionId (const string &action)
 Retrieves the action generated by user. Given a action name retrives the correspondent int value.
virtual void layerTablesClicked ()
 Action called when layer tables list changed.
virtual void themeTablesClicked ()
 Action called when theme tables list changed.
virtual void layerListActivated ()
 Action called when layers names list changed.
virtual void viewListActivated ()
 Action called when views names list changed.
virtual void addTableClicked ()
 Action called when add table button clicked.
virtual void removeTableClicked ()
 Action called when remove table button clicked.
virtual void okButtonClicked ()
 Action called when ok button clicked.
virtual TdkLayergetCurrentLayer ()
 Method's called when the program needs to know current layer selected in layer list.

Public Member Functions

Constructor and Destructor Methods
Methods related to instantiation and destruction.

 TdkAddThemeDlgController (TdkAddThemeDlg *dlg)
 Constructor.
virtual ~TdkAddThemeDlgController ()
 Destructor.

Private Attributes

int _viewId
 Current view id.
int _layerId
 Current layer id.
TeDatabase * _db
 Pointer to a database driver.
TdkTheme_createdTheme
 Pointer to theme created.

Constructor & Destructor Documentation

TdkAddThemeDlgController::TdkAddThemeDlgController ( TdkAddThemeDlg dlg  ) 

Constructor.

Parameters:
dlg Pointer to a create theme dialog

TdkAddThemeDlgController::~TdkAddThemeDlgController (  )  [virtual]

Destructor.


Member Function Documentation

void TdkAddThemeDlgController::setInitialState (  )  [virtual]

Sets the initial state of the dialog.

Implements TdkDlgController.

string TdkAddThemeDlgController::dlgName (  )  [virtual]

Retrieves dialog's definiton name.

Returns:
Returns the definition TDK_ADD_THEME_DLG_NAME

Implements TdkDlgController.

void TdkAddThemeDlgController::update ( TdkSubject changedObject  )  [virtual]

Updates the dialog state. This method is called every time dialog's state changed.

Parameters:
changedObject The object that changed.

Implements TdkObserver.

void TdkAddThemeDlgController::setViewList ( const vector< string > &  viewList  )  [virtual]

Sets the view list in dialog.

Parameters:
viewList Vector with all views names.

void TdkAddThemeDlgController::setLayerList ( const vector< string > &  layerList  )  [virtual]

Sets the layer list in dialog.

Parameters:
layerList Vector with all layers names.

void TdkAddThemeDlgController::setLayerListCurrentItem ( const int &  itemIdx  )  [virtual]

Sets the layers list current item.

Parameters:
itemIdx Item index in list.

void TdkAddThemeDlgController::setViewListCurrentItem ( const int &  itemIdx  )  [virtual]

Sets the views list current item.

Parameters:
itemIdx Item index in list.

void TdkAddThemeDlgController::setDbIdx ( const int &  dbIdx  )  throw (TdkException) [virtual]

Sets the db idx parameter. This parameter allows access the database driver in the connections pool.

Parameters:
dbIdx Index of database driver in connections pool.

TdkTheme * TdkAddThemeDlgController::getCreatedTheme (  )  [virtual]

Retrieves the created theme.

Returns:
Returns the created theme.

int TdkAddThemeDlgController::getActionId ( const string &  action  )  [virtual]

Retrieves the action generated by user. Given a action name retrives the correspondent int value.

Returns:
Returns action correspondent int value.

Reimplemented from TdkDlgController.

void TdkAddThemeDlgController::layerTablesClicked (  )  [protected, virtual]

Action called when layer tables list changed.

void TdkAddThemeDlgController::themeTablesClicked (  )  [protected, virtual]

Action called when theme tables list changed.

void TdkAddThemeDlgController::layerListActivated (  )  [protected, virtual]

Action called when layers names list changed.

void TdkAddThemeDlgController::viewListActivated (  )  [protected, virtual]

Action called when views names list changed.

void TdkAddThemeDlgController::addTableClicked (  )  [protected, virtual]

Action called when add table button clicked.

void TdkAddThemeDlgController::removeTableClicked (  )  [protected, virtual]

Action called when remove table button clicked.

void TdkAddThemeDlgController::okButtonClicked (  )  [protected, virtual]

Action called when ok button clicked.

TdkLayer * TdkAddThemeDlgController::getCurrentLayer (  )  [protected, virtual]

Method's called when the program needs to know current layer selected in layer list.

Returns:
Returns the layer selected in layers names list.


Member Data Documentation

int TdkAddThemeDlgController::_viewId [private]

Current view id.

int TdkAddThemeDlgController::_layerId [private]

Current layer id.

TeDatabase* TdkAddThemeDlgController::_db [private]

Pointer to a database driver.

TdkTheme* TdkAddThemeDlgController::_createdTheme [private]

Pointer to theme created.


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