1 /*!
2 	@file
3 	@author		Albert Semenov
4 	@date		07/2008
5 */
6 #ifndef CELL_VIEW_H_
7 #define CELL_VIEW_H_
8 
9 #include <MyGUI.h>
10 #include "ItemBox/BaseCellView.h"
11 #include "ItemData.h"
12 
13 namespace demo
14 {
15 
16 	class CellView :
17 		public wraps::BaseCellView<ItemData*>
18 	{
19 	public:
20 		CellView(MyGUI::Widget* _parent);
21 
22 		void update(const MyGUI::IBDrawItemInfo& _info, ItemData* _data);
23 		static void getCellDimension(MyGUI::Widget* _sender, MyGUI::IntCoord& _coord, bool _drop);
24 
25 	private:
26 		MyGUI::ImageBox* mImageBack;
27 		MyGUI::ImageBox* mImageBorder;
28 		MyGUI::ImageBox* mImageItem;
29 		MyGUI::TextBox* mTextBack;
30 		MyGUI::TextBox* mTextFront;
31 	};
32 
33 } // namespace demo
34 
35 #endif // CELL_VIEW_H_
36