summaryrefslogtreecommitdiffstats
path: root/Project/Workspace.h
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-07-30 00:29:03 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2016-07-30 00:29:03 -0300
commit3a246308dcd76f70a1b6c3e6b08f0d597b255dba (patch)
tree62f42b83f39ffb0b32db5c658e0e1da428b8e6c6 /Project/Workspace.h
parentd1b893e6757270b0f246a7657d7b6701dcea3b87 (diff)
downloadPSP.git-3a246308dcd76f70a1b6c3e6b08f0d597b255dba.tar.gz
PSP.git-3a246308dcd76f70a1b6c3e6b08f0d597b255dba.tar.xz
PSP.git-3a246308dcd76f70a1b6c3e6b08f0d597b255dba.zip
Adding the basics graphics elements
The base is done, bus under contruction
Diffstat (limited to 'Project/Workspace.h')
-rw-r--r--Project/Workspace.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Project/Workspace.h b/Project/Workspace.h
new file mode 100644
index 0000000..193d370
--- /dev/null
+++ b/Project/Workspace.h
@@ -0,0 +1,35 @@
+#ifndef WORKSPACE_H
+#define WORKSPACE_H
+
+#include <GL/gl.h>
+#include <GL/glu.h>
+#include <wx/dcclient.h>
+#include <wx/msgdlg.h>
+
+#include "WorkspaceBase.h"
+#include "Bus.h"
+
+class Workspace : public WorkspaceBase
+{
+ protected:
+ virtual void OnLeftClickDown(wxMouseEvent& event);
+ virtual void OnPaint(wxPaintEvent& event);
+
+ void SetViewport();
+
+ wxGLContext* m_glContext;
+ wxString m_name;
+
+ std::vector<Element*> m_elementList;
+
+ public:
+ Workspace(wxWindow* parent, wxString name = wxEmptyString);
+ ~Workspace();
+
+ void Redraw() { this->Refresh(); }
+
+ wxString GetName() const { return m_name; }
+ void SetName(wxString name) { m_name = name; }
+};
+
+#endif // WORKSPACE_H