Version: 0.6.0
menubar.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: wxGISMenuBar class.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009,2012,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 #pragma once
22 
23 #include "wxgis/framework/commandbar.h"
24 
25 #include <wx/menu.h>
26 
27 #define FILESTR _("&File")
28 #define EDITSTR _("&Edit")
29 #define GOSTR _("&Go")
30 #define VIEWSTR _("&View")
31 #define HELPSTR _("&Help")
32 #define WINDOWSSTR _("&Windows")
33 #define TOOLSSTR _("&Tools")
34 
42 class WXDLLIMPEXP_GIS_FRW wxGISMenuBar : public wxMenuBar
43 {
44  //DECLARE_DYNAMIC_CLASS_NO_COPY(wxGISMenuBar)
45 public:
46  wxGISMenuBar(long style = 0, wxGISApplicationBase* pApp = NULL, wxXmlNode* pConf = NULL);
47  virtual ~wxGISMenuBar(void);
48  virtual bool IsMenuBarMenu(wxString sMenuName);
49  virtual wxGISCommandBarPtrArray GetMenuBarArray(void) const;
50  virtual void MoveLeft(int pos);
51  virtual void MoveRight(int pos);
52  virtual void MoveLeft(wxGISCommandBar* pBar);
53  virtual void MoveRight(wxGISCommandBar* pBar);
54  virtual void RemoveMenu(wxGISCommandBar* pBar);
55  virtual bool AddMenu(wxGISCommandBar* pBar);
56  virtual void Serialize(wxXmlNode* pConf);
57  virtual int GetMenuPos(wxGISCommandBar* pBar);
58 protected:
59  wxGISCommandBarPtrArray m_MenubarArray;
60 };
Definition: applicationbase.h:65
Definition: menubar.h:42
Definition: commandbar.h:60