From f19803bc64885bcfaef15cfd7a8139c28d3dd506 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 8 Apr 2017 16:31:25 -0300 Subject: Control editor export under implementation File handling --- Project/FileHanding.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Project/FileHanding.h') diff --git a/Project/FileHanding.h b/Project/FileHanding.h index 4546f15..1954876 100644 --- a/Project/FileHanding.h +++ b/Project/FileHanding.h @@ -6,6 +6,8 @@ #include #include "Workspace.h" +#include "ControlEditor.h" +#include "ControlElementContainer.h" #include "ElectricCalculation.h" #include "Text.h" @@ -19,15 +21,21 @@ class FileHanding public: FileHanding(); FileHanding(Workspace* workspace); + FileHanding(ControlEditor* controlEditor); ~FileHanding(); void SetWorkspace(Workspace* workspace) { m_workspace = workspace; } + void SetControlEditor(ControlEditor* controlEditor) { m_controlEditor = controlEditor; } void SaveProject(wxFileName path); bool OpenProject(wxFileName path); + + void SaveControl(wxFileName path); + bool OpenControl(wxFileName path); protected: Workspace* m_workspace = NULL; + ControlEditor* m_controlEditor = NULL; rapidxml::xml_node<>* AppendNode(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* parentNode, @@ -42,6 +50,8 @@ protected: double GetNodeValueDouble(rapidxml::xml_node<>* parent, const char* nodeName); int GetNodeValueInt(rapidxml::xml_node<>* parent, const char* nodeName); int GetAttributeValueInt(rapidxml::xml_node<>* parent, const char* nodeName, const char* atrName); + + void SaveControlElements(rapidxml::xml_document<>& doc, rapidxml::xml_node<>* elementsNode); }; #endif // FILEHANDING_H -- cgit