summaryrefslogtreecommitdiff
path: root/common/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/view.h')
-rw-r--r--common/view.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/view.h b/common/view.h
new file mode 100644
index 0000000..3a1bcac
--- /dev/null
+++ b/common/view.h
@@ -0,0 +1,32 @@
+#ifndef _VIEW_H_
+#define _VIEW_H_
+
+#include "glwindow.h"
+
+class Project;
+
+class View : public GLWindow
+{
+ public:
+ View (Project *pProject, GLWindow *share);
+ virtual ~View ();
+
+ void OnDraw ();
+ void OnInitialUpdate ();
+ void OnLeftButtonDown (int x, int y, bool bControl, bool bShift);
+ void OnLeftButtonUp (int x, int y, bool bControl, bool bShift);
+ void OnLeftButtonDoubleClick (int x, int y, bool bControl, bool bShift);
+ void OnRightButtonDown (int x, int y, bool bControl, bool bShift);
+ void OnRightButtonUp (int x, int y, bool bControl, bool bShift);
+ void OnMouseMove (int x, int y, bool bControl, bool bShift);
+
+ Project* GetProject () const
+ { return m_pProject; }
+
+ protected:
+ Project* m_pProject;
+
+ // virtual void OnInitialUpdate (); // called first time after construct
+};
+
+#endif // _VIEW_H_