]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/accel.h
adapting comment to new implementation
[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
25 // copy ctor
26 wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); }
27
28 // load from .rc resource (Windows specific)
29 wxAcceleratorTable(const wxString& resource);
30
31 // initialize from array
32 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
33
34 virtual ~wxAcceleratorTable();
35
36 wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if ( *this != accel ) Ref(accel); return *this; }
767e3be0
WS
37
38#if WXWIN_COMPATIBILITY_2_4
ffecfa5a 39 bool operator==(const wxAcceleratorTable& accel) const
767e3be0 40 { return m_refData == accel.m_refData; }
ffecfa5a
JS
41 bool operator!=(const wxAcceleratorTable& accel) const
42 { return !(*this == accel); }
767e3be0 43#endif
ffecfa5a
JS
44
45 bool Ok() const;
46 void SetHACCEL(WXHACCEL hAccel);
47 WXHACCEL GetHACCEL() const;
48
767e3be0 49 // translate the accelerator, return true if done
ffecfa5a
JS
50 bool Translate(wxWindow *window, WXMSG *msg) const;
51
52private:
53 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
54};
55
56#endif
57 // _WX_ACCEL_H_