Utility routines for the TerraView Application Framework module. More...
#include <terralib/Version.h>#include <terralib/common/BoostUtils.h>#include <terralib/core/utils/Platform.h>#include <terralib/xml/AbstractWriter.h>#include <terralib/xml/AbstractWriterFactory.h>#include <terralib/xml/Reader.h>#include <terralib/xml/ReaderFactory.h>#include "Utils.h"#include <cassert>#include <fstream>#include <memory>#include <boost/property_tree/xml_parser.hpp>#include <boost/property_tree/ptree.hpp>#include <boost/property_tree/json_parser.hpp>#include <boost/algorithm/string/replace.hpp>#include <boost/filesystem.hpp>#include <boost/format.hpp>#include <boost/version.hpp>#include <QApplication>#include <QSettings>Go to the source code of this file.
Functions | |
| bool | GetOpenLastProjectFromSettings () |
| void | GetProjectInformationsFromSettings (QString &defaultAuthor, int &maxSaved) |
| void | SaveOpenLastProjectOnSettings (bool openLast) |
| void | SaveProjectInformationsOnSettings (const QString &defaultAuthor, const int &maxSaved) |
| void | WriteDefaultProjectFile (const QString &fileName) |
| Writes the default project file. More... | |
Utility routines for the TerraView Application Framework module.
Definition in file src/terraview/Utils.cpp.
| bool GetOpenLastProjectFromSettings | ( | ) |
Definition at line 81 of file src/terraview/Utils.cpp.
| void GetProjectInformationsFromSettings | ( | QString & | defaultAuthor, |
| int & | maxSaved | ||
| ) |
Definition at line 54 of file src/terraview/Utils.cpp.
Referenced by ProjectWidget::resetState(), and TerraViewController::updateRecentProjects().
| void SaveOpenLastProjectOnSettings | ( | bool | openLast | ) |
Definition at line 74 of file src/terraview/Utils.cpp.
Referenced by ProjectWidget::saveChanges().
| void SaveProjectInformationsOnSettings | ( | const QString & | defaultAuthor, |
| const int & | maxSaved | ||
| ) |
Definition at line 64 of file src/terraview/Utils.cpp.
Referenced by ProjectWidget::saveChanges().
| void WriteDefaultProjectFile | ( | const QString & | fileName | ) |
Writes the default project file.
Definition at line 94 of file src/terraview/Utils.cpp.
References te::core::FindInTerraLibPath(), and p.