Version: 0.6.0
gxspatreffolder.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxSpatialReferencesFolder class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009,2011 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/catalog.h"
24 #include "wxgis/catalog/gxarchfolder.h"
25 #include "wxgis/catalog/gxcatalog.h"
26 
27 #define GEOGCSSTR _("Geographic Coordinate Systems")
28 #define PROJCSSTR _("Projected Coordinate Systems")
29 
38 class WXDLLIMPEXP_GIS_CLT wxGxPrjFolder :
39  public wxGxArchiveFolder
40 {
41  DECLARE_CLASS(wxGxPrjFolder)
42 public:
43  wxGxPrjFolder();
44  wxGxPrjFolder(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
45  virtual ~wxGxPrjFolder(void);
46  //wxGxObject
47  virtual wxString GetCategory(void) const {return wxString(_("Coordinate Systems Folder"));};
48 protected:
49  //wxGxArchiveFolder
50  virtual wxGxObject* GetArchiveFolder(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
51 };
52 
60 class WXDLLIMPEXP_GIS_CLT wxGxSpatialReferencesFolder :
61  public wxGxPrjFolder,
63 {
64  DECLARE_DYNAMIC_CLASS(wxGxSpatialReferencesFolder)
65 public:
66  wxGxSpatialReferencesFolder(void);//wxString Path, wxString Name, bool bShowHidden
67  virtual ~wxGxSpatialReferencesFolder(void);
68  //wxGxObject
69  virtual wxString GetName(void) const {return wxString(_("Coordinate Systems"));};
70  virtual wxString GetCategory(void) const {return wxString(_("Coordinate Systems Folder"));};
71  virtual bool Create(wxGxObject *oParent = NULL, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
72  //IGxRootObjectProperties
73  virtual void Init(wxXmlNode* const pConfigNode);
74  virtual void Serialize(wxXmlNode* const pConfigNode);
75 protected:
76  virtual bool IsArchive(void) const;
77 protected:
78  wxString m_sInternalPath;
79  wxGxCatalog* m_pCatalog;
80  bool m_bIsArchive;
81 };
82 
Definition: gxcatalog.h:42
Definition: catalog.h:72
Definition: gxarchfolder.h:31
Definition: gxspatreffolder.h:60
Definition: gxspatreffolder.h:38
Definition: gxobject.h:37