Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
KeyDlg.h
Go to the documentation of this file.
1 /* Project Starshatter 4.5
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: Stars.exe
6  FILE: KeyDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Navigation Active Window class
13 */
14 
15 #ifndef KeyDlg_h
16 #define KeyDlg_h
17 
18 #include "Types.h"
19 #include "FormWindow.h"
20 
21 // +--------------------------------------------------------------------+
22 
23 class BaseScreen;
24 
25 // +--------------------------------------------------------------------+
26 
27 class KeyDlg : public FormWindow
28 {
29 public:
30  KeyDlg(Screen* s, FormDef& def, BaseScreen* mgr);
31  virtual ~KeyDlg();
32 
33  virtual void RegisterControls();
34  virtual void Show();
35 
36  // Operations:
37  virtual void ExecFrame();
38 
39  virtual void OnApply(AWEvent* event);
40  virtual void OnCancel(AWEvent* event);
41  virtual void OnClear(AWEvent* event);
42 
43  int GetKeyMapIndex() const { return key_index; }
44  void SetKeyMapIndex(int i);
45 
46 protected:
48 
49  int key_index;
50  int key_key;
51  int key_shift;
52  int key_joy;
53  int key_clear;
54 
58 
62 };
63 
64 #endif KeyDlg_h
65