26 #ifndef __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
27 #define __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
30 #include "../../common/Singleton.h"
43 #include <QStringList>
117 virtual void setConfigFile(
const std::string& configFileName);
124 virtual void setMsgBoxParentWidget(QWidget* w);
151 void addToolBar(
const QString&
id, QToolBar* bar);
163 void registerToolBar(
const QString&
id, QToolBar* bar);
172 QToolBar* getToolBar(
const QString&
id)
const;
179 std::vector<QToolBar*> getToolBars()
const;
186 void removeToolBar(
const QString&
id);
193 void registerMenu(QMenu* mnu);
202 QMenu* findMenu(
const QString&
id)
const;
213 QMenu* getMenu(
const QString&
id);
220 void registerMenuBar(QMenuBar* bar);
229 QMenuBar* findMenuBar(
const QString&
id)
const;
240 QMenuBar* getMenuBar(
const QString&
id)
const;
251 QAction* findAction(
const QString&
id)
const;
260 QActionGroup* findActionGroup(
const QString&
id)
const;
282 void removeListener(QObject* obj);
302 virtual void initialize();
313 virtual void initializePlugins();
352 virtual void finalize();
359 QSettings& getSettings();
387 const QString& getAppName()
const;
394 const QString& getAppTitle()
const;
403 const QString& getAboutLogo()
const;
405 const QString& getTlibLogo()
const;
412 const QString& getAppIconName()
const;
419 const QString& getAppPluginsPath()
const;
433 int getDefaultSRID()
const;
440 QColor getSelectionColor()
const;
443 void setSelectionColor(
const QColor& c);
450 QWidget* getMainWindow()
const;
452 void setResetTerraLibFlag(
const bool& status);
454 const QString& getUserDataDir()
const;
501 #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.