Version: 0.6.0
gxcatalogui.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxCatalogUI class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2010-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/gxcatalog.h"
25 
26 #include <wx/imaglist.h>
27 
34 class WXDLLIMPEXP_GIS_CLU wxGxCatalogUI :
35  public wxGxCatalog,
36  public IGxObjectUI,
37  public IGxObjectEditUI
38 {
39  wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxGxCatalogUI);
40 public:
41  wxGxCatalogUI(wxGxObject *oParent = NULL, const wxString &soName = _("Catalog"), const CPLString &soPath = "");
42  virtual ~wxGxCatalogUI(void);
43  virtual void SetOpenLastPath(bool bOpenLast) {m_bOpenLastPath = bOpenLast;};
44  virtual bool GetOpenLastPath(void){return m_bOpenLastPath;};
45  virtual long AddPending(long nParentId);
46  virtual void RemovePending(long nPendingId);
47  //IGxObjectUI
48  virtual wxIcon GetLargeImage(void);
49  virtual wxIcon GetSmallImage(void);
50  virtual wxString ContextMenu(void) const {return wxString(wxT("wxGxCatalog.ContextMenu"));};
51  virtual wxString NewMenu(void) const {return wxString(wxT("wxGxCatalog.NewMenu"));};
52  //IGxObjectEditUI
53  virtual void EditProperties(wxWindow *parent);
54  //Initialization
55  virtual bool Init(void);
56 protected:
57  virtual wxString GetConfigName(void) const {return wxString(wxT("wxCatalogUI"));};
58 protected:
59  wxIcon m_oIcon;
60  bool m_bOpenLastPath;
61  wxVector<wxIcon> m_oaPendingIconsLarge, m_oaPendingIconsSmall;
62 };
63 
64 bool WXDLLIMPEXP_GIS_CLU FolderDrop(const CPLString& pPath, const wxArrayString& GxObjectPaths, bool bMove);
65 
Definition: gxcatalog.h:42
Definition: catalogui.h:73
Definition: gxcatalogui.h:34
Definition: catalogui.h:90
Definition: gxobject.h:37