tagging release
[dasher.git] / trunk / Src / Win32 / Widgets / ControlPage.h
blob76c6743faf12a2786af0c58dc3b248520b338494
1 // ControlPage.h
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (c) 2002 Iain Murray, Inference Group, Cavendish, Cambridge.
6 //
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __ControlPage_h__
10 #define __ControlPage_h__
12 #include "PrefsPageBase.h"
14 #include "../resource.h"
16 #include "../../DasherCore/DasherInterfaceBase.h"
17 #include "../../DasherCore/ColourIO.h"
18 #include "../ModuleSettings.h"
20 class CAppSettings;
22 class CControlPage:public CPrefsPageBase {
23 public:
24 CControlPage(HWND Parent, CDasherInterfaceBase * DI, CAppSettings *pAppSettings);
25 protected:
26 LRESULT WndProc(HWND Window, UINT message, WPARAM wParam, LPARAM lParam);
27 private:
28 HWND CustomBox;
30 std::vector < std::string > ColourList;
31 std::string m_CurrentColours;
32 Dasher::CColourIO::ColourInfo CurrentInfo;
33 TCHAR m_tcBuffer[1000];
35 // Handles to important widgets
36 HWND SB_slider;
37 HWND speedbox;
38 HWND m_hMousePosStyle;
40 void PopulateList();
41 bool Apply();
42 bool Validate();
44 CModuleSettings *m_pModuleSettingsDialogue;
47 #endif // ndef