Version: 0.6.0
gxfolderui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxFolderUI class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009-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/catalogui/catalogui.h"
23 #include "wxgis/catalog/gxfolder.h"
24 #include "wxgis/catalogui/gxview.h"
25 
33 class WXDLLIMPEXP_GIS_CLU wxGxFolderUI :
34  public wxGxFolder,
35  public IGxObjectUI,
36  public IGxObjectEditUI,
37  public IGxDropTarget,
38  public wxGxAutoRenamer
39 {
40  DECLARE_CLASS(wxGxFolderUI)
41 public:
42  wxGxFolderUI(wxGxObject *oParent, const wxString &soName = wxEmptyString, const CPLString &soPath = "", const wxIcon & LargeIcon = wxNullIcon, const wxIcon & SmallIcon = wxNullIcon);
43  virtual ~wxGxFolderUI(void);
44  //IGxObjectUI
45  virtual wxIcon GetLargeImage(void);
46  virtual wxIcon GetSmallImage(void);
47  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxFolder.ContextMenu"));};
48  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxFolder.NewMenu"));};
49  //IGxObjectEditUI
50  virtual void EditProperties(wxWindow *parent);
51  //IGxDropTarget
52  virtual bool Drop(const wxArrayString& saGxObjectPaths, bool bMove);
53 protected:
54  wxIcon m_oLargeIcon, m_oSmallIcon;
55 };
Definition: gxfolder.h:33
Definition: catalogui.h:73
Definition: gxfolderui.h:33
Definition: catalogui.h:90
Definition: catalogui.h:128
Definition: gxobject.h:37
Definition: gxview.h:65