summaryrefslogtreecommitdiff
path: root/common/preview.h
diff options
context:
space:
mode:
authorleo2006-01-24 04:48:40 +0000
committerleo2006-01-24 04:48:40 +0000
commit3cf202f177cffb3b962420933ab8d9481b0d8f32 (patch)
treebb3b66c0f6948443b4b6230841d8e39ad737cafd /common/preview.h
parent8773592dd2a7f096b29d91b750437ac60b4584f8 (diff)
Added the ability to zoom and rotate the Piece Preview.
git-svn-id: http://svn.leocad.org/trunk@460 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/preview.h')
-rw-r--r--common/preview.h17
1 files changed, 17 insertions, 0 deletions
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_