1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Robert Roebling
5 // Copyright: (c) Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_GENERIC_ACCEL_H_
10 #define _WX_GENERIC_ACCEL_H_
12 class WXDLLIMPEXP_FWD_CORE wxKeyEvent
;
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxAcceleratorTable
: public wxObject
22 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
23 virtual ~wxAcceleratorTable();
25 bool Ok() const { return IsOk(); }
28 void Add(const wxAcceleratorEntry
& entry
);
29 void Remove(const wxAcceleratorEntry
& entry
);
34 wxMenuItem
*GetMenuItem(const wxKeyEvent
& event
) const;
35 int GetCommand(const wxKeyEvent
& event
) const;
37 const wxAcceleratorEntry
*GetEntry(const wxKeyEvent
& event
) const;
41 virtual wxObjectRefData
*CreateRefData() const;
42 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
45 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
48 #endif // _WX_GENERIC_ACCEL_H_