Version: 0.6.0
minimapdlg.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: Mini map dialog
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 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 
22 #pragma once
23 
24 #include <wx/gdicmn.h>
25 #include <wx/font.h>
26 #include <wx/colour.h>
27 #include <wx/settings.h>
28 #include <wx/string.h>
29 #include <wx/sizer.h>
30 #include <wx/dialog.h>
31 #include <wx/aui/aui.h>
32 #include <wx/statline.h>
33 
34 #include "wxgis/core/config.h"
35 #include "wxgis/framework/applicationbase.h"
36 #include "wxgis/framework/accelerator.h"
37 #include "wxgis/cartoui/drawingmap.h"
38 
47  public wxDialog,
49 {
50  DECLARE_CLASS(wxGISMiniMapDlg)
51 public:
52  wxGISMiniMapDlg(wxDword nButtons, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Mini map"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION | wxCLOSE_BOX | wxMAXIMIZE_BOX | wxMINIMIZE_BOX | wxRESIZE_BORDER | wxCLIP_CHILDREN);
53  virtual ~wxGISMiniMapDlg();
54  //wxGISApplicationBase
55  virtual wxString GetAppName(void) const { return wxString(wxT("wxGISMiniMapDlg")); };
56  virtual wxString GetAppDisplayName(void) const { return wxString(_("Mini map Dialog")); };
57  virtual wxString GetAppDisplayNameShort(void) const { return wxString(_("MiniMap Dialog")); };
58  //wxGISMiniMapDlg
59  virtual void AddLayer(wxGISLayer* pLayer);
60  virtual void SetFullExtent();
61 protected:
62  // events
63  virtual void OnCommand(wxCommandEvent& event);
64  virtual void OnCommandUI(wxUpdateUIEvent& event);
65  virtual void OnDropDownCommand(wxCommandEvent& event);
66  virtual void OnToolDropDown(wxAuiToolBarEvent& event);
67  virtual void OnOK(wxCommandEvent& event);
68  virtual void OnOKUI(wxUpdateUIEvent& event);
69  virtual void OnMouseMove(wxMouseEvent& event);
70  virtual void OnMouseDown(wxMouseEvent& event);
71  virtual void OnMouseUp(wxMouseEvent& event);
72  virtual void OnMouseDoubleClick(wxMouseEvent& event);
73 protected:
74  void SerializeFramePos(bool bSave);
75 protected:
76  wxAuiToolBar* m_toolBar;
77  wxGISDrawingMapView* m_pGISMapView;
78  IDropDownCommand* m_pDropDownCommand;
79 private:
80  DECLARE_EVENT_TABLE()
81 };
Definition: applicationbase.h:65
Definition: drawingmap.h:34
Definition: layer.h:35
Definition: minimapdlg.h:46
Definition: command.h:151