1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/accel.h
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 virtual ~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
; }
32 bool Ok() const { return IsOk(); }
35 // Implementation only
37 wxAcceleratorEntry
* GetEntries() const;
40 WXDLLEXPORT_DATA(extern wxAcceleratorTable
) wxNullAcceleratorTable
;