]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/accel.h
Renamed m_clientData member variable to avoid clash with variable with same
[wxWidgets.git] / include / wx / palmos / accel.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/accel.h
3// Purpose: wxAcceleratorTable class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCEL_H_
13#define _WX_ACCEL_H_
14
ffecfa5a
JS
15// ----------------------------------------------------------------------------
16// the accel table has all accelerators for a given window or menu
17// ----------------------------------------------------------------------------
18
19class WXDLLEXPORT wxAcceleratorTable : public wxObject
20{
21public:
22 // default ctor
23 wxAcceleratorTable();
24
ffecfa5a
JS
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 virtual ~wxAcceleratorTable();
32
767e3be0 33#if WXWIN_COMPATIBILITY_2_4
ffecfa5a 34 bool operator==(const wxAcceleratorTable& accel) const
767e3be0 35 { return m_refData == accel.m_refData; }
ffecfa5a
JS
36 bool operator!=(const wxAcceleratorTable& accel) const
37 { return !(*this == accel); }
767e3be0 38#endif
ffecfa5a 39
b7cacb43
VZ
40 bool Ok() const { return IsOk(); }
41 bool IsOk() const;
ffecfa5a
JS
42 void SetHACCEL(WXHACCEL hAccel);
43 WXHACCEL GetHACCEL() const;
44
767e3be0 45 // translate the accelerator, return true if done
ffecfa5a
JS
46 bool Translate(wxWindow *window, WXMSG *msg) const;
47
48private:
49 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
50};
51
52#endif
53 // _WX_ACCEL_H_