The API for controller of TerraView application. More...
#include <TerraViewController.h>
Public Member Functions | |
| const QString & | getAppProjectExtension () const |
| Returns the application project extension. More... | |
| QString | getExtensionFilter () |
| Returns the project extension filter . More... | |
| QString | getMostRecentProject () const |
| Returns the most recent project. More... | |
| virtual void | initializeProjectMenus () |
| Initializes the menus for the most recent open projects. More... | |
| TerraViewController (te::qt::af::ApplicationController *app, std::string appConfigFile) | |
| Constructor. More... | |
| void | updateRecentProjects (const QString &prjFile, const QString &prjTitle) |
| Update the list of recent projects. This is commonly used when there's a new most recent project. More... | |
| virtual | ~TerraViewController () |
| Destructor. More... | |
Protected Attributes | |
| te::qt::af::ApplicationController * | m_app |
| QString | m_appProjectExtension |
| Application project extension. More... | |
| QStringList | m_recentProjs |
| List of the recent projects. More... | |
| QStringList | m_recentProjsTitles |
| List of the titles of the recent projects. More... | |
The API for controller of TerraView application.
Definition at line 59 of file TerraViewController.h.
| TerraViewController::TerraViewController | ( | te::qt::af::ApplicationController * | app, |
| std::string | appConfigFile | ||
| ) |
Constructor.
| parent | The parent object. |
Definition at line 55 of file TerraViewController.cpp.
References te::common::Singleton< T >::getInstance(), and m_appProjectExtension.
|
virtual |
Destructor.
Definition at line 64 of file TerraViewController.cpp.
References m_appProjectExtension, m_recentProjs, and m_recentProjsTitles.
| const QString & TerraViewController::getAppProjectExtension | ( | ) | const |
Returns the application project extension.
Definition at line 193 of file TerraViewController.cpp.
References m_appProjectExtension.
Referenced by TerraView::onSaveProjectTriggered().
| QString TerraViewController::getExtensionFilter | ( | ) |
Returns the project extension filter .
Definition at line 204 of file TerraViewController.cpp.
References te::qt::af::ApplicationController::getAppName(), m_app, and m_appProjectExtension.
Referenced by TerraView::onOpenProjectTriggered().
| QString TerraViewController::getMostRecentProject | ( | ) | const |
Returns the most recent project.
Definition at line 199 of file TerraViewController.cpp.
References m_recentProjs.
|
virtual |
Initializes the menus for the most recent open projects.
Definition at line 73 of file TerraViewController.cpp.
References te::qt::af::ApplicationController::getAppTitle(), te::common::Singleton< SplashScreenManager >::getInstance(), te::qt::af::ApplicationController::getMainWindow(), te::qt::af::ApplicationController::getMenu(), m_app, m_recentProjs, and m_recentProjsTitles.
Referenced by TerraView::init().
| void TerraViewController::updateRecentProjects | ( | const QString & | prjFile, |
| const QString & | prjTitle | ||
| ) |
Update the list of recent projects. This is commonly used when there's a new most recent project.
| prj_file | Complete file name for the project file. |
| prj_title | Title of the project. |
Definition at line 133 of file TerraViewController.cpp.
References te::qt::af::ApplicationController::findAction(), te::qt::af::ApplicationController::getMenu(), GetProjectInformationsFromSettings(), m_app, m_recentProjs, and m_recentProjsTitles.
Referenced by TerraView::onSaveProjectTriggered().
|
protected |
Definition at line 115 of file TerraViewController.h.
Referenced by getExtensionFilter(), initializeProjectMenus(), and updateRecentProjects().
|
protected |
Application project extension.
Definition at line 117 of file TerraViewController.h.
Referenced by getAppProjectExtension(), getExtensionFilter(), TerraViewController(), and ~TerraViewController().
|
protected |
List of the recent projects.
Definition at line 118 of file TerraViewController.h.
Referenced by getMostRecentProject(), initializeProjectMenus(), updateRecentProjects(), and ~TerraViewController().
|
protected |
List of the titles of the recent projects.
Definition at line 119 of file TerraViewController.h.
Referenced by initializeProjectMenus(), updateRecentProjects(), and ~TerraViewController().