summaryrefslogtreecommitdiffstats
path: root/Project/ControlEditor.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-15 21:50:48 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-15 21:50:48 -0300
commitc6c3ff70bfceac839af471c11fc8aa04060517b0 (patch)
treee87dec2ca89d48098cf2cca4ca6df198c7a273d5 /Project/ControlEditor.h
parent17d1dd82ec065eff08546ef1fd2a188ce77471b2 (diff)
downloadPSP.git-c6c3ff70bfceac839af471c11fc8aa04060517b0.tar.gz
PSP.git-c6c3ff70bfceac839af471c11fc8aa04060517b0.tar.xz
PSP.git-c6c3ff70bfceac839af471c11fc8aa04060517b0.zip
Control test and sync generator control implemented
Text buggy when opens
Diffstat (limited to 'Project/ControlEditor.h')
-rw-r--r--Project/ControlEditor.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/Project/ControlEditor.h b/Project/ControlEditor.h
index 9de5a1f..50ef565 100644
--- a/Project/ControlEditor.h
+++ b/Project/ControlEditor.h
@@ -12,6 +12,7 @@
#include <wx/progdlg.h>
#include "IOControl.h"
+#include "ControlSystemTest.h"
class FileHanding;
class Camera;
@@ -28,6 +29,7 @@ class Constant;
class Gain;
class ControlElementSolver;
+class ControlElementContainer;
class ChartView;
class ElementDataObject;
@@ -92,8 +94,12 @@ class ControlEditor : public ControlEditorBase
virtual std::vector<ControlElement*> GetControlElementList() const { return m_elementList; }
virtual void SetElementsList(std::vector<ControlElement*> elementList) { m_elementList = elementList; }
virtual void SetConnectionsList(std::vector<ConnectionLine*> connectionList) { m_connectionList = connectionList; }
-
+ virtual void SetControlContainer(ControlElementContainer* ctrlContainer) { m_ctrlContainer = ctrlContainer; }
+ virtual void ConsolidateTexts();
protected:
+ virtual void OnClose(wxCloseEvent& event);
+ virtual void OnTestClick(wxCommandEvent& event);
+ virtual void OnButtonOKClick(wxCommandEvent& event) { Close(); }
virtual void OnImportClick(wxCommandEvent& event);
virtual void OnExportClick(wxCommandEvent& event);
virtual void OnKeyDown(wxKeyEvent& event);
@@ -124,9 +130,17 @@ class ControlEditor : public ControlEditorBase
std::vector<ControlElement*> m_elementList;
std::vector<ConnectionLine*> m_connectionList;
+ ControlElementContainer* m_ctrlContainer = NULL;
+
bool m_firstDraw = true;
int m_ioFlags;
-
+
int m_lastElementID = 0;
+
+ int m_inputType = 0;
+ double m_startTime = 1.0;
+ double m_slope = 1.0;
+ double m_timeStep = 1e-4;
+ double m_simTime = 10.0;
};
#endif // CONTROLEDITOR_H