]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/accel.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / msw / accel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 31/7/98
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_ACCEL_H_
12 #define _WX_ACCEL_H_
13
14 class WXDLLIMPEXP_FWD_CORE wxWindow;
15
16 // ----------------------------------------------------------------------------
17 // the accel table has all accelerators for a given window or menu
18 // ----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxAcceleratorTable : public wxObject
21 {
22 public:
23 // default ctor
24 wxAcceleratorTable() { }
25
26 // load from .rc resource (Windows specific)
27 wxAcceleratorTable(const wxString& resource);
28
29 // initialize from array
30 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
31
32 bool Ok() const { return IsOk(); }
33 bool IsOk() const;
34 void SetHACCEL(WXHACCEL hAccel);
35 WXHACCEL GetHACCEL() const;
36
37 // translate the accelerator, return true if done
38 bool Translate(wxWindow *window, WXMSG *msg) const;
39
40 private:
41 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
42 };
43
44 #endif
45 // _WX_ACCEL_H_