diff options
author | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-24 18:25:17 -0200 |
---|---|---|
committer | Thales1330 <thaleslima.ufu@gmail.com> | 2017-01-24 18:25:17 -0200 |
commit | bdb0625280d827ba7333b6fc9d6c6534e0720100 (patch) | |
tree | 6511dd5568556115db2affce10696efb7ff62c8f /Project/MainFrame.cpp | |
parent | 56b93d40596cc6e39930faad0f6fdf347275ee49 (diff) | |
download | PSP.git-bdb0625280d827ba7333b6fc9d6c6534e0720100.tar.gz PSP.git-bdb0625280d827ba7333b6fc9d6c6534e0720100.tar.xz PSP.git-bdb0625280d827ba7333b6fc9d6c6534e0720100.zip |
Control editor implementation start
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r-- | Project/MainFrame.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp index 6049a8d..87c547e 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -197,7 +197,7 @@ void MainFrame::OnMoveClick(wxRibbonButtonBarEvent& event) element->StartMove(averagePos); } } - workspace->SetWorkspaceMode(MODE_MOVE_ELEMENT); + workspace->SetWorkspaceMode(Workspace::MODE_MOVE_ELEMENT); } } @@ -303,7 +303,7 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event) Workspace* workspace = static_cast<Workspace*>(m_auiNotebook->GetCurrentPage()); if(workspace) { - if(workspace->GetWorkspaceMode() != MODE_INSERT) { + if(workspace->GetWorkspaceMode() != Workspace::MODE_INSERT) { auto elementList = workspace->GetElementList(); wxString statusBarText = ""; bool newElement = false; @@ -382,7 +382,7 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event) } if(newElement) { workspace->SetElementList(elementList); - workspace->SetWorkspaceMode(MODE_INSERT); + workspace->SetWorkspaceMode(Workspace::MODE_INSERT); workspace->SetStatusBarText(statusBarText); workspace->Redraw(); } |