summaryrefslogtreecommitdiff
path: root/common/view.h
diff options
context:
space:
mode:
authorleo2005-10-23 00:35:25 +0000
committerleo2005-10-23 00:35:25 +0000
commit02cd88bb158b7a6d66ff2a662223121ecfcddbe0 (patch)
treea8d79fc1c24bef624a29e9eb3e999c5a66377d5c /common/view.h
parentf1264b9f8b6266a1153e77d8e497d58e2aad2509 (diff)
Added a new rotate camera interface,
Added an assert macro, Added support for multiple keywords to the pieces tree. git-svn-id: http://svn.leocad.org/trunk@431 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/view.h')
-rw-r--r--common/view.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/common/view.h b/common/view.h
index 3a1bcac..2727f2d 100644
--- a/common/view.h
+++ b/common/view.h
@@ -7,26 +7,27 @@ 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
+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);
+
+ LC_CURSOR_TYPE GetCursor(int x, int y) const;
+ Project* GetProject () const
+ { return m_Project; }
+
+protected:
+ Project* m_Project;
+
+ // virtual void OnInitialUpdate (); // called first time after construct
};
#endif // _VIEW_H_