Version: 0.6.0
spatrefpropertypage.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGISSpatialReferencePropertyPage class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010,2012,2013 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/catalogui/catalogui.h"
24 #include "wxgis/datasource/gdalinh.h"
25 
26 #include "wx/propgrid/propgrid.h"
27 
35 class WXDLLIMPEXP_GIS_CLU wxGISSpatialReferencePropertyPage :
36  public wxPanel
37 {
38  DECLARE_DYNAMIC_CLASS(wxGISSpatialReferencePropertyPage)
39  enum
40  {
41  ID_PPCTRL = wxID_HIGHEST + 4503
42  };
43 
44 public:
46  wxGISSpatialReferencePropertyPage(const wxGISSpatialReference &oSRS, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Spatial Reference"));
48  virtual bool Create(const wxGISSpatialReference &oSRS, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Spatial Reference"));
49  virtual wxString GetPageName(void) const {return wxString(_("Spatial Reference"));};
50 protected:
51  void FillUndefined(void);
52  void FillProjected(const wxGISSpatialReference &oSRS);
53  void FillGeographic(const wxGISSpatialReference &oSRS);
54  void FillLoclal(const wxGISSpatialReference &oSRS);
55  void FillVertical(const wxGISSpatialReference &oSRS);
56  void AppendProjParam(wxPGProperty* pid, const char *pszName, const wxGISSpatialReference &oSRS);
57  wxPGProperty* AppendProperty(wxPGProperty* pProp);
58  wxPGProperty* AppendProperty(wxPGProperty* pid, wxPGProperty* pProp);
59 protected:
60  wxPropertyGrid* m_pg;
61 };
Definition: gdalinh.h:57
Definition: spatrefpropertypage.h:35