diff options
Diffstat (limited to 'Project/Workspace.h')
-rw-r--r-- | Project/Workspace.h | 35 |
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 |