Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EngDlg.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: EngDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Engineering (Power/Maint) Dialog Active Window class
13 */
14 
15 #ifndef EngDlg_h
16 #define EngDlg_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 GameScreen;
29 class Ship;
30 class PowerSource;
31 class System;
32 class Component;
33 
34 class PowerClient;
35 
36 // +--------------------------------------------------------------------+
37 
38 class EngDlg : public FormWindow
39 {
40 public:
41  EngDlg(Screen* s, FormDef& def, GameScreen* mgr);
42  virtual ~EngDlg();
43 
44  virtual void Show();
45  virtual void Hide();
46  virtual void RegisterControls();
47 
48  // Operations:
49  virtual void OnSource(AWEvent* event);
50  virtual void OnClient(AWEvent* event);
51  virtual void OnRouteStart(AWEvent* event);
52  virtual void OnRouteComplete(AWEvent* event);
53  virtual void OnPowerOff(AWEvent* event);
54  virtual void OnPowerOn(AWEvent* event);
55  virtual void OnOverride(AWEvent* event);
56  virtual void OnPowerLevel(AWEvent* event);
57  virtual void OnComponent(AWEvent* event);
58  virtual void OnAutoRepair(AWEvent* event);
59  virtual void OnRepair(AWEvent* event);
60  virtual void OnReplace(AWEvent* event);
61  virtual void OnQueue(AWEvent* event);
62  virtual void OnPriorityIncrease(AWEvent* event);
63  virtual void OnPriorityDecrease(AWEvent* event);
64  virtual void OnClose(AWEvent* event);
65 
66  virtual void ExecFrame();
67  void UpdateRouteTables();
68  void UpdateSelection();
69  void SetShip(Ship* s);
70 
71 protected:
74 
84  Button* override;
94 
97 
100 
103 };
104 
105 #endif EngDlg_h
106