tagging release
[dasher.git] / Src / Win32 / Widgets / AlphabetBox.h
blobd1b975db0c3d095b83427f2d343664b0f2817305
1 // AlphabetBox.h
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (c) 2002 Iain Murray, Inference Group, Cavendish, Cambridge.
6 //
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __AlphabetBox_h__
10 #define __AlphabetBox_h__
12 #include "../resource.h"
13 #include "../../DasherCore/Alphabet/AlphIO.h"
14 #include "../../DasherCore/DasherInterfaceBase.h"
15 #include "WinWrap.h"
17 class CAlphabetBox:public CWinWrap {
18 public:
19 CAlphabetBox(HWND Parent, CDasherInterfaceBase *DI);
20 protected:
21 LRESULT WndProc(HWND Window, UINT message, WPARAM wParam, LPARAM lParam);
22 private:
23 CDasherInterfaceBase * m_pDasherInterface;
24 HWND m_hPropertySheet;
26 HWND CustomBox;
28 std::vector < std::string > AlphabetList;
29 std::string m_CurrentAlphabet;
30 Dasher::CAlphIO::AlphInfo CurrentInfo;
32 std::vector < std::string > ColourList;
33 std::string m_CurrentColours;
34 Dasher::CColourIO::ColourInfo CurrentColourInfo;
36 // Some status flags:
37 bool Editing;
38 bool EditChar;
39 bool Cloning;
40 unsigned int CurrentGroup;
41 unsigned int CurrentChar;
43 void PopulateList();
44 /*void InitCustomBox();
45 std::string GetControlText(HWND Dialog, int ControlID);
46 void NewGroup(std::string NewGroup);
47 void ShowGroups();
48 void ShowGroupChars();
49 void CustomCharacter(std::string Display, std::string Text, int Colour);
50 bool UpdateInfo();*/
51 bool Apply();
52 bool Validate();
56 #endif /* #ifndef __AlphabetBox_h__ */