Version: 0.6.0
mxapplication.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Map)
3  * Purpose: wxMxApplication code.
4  * Author: Bishop (aka Baryshnikov Dmitriy), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2011 Bishop
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/mapui/mapui.h"
24 #include "wxgis/mapui/mxmapview.h"
25 #include "wxgis/framework/applicationex.h"
26 
27 #include "wx/aui/aui.h"
28 #include "wx/artprov.h"
29 
33 class WXDLLIMPEXP_GIS_MAPU wxMxApplication :
34  public wxGISApplicationEx,
35  public IMxApplication
36 {
37  DECLARE_CLASS(wxMxApplication)
38 public:
39  wxMxApplication(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER);
40  virtual ~wxMxApplication(void);
41  //IFrameApplication
42  virtual wxString GetAppName(void){return wxString(wxT("wxGISMap"));};
43  virtual bool Create(void);
44  virtual wxIcon GetAppIcon(void){return m_pAppIcon;};
45 protected:
46  wxIcon m_pAppIcon;
47  wxMxMapView* m_pMapView;
48 };
A map application framework class.
Definition: mxapplication.h:33
A IMxApplication interface class.
Definition: mapui.h:31
This is the map view class in MxApplication.
Definition: mxmapview.h:32
Definition: applicationex.h:61