tagging release
[dasher.git] / Src / Win32 / Widgets / ColourBox.h
blob7011a9fc1497e515da1a663bff90b1599a421539
1 // AlphabetBox.h
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (c) 2002 Iain Murray, Inference Group, Cavendish, Cambridge.
6 //
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __ColourBox_h__
10 #define __ColourBox_h__
12 #include "../resource.h"
14 #include "../../DasherCore/DasherInterfaceBase.h"
15 #include "../../DasherCore/ColourIO.h"
16 #include "WinWrap.h"
18 class CColourBox:public CWinWrap {
19 public:
20 CColourBox(HWND Parent, CDasherInterfaceBase * DI);
21 protected:
22 LRESULT WndProc(HWND Window, UINT message, WPARAM wParam, LPARAM lParam);
23 private:
24 CDasherInterfaceBase * m_pDasherInterface;
25 HWND CustomBox;
27 std::vector < std::string > ColourList;
28 std::string m_CurrentColours;
29 Dasher::CColourIO::ColourInfo CurrentInfo;
31 // Some status flags:
32 void PopulateList();
33 void InitCustomBox();
34 bool UpdateInfo();
35 bool Apply();
36 bool Validate();
39 #endif /* #ifndef __AlphabetBox_h__ */