1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxAcceleratorTable class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "accel.h"
19 #include "wx/string.h"
22 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
24 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
27 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]); // Load from array
30 wxAcceleratorTable(const wxAcceleratorTable
& accel
)
33 wxAcceleratorTable(const wxAcceleratorTable
* accel
)
34 { if (accel
) Ref(*accel
); }
36 ~wxAcceleratorTable();
38 wxAcceleratorTable
& operator = (const wxAcceleratorTable
& accel
)
39 { if (*this == accel
) return (*this); Ref(accel
); return *this; }
40 bool operator == (const wxAcceleratorTable
& accel
)
41 { return m_refData
== accel
.m_refData
; }
42 bool operator != (const wxAcceleratorTable
& accel
)
43 { return m_refData
!= accel
.m_refData
; }
47 int GetCommand( wxKeyEvent
&event
);
50 // WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;