Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MsnElemDlg.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: MsnElemDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Mission Editor Element Dialog Active Window class
13 */
14 
15 #ifndef MsnElemDlg_h
16 #define MsnElemDlg_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 MenuScreen;
30 class MsnEditDlg;
31 class Mission;
32 class MissionElement;
33 
34 // +--------------------------------------------------------------------+
35 
36 class MsnElemDlg : public FormWindow
37 {
38 public:
39  MsnElemDlg(Screen* s, FormDef& def, MenuScreen* mgr);
40  virtual ~MsnElemDlg();
41 
42  virtual void RegisterControls();
43  virtual void Show();
44  virtual void ExecFrame();
45 
46  // Operations:
47  virtual void SetMission(Mission* elem);
48  virtual void SetMissionElement(MissionElement* elem);
49  virtual void OnAccept(AWEvent* event);
50  virtual void OnCancel(AWEvent* event);
51  virtual void OnClassSelect(AWEvent* event);
52  virtual void OnDesignSelect(AWEvent* event);
53  virtual void OnObjectiveSelect(AWEvent* event);
54  virtual void OnIFFChange(AWEvent* event);
55 
56  virtual void UpdateTeamInfo();
57  virtual bool CanCommand(const MissionElement* commander,
58  const MissionElement* subordinate) const;
59 
60 protected:
62 
76 
89 
92 
95  bool exit_latch;
96 };
97 
98 #endif MsnElemDlg_h
99