Version: 0.6.0
accelerator.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Catalog)
3  * Purpose: GIS application accelerator table header.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2009,2012 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 #include "wxgis/framework/applicationbase.h"
24 #include "wxgis/core/config.h"
25 
26 #include <wx/accel.h>
27 
28 class WXDLLIMPEXP_GIS_FRW wxGISAcceleratorTable
29 {
30 public:
32  virtual ~wxGISAcceleratorTable(void);
33  virtual int Add(wxAcceleratorEntry entry);
34  virtual void Remove(wxAcceleratorEntry entry);
35  virtual wxAcceleratorTable GetAcceleratorTable(void);
36  virtual bool HasChanges(void){return bHasChanges;};
37  virtual wxString GetText(int cmd);
38  virtual wxAcceleratorEntry GetEntry(int cmd);
39  virtual void Store(void);
40 protected:
41  int GetKeyCode(wxString sKeyCode);
42  wxDword GetFlags(wxString sFlags);
43 private:
44  wxVector<wxAcceleratorEntry> m_AccelEntryArray;
45  bool bHasChanges;
46  wxAcceleratorTable m_ATab;
47  wxGISApplicationBase* m_pApp;
48 };
Definition: applicationbase.h:65
Definition: accelerator.h:28