Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
StatusBar.h
1 //
2 // A custom status bar
3 //
4 // Copyright (c) 2001-2005 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef STATUSBARH
9 #define STATUSBARH
10 
11 #include <wx/statusbr.h>
12 
13 class MainFrame;
14 
15 class MyStatusBar : public wxStatusBar
16 {
17 public:
18  MyStatusBar(wxWindow *parent);
19  virtual ~MyStatusBar();
20 
21  // event handlers
22  void OnSize(wxSizeEvent& event);
23  void SetTexts(MainFrame *frame);
24 
25  bool m_bShowMinutes;
26  LinearUnits m_ShowVertUnits;
27 
28 private:
29  wxString FormatCoord(bool bGeo, double coord);
30 
31  enum
32  {
33  Field_Text,
34  Field_Coord,
35  Field_Zone,
36  Field_Datum,
37  Field_HUnits,
38  Field_Mouse,
39  Field_Height,
40  Field_Max
41  };
42 
43  DECLARE_EVENT_TABLE()
44 };
45 
46 #endif // STATUSBARH
47