Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
MapServerDlg.h
1 //
2 // Name: MapServerDlg.h
3 //
4 // Copyright (c) 2003-2011 Virtual Terrain Project
5 // Free for all uses, see license.txt for details.
6 //
7 
8 #ifndef __MapServerDlg_H__
9 #define __MapServerDlg_H__
10 
11 #include "VTBuilder_UI.h"
12 
13 #include "vtdata/MathTypes.h"
14 #include "vtdata/WFSClient.h"
15 #include "vtdata/Projections.h"
16 
17 // WDR: class declarations
18 
19 //----------------------------------------------------------------------------
20 // MapServerDlg.cpp
21 //----------------------------------------------------------------------------
22 
24 {
25 public:
26  // constructors and destructors
27  MapServerDlg(wxWindow *parent, wxWindowID id, const wxString &title,
28  const wxPoint& pos = wxDefaultPosition,
29  const wxSize& size = wxDefaultSize,
30  long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER);
31 
32  // WDR: method declarations for MapServerDlg.cpp
33  wxButton* GetDotdotdot() { return (wxButton*) FindWindow( ID_DOTDOTDOT ); }
34  wxTextCtrl* GetTextToFile() { return (wxTextCtrl*) FindWindow( ID_TEXT_TO_FILE ); }
35  wxTextCtrl* GetStyleDesc() { return (wxTextCtrl*) FindWindow( ID_STYLE_DESC ); }
36  wxListBox* GetListStyles() { return (wxListBox*) FindWindow( ID_LIST_STYLES ); }
37  wxTextCtrl* GetLayerDesc() { return (wxTextCtrl*) FindWindow( ID_LAYER_DESC ); }
38  wxListBox* GetListLayers() { return (wxListBox*) FindWindow( ID_LIST_LAYERS ); }
39  wxTextCtrl* GetQuery() { return (wxTextCtrl*) FindWindow( ID_QUERY ); }
40  wxComboBox* GetBaseUrl() { return (wxComboBox*) FindWindow( ID_BASE_URL ); }
41  wxChoice* GetFormat() { return (wxChoice*) FindWindow( ID_CHOICE_FORMAT ); }
42 
43  void UpdateLayerList();
44  void UpdateLayerDescription();
45  void UpdateURL();
46  void SetServerArray(OGCServerArray &array);
47  void UpdateEnabling();
48 
49  bool m_bNewLayer;
50  bool m_bToFile;
51 
52  int m_iXSize;
53  int m_iYSize;
54  wxString m_strQueryURL;
55  DRECT m_area;
56  bool m_bSetting;
57  int m_iServer;
58  int m_iLayer;
59  int m_iStyle;
60  int m_iFormat; // 0 = JPEG, 1 = PNG, 2 = GeoTIFF
61  wxString m_strToFile;
62  OGCServerArray *m_pServers;
63  vtProjection m_proj;
64 
65 private:
66  // WDR: member variable declarations for MapServerDlg.cpp
67 
68 private:
69  // WDR: handler declarations for MapServerDlg.cpp
70  void OnTextToFile( wxCommandEvent &event );
71  void OnDotDotDot( wxCommandEvent &event );
72  void OnRadio( wxCommandEvent &event );
73  void OnQueryLayers( wxCommandEvent &event );
74  void OnLayer( wxCommandEvent &event );
75  void OnFormat( wxCommandEvent &event );
76  void OnServer( wxCommandEvent &event );
77  void OnSize( wxCommandEvent &event );
78  void OnBaseUrlText( wxCommandEvent &event );
79  void OnInitDialog(wxInitDialogEvent& event);
80 
81 private:
82  DECLARE_EVENT_TABLE()
83 };
84 
85 #endif // __MapServerDlg_H__
86