All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
te::qt::af Namespace Reference

Namespace for the Qt Application Framework module of TerraLib. More...

Namespaces

 evt
 

Classes

class  AbstractSettingWidget
 A frame for setting Table options. More...
 
class  ApplicationController
 The base API for TerraLib applications. More...
 
class  ApplicationPlugins
 A singleton for managing the application plugins. More...
 
class  BaseApplication
 A QMainWindow to be used as the basis for TerraLib applications. More...
 
class  ChartDisplayDockWidget
 A dock widget for ChartDisplayWidget objects. More...
 
class  DataSetTableDockWidget
 A dock widget for DataSetTableView objects. More...
 
class  DisplayWidget
 A frame for setting display options. More...
 
class  DisplayWidgetFactory
 A factory to build the display frame object. More...
 
class  LayerExplorer
 A connector for the te::qt::widgets::LayerExplorer class to the Application Framework. More...
 
class  LayoutEditor
 
class  MapDisplay
 A connector of the te::qt::widgets::MapDisplay class to the Application Framework. More...
 
class  MenuBarModel
 Defines a model, based on a QMenuBar, to present all system buttons as a table. More...
 
class  Project
 This class models the concept of a project for the TerraLib Application Framework. More...
 
class  ProjectInfoDialog
 
class  ProjectInfoWidget
 A widget for present te::qt::af::Project informations. More...
 
class  ProjectWidget
 A frame for setting grid options. More...
 
class  ProjectWidgetFactory
 A factory to build the project frame object. More...
 
class  SettingsDialog
 
class  SettingsWidgetsFactory
 
class  SplashScreenManager
 A singleton for holding he application splash screen. More...
 
class  StyleExplorer
 A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework. More...
 
class  TableWidget
 A frame for setting Table options. More...
 
class  TableWidgetFactory
 A factory to build the Table widget object. More...
 
class  ToolbarsWidget
 
class  ToolbarsWidgetFactory
 A factory to build the Table widget object. More...
 
class  UserPlugins
 A singleton for managing the plugins enabled by a specific user. More...
 

Functions

TEQTAFEXPORT void AddActionToCustomToolbars (QAction *act)
 Check QSettings for existance of act and adds it if necessary. More...
 
TEQTAFEXPORT void AddToolBarToSettings (QToolBar *bar)
 Update settings with a new tool bar. More...
 
TEQTAFEXPORT void CreateDefaultSettings ()
 Creates a default QSettings. More...
 
TEQTAFEXPORT bool GetAlternateRowColorsFromSettings ()
 
TEQTAFEXPORT QColor GetDefaultDisplayColorFromSettings ()
 
TEQTAFEXPORT QString GetLastDatasourceFromSettings ()
 
TEQTAFEXPORT bool GetOpenLastProjectFromSettings ()
 
TEQTAFEXPORT void GetProjectInformationsFromSettings (QString &defaultAuthor, int &maxSaved)
 
TEQTAFEXPORT QString GetStyleSheetFromColors (QColor primaryColor, QColor secondaryColor)
 
TEQTAFEXPORT QString GetStyleSheetFromSettings ()
 
TEQTAFEXPORT ProjectReadProject (const std::string &uri)
 Reads and return a te::qt::af::Project from the file. More...
 
TEQTAFEXPORT ProjectReadProject (te::xml::Reader &reader)
 Reads and return a te::qt::af::Project using reader XML reader. More...
 
TEQTAFEXPORT std::vector
< QToolBar * > 
ReadToolBarsFromSettings (QWidget *barsParent=0)
 Returns a vector of tool bars registered in the QSettings. More...
 
TEQTAFEXPORT void RemoveToolBarFromSettings (QToolBar *bar)
 Removes a tool bar from the settings. More...
 
TEQTAFEXPORT void RestoreState (QMainWindow *mainWindow)
 
TEQTAFEXPORT void Save (const Project &project, const std::string &uri)
 Saves the informations of the project in the uri file. More...
 
TEQTAFEXPORT void Save (const Project &project, te::xml::Writer &writer)
 Saves the informations of the te::qt::af::Project using writer XML writer. More...
 
TEQTAFEXPORT void SaveDataSourcesFile ()
 Saves data sources file. More...
 
TEQTAFEXPORT void SaveLastDatasourceOnSettings (const QString &dsType)
 
TEQTAFEXPORT void SaveOpenLastProjectOnSettings (bool openLast)
 
TEQTAFEXPORT void SaveProjectInformationsOnSettings (const QString &defaultAuthor, const int &maxSaved)
 
TEQTAFEXPORT void SaveState (QMainWindow *mainWindow)
 
TEQTAFEXPORT QString UnsavedStar (const QString windowTitle, bool isUnsaved)
 Unsaved star. More...
 
TEQTAFEXPORT void UpdateApplicationPlugins ()
 Update plugins file. More...
 
TEQTAFEXPORT void UpdateToolBarsInTheSettings ()
 Update the existing tool bars. More...
 
TEQTAFEXPORT void UpdateUserSettings (const QStringList &prjFiles, const QStringList &prjTitles, const std::string &userConfigFile)
 Updates user settings file section about information of the projects. More...
 

Detailed Description

Namespace for the Qt Application Framework module of TerraLib.

Function Documentation

void te::qt::af::AddActionToCustomToolbars ( QAction *  act)

Check QSettings for existance of act and adds it if necessary.

