Version: 0.6.0
vectorpropertypage.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGISVectorPropertyPage class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-2014 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/catalogui/gxdatasetui.h"
25 #include "wxgis/datasource/featuredataset.h"
26 
27 #include "wx/propgrid/propgrid.h"
28 
36 class WXDLLIMPEXP_GIS_CLU wxGISVectorPropertyPage :
37  public wxPanel
38 {
39  DECLARE_DYNAMIC_CLASS(wxGISVectorPropertyPage)
40  enum
41  {
42  ID_PPCTRL = wxID_HIGHEST + 4502
43  };
44 
45 public:
47  wxGISVectorPropertyPage(IGxDataset* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Vector"));
49  virtual bool Create(IGxDataset* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Vector"));
50  virtual wxString GetPageName(void) const {return wxString(_("Vector"));};
51  wxPGProperty* AppendProperty(wxPGProperty* pProp);
52  wxPGProperty* AppendProperty(wxPGProperty* pid, wxPGProperty* pProp);
53  wxPGProperty* AppendMetadataProperty(wxString sMeta);
54  void FillGrid(void);
55  void FillLayerDef(OGRLayer *poLayer, int iLayer, CPLString soPath);
56 protected:
57  wxGISFeatureDataset* m_pDataset;
58  IGxDataset* m_pGxDataset;
59  wxPropertyGrid* m_pg;
60  long m_nCounter;
61 
62  DECLARE_EVENT_TABLE()
63 };
Definition: catalog.h:103
Definition: featuredataset.h:32
Definition: vectorpropertypage.h:36