Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ModDlg.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: ModDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Mod Config Dialog Active Window class
13 */
14 
15 #ifndef ModDlg_h
16 #define ModDlg_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 #include "Text.h"
26 
27 // +--------------------------------------------------------------------+
28 
29 class BaseScreen;
30 class Campaign;
31 class ModConfig;
32 
33 // +--------------------------------------------------------------------+
34 
35 class ModDlg : public FormWindow
36 {
37 public:
38  ModDlg(Screen* s, FormDef& def, BaseScreen* mgr);
39  virtual ~ModDlg();
40 
41  virtual void RegisterControls();
42  virtual void Show();
43  virtual void ExecFrame();
44 
45  // Operations:
46 
47  virtual void OnIncrease(AWEvent* event);
48  virtual void OnDecrease(AWEvent* event);
49 
50  virtual void OnSelectEnabled(AWEvent* event);
51  virtual void OnSelectDisabled(AWEvent* event);
52 
53  virtual void OnEnable(AWEvent* event);
54  virtual void OnDisable(AWEvent* event);
55 
56  virtual void OnAccept(AWEvent* event);
57  virtual void OnCancel(AWEvent* event);
58 
59  virtual void Apply();
60  virtual void Cancel();
61 
62  virtual void OnAudio(AWEvent* event);
63  virtual void OnVideo(AWEvent* event);
64  virtual void OnOptions(AWEvent* event);
65  virtual void OnControls(AWEvent* event);
66  virtual void OnMod(AWEvent* event);
67 
68 protected:
69  void UpdateLists();
70 
72 
75 
82 
88 
90  bool changed;
91 };
92 
93 #endif ModDlg_h
94