summaryrefslogtreecommitdiffstats
path: root/Project/Workspace.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-09-07 23:52:26 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-09-07 23:52:26 -0300
commitfb8a409d7e35735afc9d28bfc0d7b49974f0d3a2 (patch)
treed009045e6591ef766a1c14765f3b8a7a3bc5d18a /Project/Workspace.h
parent697baaa3cc92e945d2301238dc9bcabffdb465ef (diff)
downloadPSP.git-fb8a409d7e35735afc9d28bfc0d7b49974f0d3a2.tar.gz
PSP.git-fb8a409d7e35735afc9d28bfc0d7b49974f0d3a2.tar.xz
PSP.git-fb8a409d7e35735afc9d28bfc0d7b49974f0d3a2.zip
Movementation and rotation fixed
Diffstat (limited to 'Project/Workspace.h')
-rw-r--r--Project/Workspace.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/Project/Workspace.h b/Project/Workspace.h
index 7df1190..d673976 100644
--- a/Project/Workspace.h
+++ b/Project/Workspace.h
@@ -40,9 +40,16 @@ class Workspace : public WorkspaceBase
~Workspace();
wxString GetName() const { return m_name; }
- void SetName(wxString name) { m_name = name; }
- std::vector<Element*> GetElementList() { return m_elementList; }
- void Redraw() { m_glCanvas->Refresh(); }
+ std::vector<Element*> GetElementList() const { return m_elementList; }
+ WorkspaceMode GetWorkspaceMode() const { return m_mode; }
+
+ void SetName(wxString name) { m_name = name; }
+ void SetElementList(std::vector<Element*> elementList) { m_elementList = elementList; }
+ void SetStatusBarText(wxString text) { m_statusBar->SetStatusText(text); }
+ void SetWorkspaceMode(WorkspaceMode mode) { m_mode = mode; }
+
+ void Redraw() { m_glCanvas->Refresh(); }
+ void RotateSelectedElements(bool clockwise = true);
protected:
virtual void OnLeftDoubleClick(wxMouseEvent& event);