1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxAcceleratorTable class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "accel.h"
19 #include "wx/string.h"
21 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
23 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
26 wxAcceleratorTable(const wxString
& resource
); // Load from .rc resource
27 wxAcceleratorTable(int n
, wxAcceleratorEntry entries
[]); // Load from array
30 inline wxAcceleratorTable(const wxAcceleratorTable
& accel
) { Ref(accel
); }
31 inline wxAcceleratorTable(const wxAcceleratorTable
* accel
) { if (accel
) Ref(*accel
); }
33 ~wxAcceleratorTable();
35 inline wxAcceleratorTable
& operator = (const wxAcceleratorTable
& accel
) { if (*this == accel
) return (*this); Ref(accel
); return *this; }
36 inline bool operator == (const wxAcceleratorTable
& accel
) { return m_refData
== accel
.m_refData
; }
37 inline bool operator != (const wxAcceleratorTable
& accel
) { return m_refData
!= accel
.m_refData
; }
42 WXDLLEXPORT_DATA(extern wxAcceleratorTable
) wxNullAcceleratorTable
;