#include <TdkImportRasterDlgController.h>
Inheritance diagram for TdkImportRasterDlgController:
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 std::string | getOpenFileName () |
Retrieves the complete file name. | |
virtual void | setDbIndx (const int &dbIdx) |
Updates the current database driver index. | |
virtual TdkLayer * | getCreatedLayer () |
Retrieves the created layer. | |
virtual void | showMessage (const TdkDlg::TdkErrorMsgTypes &type, const std::string &msg) |
Shows a message dialog. | |
virtual void | openFileClicked () |
Action called on open file button clicked. | |
virtual void | okClicked () |
Action called on ok button clicked. | |
virtual void | validateClicked () |
Action called on validate button clicked. | |
virtual void | layerNameActivate () |
Action called when layer name list changed current item. | |
virtual void | objectIdActivated () |
Action called when object id list changed current item. | |
Public Member Functions | |
Constructor and Destructor Methods | |
Methods related to instantiation and destruction. | |
TdkImportRasterDlgController (TdkImportRasterDlg *dlg) | |
Constructor. | |
virtual | ~TdkImportRasterDlgController () |
Virtual destructor. | |
Protected Attributes | |
TdkLayer * | _importedLayer |
Layer created. | |
TeRaster * | _raster |
Pointer to a raster. | |
TeProjection * | _projection |
Pointer to projection of created layer. | |
int | _dbIdx |
Current database driver index. | |
int | _curLayerId |
Select layer id. |
TODO: 1) 2) 3)
TdkImportRasterDlgController::TdkImportRasterDlgController | ( | TdkImportRasterDlg * | dlg | ) |
Constructor.
dlg | Pointer to raster import dialog. |
TdkImportRasterDlgController::~TdkImportRasterDlgController | ( | ) | [virtual] |
Virtual destructor.
void TdkImportRasterDlgController::setInitialState | ( | ) | [virtual] |
std::string TdkImportRasterDlgController::dlgName | ( | ) | [virtual] |
Retrieves dialog's definiton name.
Implements TdkDlgController.
void TdkImportRasterDlgController::update | ( | TdkSubject * | changedObject | ) | [virtual] |
This method is called when the user interacts with the dialog.
changedObject | Object that signals a change. |
Implements TdkObserver.
std::string TdkImportRasterDlgController::getOpenFileName | ( | ) | [virtual] |
Retrieves the complete file name.
void TdkImportRasterDlgController::setDbIndx | ( | const int & | dbIdx | ) | [virtual] |
Updates the current database driver index.
Current | database driver index. All drivers are stored in connections pool. |
TdkLayer * TdkImportRasterDlgController::getCreatedLayer | ( | ) | [virtual] |
Retrieves the created layer.
void TdkImportRasterDlgController::showMessage | ( | const TdkDlg::TdkErrorMsgTypes & | type, | |
const std::string & | msg | |||
) | [virtual] |
Shows a message dialog.
type | Message type. | |
msg | Message to be shown. |
void TdkImportRasterDlgController::openFileClicked | ( | ) | [protected, virtual] |
Action called on open file button clicked.
void TdkImportRasterDlgController::okClicked | ( | ) | [protected, virtual] |
Action called on ok button clicked.
changes the cursor
Inserts an item in layer tree legend
changes the cursor
void TdkImportRasterDlgController::validateClicked | ( | ) | [protected, virtual] |
Action called on validate button clicked.
void TdkImportRasterDlgController::layerNameActivate | ( | ) | [protected, virtual] |
Action called when layer name list changed current item.
void TdkImportRasterDlgController::objectIdActivated | ( | ) | [protected, virtual] |
Action called when object id list changed current item.
TdkLayer* TdkImportRasterDlgController::_importedLayer [protected] |
Layer created.
TeRaster* TdkImportRasterDlgController::_raster [protected] |
Pointer to a raster.
TeProjection* TdkImportRasterDlgController::_projection [protected] |
Pointer to projection of created layer.
int TdkImportRasterDlgController::_dbIdx [protected] |
Current database driver index.
int TdkImportRasterDlgController::_curLayerId [protected] |
Select layer id.