Version: 0.6.0
gxlocaldbui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: local db (sqlite, gdab, mdb) ui classes.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6  * Copyright (C) 2014 Dmitry Baryshnikov
7  * Copyright (C) 2014 NextGIS
8  *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  ****************************************************************************/
22 #pragma once
23 #include "wxgis/catalogui/catalogui.h"
24 #include "wxgis/catalog/gxlocaldb.h"
25 #include "wxgis/catalogui/gxview.h"
26 #include "wxgis/catalogui/gxdatasetui.h"
27 
35 class WXDLLIMPEXP_GIS_CLU wxGxOpenFileGDBUI :
36  public wxGxOpenFileGDB,
37  public IGxObjectUI,
38  public IGxObjectEditUI
39 {
40  DECLARE_CLASS(wxGxOpenFileGDBUI)
41 public:
42  wxGxOpenFileGDBUI(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon & LargeIcon = wxNullIcon, const wxIcon & SmallIcon = wxNullIcon);
43  virtual ~wxGxOpenFileGDBUI(void);
44  //IGxObjectUI
45  virtual wxIcon GetLargeImage(void);
46  virtual wxIcon GetSmallImage(void);
47  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxOpenFileGDB.ContextMenu"));};
48  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxOpenFileGDB.NewMenu"));};
49  //IGxObjectEditUI
50  virtual void EditProperties(wxWindow *parent);
51 protected:
52  //wxGxOpenFileGDB
53  virtual void LoadChildren(void);
54 protected:
55  wxIcon m_oLargeIcon, m_oSmallIcon;
56  wxIcon m_LargeSHPIcon, m_SmallSHPIcon;
57  wxIcon m_LargeDBFIcon, m_SmallDBFIcon;
58 };
59 
67 class WXDLLIMPEXP_GIS_CLU wxGxInitedFeatureDatasetUI :
69 {
70  DECLARE_CLASS(wxGxInitedFeatureDatasetUI)
71 public:
72  wxGxInitedFeatureDatasetUI(wxGISDataset* pwxGISDataset, wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon &LargeIcon = wxNullIcon, const wxIcon &SmallIcon = wxNullIcon);
73  virtual ~wxGxInitedFeatureDatasetUI(void);
74 };
75 
83 class WXDLLIMPEXP_GIS_CLU wxGxInitedTableUI :
84  public wxGxTableUI
85 {
86  DECLARE_CLASS(wxGxInitedTableUI)
87 public:
88  wxGxInitedTableUI(wxGISDataset* pwxGISDataset, wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon &LargeIcon = wxNullIcon, const wxIcon &SmallIcon = wxNullIcon);
89  virtual ~wxGxInitedTableUI(void);
90 };
Definition: gxdatasetui.h:33
Definition: gxlocaldbui.h:67
Definition: catalogui.h:73
Definition: dataset.h:33
Definition: gxlocaldb.h:33
Definition: catalogui.h:90
Definition: gxlocaldbui.h:35
Definition: gxlocaldbui.h:83
Definition: gxdatasetui.h:65
Definition: gxobject.h:37