diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-06 11:37:00 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-06 11:37:00 -0300 |
commit | c5636d2031b20e673441e095d90ba94942698e7c (patch) | |
tree | 30b9f15cd5d91fe11a07960154d03afc2328bf8a /Project/MainFrame.cpp | |
parent | 0586ac0d34e4d8d5dd9845f2fdd212716b3004f9 (diff) | |
download | PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.gz PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.xz PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.zip |
Some class enum implementation
Just for better code design: https://docs.microsoft.com/pt-br/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/enumeration-classes-over-enum-types
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 36712d5..51f6592 100644 --- a/Project/MainFrame.cpp +++ b/Project/MainFrame.cpp @@ -306,7 +306,7 @@ void MainFrame::OnMoveClick(wxRibbonButtonBarEvent& event) Element* element = *it; if(element->IsSelected()) { element->StartMove(averagePos); } } - workspace->SetWorkspaceMode(Workspace::MODE_MOVE_ELEMENT); + workspace->SetWorkspaceMode(Workspace::WorkspaceMode::MODE_MOVE_ELEMENT); } } @@ -427,7 +427,7 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event) Workspace* workspace = static_cast<Workspace*>(m_auiNotebook->GetCurrentPage()); if(workspace) { - if(workspace->GetWorkspaceMode() != Workspace::MODE_INSERT) { + if(workspace->GetWorkspaceMode() != Workspace::WorkspaceMode::MODE_INSERT) { auto elementList = workspace->GetElementList(); wxString statusBarText = ""; bool newElement = false; @@ -514,7 +514,7 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event) } if(newElement) { workspace->SetElementList(elementList); - workspace->SetWorkspaceMode(Workspace::MODE_INSERT); + workspace->SetWorkspaceMode(Workspace::WorkspaceMode::MODE_INSERT); workspace->SetStatusBarText(statusBarText); workspace->Redraw(); } |