1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxAcceleratorTable class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/object.h"
16 #include "wx/string.h"
19 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
21 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
24 wxAcceleratorTable(const wxString
& resource
); // Load from .rc resource
25 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]); // Load from array
27 ~wxAcceleratorTable();
29 bool operator == (const wxAcceleratorTable
& accel
) const { return m_refData
== accel
.m_refData
; }
30 bool operator != (const wxAcceleratorTable
& accel
) const { return m_refData
!= accel
.m_refData
; }
34 // Implementation only
36 wxAcceleratorEntry
* GetEntries() const;
39 WXDLLEXPORT_DATA(extern wxAcceleratorTable
) wxNullAcceleratorTable
;