#include "GeometryFile.h"#include "Stasher.h"#include "../../../edit/Enums.h"#include "../../../edit/Utils.h"#include "../../../maptools/AbstractLayer.h"#include <QDir>#include <QDesktopServices>Go to the source code of this file.
Functions | |
| void | GetStashedGeometries (const te::map::AbstractLayer *layer, std::map< std::string, te::gm::Geometry * > &geoms, std::map< std::string, int > &ops) |
| std::set< std::string > | GetStashedLayers () |
| bool | RemoveDir (const QString &dirName) |
| void | RemoveStash (const te::map::AbstractLayer *layer) |
| void | StashGeometries (const te::map::AbstractLayer *layer, const std::map< std::string, te::gm::Geometry * > &geoms, const std::map< std::string, int > &ops) |
| void GetStashedGeometries | ( | const te::map::AbstractLayer * | layer, |
| std::map< std::string, te::gm::Geometry * > & | geoms, | ||
| std::map< std::string, int > & | ops | ||
| ) |
Definition at line 67 of file Stasher.cpp.
References te::edit::DELETE, te::map::AbstractLayer::getSRID(), te::map::AbstractLayer::getTitle(), te::edit::INSERT, GeometryFile::next(), GeometryFile::openFile(), and te::edit::UPDATE.
Referenced by te::qt::plugins::edit::ToolBar::updateLayer().
| std::set<std::string> GetStashedLayers | ( | ) |
Definition at line 145 of file Stasher.cpp.
Referenced by te::qt::plugins::edit::Plugin::startup().
| bool RemoveDir | ( | const QString & | dirName | ) |
Definition at line 183 of file Stasher.cpp.
References RemoveDir().
Referenced by RemoveDir(), and RemoveStash().
| void RemoveStash | ( | const te::map::AbstractLayer * | layer | ) |
Definition at line 167 of file Stasher.cpp.
References te::map::AbstractLayer::getTitle(), and RemoveDir().
Referenced by te::qt::plugins::edit::Plugin::onStashedLayer().
| void StashGeometries | ( | const te::map::AbstractLayer * | layer, |
| const std::map< std::string, te::gm::Geometry * > & | geoms, | ||
| const std::map< std::string, int > & | ops | ||
| ) |
Definition at line 17 of file Stasher.cpp.
References te::edit::DELETE, te::map::AbstractLayer::getTitle(), and GeometryFile::writeGeometries().
Referenced by te::qt::plugins::edit::ToolBar::onSaveActivated().