Minor bugfix and Actionmanager undo message improvement.

This commit is contained in:
brunoherbelin
2021-03-20 10:03:54 +01:00
parent 112b583379
commit 6e7df60f2c
5 changed files with 83 additions and 64 deletions

View File

@@ -4,6 +4,8 @@
#include "Visitor.h"
#include "tinyxml2Toolkit.h"
class Session;
class SessionVisitor : public Visitor {
bool recursive_;
@@ -15,9 +17,10 @@ public:
tinyxml2::XMLElement *root = nullptr,
bool recursive = false);
inline tinyxml2::XMLDocument *doc() const { return xmlDoc_; }
inline void setRoot(tinyxml2::XMLElement *root) { xmlCurrent_ = root; }
static bool saveSession(const std::string& filename, Session *session);
// Elements of Scene
void visit(Scene& n) override;
void visit(Node& n) override;
@@ -52,6 +55,7 @@ public:
void visit (NetworkSource& s) override;
void visit (MixingGroup& s) override;
protected:
static tinyxml2::XMLElement *NodeToXML(Node &n, tinyxml2::XMLDocument *doc);
};