TdkMainDlgController Class Reference

Defines the TdkMainDlgController class. This class defines the main dialog controller. More...

#include <TdkMainDlgController.h>

Inheritance diagram for TdkMainDlgController:

TdkDlgController TdkObserver TdkSubject TdkMainDlgControllerDecorator List of all members.

Behavioral Methods

Methods related connect database dialog behavior.

virtual void setInitialState ()
 Sets the initial state of the dialog.
virtual std::string dlgName ()
 Retrieves dialog's definiton name.
virtual void update (TdkSubject *changedObject)
 This method is called when the user interacts with the dialog.
virtual void databaseOkClicked ()
 Action called on database connection dialog ok button clicked.
virtual void init ()
 Initializes the controller.
virtual void viewItemChanged ()
 Action called on view selected item changes.
virtual void themeItemChanged ()
 Action called on theme selected item changes.
virtual void themeItemVisibilityChanged ()
 Action called on theme item visibility changes.
virtual void drawClicked ()
 Action called on draw button clicked.
virtual void closeDB ()
 Action called when database connections closed.
virtual void createLayerItem (TdkLayer *layer)
 Creates a layer tree legend item.
virtual void createThemeItem (TdkTheme *theme)
 Creates a theme tree legend item.
virtual TdkViewTreeLegendItemcreateViewItem (TdkView *view)
 Creates a view tree legend item.
virtual void execDbListPopupMnu ()
 Shows database popup menu.
virtual void execViewListPopupMenu ()
 Shows view popup menu.
virtual TdkApplicationController *& getAppController ()
virtual void removeView ()
 Removes the selected view.
virtual void removeTheme ()
 Removes the selected theme.
virtual void loadProject (const std::string &name) throw (TdkException)
 Loads the project named 'name'.
virtual void loadLayerTree ()
 Loads the layers tree legend.
virtual void loadViewTree ()
 Loads the views tree legend.
virtual void createProject (const std::string &name)
 Creates a project named 'name'.
virtual void resetView ()
 Fit current view.

Public Member Functions

Constructor and Destructor Methods
Methods related to instantiation and destruction.

 TdkMainDlgController (TdkMainDlg *mainDlg)
 Constructor.
virtual ~TdkMainDlgController ()
 Virtual destructor.

Protected Member Functions

virtual TdkApplicationControllercreateApplicationController ()

Protected Attributes

TdkApplicationController_appController
 Pointer to TdkApplicationController.

Detailed Description

Defines the TdkMainDlgController class. This class defines the main dialog controller.

TODO: 1) 2) 3)

See also:
TdkDlgController, TdkImportRasterDlg, TdkSubject


Constructor & Destructor Documentation

TdkMainDlgController::TdkMainDlgController ( TdkMainDlg mainDlg  ) 

Constructor.

Parameters:
dlg Pointer to raster import dialog.

TdkMainDlgController::~TdkMainDlgController (  )  [virtual]

Virtual destructor.


Member Function Documentation

void TdkMainDlgController::setInitialState (  )  [virtual]

Sets the initial state of the dialog.

Implements TdkDlgController.

std::string TdkMainDlgController::dlgName (  )  [virtual]

Retrieves dialog's definiton name.

Returns:
Returns the definition TDK_MAIN_DLG_NAME.

Implements TdkDlgController.

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

This method is called when the user interacts with the dialog.

Parameters:
changedObject Object that signals a change.

Implements TdkObserver.

Reimplemented in TdkMainDlgControllerDecorator.

void TdkMainDlgController::databaseOkClicked (  )  [virtual]

Action called on database connection dialog ok button clicked.

void TdkMainDlgController::init (  )  [virtual]

Initializes the controller.

Reimplemented in TdkMainDlgControllerDecorator.

void TdkMainDlgController::viewItemChanged (  )  [virtual]

Action called on view selected item changes.

void TdkMainDlgController::themeItemChanged (  )  [virtual]

Action called on theme selected item changes.

void TdkMainDlgController::themeItemVisibilityChanged (  )  [virtual]

Action called on theme item visibility changes.

void TdkMainDlgController::drawClicked (  )  [virtual]

Action called on draw button clicked.

void TdkMainDlgController::closeDB (  )  [virtual]

Action called when database connections closed.

void TdkMainDlgController::createLayerItem ( TdkLayer layer  )  [virtual]

Creates a layer tree legend item.

Parameters:
layer Layer to be created in layers tree legend.

void TdkMainDlgController::createThemeItem ( TdkTheme theme  )  [virtual]

Creates a theme tree legend item.

Parameters:
theme Theme to be created in views tree legend.

TdkViewTreeLegendItem * TdkMainDlgController::createViewItem ( TdkView view  )  [virtual]

Creates a view tree legend item.

Parameters:
view View to be created in views tree legend.
Returns:
View tree legend item created.

void TdkMainDlgController::execDbListPopupMnu (  )  [virtual]

Shows database popup menu.

void TdkMainDlgController::execViewListPopupMenu (  )  [virtual]

Shows view popup menu.

TdkApplicationController *& TdkMainDlgController::getAppController (  )  [virtual]

void TdkMainDlgController::removeView (  )  [virtual]

Removes the selected view.

void TdkMainDlgController::removeTheme (  )  [virtual]

Removes the selected theme.

void TdkMainDlgController::loadProject ( const std::string &  name  )  throw (TdkException) [protected, virtual]

Loads the project named 'name'.

Parameters:
Project's name.

void TdkMainDlgController::loadLayerTree (  )  [protected, virtual]

Loads the layers tree legend.

void TdkMainDlgController::loadViewTree (  )  [protected, virtual]

Loads the views tree legend.

void TdkMainDlgController::createProject ( const std::string &  name  )  [protected, virtual]

Creates a project named 'name'.

Parameters:
Project's name.

void TdkMainDlgController::resetView (  )  [protected, virtual]

Fit current view.

TdkApplicationController * TdkMainDlgController::createApplicationController (  )  [protected, virtual]


Member Data Documentation

TdkApplicationController* TdkMainDlgController::_appController [protected]

Pointer to TdkApplicationController.


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