1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 // ----------------------------------------------------------------------------
16 // the accel table has all accelerators for a given window or menu
17 // ----------------------------------------------------------------------------
19 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
25 // load from .rc resource (Windows specific)
26 wxAcceleratorTable(const wxString
& resource
);
28 // initialize from array
29 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
31 virtual ~wxAcceleratorTable();
33 bool Ok() const { return IsOk(); }
35 void SetHACCEL(WXHACCEL hAccel
);
36 WXHACCEL
GetHACCEL() const;
38 // translate the accelerator, return true if done
39 bool Translate(wxWindow
*window
, WXMSG
*msg
) const;
42 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)