diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-06 17:12:09 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-04-06 17:12:09 -0300 |
commit | ed36957d2d06ce9484e39be699bc41b521bdb090 (patch) | |
tree | b2e8edcd03acc660a6f504391703cfcdd70add40 /Project/ControlEditor.cpp | |
parent | 38b3e2decff95f5e29ffb6025ee899d108d22f04 (diff) | |
download | PSP.git-ed36957d2d06ce9484e39be699bc41b521bdb090.tar.gz PSP.git-ed36957d2d06ce9484e39be699bc41b521bdb090.tar.xz PSP.git-ed36957d2d06ce9484e39be699bc41b521bdb090.zip |
Io form under implementation
Diffstat (limited to 'Project/ControlEditor.cpp')
-rw-r--r-- | Project/ControlEditor.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Project/ControlEditor.cpp b/Project/ControlEditor.cpp index 36edb52..6dbf650 100644 --- a/Project/ControlEditor.cpp +++ b/Project/ControlEditor.cpp @@ -102,13 +102,15 @@ void ControlElementButton::OnLeftClickUp(wxMouseEvent& event) event.Skip(); } -ControlEditor::ControlEditor(wxWindow* parent) : ControlEditorBase(parent) +ControlEditor::ControlEditor(wxWindow* parent, int ioflags) : ControlEditorBase(parent) { BuildControlElementPanel(); m_glContext = new wxGLContext(m_glCanvas); m_camera = new Camera(); m_selectionRect = wxRect2DDouble(0, 0, 0, 0); //m_camera->SetScale(1.2); + m_ioFlags = ioflags; + } ControlEditor::~ControlEditor() { @@ -202,7 +204,9 @@ void ControlEditor::AddElement(ControlElementButtonID id) { switch(id) { case ID_IO: { - wxLogMessage("io"); + m_mode = MODE_INSERT; + IOControl* io = new IOControl(m_ioFlags); + m_elementList.push_back(io); } break; case ID_TF: { m_mode = MODE_INSERT; |