Version: 0.6.0
gxview.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxView class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009-2012 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/gxselection.h"
23 #include "wxgis/catalog/catalog.h"
24 #include "wxgis/catalog/gxobject.h"
25 
26 
27 
35 class WXDLLIMPEXP_GIS_CLU wxGxView :
36  public IView
37 {
38 public:
39  wxGxView(void);
40  virtual ~wxGxView(void);
41  //IView
42  virtual bool Activate(IApplication* const pApplication, wxXmlNode* const pConf);
43  virtual void Deactivate(void);
44  virtual wxString GetViewName(void) const;
45  virtual wxIcon GetViewIcon(void);
46  virtual void SetViewIcon(wxIcon Icon);
47  virtual void Refresh(void){};
48  //wxGxView
49  virtual bool Applies(wxGxSelection* const Selection);
50  virtual void BeginRename(long nObjectID = wxNOT_FOUND){};
51  virtual void OnShow(bool bShow){};
52 protected:
53  wxString m_sViewName;
54  wxXmlNode* m_pXmlConf;
55  wxIcon m_Icon;
56 };
57 
66 {
67 public:
68  wxGxAutoRenamer(void);
69  virtual ~wxGxAutoRenamer(void);
70  virtual void BeginRenameOnAdd(wxGxView* const pGxView, const CPLString &szPath);
71  virtual bool IsBeginRename(wxGxView* const pGxView, const CPLString &szPath);
72 protected:
73  wxGxView* m_pGxViewToRename;
74  CPLString m_szPathToRename;
75 };
76 
77 int GxObjectCompareFunction(wxGxObject* const pObject1, wxGxObject* const pObject2, long sortData);
Definition: framework.h:40
Definition: gxview.h:35
The GxObject Selection class.
Definition: gxselection.h:30
Definition: app.h:32
Definition: gxobject.h:37
Definition: gxview.h:65