Version: 0.6.0
formatmenu.h
1 /******************************************************************************
2  * Project: wxGIS
3  * Purpose: menu to show format clases (for format coordinates etc.).
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2011 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/cartoui/cartoui.h"
24 #include "wxgis/core/format.h"
25 #include "wxgis/framework/framework.h"
26 
30 class WXDLLIMPEXP_GIS_CTU wxGISCoordinatesFormatMenu :
31  public wxMenu,
33 {
34  enum
35  {
36  ID_SWAPCOORS = 1050,
37  ID_CHANGEMASKS,
38  ID_MASKBEG
39  };
40 public:
41  wxGISCoordinatesFormatMenu(const wxString& title = wxEmptyString, long style = 0);
42  virtual ~wxGISCoordinatesFormatMenu(void);
43  virtual void PrepareMenu(void);
44  //events
45  virtual void OnSwapCoords(wxCommandEvent& event);
46  virtual void OnChangeMasks(wxCommandEvent& event);
47  virtual void OnSetMask(wxCommandEvent& event);
48  virtual void OnSwapCoordsUI(wxUpdateUIEvent& event);
49 protected:
50  virtual void Serialize(bool bStore);
51 protected:
52  wxArrayString m_asCoordsMask;
53 private:
54  DECLARE_EVENT_TABLE()
55 };
The class to format coordinates according different masks.
Definition: formatmenu.h:30
The class to format coordinates according different masks.
Definition: format.h:69