]>
Commit | Line | Data |
---|---|---|
110f3205 | 1 | ///////////////////////////////////////////////////////////////////////////// |
1e6feb95 | 2 | // Name: wx/msw/accel.h |
110f3205 JS |
3 | // Purpose: wxAcceleratorTable class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 31/7/98 | |
110f3205 | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
110f3205 JS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_ACCEL_H_ | |
12 | #define _WX_ACCEL_H_ | |
13 | ||
b5dbe15d | 14 | class WXDLLIMPEXP_FWD_CORE wxWindow; |
706e740f | 15 | |
c50f1fb9 VZ |
16 | // ---------------------------------------------------------------------------- |
17 | // the accel table has all accelerators for a given window or menu | |
18 | // ---------------------------------------------------------------------------- | |
19 | ||
53a2db12 | 20 | class WXDLLIMPEXP_CORE wxAcceleratorTable : public wxObject |
110f3205 | 21 | { |
110f3205 | 22 | public: |
1e6feb95 | 23 | // default ctor |
f8855e47 | 24 | wxAcceleratorTable() { } |
1e6feb95 VZ |
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[]); | |
110f3205 | 31 | |
b7cacb43 VZ |
32 | bool Ok() const { return IsOk(); } |
33 | bool IsOk() const; | |
110f3205 JS |
34 | void SetHACCEL(WXHACCEL hAccel); |
35 | WXHACCEL GetHACCEL() const; | |
c50f1fb9 | 36 | |
77c46f00 | 37 | // translate the accelerator, return true if done |
c50f1fb9 | 38 | bool Translate(wxWindow *window, WXMSG *msg) const; |
110f3205 | 39 | |
1e6feb95 VZ |
40 | private: |
41 | DECLARE_DYNAMIC_CLASS(wxAcceleratorTable) | |
42 | }; | |
110f3205 JS |
43 | |
44 | #endif | |
45 | // _WX_ACCEL_H_ |