summaryrefslogtreecommitdiff
path: root/common/preview.h
diff options
context:
space:
mode:
authorleo2006-01-20 06:14:06 +0000
committerleo2006-01-20 06:14:06 +0000
commita05319c8417b5bad66458baefa0cbf8dffa66291 (patch)
tree0fa2d53c3604a72b0dc88c886ec0bd828c99903f /common/preview.h
parent633c4ee66a14a6d7df81d82e315df64d7f4b10d8 (diff)
Made the Windows piece preview use the common preview code.
git-svn-id: http://svn.leocad.org/trunk@458 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/preview.h')
-rw-r--r--common/preview.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/common/preview.h b/common/preview.h
index 21ff3a8..13d6f27 100644
--- a/common/preview.h
+++ b/common/preview.h
@@ -7,16 +7,18 @@ class PieceInfo;
class PiecePreview : public GLWindow
{
- public:
- PiecePreview (GLWindow *share);
- virtual ~PiecePreview ();
+public:
+ PiecePreview(GLWindow *share);
+ virtual ~PiecePreview();
- void OnDraw ();
+ void OnDraw();
- void SetCurrentPiece (PieceInfo *pInfo);
+ PieceInfo* GetCurrentPiece() const
+ { return m_PieceInfo; }
+ void SetCurrentPiece(PieceInfo* Info);
- private:
- PieceInfo* m_pPieceInfo;
+protected:
+ PieceInfo* m_PieceInfo;
};
#endif // _PREVIEW_H_