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 void UpdateUserSettingsFile(const QString &fileName, const bool &removeOlder=true)
Changes the user settings file location.
TEQTAFEXPORT void SetDateTime(const QString &dateTime)
TEQTAFEXPORT std::vector< std::string > GetPluginsFiles()
TEQTAFEXPORT void AddActionToCustomToolbars(te::qt::af::ApplicationController *appController, QAction *act)
Check QSettings for existance of act and adds it if necessary.
TEQTAFEXPORT QString GetGenerationDate()
Writes the configuration file. It updates the application settings.
The base API for TerraLib applications.
TEQTAFEXPORT bool GetDisplayAutoRedrawFromSettings()
Get the auto-redraw state.
TEQTAFEXPORT bool GetAlternateRowColorsFromSettings()
TEQTAFEXPORT void AddToolBarToSettings(QToolBar *bar)
Update settings with a new tool bar.
Configuration flags for the TerraLib Application Framework.
TEQTAFEXPORT void RemoveToolBarFromSettings(QToolBar *bar)
Removes a tool bar from the settings.
TEQTAFEXPORT QColor GetDefaultDisplayColorFromSettings()
TEQTAFEXPORT std::vector< std::string > GetPluginsNames(const std::vector< std::string > &plgFiles)
TEQTAFEXPORT void RestoreState(QMainWindow *mainWindow)
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 QString GetLastDatasourceFromSettings()
TEQTAFEXPORT QString GetDefaultConfigFileOutputDir()
Returns the default path for output of configuration file.
TEQTAFEXPORT void SaveLastDatasourceOnSettings(const QString &dsType)
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...
TEQTAFEXPORT QString GetStyleSheetFromColors(QColor primaryColor, QColor secondaryColor)
TEQTAFEXPORT QString GetDateTime()
TEQTAFEXPORT void SaveDataSourcesFile(te::qt::af::ApplicationController *appController)
Saves data sources file.
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
TEQTAFEXPORT void UpdateUserSettings()
Reads and return a te::qt::af::Project from the file.
TEQTAFEXPORT QString UnsavedStar(const QString windowTitle, bool isUnsaved)
Unsaved star.
TEQTAFEXPORT std::vector< std::string > GetDefaultPluginsNames(te::qt::af::ApplicationController *appController)
TEQTAFEXPORT void UpdateAppPluginsFile(const QString &fileName, const bool &removeOlder=true)
Changes the application plugins file location.
TEQTAFEXPORT void SetConfigFileName(const QString &fileName)
Returns the complete path of the configuration file or an empty value if it not exists.
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.
A class that models a XML writer object built on top of Xerces-C++.
TEQTAFEXPORT std::string GetLastFormerVersionPath(te::qt::af::ApplicationController *appController)