1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxAcceleratorTable class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/string.h"
18 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
20 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
23 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]); // Load from array
26 wxAcceleratorTable(const wxAcceleratorTable
& accel
)
29 wxAcceleratorTable(const wxAcceleratorTable
* accel
)
30 { if (accel
) Ref(*accel
); }
32 ~wxAcceleratorTable();
34 wxAcceleratorTable
& operator = (const wxAcceleratorTable
& accel
)
35 { if (*this == accel
) return (*this); Ref(accel
); return *this; }
36 bool operator == (const wxAcceleratorTable
& accel
) const
37 { return m_refData
== accel
.m_refData
; }
38 bool operator != (const wxAcceleratorTable
& accel
) const
39 { return m_refData
!= accel
.m_refData
; }
43 int GetCommand( wxKeyEvent
&event
);
46 // WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;