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
28 wxAcceleratorTable(const wxAcceleratorTable
& accel
) { Ref(accel
); }
29 wxAcceleratorTable(const wxAcceleratorTable
* accel
) { if (accel
) Ref(*accel
); }
31 ~wxAcceleratorTable();
33 wxAcceleratorTable
& operator = (const wxAcceleratorTable
& accel
) { if (*this == accel
) return (*this); Ref(accel
); return *this; }
34 bool operator == (const wxAcceleratorTable
& accel
) const { return m_refData
== accel
.m_refData
; }
35 bool operator != (const wxAcceleratorTable
& accel
) const { return m_refData
!= accel
.m_refData
; }
39 // Implementation only
41 wxAcceleratorEntry
* GetEntries() const;
44 WXDLLEXPORT_DATA(extern wxAcceleratorTable
) wxNullAcceleratorTable
;