Version: 0.6.0
gxspatreffolderui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxSpatialReferencesFolderUI classes.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009-2011,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/catalog/gxspatreffolder.h"
24 #include "wxgis/catalogui/catalogui.h"
25 #include "wxgis/catalogui/gxarchfolderui.h"
26 
34 class WXDLLIMPEXP_GIS_CLU wxGxSpatialReferencesFolderUI :
36  public IGxObjectUI
37 {
38  DECLARE_DYNAMIC_CLASS(wxGxSpatialReferencesFolderUI)
39 public:
40  wxGxSpatialReferencesFolderUI(void);//wxString Path, wxString Name, bool bShowHidden
41  virtual ~wxGxSpatialReferencesFolderUI(void);
42  //IGxObjectUI
43  virtual wxIcon GetLargeImage(void);
44  virtual wxIcon GetSmallImage(void);
45  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxSpatialReferencesFolder.ContextMenu"));};
46  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxSpatialReferencesFolder.NewMenu"));};
47 protected:
48  //wxGxArchiveFolder
49  virtual wxGxObject* GetArchiveFolder(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
50 protected:
51  wxIcon m_LargeIcon, m_SmallIcon;
52 };
53 
62 class WXDLLIMPEXP_GIS_CLU wxGxPrjFolderUI :
63  public wxGxArchiveFolderUI
64 {
65  DECLARE_CLASS(wxGxPrjFolderUI)
66 public:
67  wxGxPrjFolderUI(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", wxIcon LargeIcon = wxNullIcon, wxIcon SmallIcon = wxNullIcon);
68  virtual ~wxGxPrjFolderUI(void);
69  //IGxObject
70  virtual wxString GetCategory(void) const {return wxString(_("Coordinate Systems Folder"));};
71  //IGxObjectUI
72  virtual wxIcon GetLargeImage(void);
73  virtual wxIcon GetSmallImage(void);
74 protected:
75  //wxGxArchiveFolder
76  virtual wxGxObject* GetArchiveFolder(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
77 protected:
78  wxIcon m_LargeIcon, m_SmallIcon;
79 };
80 
Definition: gxspatreffolderui.h:34
Definition: catalogui.h:73
Definition: gxspatreffolder.h:60
Definition: gxspatreffolderui.h:62
Definition: gxarchfolderui.h:63
Definition: gxobject.h:37