1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Robert Roebling
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GENERIC_ACCEL_H_
11 #define _WX_GENERIC_ACCEL_H_
13 class WXDLLIMPEXP_FWD_CORE wxKeyEvent
;
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxAcceleratorTable
: public wxObject
23 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
24 virtual ~wxAcceleratorTable();
26 bool Ok() const { return IsOk(); }
29 void Add(const wxAcceleratorEntry
& entry
);
30 void Remove(const wxAcceleratorEntry
& entry
);
35 wxMenuItem
*GetMenuItem(const wxKeyEvent
& event
) const;
36 int GetCommand(const wxKeyEvent
& event
) const;
38 const wxAcceleratorEntry
*GetEntry(const wxKeyEvent
& event
) const;
42 virtual wxObjectRefData
*CreateRefData() const;
43 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
46 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
49 #endif // _WX_GENERIC_ACCEL_H_