Version: 0.6.0
gxapplication.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGxApplication main header.
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 
23 #include "wxgis/framework/applicationex.h"
24 #include "wxgis/catalogui/gxcatalogui.h"
25 #include "wxgis/catalogui/gxselection.h"
26 #include "wxgis/catalogui/newmenu.h"
27 #include "wxgis/catalogui/gxtabview.h"
28 
29 #include "wx/aui/aui.h"
30 #include "wx/artprov.h"
31 
32 class wxGxTreeView;
33 
41 class WXDLLIMPEXP_GIS_CLU wxGxApplication :
42  public wxGxApplicationBase,
43  public wxGISApplicationEx
44 {
45  DECLARE_CLASS(wxGxApplication)
46 public:
47  wxGxApplication(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER);
48  virtual ~wxGxApplication(void);
49  //events
50  virtual void OnClose(wxCloseEvent& event);
51  //wxGISApplicationBase
52  virtual wxString GetAppName(void) const {return wxString(wxT("wxGISCatalog"));};
53  virtual wxString GetAppDisplayName(void) const {return wxString(_("NextGIS Manager"));};
54  virtual wxString GetAppDisplayNameShort(void) const {return wxString(_("Manager"));};
55  virtual bool CreateApp(void);
56  virtual wxIcon GetAppIcon(void);
57  virtual void UpdateNewMenu(wxGxSelection* Selection);
58  virtual void UpdateNewMenuInCommands(void);
59 protected:
60  wxGxTreeView* m_pTreeView;
61  wxGxTabView* m_pTabView;
62  wxGxCatalogUI* m_pCatalog;
63  wxGISNewMenu* m_pNewMenu;
64 
65  wxIcon m_pAppIcon;
66 };
An Interface class for GxApplication.
Definition: gxselection.h:80
The tree view in Catalog.
Definition: gxtreeview.h:121
Definition: gxtabview.h:105
Definition: gxcatalogui.h:34
Definition: applicationex.h:61
The GxObject Selection class.
Definition: gxselection.h:30
Definition: newmenu.h:37
Definition: gxapplication.h:41