Version: 0.6.0
tablepropertypage.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGISTablePropertyPage class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2011-2012,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/catalog/gxdataset.h"
25 #include "wxgis/datasource/table.h"
26 
27 #include "wx/propgrid/propgrid.h"
28 
36 class WXDLLIMPEXP_GIS_CLU wxGISTablePropertyPage :
37  public wxPanel
38 {
39  DECLARE_DYNAMIC_CLASS(wxGISTablePropertyPage)
40  enum
41  {
42  ID_PPCTRL = wxID_HIGHEST + 4502
43  };
44 
45 public:
47  wxGISTablePropertyPage(wxGxTable* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Table"));
49  virtual bool Create(wxGxTable* pGxDataset, wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("Table"));
50  virtual wxString GetPageName(void){return wxString(_("Table"));};
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  wxGISTable* m_pDataset;
58  wxGxTable* m_pGxDataset;
59 
60  wxPropertyGrid* m_pg;
61  long m_nCounter;
62 
63  DECLARE_EVENT_TABLE()
64 };
Definition: table.h:37
Definition: gxdataset.h:124
Definition: tablepropertypage.h:36