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 Project * | ReadProject (const std::string &uri) |
| Reads and return a te::qt::af::Project from the file. More... | |
| TEQTAFEXPORT Project * | ReadProject (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... | |
Namespace for the Qt Application Framework module of TerraLib.
| void te::qt::af::AddActionToCustomToolbars | ( | QAction * | act | ) |
Check QSettings for existance of act and adds it if necessary.
| act | Action 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.
| bar | Bar 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 | ( | ) |
Definition at line 643 of file Utils.cpp.
Referenced by te::qt::af::DataSetTableDockWidget::DataSetTableDockWidget().
| QColor te::qt::af::GetDefaultDisplayColorFromSettings | ( | ) |
Definition at line 603 of file Utils.cpp.
Referenced by te::qt::af::MapDisplay::MapDisplay().
| QString te::qt::af::GetLastDatasourceFromSettings | ( | ) |
Definition at line 489 of file Utils.cpp.
Referenced by te::qt::af::BaseApplication::onAddDataSetLayerTriggered(), and te::qt::af::BaseApplication::onDataSourceExplorerTriggered().
| bool te::qt::af::GetOpenLastProjectFromSettings | ( | ) |
Definition at line 496 of file Utils.cpp.
Referenced by te::qt::af::BaseApplication::init().
| void te::qt::af::GetProjectInformationsFromSettings | ( | QString & | defaultAuthor, |
| int & | maxSaved | ||
| ) |
Definition at line 455 of file Utils.cpp.
Referenced by te::qt::af::BaseApplication::newProject(), te::qt::af::ProjectWidget::resetState(), and te::qt::af::ApplicationController::updateRecentProjects().
| QString te::qt::af::GetStyleSheetFromColors | ( | QColor | primaryColor, |
| QColor | secondaryColor | ||
| ) |
Definition at line 615 of file Utils.cpp.
References GetRGBString().
Referenced by GetStyleSheetFromSettings(), te::qt::af::TableWidget::onAlternateRowColorsGroupBoxClicked(), te::qt::af::DataSetTableDockWidget::onApplicationTriggered(), te::qt::af::TableWidget::onPrimaryPushButtonClicked(), te::qt::af::TableWidget::onSecondaryPushButtonClicked(), and te::qt::af::TableWidget::TableWidget().
| QString te::qt::af::GetStyleSheetFromSettings | ( | ) |
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.
| uri | Location of the te::qt::af::Project 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().
| te::qt::af::Project * te::qt::af::ReadProject | ( | te::xml::Reader & | reader | ) |
Reads and return a te::qt::af::Project using reader XML reader.
| reader | The XML reader to be used. |
Definition at line 90 of file Utils.cpp.
References te::xml::END_DOCUMENT, te::xml::END_ELEMENT, te::xml::Reader::getElementLocalName(), te::xml::Reader::getElementValue(), te::qt::af::ApplicationController::getInstance(), te::common::Singleton< Layer >::getInstance(), te::xml::Reader::getNodeType(), te::xml::Reader::next(), te::serialize::Layer::read(), te::xml::START_ELEMENT, and te::xml::VALUE.
| std::vector< QToolBar * > te::qt::af::ReadToolBarsFromSettings | ( | QWidget * | barsParent = 0 | ) |
Returns a vector of tool bars registered in the QSettings.
| 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.
| bar | Bar 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.
| project | The te::qt::af::Project to be saved. |
| uri | File 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::Save | ( | const Project & | project, |
| te::xml::Writer & | writer | ||
| ) |
Saves the informations of the te::qt::af::Project using writer XML writer.
| project | The te::qt::af::Project to be saved. |
| writer | The XML writer to be used. |
Definition at line 183 of file Utils.cpp.
References te::qt::af::Project::getAuthor(), te::common::Singleton< Layer >::getInstance(), te::qt::af::Project::getTitle(), te::qt::af::Project::getTopLayers(), TR_QT_AF, te::serialize::Layer::write(), te::xml::Writer::writeAttribute(), te::xml::Writer::writeElement(), te::xml::Writer::writeEndElement(), te::xml::Writer::writeStartDocument(), and te::xml::Writer::writeStartElement().
| void te::qt::af::SaveDataSourcesFile | ( | ) |
Saves data sources file.
Definition at line 283 of file Utils.cpp.
References te::common::Singleton< UserApplicationSettings >::getInstance(), te::common::ApplicationSettings::getValue(), and te::serialize::xml::Save().
Referenced by te::qt::af::ApplicationController::finalize(), te::qt::af::BaseApplication::onSaveProjectAsTriggered(), and te::qt::af::BaseApplication::onSaveProjectTriggered().
| void te::qt::af::SaveLastDatasourceOnSettings | ( | const QString & | dsType | ) |
Definition at line 475 of file Utils.cpp.
Referenced by te::qt::af::BaseApplication::onAddDataSetLayerTriggered(), and te::qt::af::BaseApplication::onDataSourceExplorerTriggered().
| void te::qt::af::SaveOpenLastProjectOnSettings | ( | bool | openLast | ) |
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 | ||
| ) |
Unsaved star.
Definition at line 585 of file Utils.cpp.
Referenced by te::qt::af::BaseApplication::onApplicationTriggered(), te::qt::af::BaseApplication::onSaveProjectAsTriggered(), and te::qt::af::BaseApplication::onSaveProjectTriggered().
| void te::qt::af::UpdateApplicationPlugins | ( | ) |
Update plugins file.
Definition at line 293 of file Utils.cpp.
References te::common::Singleton< PluginManager >::getInstance(), te::plugin::PluginInfo::m_folder, and te::plugin::PluginInfo::m_name.
Referenced by te::qt::af::ApplicationController::finalize().
| void te::qt::af::UpdateToolBarsInTheSettings | ( | ) |
Update the existing tool bars.
| bars | Set 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.
| prjFiles | List of the files containing projects. |
| prjTitles | List of the titles of the projects. |
| userConfigFile | Name 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().