]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/accel.h
Final and global PRIOR/NEXT change: keep consistency using only PAGE versions, deprec...
[wxWidgets.git] / include / wx / msw / accel.h
CommitLineData
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
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
110f3205
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCEL_H_
13#define _WX_ACCEL_H_
14
c50f1fb9
VZ
15// ----------------------------------------------------------------------------
16// the accel table has all accelerators for a given window or menu
17// ----------------------------------------------------------------------------
18
19class WXDLLEXPORT wxAcceleratorTable : public wxObject
110f3205 20{
110f3205 21public:
1e6feb95 22 // default ctor
f8855e47 23 wxAcceleratorTable() { }
1e6feb95
VZ
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[]);
110f3205 30
a21d4ad1 31 bool operator==(const wxAcceleratorTable& accel) const;
1e6feb95
VZ
32 bool operator!=(const wxAcceleratorTable& accel) const
33 { return !(*this == accel); }
c50f1fb9
VZ
34
35 bool Ok() const;
110f3205
JS
36 void SetHACCEL(WXHACCEL hAccel);
37 WXHACCEL GetHACCEL() const;
c50f1fb9 38
77c46f00 39 // translate the accelerator, return true if done
c50f1fb9 40 bool Translate(wxWindow *window, WXMSG *msg) const;
110f3205 41
1e6feb95
VZ
42private:
43 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
44};
110f3205
JS
45
46#endif
47 // _WX_ACCEL_H_