summaryrefslogtreecommitdiffstats
path: root/Project/FileHanding.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-08 16:31:25 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-08 16:31:25 -0300
commitf19803bc64885bcfaef15cfd7a8139c28d3dd506 (patch)
tree30698f4bd8bc7fb0919e974cdd81023bb8b8cde2 /Project/FileHanding.h
parentd13b7013afa5ba1d40ee52e77eabd43bfd1b4acd (diff)
downloadPSP.git-f19803bc64885bcfaef15cfd7a8139c28d3dd506.tar.gz
PSP.git-f19803bc64885bcfaef15cfd7a8139c28d3dd506.tar.xz
PSP.git-f19803bc64885bcfaef15cfd7a8139c28d3dd506.zip
Control editor export under implementation
File handling
Diffstat (limited to 'Project/FileHanding.h')
-rw-r--r--Project/FileHanding.h10
1 files changed, 10 insertions, 0 deletions
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 <sstream>
#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