Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
MatchDlg.h
1 //
2 // Name: MatchDlg.h
3 //
4 // Copyright (c) 2007-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __MatchDlg_H__
9 #define __MatchDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 #include "vtdata/MathTypes.h"
13 
14 class BuilderView;
15 
16 // WDR: class declarations
17 
18 //----------------------------------------------------------------------------
19 // MatchDlg
20 //----------------------------------------------------------------------------
21 
22 class MatchDlg: public MatchDlgBase
23 {
24 public:
25  // constructors and destructors
26  MatchDlg( wxWindow *parent, wxWindowID id, const wxString &title,
27  const wxPoint& pos = wxDefaultPosition,
28  const wxSize& size = wxDefaultSize,
29  long style = wxDEFAULT_DIALOG_STYLE );
30 
31  // WDR: method declarations for MatchDlg
32  wxCheckBox* GetShrink() { return (wxCheckBox*) FindWindow( ID_SHRINK ); }
33  wxCheckBox* GetGrow() { return (wxCheckBox*) FindWindow( ID_GROW ); }
34  void SetArea(const DRECT &area, bool bIsGeo);
35  wxChoice* GetMatchLayer() { return (wxChoice*) FindWindow( ID_MATCH_LAYER ); }
36  void SetView(BuilderView *pView) { m_pView = pView; }
37 
38 public:
39  // WDR: member variable declarations for MatchDlg
40  wxString m_strExtent1;
41  wxString m_strExtent2;
42  int m_iLayer;
43  wxString m_strLayerRes;
44  bool m_bGrow, m_bShrink;
45  int m_iTileSize;
46  wxString m_strTiling;
47 
48  bool m_bIsGeo;
49  DPoint2 m_spacing;
50  IPoint2 m_tile;
51  DRECT m_area, m_original;
52  wxString m_fs; // Format string depends on coordinate scheme
53 
54  BuilderView *m_pView;
55 
56 private:
57  // WDR: handler declarations for MatchDlg
58  void OnShrink( wxCommandEvent &event );
59  void OnGrow( wxCommandEvent &event );
60  void OnMatchLayer( wxCommandEvent &event );
61  void OnSpinUp( wxSpinEvent &event );
62  void OnSpinDown( wxSpinEvent &event );
63 
64  void UpdateValues();
65  void UpdateLayers();
66  void UpdateGuess();
67  void GetLayerSpacing();
68 
69 private:
70  DECLARE_EVENT_TABLE()
71 };
72 
73 #endif // __MatchDlg_H__
74