2011-09-07 23:06:51 +02:00
|
|
|
#ifndef _VIEW_H_
|
|
|
|
#define _VIEW_H_
|
|
|
|
|
|
|
|
#include "glwindow.h"
|
|
|
|
|
2012-02-05 03:50:57 +01:00
|
|
|
class Camera;
|
2011-09-07 23:06:51 +02:00
|
|
|
class Project;
|
|
|
|
|
|
|
|
class View : public GLWindow
|
|
|
|
{
|
|
|
|
public:
|
2012-02-05 03:50:57 +01:00
|
|
|
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);
|
2012-01-28 03:10:19 +01:00
|
|
|
void OnMiddleButtonDown(int x, int y, bool bControl, bool bShift);
|
|
|
|
void OnMiddleButtonUp(int x, int y, bool bControl, bool bShift);
|
2012-02-05 03:50:57 +01:00
|
|
|
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);
|
2011-09-07 23:06:51 +02:00
|
|
|
|
|
|
|
LC_CURSOR_TYPE GetCursor(int x, int y) const;
|
|
|
|
|
|
|
|
Project* m_Project;
|
2012-02-05 03:50:57 +01:00
|
|
|
Camera* m_Camera;
|
|
|
|
float m_OverlayScale;
|
2011-09-07 23:06:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _VIEW_H_
|