26 #ifndef __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
27 #define __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
30 #include "../../common/Singleton.h"
43 #include <QStringList>
108 virtual void setConfigFile(
const std::string& configFileName);
115 virtual void setMsgBoxParentWidget(QWidget* w);
142 void addToolBar(
const QString&
id, QToolBar* bar);
154 void registerToolBar(
const QString&
id, QToolBar* bar);
163 QToolBar* getToolBar(
const QString&
id)
const;
170 std::vector<QToolBar*> getToolBars()
const;
177 void removeToolBar(
const QString&
id);
184 void registerMenu(QMenu* mnu);
193 QMenu* findMenu(
const QString&
id)
const;
204 QMenu* getMenu(
const QString&
id);
211 void registerMenuBar(QMenuBar* bar);
220 QMenuBar* findMenuBar(
const QString&
id)
const;
231 QMenuBar* getMenuBar(
const QString&
id)
const;
242 QAction* findAction(
const QString&
id)
const;
251 QActionGroup* findActionGroup(
const QString&
id)
const;
273 void removeListener(QObject* obj);
293 virtual void initialize();
304 virtual void initializePlugins();
313 virtual void finalize();
315 virtual void finalizePlugins();
322 QSettings& getSettings();
350 const QString& getAppName()
const;
357 const QString& getAppTitle()
const;
366 const QString& getAboutLogo()
const;
368 const QString& getTlibLogo()
const;
375 const QString& getAppIconName()
const;
382 const QString& getAppPluginsPath()
const;
396 int getDefaultSRID()
const;
403 QColor getSelectionColor()
const;
406 void setSelectionColor(
const QColor& c);
413 QWidget* getMainWindow()
const;
415 void setResetTerraLibFlag(
const bool& status);
417 const QString& getUserDataDir()
const;
459 #endif // __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
std::string m_appUserSettingsFile
Name of the user settings file.
std::set< QObject * > m_applicationItems
The list of registered application items.
QString m_appIconName
Icon used in the application.
A base class for application events.
QColor m_selectionColor
Default selection color.
The base API for TerraLib applications.
std::map< QString, QToolBar * > m_toolbars
Toolbars registered.
Configuration flags for the TerraLib Application Framework.
QString m_appPluginsPath
Name of the plugins path.
QString m_appTitle
Application title.
std::vector< QMenu * > m_menus
Menus registered.
QWidget * m_msgBoxParentWidget
Parent used to show message boxes.
std::string m_appConfigFile
The application framework configuration file.
QString m_appHelpFile
Name of the help file.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::string m_appDatasourcesFile
Name of the file containing datasources used.
QString m_appToolBarDefaultIconSize
Size of the tool buttons.
int m_defaultSRID
Default SRID value.
QString m_appIconThemeDir
Directory of the application icon theme.
QString m_appDefaultIconTheme
Name of the icon theme to be used.
std::vector< QMenuBar * > m_menuBars
Menu bars registered.
QString m_appOrganization
Organization name.
bool m_initialized
A flag indicating if the controller is initialized.
QString m_appName
Application name.
Template support for singleton pattern.
QString m_userDataDir
The data dir used to store data files.