]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/accel.h
more warning fixes about empty if statement in helper classes in release build
[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 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_ACCEL_H_
13 #define _WX_ACCEL_H_
14
15 class WXDLLIMPEXP_CORE wxWindow;
16
17 // ----------------------------------------------------------------------------
18 // the accel table has all accelerators for a given window or menu
19 // ----------------------------------------------------------------------------
20
21 class WXDLLEXPORT wxAcceleratorTable : public wxObject
22 {
23 public:
24 // default ctor
25 wxAcceleratorTable() { }
26
27 // load from .rc resource (Windows specific)
28 wxAcceleratorTable(const wxString& resource);
29
30 // initialize from array
31 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
32
33 bool operator==(const wxAcceleratorTable& accel) const;
34 bool operator!=(const wxAcceleratorTable& accel) const
35 { return !(*this == accel); }
36
37 bool Ok() const;
38 void SetHACCEL(WXHACCEL hAccel);
39 WXHACCEL GetHACCEL() const;
40
41 // translate the accelerator, return true if done
42 bool Translate(wxWindow *window, WXMSG *msg) const;
43
44 private:
45 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
46 };
47
48 #endif
49 // _WX_ACCEL_H_