From 3a246308dcd76f70a1b6c3e6b08f0d597b255dba Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 30 Jul 2016 00:29:03 -0300 Subject: Adding the basics graphics elements The base is done, bus under contruction --- Project/Workspace.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Project/Workspace.h (limited to 'Project/Workspace.h') 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 +#include +#include +#include + +#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 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 -- cgit