Version: 0.6.0
gxfileui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxFileUI classes.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-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/catalogui/catalogui.h"
24 #include "wxgis/catalog/gxfile.h"
25 
33 class WXDLLIMPEXP_GIS_CLU wxGxFileUI :
34  public wxGxFile,
35  public IGxObjectUI,
36  public IGxObjectEditUI
37 {
38  DECLARE_CLASS(wxGxFileUI)
39 public:
40  wxGxFileUI(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
41  virtual ~wxGxFileUI(void);
42 };
43 
51 class WXDLLIMPEXP_GIS_CLU wxGxPrjFileUI :
52  public wxGxPrjFile,
53  public IGxObjectUI,
54  public IGxObjectEditUI,
55  public IGxObjectWizard
56 {
57  DECLARE_CLASS(wxGxPrjFileUI)
58 public:
59  wxGxPrjFileUI(wxGISEnumPrjFileType eType, wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon &LargeIcon = wxNullIcon, const wxIcon &SmallIcon = wxNullIcon);
60  virtual ~wxGxPrjFileUI(void);
61  //IGxObjectUI
62  virtual wxIcon GetLargeImage(void);
63  virtual wxIcon GetSmallImage(void);
64  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxPrjFile.ContextMenu"));};
65  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxPrjFile.NewMenu"));};
66  //IGxObjectEditUI
67  virtual void EditProperties(wxWindow *parent);
68  //IGxObjectWizard
69  virtual bool Invoke(wxWindow* pParentWnd);
70 protected:
71  wxIcon m_oLargeIcon;
72  wxIcon m_oSmallIcon;
73 };
74 
82 class WXDLLIMPEXP_GIS_CLU wxGxTextFileUI :
83  public wxGxTextFile
84 {
85  DECLARE_CLASS(wxGxTextFileUI)
86 public:
87  wxGxTextFileUI(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon &LargeIcon = wxNullIcon, const wxIcon &SmallIcon = wxNullIcon);
88  virtual ~wxGxTextFileUI(void);
89  //IGxObjectUI
90  virtual wxIcon GetLargeImage(void);
91  virtual wxIcon GetSmallImage(void);
92  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxTextFile.ContextMenu"));};
93  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxTextFile.NewMenu"));};
94  //IGxObjectEditUI
95  virtual void EditProperties(wxWindow *parent);
96 protected:
97  wxIcon m_oLargeIcon;
98  wxIcon m_oSmallIcon;
99 };
Definition: gxfileui.h:82
Definition: gxfile.h:82
Definition: gxfileui.h:51
Definition: catalogui.h:73
Definition: gxfile.h:33
Definition: catalogui.h:60
Definition: gxfile.h:59
Definition: catalogui.h:90
Definition: gxobject.h:37
Definition: gxfileui.h:33