Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CtlDlg.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: CtlDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Control Options (keyboard/joystick) Dialog Active Window class
13 */
14 
15 #ifndef CtlDlg_h
16 #define CtlDlg_h
17 
18 #include "Types.h"
19 #include "FormWindow.h"
20 #include "Bitmap.h"
21 #include "Button.h"
22 #include "ComboBox.h"
23 #include "ListBox.h"
24 #include "Font.h"
25 
26 // +--------------------------------------------------------------------+
27 
28 class BaseScreen;
29 class MenuScreen;
30 class GameScreen;
31 
32 // +--------------------------------------------------------------------+
33 
34 class CtlDlg : public FormWindow
35 {
36 public:
37  CtlDlg(Screen* s, FormDef& def, BaseScreen* mgr);
38  virtual ~CtlDlg();
39 
40  virtual void RegisterControls();
41  virtual void Show();
42  virtual void ExecFrame();
43 
44  // Operations:
45  virtual void OnCommand(AWEvent* event);
46  virtual void OnCategory(AWEvent* event);
47 
48  virtual void OnControlModel(AWEvent* event);
49 
50  virtual void OnJoySelect(AWEvent* event);
51  virtual void OnJoyThrottle(AWEvent* event);
52  virtual void OnJoyRudder(AWEvent* event);
53  virtual void OnJoySensitivity(AWEvent* event);
54  virtual void OnJoyAxis(AWEvent* event);
55 
56  virtual void OnMouseSelect(AWEvent* event);
57  virtual void OnMouseSensitivity(AWEvent* event);
58  virtual void OnMouseInvert(AWEvent* event);
59 
60  virtual void Apply();
61  virtual void Cancel();
62 
63  virtual void OnApply(AWEvent* event);
64  virtual void OnCancel(AWEvent* event);
65 
66  virtual void OnAudio(AWEvent* event);
67  virtual void OnVideo(AWEvent* event);
68  virtual void OnOptions(AWEvent* event);
69  virtual void OnControls(AWEvent* event);
70  virtual void OnMod(AWEvent* event);
71 
72 protected:
73  void ShowCategory();
74  void UpdateCategory();
75 
77 
81 
83 
89 
93 
99 
102 
105 
110 
114 
115  bool closed;
116 };
117 
118 #endif CtlDlg_h
119