Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
OptionsDlg.h
1 //
2 // Name: OptionsDlg.h
3 //
4 // Copyright (c) 2004-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 #ifndef WX_PRECOMP
12  #include "wx/wx.h"
13 #endif
14 
15 #include "EnviroUI.h"
16 #include "vtui/AutoDialog.h"
17 #include "../Options.h"
18 
19 // WDR: class declarations
20 
21 //----------------------------------------------------------------------------
22 // OptionsDlg
23 //----------------------------------------------------------------------------
24 
29 {
30 public:
31  // constructors and destructors
32  OptionsDlg( wxWindow *parent, wxWindowID id, const wxString &title,
33  const wxPoint& pos = wxDefaultPosition,
34  const wxSize& size = wxDefaultSize,
35  long style = wxDEFAULT_DIALOG_STYLE );
36 
37  // WDR: method declarations for OptionsDlg
38  wxTextCtrl* GetSelectionRadius() { return (wxTextCtrl*) FindWindow( ID_SELECTION_RADIUS ); }
39  wxTextCtrl* GetSelectionCutoff() { return (wxTextCtrl*) FindWindow( ID_SELECTION_CUTOFF ); }
40  wxCheckBox* GetSizeInside() { return (wxCheckBox*) FindWindow( ID_SIZE_INSIDE ); }
41  wxTextCtrl* GetWinYsize() { return (wxTextCtrl*) FindWindow( ID_WIN_YSIZE ); }
42  wxTextCtrl* GetWinXsize() { return (wxTextCtrl*) FindWindow( ID_WIN_XSIZE ); }
43  wxTextCtrl* GetWiny() { return (wxTextCtrl*) FindWindow( ID_WINY ); }
44  wxTextCtrl* GetWinx() { return (wxTextCtrl*) FindWindow( ID_WINX ); }
45  wxChoice* GetContent() { return (wxChoice*) FindWindow( ID_CHOICE_CONTENT ); }
46 
47  void GetOptionsFrom(EnviroOptions &opt);
48  void PutOptionsTo(EnviroOptions &opt);
49  void UpdateEnabling();
50 
51 private:
52  // WDR: member variable declarations for OptionsDlg
53  bool m_bFullscreen;
54  bool m_bStereo;
55  int m_iStereoMode;
56  IPoint2 m_WinPos, m_WinSize;
57  bool m_bLocationInside;
58 
59 // bool m_bHtmlpane;
60 // bool m_bFloatingToolbar;
61  bool m_bTextureCompression;
62  bool m_bDisableMipmaps;
63 
64  bool m_bDirectPicking;
65  float m_fSelectionCutoff;
66  float m_fMaxPickableInstanceRadius;
67 
68  float m_fPlantScale;
69 // bool m_bShadows;
70  bool m_bOnlyAvailableSpecies;
71 
72  int m_iContentFile;
73  wxString m_strContentFile;
74  bool m_bShowProgress;
75  bool m_bFlyIn;
76  bool m_bUseJoystick;
77  bool m_bUseSpaceNav;
78 
79 private:
80  // WDR: handler declarations for OptionsDlg
81  void OnCheck( wxCommandEvent &event );
82  void OnInitDialog(wxInitDialogEvent& event);
83  void OnOK( wxCommandEvent &event );
84 
85 private:
86  DECLARE_EVENT_TABLE()
87 };
88 
89 #endif // __OptionsDlg_H__