00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef CGLOBALOPTIONS_H
00016 #define CGLOBALOPTIONS_H
00017
00018 #include "CString.h"
00019
00020 #define WINDOWS_LEAN_AND_MEAN
00021 #include <windows.h>
00022
00023 class CConfig;
00024
00026 class CGlobalOptions {
00027 public:
00028 CGlobalOptions(HWND parent, CConfig*);
00029 ~CGlobalOptions();
00030
00032
00033
00035
00038 void doModal();
00039
00041
00042
00043
00044
00046
00047 private:
00048 void init(HWND hwnd);
00049 bool save(HWND hwnd);
00050
00051 int getTime(HWND hwnd, HWND child, bool reportError);
00052
00053
00054 BOOL doDlgProc(HWND, UINT, WPARAM, LPARAM);
00055 static BOOL CALLBACK dlgProc(HWND, UINT, WPARAM, LPARAM);
00056
00057 private:
00058 static CGlobalOptions* s_singleton;
00059
00060 HWND m_parent;
00061 CConfig* m_config;
00062 int m_delayTime;
00063 int m_twoTapTime;
00064 int m_heartbeatTime;
00065 };
00066
00067 #endif