1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
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
23 wxAcceleratorTable() : wxObject() { }
26 wxAcceleratorTable(const wxAcceleratorTable
& accel
) : wxObject(accel
) { Ref(accel
); }
28 // load from .rc resource (Windows specific)
29 wxAcceleratorTable(const wxString
& resource
);
31 // initialize from array
32 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
34 wxAcceleratorTable
& operator=(const wxAcceleratorTable
& accel
)
41 bool operator==(const wxAcceleratorTable
& accel
) const;
42 bool operator!=(const wxAcceleratorTable
& accel
) const
43 { return !(*this == accel
); }
46 void SetHACCEL(WXHACCEL hAccel
);
47 WXHACCEL
GetHACCEL() const;
49 // translate the accelerator, return true if done
50 bool Translate(wxWindow
*window
, WXMSG
*msg
) const;
53 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)