| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * synergy -- mouse and keyboard sharing utility | 
|---|
| 3 | * Copyright (C) 2003 Chris Schoeneman | 
|---|
| 4 | * | 
|---|
| 5 | * This package is free software; you can redistribute it and/or | 
|---|
| 6 | * modify it under the terms of the GNU General Public License | 
|---|
| 7 | * found in the file COPYING that should have accompanied this file. | 
|---|
| 8 | * | 
|---|
| 9 | * This package is distributed in the hope that it will be useful, | 
|---|
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 12 | * GNU General Public License for more details. | 
|---|
| 13 | */ | 
|---|
| 14 |  | 
|---|
| 15 | #ifndef CGLOBALOPTIONS_H | 
|---|
| 16 | #define CGLOBALOPTIONS_H | 
|---|
| 17 |  | 
|---|
| 18 | #include "CString.h" | 
|---|
| 19 |  | 
|---|
| 20 | #define WINDOWS_LEAN_AND_MEAN | 
|---|
| 21 | #include <windows.h> | 
|---|
| 22 |  | 
|---|
| 23 | class CConfig; | 
|---|
| 24 |  | 
|---|
| 25 | //! Global options dialog for Microsoft Windows launcher | 
|---|
| 26 | class CGlobalOptions { | 
|---|
| 27 | public: | 
|---|
| 28 | CGlobalOptions(HWND parent, CConfig*); | 
|---|
| 29 | ~CGlobalOptions(); | 
|---|
| 30 |  | 
|---|
| 31 | //! @name manipulators | 
|---|
| 32 | //@{ | 
|---|
| 33 |  | 
|---|
| 34 | //! Run dialog | 
|---|
| 35 | /*! | 
|---|
| 36 | Display and handle the dialog until closed by the user. | 
|---|
| 37 | */ | 
|---|
| 38 | void                            doModal(); | 
|---|
| 39 |  | 
|---|
| 40 | //@} | 
|---|
| 41 | //! @name accessors | 
|---|
| 42 | //@{ | 
|---|
| 43 |  | 
|---|
| 44 |  | 
|---|
| 45 | //@} | 
|---|
| 46 |  | 
|---|
| 47 | private: | 
|---|
| 48 | void                            init(HWND hwnd); | 
|---|
| 49 | bool                            save(HWND hwnd); | 
|---|
| 50 |  | 
|---|
| 51 | int                                     getTime(HWND hwnd, HWND child, bool reportError); | 
|---|
| 52 |  | 
|---|
| 53 | // message handling | 
|---|
| 54 | BOOL                            doDlgProc(HWND, UINT, WPARAM, LPARAM); | 
|---|
| 55 | static BOOL CALLBACK dlgProc(HWND, UINT, WPARAM, LPARAM); | 
|---|
| 56 |  | 
|---|
| 57 | private: | 
|---|
| 58 | static CGlobalOptions*  s_singleton; | 
|---|
| 59 |  | 
|---|
| 60 | HWND                            m_parent; | 
|---|
| 61 | CConfig*                        m_config; | 
|---|
| 62 | int                                     m_delayTime; | 
|---|
| 63 | int                                     m_twoTapTime; | 
|---|
| 64 | int                                     m_heartbeatTime; | 
|---|
| 65 | }; | 
|---|
| 66 |  | 
|---|
| 67 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.