1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxAcceleratorTable class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "accel.h"
19 #include "wx/object.h"
20 #include "wx/string.h"
23 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
25 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
28 wxAcceleratorTable(const wxString
& resource
); // Load from .rc resource
29 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]); // Load from array
32 wxAcceleratorTable(const wxAcceleratorTable
& accel
) { Ref(accel
); }
33 wxAcceleratorTable(const wxAcceleratorTable
* accel
) { if (accel
) Ref(*accel
); }
35 ~wxAcceleratorTable();
37 wxAcceleratorTable
& operator = (const wxAcceleratorTable
& accel
) { if (*this == accel
) return (*this); Ref(accel
); return *this; }
38 bool operator == (const wxAcceleratorTable
& accel
) { return m_refData
== accel
.m_refData
; }
39 bool operator != (const wxAcceleratorTable
& accel
) { return m_refData
!= accel
.m_refData
; }
43 // Implementation only
45 wxAcceleratorEntry
* GetEntries() const;
48 WXDLLEXPORT_DATA(extern wxAcceleratorTable
) wxNullAcceleratorTable
;