Version: 0.6.0
mxmapview.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Map)
3  * Purpose: wxMxMapView class.
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 
22 #pragma once
23 
24 #include "wxgis/mapui/mapui.h"
25 #include "wxgis/cartoui/mapview.h"
26 #include "wxgis/framework/framework.h"
27 
28 
32 class WXDLLIMPEXP_GIS_MAPU wxMxMapView :
33  public wxGISMapView
34 {
35  DECLARE_DYNAMIC_CLASS(wxMxMapView)
36 public:
37  wxMxMapView(void);
38  wxMxMapView(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition,
39  const wxSize& size = wxDefaultSize);
40  virtual ~wxMxMapView(void);
41  //events
42  void OnMouseMove(wxMouseEvent& event);
43  void OnMouseDown(wxMouseEvent& event);
44  void OnMouseUp(wxMouseEvent& event);
45  void OnMouseDoubleClick(wxMouseEvent& event);
46  virtual bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = wxT("GISMapView"));
47  virtual bool Activate(IFrameApplication* application, wxXmlNode* pConf = NULL);
48  virtual void Deactivate(void);
49 private:
50  IStatusBar* m_pStatusBar;
51  IFrameApplication* m_pApp;
52  ITrackCancel *m_pTrackCancel;
53 
54  DECLARE_EVENT_TABLE()
55 };
Definition: mapview.h:36
A TrackCancel interface class.
Definition: core.h:144
This is the map view class in MxApplication.
Definition: mxmapview.h:32