Go to the documentation of this file.
26 #ifndef __TERRALIB_QT_AF_INTERNAL_UTILS_H
27 #define __TERRALIB_QT_AF_INTERNAL_UTILS_H
30 #include "../../common/Exception.h"
60 class ApplicationController;
363 #endif // __TERRALIB_QT_AF_INTERNAL_UTILS_H
TEQTAFEXPORT QString GetDateTime()
TEQTAFEXPORT std::vector< QToolBar * > ReadToolBarsFromSettings(te::qt::af::ApplicationController *appController, QWidget *barsParent=0)
Returns a vector of tool bars registered in the QSettings.
TEQTAFEXPORT void SaveState(QMainWindow *mainWindow)
TEQTAFEXPORT QColor GetDefaultDisplayColorFromSettings()
The base API for TerraLib applications.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
TEQTAFEXPORT void UpdateAppPluginsFile(const QString &fileName, const bool &removeOlder=true)
Changes the application plugins file location.
TEQTAFEXPORT void SaveLastDatasourceOnSettings(const QString &dsType)
TEQTAFEXPORT bool GetAlternateRowColorsFromSettings()
TEQTAFEXPORT void GetDPIValuesFromSettings(int &dpiX, int &dpiY)
Load setted dpi X and Y. If there is no configuration to load, it fills dpiX and dpiY with -1.
A class that models a XML writer object built on top of Xerces-C++.
TEQTAFEXPORT QString GetLastDatasourceFromSettings()
TEQTAFEXPORT std::string GetLastFormerVersionPath(te::qt::af::ApplicationController *appController)
TEQTAFEXPORT QString GetGenerationDate()
Writes the configuration file. It updates the application settings.
TEQTAFEXPORT void AddToolBarToSettings(QToolBar *bar)
Update settings with a new tool bar.
TEQTAFEXPORT void SetDateTime(const QString &dateTime)
TEQTAFEXPORT QString GetStyleSheetFromSettings()
TEQTAFEXPORT bool IsLowerVersion(const std::string &version1, const std::string &version2)
It compares two strings in the context of sistem version.
TEQTAFEXPORT void UpdateToolBarsInTheSettings(te::qt::af::ApplicationController *appController)
Update plugins file.
TEQTAFEXPORT std::vector< std::string > GetDefaultPluginsNames(te::qt::af::ApplicationController *appController)
TEQTAFEXPORT QString GetStyleSheetFromColors(QColor primaryColor, QColor secondaryColor)
TEQTAFEXPORT void UpdateUserSettingsFile(const QString &fileName, const bool &removeOlder=true)
Changes the user settings file location.
TEQTAFEXPORT void RemoveToolBarFromSettings(QToolBar *bar)
Removes a tool bar from the settings.
TEQTAFEXPORT std::vector< std::string > GetPluginsFiles()
Proxy configuration file for TerraView (see terraview_config.h).
TEQTAFEXPORT void AddActionToCustomToolbars(te::qt::af::ApplicationController *appController, QAction *act)
Check QSettings for existance of act and adds it if necessary.
TEQTAFEXPORT QString GetDefaultConfigFileOutputDir()
Returns the default path for output of configuration file.
TEQTAFEXPORT void RestoreState(QMainWindow *mainWindow)
TEQTAFEXPORT bool GetDisplayAutoRedrawFromSettings()
Get the auto-redraw state.
TEQTAFEXPORT std::vector< std::string > GetPluginsNames(const std::vector< std::string > &plgFiles)
TEQTAFEXPORT QString UnsavedStar(const QString windowTitle, bool isUnsaved)
Unsaved star.
TEQTAFEXPORT void UpdateUserSettings()
Reads and return a te::qt::af::Project from the file.
TEQTAFEXPORT void SaveDataSourcesFile(te::qt::af::ApplicationController *appController)
Saves data sources file.
TEQTAFEXPORT void SetConfigFileName(const QString &fileName)
Returns the complete path of the configuration file or an empty value if it not exists.