Version: 0.6.0
gxfolder.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxFolder class.
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 #include "wxgis/catalog/gxobject.h"
23 
24 #include <wx/dir.h>
25 
33 class WXDLLIMPEXP_GIS_CLT wxGxFolder :
34  public wxGxObjectContainer,
35  public IGxObjectEdit,
36  public IGxObjectNoFilter
37 {
38  DECLARE_CLASS(wxGxFolder)
39 public:
40  wxGxFolder(void);
41  wxGxFolder(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "");
42  virtual ~wxGxFolder(void);
43  //wxGxObject
44  virtual wxString GetBaseName(void) const;
45  virtual wxString GetCategory(void) const {return wxString(_("Folder"));};
46  virtual void Refresh(void);
47  //IGxObjectEdit
48  virtual bool Delete(void);
49  virtual bool CanDelete(void);
50  virtual bool Rename(const wxString &sNewName);
51  virtual bool CanRename(void);
52  virtual bool Copy(const CPLString &szDestPath, ITrackCancel* const pTrackCancel);
53  virtual bool CanCopy(const CPLString &szDestPath);
54  virtual bool Move(const CPLString &szDestPath, ITrackCancel* const pTrackCancel);
55  virtual bool CanMove(const CPLString &szDestPath);
56  //wxGxObjectContainer
57  virtual bool AreChildrenViewable(void) const;
58  virtual bool HasChildren(void);
59  virtual bool CanCreate(long nDataType, long DataSubtype);
60 protected:
61  //wxGxFolder
62  virtual void LoadChildren(void);
63 protected:
64  bool m_bIsChildrenLoaded;
65  long m_nDefaultCreateDirMode;
66 };
Definition: gxfolder.h:33
A TrackCancel interface class.
Definition: core.h:144
Definition: gxobject.h:78
Definition: catalog.h:51
Definition: catalog.h:123
Definition: gxobject.h:37