Version: 0.6.0
gxarchfolderui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxArchiveUI classes.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-2011,2013,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/gxfolderui.h"
24 #include "wxgis/catalog/gxarchfolder.h"
25 
33 class WXDLLIMPEXP_GIS_CLU wxGxArchiveUI :
34  public wxGxArchive,
35  public IGxObjectUI,
36  public IGxObjectEditUI
37 {
38  DECLARE_CLASS(wxGxArchiveUI)
39 public:
40  wxGxArchiveUI(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon & LargeIcon = wxNullIcon, const wxIcon & SmallIcon = wxNullIcon);
41  virtual ~wxGxArchiveUI(void);
42  //IGxObjectUI
43  virtual wxIcon GetLargeImage(void);
44  virtual wxIcon GetSmallImage(void);
45  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxArchive.ContextMenu"));};
46  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxArchive.NewMenu"));};
47  //IGxObjectEditUI
48  virtual void EditProperties(wxWindow *parent);
49 protected:
50  //wxGxArchive
51  virtual wxGxObject* GetArchiveFolder(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
52 protected:
53  wxIcon m_oLargeIcon, m_oSmallIcon;
54 };
55 
63 class WXDLLIMPEXP_GIS_CLU wxGxArchiveFolderUI :
64  public wxGxArchiveFolder,
65  public IGxObjectUI,
66  public IGxObjectEditUI
67 {
68  DECLARE_CLASS(wxGxArchiveFolderUI)
69 public:
70  wxGxArchiveFolderUI(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon & LargeIcon = wxNullIcon, const wxIcon & SmallIcon = wxNullIcon);
71  virtual ~wxGxArchiveFolderUI(void);
72  //IGxObjectUI
73  virtual wxIcon GetLargeImage(void);
74  virtual wxIcon GetSmallImage(void);
75  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxArchiveFolder.ContextMenu"));};
76  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxArchiveFolder.NewMenu"));};
77 protected:
78  //wxGxArchive
79  virtual wxGxObject* GetArchiveFolder(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
80 protected:
81  wxIcon m_oLargeIcon, m_oSmallIcon;
82 };
83 
84 
Definition: gxarchfolderui.h:33
Definition: gxarchfolder.h:31
Definition: catalogui.h:73
Definition: gxarchfolder.h:58
Definition: catalogui.h:90
Definition: gxarchfolderui.h:63
Definition: gxobject.h:37