Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
OptionsDlg.h
1 //
2 // Name: OptionsDlg.h
3 //
4 // Copyright (c) 2002-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __OptionsDlg_H__
9 #define __OptionsDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 #include "ElevDrawOptions.h"
13 
14 // WDR: class declarations
15 
16 //----------------------------------------------------------------------------
17 // OptionsDlg
18 //----------------------------------------------------------------------------
19 
20 class OptionsDlg: public OptionsDlgBase
21 {
22 public:
23  // constructors and destructors
24  OptionsDlg( wxWindow *parent, wxWindowID id, const wxString &title,
25  const wxPoint& pos = wxDefaultPosition,
26  const wxSize& size = wxDefaultSize,
27  long style = wxDEFAULT_DIALOG_STYLE );
28 
29  // WDR: method declarations for OptionsDlg
30  wxButton* GetRenderOptions() { return (wxButton*) FindWindow( ID_RENDER_OPTIONS ); }
31  wxCheckBox* GetCheckHideUnknown() { return (wxCheckBox*) FindWindow( ID_CHECK_HIDE_UNKNOWN ); }
32  wxRadioButton* GetRadioColor() { return (wxRadioButton*) FindWindow( ID_RADIO_COLOR ); }
33  wxRadioButton* GetRadioOutlineOnly() { return (wxRadioButton*) FindWindow( ID_RADIO_OUTLINE_ONLY ); }
34  wxChoice* GetElevUnit() { return (wxChoice*) FindWindow( ID_ELEVUNIT ); }
35 
36  void SetElevDrawOptions(const ElevDrawOptions &opt);
37  void GetElevDrawOptions(ElevDrawOptions &opt);
38 
39  bool m_bShowMinutes;
40  int m_iElevUnits;
41 
42  bool m_bShowOutlines;
43  ElevDrawOptions m_opt;
44  bool m_bHideUnknown;
45  bool m_bDrawTinSimple;
46 
47  bool m_bShowRoadWidth;
48  bool m_bDrawRawSimple;
49  bool m_bShowPath;
50 
51 private:
52  // WDR: member variable declarations for OptionsDlg
53 
54 private:
55  void UpdateEnables();
56 
57  // WDR: handler declarations for OptionsDlg
58  void OnHideUnknown( wxCommandEvent &event );
59  void OnRenderOptions( wxCommandEvent &event );
60  void OnRadio( wxCommandEvent &event );
61  void OnInitDialog(wxInitDialogEvent& event);
62 
63 private:
64  DECLARE_EVENT_TABLE()
65 };
66 
67 #endif // __OptionsDlg_H__