Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MsnEditDlg.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: MsnEditDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Mission Editor Dialog Active Window class
13 */
14 
15 #ifndef MsnEditDlg_h
16 #define MsnEditDlg_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 Campaign;
31 class Mission;
32 class MissionInfo;
33 
34 // +--------------------------------------------------------------------+
35 
36 class MsnEditDlg : public FormWindow
37 {
38 public:
39  friend class MsnEditNavDlg;
40 
41  MsnEditDlg(Screen* s, FormDef& def, MenuScreen* mgr);
42  virtual ~MsnEditDlg();
43 
44  virtual void RegisterControls();
45  virtual void Show();
46  virtual void ExecFrame();
47  virtual void ScrapeForm();
48 
49  // Operations:
50  virtual void OnAccept(AWEvent* event);
51  virtual void OnCancel(AWEvent* event);
52  virtual void OnTabButton(AWEvent* event);
53  virtual void OnSystemSelect(AWEvent* event);
54  virtual void OnElemAdd(AWEvent* event);
55  virtual void OnElemEdit(AWEvent* event);
56  virtual void OnElemDel(AWEvent* event);
57  virtual void OnElemSelect(AWEvent* event);
58  virtual void OnElemInc(AWEvent* event);
59  virtual void OnElemDec(AWEvent* event);
60  virtual void OnEventAdd(AWEvent* event);
61  virtual void OnEventEdit(AWEvent* event);
62  virtual void OnEventDel(AWEvent* event);
63  virtual void OnEventSelect(AWEvent* event);
64  virtual void OnEventInc(AWEvent* event);
65  virtual void OnEventDec(AWEvent* event);
66 
67  virtual Mission* GetMission() const { return mission; }
68  virtual void SetMission(Mission* m);
69  virtual void SetMissionInfo(MissionInfo* m);
70 
71 protected:
72  virtual void DrawPackages();
73  virtual void ShowTab(int tab);
74 
76 
79 
85 
91 
95 
100 
104 
107 
110 
113 };
114 
115 #endif MsnEditDlg_h
116