Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
NavDlg.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: NavDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Navigation Active Window class
13 */
14 
15 #ifndef NavDlg_h
16 #define NavDlg_h
17 
18 #include "Types.h"
19 #include "FormWindow.h"
20 #include "Bitmap.h"
21 #include "Button.h"
22 #include "Font.h"
23 
24 class BaseScreen;
25 class MapView;
26 class StarSystem;
27 class Ship;
28 class SimRegion;
29 class Orbital;
30 class OrbitalRegion;
31 class Mission;
32 
33 // +--------------------------------------------------------------------+
34 
35 class NavDlg : public FormWindow
36 {
37 public:
38  NavDlg(Screen* s, FormDef& def, BaseScreen* mgr);
39  virtual ~NavDlg();
40 
41  virtual void RegisterControls();
42 
43  // Operations:
44  virtual void OnView(AWEvent* event);
45  virtual void OnFilter(AWEvent* event);
46  virtual void OnSelect(AWEvent* event);
47  virtual void OnCommit(AWEvent* event);
48  virtual void OnCancel(AWEvent* event);
49  virtual void OnEngage(AWEvent* event);
50  virtual void OnMapDown(AWEvent* event);
51  virtual void OnMapMove(AWEvent* event);
52  virtual void OnMapClick(AWEvent* event);
53  virtual void OnClose(AWEvent* event);
54 
55  virtual void ExecFrame();
56  StarSystem* GetSystem() const { return star_system; }
57  void SetSystem(StarSystem* s);
58  Mission* GetMission() const { return mission; }
59  void SetMission(Mission* m);
60  Ship* GetShip() const { return ship; }
61  void SetShip(Ship* s);
62 
63  bool GetEditorMode() const { return editor; }
64  void SetEditorMode(bool b);
65 
66  void UseViewMode(int mode);
67  void UseFilter(int index);
68  void SelectObject(int index);
69  void UpdateSelection();
70  void UpdateLists();
71  void CoordinateSelection();
72 
73  void SelectStar(Orbital* star);
74  void SelectPlanet(Orbital* planet);
75  void SelectRegion(OrbitalRegion* rgn);
76 
81 
82  void SetNavEditMode(int mode);
83  int GetNavEditMode();
84 
85 protected:
92 
99 
102 
106 
112 
115  bool editor;
116 };
117 
118 #endif NavDlg_h
119