Parameters
actAction to be inserted.

Definition at line 651 of file Utils.cpp.

Referenced by te::qt::plugins::gdal::Plugin::startup(), and te::qt::plugins::ogr::Plugin::startup().

void te::qt::af::AddToolBarToSettings ( QToolBar *  bar)

Update settings with a new tool bar.

Parameters
barBar to be added.

Definition at line 361 of file Utils.cpp.

References AddToolbarAndActions().

Referenced by te::qt::af::ToolbarsWidget::saveChanges().

void te::qt::af::CreateDefaultSettings ( )

Creates a default QSettings.

Definition at line 509 of file Utils.cpp.

Referenced by te::qt::af::ApplicationController::initialize().

bool te::qt::af::GetAlternateRowColorsFromSettings ( )
Returns

Definition at line 643 of file Utils.cpp.

Referenced by te::qt::af::DataSetTableDockWidget::DataSetTableDockWidget().

QColor te::qt::af::GetDefaultDisplayColorFromSettings ( )
Returns

Definition at line 603 of file Utils.cpp.

Referenced by te::qt::af::MapDisplay::MapDisplay().

QString te::qt::af::GetLastDatasourceFromSettings ( )
bool te::qt::af::GetOpenLastProjectFromSettings ( )
Returns

Definition at line 496 of file Utils.cpp.

Referenced by te::qt::af::BaseApplication::init().

void te::qt::af::GetProjectInformationsFromSettings ( QString &  defaultAuthor,
int &  maxSaved 
)
QString te::qt::af::GetStyleSheetFromSettings ( )
Returns

Definition at line 626 of file Utils.cpp.

References GetStyleSheetFromColors().

Referenced by te::qt::af::DataSetTableDockWidget::DataSetTableDockWidget().

te::qt::af::Project * te::qt::af::ReadProject ( const std::string &  uri)

Reads and return a te::qt::af::Project from the file.

Parameters
uriLocation of the te::qt::af::Project file.
Returns
A pointer to the te::qt::af::Project defined in the uri file.

Definition at line 62 of file Utils.cpp.

References te::xml::ReaderFactory::make(), te::qt::af::Project::setFileName(), te::xml::START_ELEMENT, and TR_QT_AF.

Referenced by te::qt::af::BaseApplication::openProject().

std::vector< QToolBar * > te::qt::af::ReadToolBarsFromSettings ( QWidget *  barsParent = 0)

Returns a vector of tool bars registered in the QSettings.

Parameters
barsParent

Definition at line 381 of file Utils.cpp.

Referenced by te::qt::af::BaseApplication::initToolbars().

void te::qt::af::RemoveToolBarFromSettings ( QToolBar *  bar)

Removes a tool bar from the settings.

Parameters
barBar to be removed.

Definition at line 372 of file Utils.cpp.

Referenced by RemoveBars().

void te::qt::af::RestoreState ( QMainWindow *  mainWindow)

Definition at line 445 of file Utils.cpp.

Referenced by te::qt::af::BaseApplication::resetState().

void te::qt::af::Save ( const Project &  project,
const std::string &  uri 
)

Saves the informations of the project in the uri file.

Parameters
projectThe te::qt::af::Project to be saved.
uriFile location.

Definition at line 172 of file Utils.cpp.

References te::serialize::xml::Save().

Referenced by te::qt::af::BaseApplication::onSaveProjectAsTriggered(), and te::qt::af::BaseApplication::onSaveProjectTriggered().

void te::qt::af::SaveLastDatasourceOnSettings ( const QString &  dsType)
void te::qt::af::SaveOpenLastProjectOnSettings ( bool  openLast)
Parameters

Definition at line 482 of file Utils.cpp.

Referenced by te::qt::af::ProjectWidget::saveChanges().

void te::qt::af::SaveProjectInformationsOnSettings ( const QString &  defaultAuthor,
const int &  maxSaved 
)

Definition at line 465 of file Utils.cpp.

Referenced by te::qt::af::ProjectWidget::saveChanges().

void te::qt::af::SaveState ( QMainWindow *  mainWindow)

Definition at line 435 of file Utils.cpp.

Referenced by te::qt::af::BaseApplication::closeEvent().

QString te::qt::af::UnsavedStar ( const QString  windowTitle,
bool  isUnsaved 
)
void te::qt::af::UpdateApplicationPlugins ( )
void te::qt::af::UpdateToolBarsInTheSettings ( )

Update the existing tool bars.

Parameters
barsSet with the existing tool bars.

Definition at line 341 of file Utils.cpp.

References AddToolbarAndActions(), te::qt::af::ApplicationController::getInstance(), and te::qt::af::ApplicationController::getToolBars().

Referenced by te::qt::af::ToolbarsWidget::saveChanges().

void te::qt::af::UpdateUserSettings ( const QStringList &  prjFiles,
const QStringList &  prjTitles,
const std::string &  userConfigFile 
)

Updates user settings file section about information of the projects.

Parameters
prjFilesList of the files containing projects.
prjTitlesList of the titles of the projects.
userConfigFileName of the user configuration file.

Definition at line 234 of file Utils.cpp.

References te::common::ApplicationSettings::changed(), te::common::ApplicationSettings::getAllSettings(), te::common::Singleton< PluginManager >::getInstance(), and te::common::Singleton< UserApplicationSettings >::getInstance().

Referenced by te::qt::af::ApplicationController::finalize().