Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
TSDlg.h
1 //
2 // Name: TSDlg.cpp
3 //
4 // Copyright (c) 2004-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __TSDlg_H__
9 #define __TSDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 
13 // WDR: class declarations
14 
15 //----------------------------------------------------------------------------
16 // TSDialog
17 //----------------------------------------------------------------------------
18 
19 class TSDialog: public TSDlgBase
20 {
21 public:
22  // constructors and destructors
23  TSDialog( wxWindow *parent, wxWindowID id, const wxString &title,
24  const wxPoint& pos = wxDefaultPosition,
25  const wxSize& size = wxDefaultSize,
26  long style = wxDEFAULT_DIALOG_STYLE );
27 
28  // WDR: method declarations for TSDialog
29  wxButton* GetDotDotDot() { return (wxButton*) FindWindow( ID_DOTDOTDOT ); }
30  wxTextCtrl* GetTextToFile() { return (wxTextCtrl*) FindWindow( ID_TEXT_TO_FILE ); }
31  wxChoice* GetMpp() { return (wxChoice*) FindWindow( ID_MPP ); }
32  wxChoice* GetTheme() { return (wxChoice*) FindWindow( ID_THEME ); }
33 
34  int m_iTheme;
35  int m_iMpp;
36  int m_iMetersPerPixel;
37  bool m_bNewLayer;
38  bool m_bToFile;
39  wxString m_strToFile;
40 
41 private:
42  void UpdateMpp();
43  void EnableBasedOnConstraint();
44  void UpdateMetersPerPixel();
45 
46  // WDR: member variable declarations for TSDialog
47  int s1, s2;
48 
49 private:
50  // WDR: handler declarations for TSDialog
51  void OnDotDotDot( wxCommandEvent &event );
52  void OnRadioOutput( wxCommandEvent &event );
53  void OnTheme( wxCommandEvent &event );
54  void OnMpp( wxCommandEvent &event );
55 
56 private:
57  DECLARE_EVENT_TABLE()
58 };
59 
60 #endif // __TSDlg_H__
61