Go to the documentation of this file.
26 #ifndef __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
27 #define __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
30 #include "../../common/Singleton.h"
43 #include <QStringList>
478 #endif // __TERRALIB_QT_AF_INTERNAL_APPLICATIONCONTROLLER_H
virtual ~ApplicationController()
Destructor.
std::string m_appConfigFile
The application framework configuration file.
const QString & getAppIconName() const
Returns the application icon.
QString m_appPluginsPath
Name of the plugins path.
void safeReadServersList(const std::string &fileName)
QString m_appTitle
Application title.
const QString & getAppName() const
Returns the application name.
std::string m_appDatasourcesFile
Name of the file containing datasources used.
std::vector< QToolBar * > getToolBars() const
Return the list of registered toolbars.
QString m_appToolBarDefaultIconSize
Size of the tool buttons.
The base API for TerraLib applications.
std::vector< QMenu * > m_menus
Menus registered.
void addToolBar(const QString &id, QToolBar *bar)
Register the toolbar in the list of the known toolbars and dispatch an event.
virtual void initializePlugins()
Load the plugin list and initialize the plugins enabled by the user.
void registerToolBar(const QString &id, QToolBar *bar)
Register the toolbar in the list of the known toolbars.
void removeListener(QObject *obj)
Remove the obj from the list of event listeners.
QString m_userDataDir
The data dir used to store data files.
const QString & getAppPluginsPath() const
Returns the plugins file path of application.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::string m_appUserSettingsFile
Name of the user settings file.
const QString & getAppTitle() const
Returns the application title.
void registerMenu(QMenu *mnu)
Register the mnu.
QWidget * getMainWindow() const
Returns main window.
QString m_appName
Application name.
const QString & getAppVersion() const
Returns the application version.
const QString & getAboutLogo() const
Returns the application project extension.
std::vector< QMenuBar * > m_menuBars
Menu bars registered.
virtual void finalize()
Finalize the application framework.
void setSelectionColor(const QColor &c)
Sets the application selection color.
QActionGroup * findActionGroup(const QString &id) const
Returns the action group identified by id or NULL if there's not an action group identified by id.
int m_defaultSRID
Default SRID value.
QString m_appIconThemeDir
Directory of the application icon theme.
QWidget * m_msgBoxParentWidget
Parent used to show message boxes.
QString m_appVersion
The application version.
void setResetTerraLibFlag(const bool &status)
A base class for application events.
void triggered(te::qt::af::evt::Event *)
Send events in broadcast for all registered components.
QString m_appDefaultIconTheme
Name of the icon theme to be used.
Template support for singleton pattern.
virtual void initialize()
Initializes the application framework.
QAction * findAction(const QString &id) const
Returns the action identified by id or NULL if there's not an action identified by id.
bool m_initialized
A flag indicating if the controller is initialized.
int getDefaultSRID() const
Returns the most recent project.
QMenuBar * findMenuBar(const QString &id) const
Returns the menu bar registered with key id.
QMenu * getMenu(const QString &id)
Returns a menu registered with key id.
ApplicationController()
Constructor.
std::set< QObject * > m_applicationItems
The list of registered application items.
QColor m_selectionColor
Default selection color.
const QString & getUserDataDir() const
QString m_appHelpFile
Name of the help file.
QToolBar * getToolBar(const QString &id) const
Return the toolbar identified by id or NULL if none is found.
std::map< QString, QToolBar * > m_toolbars
Toolbars registered.
virtual void setMsgBoxParentWidget(QWidget *w)
Tells the widget to be used as the parent of messages showned in a QMessageBox.
virtual void setConfigFile(const std::string &configFileName)
Tells wich configuration file to be used by the controller during its initialization.
virtual void finalizePlugins()
Proxy configuration file for TerraView (see terraview_config.h).
QColor getSelectionColor() const
Returns the application selection color.
const QString & getTlibLogo() const
QString m_appIconName
Icon used in the application.
QString m_appOrganization
Organization name.
void registerMenuBar(QMenuBar *bar)
Register the bar.
void addListener(QObject *obj, const ListenerType &type=BOTH)
Insert an application item that will listen to framework events.
void removeToolBar(const QString &id)
Removes the toolbar identified by id.
QMenuBar * getMenuBar(const QString &id) const
Returns a menu bar registered with key id.
static void prepareQtEnvironment(const QString &configFileName, const QString &splashFileName)
QSettings & getSettings()
Return the QSettings of the application. This can be used to add settings from external sources.
QMenu * findMenu(const QString &id) const
Returns the menu registered with key id.
void trigger(te::qt::af::evt::Event *)