Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
StartupDlg.h
1 //
2 // Name: StartupDlg.h
3 //
4 // Copyright (c) 2001-2006 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __StartupDlg_H__
9 #define __StartupDlg_H__
10 
11 #include "EnviroUI.h"
12 #include "vtui/AutoDialog.h"
13 #include "../Options.h"
14 
15 class EnviroOptions;
16 
17 // WDR: class declarations
18 
19 //----------------------------------------------------------------------------
20 // StartupDlg
21 //----------------------------------------------------------------------------
22 
24 {
25 public:
26  // constructors and destructors
27  StartupDlg( wxWindow *parent, wxWindowID id, const wxString &title,
28  const wxPoint& pos = wxDefaultPosition,
29  const wxSize& size = wxDefaultSize,
30  long style = wxDEFAULT_DIALOG_STYLE );
31 
32  void GetOptionsFrom(EnviroOptions &opt);
33  void PutOptionsTo(EnviroOptions &opt);
34  void UpdateState();
35  void RefreshTerrainChoices();
36 
37  // WDR: method declarations for StartupDlg
38  wxButton* GetTerrMan() { return (wxButton*) FindWindow( ID_TERRMAN ); }
39  wxButton* GetEditprop() { return (wxButton*) FindWindow( ID_EDITPROP ); }
40  wxChoice* GetTname() { return (wxChoice*) FindWindow( ID_TNAME ); }
41  wxStaticText* GetImagetext() { return (wxStaticText*) FindWindow( ID_IMAGETEXT ); }
42  wxComboBox* GetImage() { return (wxComboBox*) FindWindow( ID_IMAGE ); }
43 
44 private:
45  // WDR: member variable declarations for StartupDlg
46  EnviroOptions m_opt;
47 
48  bool m_bStartEarth;
49  bool m_bStartTerrain;
50  wxString m_strTName;
51  wxString m_strEarthImage;
52  wxStaticText *m_psImage;
53  wxComboBox *m_pImage;
54 
55 private:
56  // WDR: handler declarations for StartupDlg
57  void OnInitDialog(wxInitDialogEvent& event);
58  void OnTnameChoice( wxCommandEvent &event );
59  void OnTerrMan( wxCommandEvent &event );
60  void OnTerrain( wxCommandEvent &event );
61  void OnEarthView( wxCommandEvent &event );
62  void OnOpenGLInfo( wxCommandEvent &event );
63  void OnOptions( wxCommandEvent &event );
64  void OnOK( wxCommandEvent &event );
65  void OnEditProp( wxCommandEvent &event );
66 
67 private:
68  DECLARE_EVENT_TABLE()
69 };
70 
71 #endif // __StartupDlg_H__
72