TerraViewController Class Reference

The API for controller of TerraView application. More...

#include <TerraViewController.h>

Inheritance diagram for TerraViewController:

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::ApplicationControllerm_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...
 

Detailed Description

The API for controller of TerraView application.

Definition at line 59 of file TerraViewController.h.

Constructor & Destructor Documentation

TerraViewController::TerraViewController ( te::qt::af::ApplicationController app,
std::string  appConfigFile 
)

Constructor.

Parameters
parentThe parent object.
virtual TerraViewController::~TerraViewController ( )
virtual

Destructor.

Member Function Documentation

const QString& TerraViewController::getAppProjectExtension ( ) const

Returns the application project extension.

Returns
Application project extension.
QString TerraViewController::getExtensionFilter ( )

Returns the project extension filter .

Returns
Filter string.
QString TerraViewController::getMostRecentProject ( ) const

Returns the most recent project.

Returns
Application most recent opened project.
virtual void TerraViewController::initializeProjectMenus ( )
virtual

Initializes the menus for the most recent open projects.

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.

Parameters
prj_fileComplete file name for the project file.
prj_titleTitle of the project.

Member Data Documentation

te::qt::af::ApplicationController* TerraViewController::m_app
protected

Definition at line 115 of file TerraViewController.h.

QString TerraViewController::m_appProjectExtension
protected

Application project extension.

Definition at line 117 of file TerraViewController.h.

QStringList TerraViewController::m_recentProjs
protected

List of the recent projects.

Definition at line 118 of file TerraViewController.h.

QStringList TerraViewController::m_recentProjsTitles
protected

List of the titles of the recent projects.

Definition at line 119 of file TerraViewController.h.


The documentation for this class was generated from the following file: