]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/accel.h
show the function in which the assert failure occured if the compiler supports it
[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 // ----------------------------------------------------------------------------
16 // the accel table has all accelerators for a given window or menu
17 // ----------------------------------------------------------------------------
18
19 class WXDLLEXPORT wxAcceleratorTable : public wxObject
20 {
21 public:
22 // default ctor
23 wxAcceleratorTable() { }
24
25 // load from .rc resource (Windows specific)
26 wxAcceleratorTable(const wxString& resource);
27
28 // initialize from array
29 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
30
31 bool operator==(const wxAcceleratorTable& accel) const;
32 bool operator!=(const wxAcceleratorTable& accel) const
33 { return !(*this == accel); }
34
35 bool Ok() const;
36 void SetHACCEL(WXHACCEL hAccel);
37 WXHACCEL GetHACCEL() const;
38
39 // translate the accelerator, return true if done
40 bool Translate(wxWindow *window, WXMSG *msg) const;
41
42 private:
43 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
44 };
45
46 #endif
47 // _WX_ACCEL_H_