]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/accel.h
fixed a design flaw in wxFontMapper that prevented automatic creation of wxConfig...
[wxWidgets.git] / include / wx / mac / accel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_ACCEL_H_
13 #define _WX_ACCEL_H_
14
15 #ifdef __GNUG__
16 #pragma interface "accel.h"
17 #endif
18
19 #include "wx/string.h"
20
21 class WXDLLEXPORT wxAcceleratorTable: public wxObject
22 {
23 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
24 public:
25 wxAcceleratorTable();
26 wxAcceleratorTable(int n, wxAcceleratorEntry entries[]); // Load from array
27
28 // Copy constructors
29 inline wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); }
30 inline wxAcceleratorTable(const wxAcceleratorTable* accel) { if (accel) Ref(*accel); }
31
32 ~wxAcceleratorTable();
33
34 inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if (*this == accel) return (*this); Ref(accel); return *this; }
35 inline bool operator == (const wxAcceleratorTable& accel) { return m_refData == accel.m_refData; }
36 inline bool operator != (const wxAcceleratorTable& accel) { return m_refData != accel.m_refData; }
37
38 bool Ok() const;
39
40 int GetCommand( wxKeyEvent &event );
41 };
42
43 WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
44
45 #endif
46 // _WX_ACCEL_H_