summaryrefslogtreecommitdiff
path: root/common/view.h
blob: 3a1bcacc84aa49011f0fc933c06cd4481713b023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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_