From 856aebefdbaedfbe630c521106f6b06ae758c737 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 28 Mar 2018 21:40:03 -0300 Subject: All elements graphic data implemented --- Project/ImportForm.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Project/ImportForm.h') diff --git a/Project/ImportForm.h b/Project/ImportForm.h index 11357cf..8224d3a 100644 --- a/Project/ImportForm.h +++ b/Project/ImportForm.h @@ -9,6 +9,14 @@ #include class Workspace; +class Bus; +class SyncGenerator; +class Load; +class Capacitor; +class Inductor; +class IndMotor; +class Transformer; +class Line; /** * @class ImportForm @@ -29,6 +37,7 @@ class ImportForm : public ImportFormBase virtual void OnButtonCancelClick(wxCommandEvent& event); virtual void OnButtonOKClick(wxCommandEvent& event); bool ImportSelectedFiles(); + Bus* GetBusFromID(std::vector busList, int id); Workspace* m_workspace = NULL; wxWindow* m_parent; @@ -90,17 +99,18 @@ class ParseAnarede bool Parse(); std::vector GetComponents() const { return m_components; } std::vector GetLines() const { return m_lines; } + wxPoint2DDouble GetNodePositionFromID(Bus* bus, double scale, int nodeID); protected: bool GetLenghtAndRotationFromBusCode(wxString code, double& lenght, int& rotationID); wxString GetLSTLineNextValue(wxString line, int& currentPos); + bool StrToElementType(wxString strType, ElementTypeAnarede& type); wxFileName m_lstFile; wxFileName m_pwfFile; std::vector m_components; std::vector m_lines; - }; #endif // IMPORTFORM_H -- cgit