From 3cf202f177cffb3b962420933ab8d9481b0d8f32 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 24 Jan 2006 04:48:40 +0000 Subject: Added the ability to zoom and rotate the Piece Preview. git-svn-id: http://svn.leocad.org/trunk@460 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/preview.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'common/preview.h') diff --git a/common/preview.h b/common/preview.h index 13d6f27..e60a2be 100644 --- a/common/preview.h +++ b/common/preview.h @@ -12,6 +12,12 @@ public: virtual ~PiecePreview(); void OnDraw(); + void OnLeftButtonDown(int x, int y, bool Control, bool Shift); + void OnLeftButtonUp(int x, int y, bool Control, bool Shift); + void OnLeftButtonDoubleClick(int x, int y, bool Control, bool Shift); + void OnRightButtonDown(int x, int y, bool Control, bool Shift); + void OnRightButtonUp(int x, int y, bool Control, bool Shift); + void OnMouseMove(int x, int y, bool Control, bool Shift); PieceInfo* GetCurrentPiece() const { return m_PieceInfo; } @@ -19,6 +25,17 @@ public: protected: PieceInfo* m_PieceInfo; + + // Mouse tracking. + int m_Tracking; + int m_DownX; + int m_DownY; + + // Current camera settings. + float m_Distance; + float m_RotateX; + float m_RotateZ; + bool m_AutoZoom; }; #endif // _PREVIEW_H_ -- cgit v1.2.3