Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
DistribVegDlg.h
1 //
2 // Name: DistribVegDlg.h
3 //
4 // Copyright (c) 2002-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __DistribVegDlg_H__
9 #define __DistribVegDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 #include "VegGenOptions.h"
13 
14 // WDR: class declarations
15 
16 //----------------------------------------------------------------------------
17 // DistribVegDlg
18 //----------------------------------------------------------------------------
19 
21 {
22 public:
23  // constructors and destructors
24  DistribVegDlg( 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  int m_iChoiceSpecies;
30  int m_iChoiceBiotype;
31  int m_iChoiceBiotypeLayer;
32  int m_iChoiceDensityLayer;
33  int m_iRandomFrom, m_iRandomTo;
34 
35  bool m_bSpecies1, m_bSpecies2, m_bSpecies3;
36  bool m_bDensity1, m_bDensity2, m_bDensity3;
37  bool m_bSize1, m_bSize2;
38 
39  VegGenOptions m_opt;
40 
41  // WDR: method declarations for DistribVegDlg
42  wxTextCtrl* GetTextFixedDensity() { return (wxTextCtrl*) FindWindow( ID_TEXT_FIXED_DENSITY ); }
43  wxTextCtrl* GetTextFixedSize() { return (wxTextCtrl*) FindWindow( ID_TEXT_FIXED_SIZE ); }
44  wxSpinCtrl* GetSpinRandomTo() { return (wxSpinCtrl*) FindWindow( ID_SPIN_RANDOM_TO ); }
45  wxSpinCtrl* GetSpinRandomFrom() { return (wxSpinCtrl*) FindWindow( ID_SPIN_RANDOM_FROM ); }
46  wxChoice* GetChoiceDensityLayer() { return (wxChoice*) FindWindow( ID_CHOICE_DENSITY_LAYER ); }
47  wxChoice* GetChoiceBiotypeLayer() { return (wxChoice*) FindWindow( ID_CHOICE_BIOTYPE_LAYER ); }
48  wxChoice* GetChoiceBiotype() { return (wxChoice*) FindWindow( ID_CHOICE_BIOTYPE ); }
49  wxChoice* GetChoiceSpecies() { return (wxChoice*) FindWindow( ID_CHOICE_SPECIES ); }
50  wxRadioButton* GetSize2() { return (wxRadioButton*) FindWindow( ID_SIZE2 ); }
51  wxRadioButton* GetSize1() { return (wxRadioButton*) FindWindow( ID_SIZE1 ); }
52  wxRadioButton* GetDensity3() { return (wxRadioButton*) FindWindow( ID_DENSITY3 ); }
53  wxRadioButton* GetDensity2() { return (wxRadioButton*) FindWindow( ID_DENSITY2 ); }
54  wxRadioButton* GetDensity1() { return (wxRadioButton*) FindWindow( ID_DENSITY1 ); }
55  wxRadioButton* GetSpecies3() { return (wxRadioButton*) FindWindow( ID_SPECIES3 ); }
56  wxRadioButton* GetSpecies2() { return (wxRadioButton*) FindWindow( ID_SPECIES2 ); }
57  wxRadioButton* GetSpecies1() { return (wxRadioButton*) FindWindow( ID_SPECIES1 ); }
58 
59 private:
60  // WDR: member variable declarations for DistribVegDlg
61  void UpdateEnabling();
62 
63 private:
64  // WDR: handler declarations for DistribVegDlg
65  void OnInitDialog(wxInitDialogEvent& event);
66  void OnRadio( wxCommandEvent &event );
67  void OnOK( wxCommandEvent &event );
68 
69  bool TransferDataFromWindow();
70 
71 private:
72  DECLARE_EVENT_TABLE()
73 };
74 
75 #endif // __DistribVegDlg_H__
76