1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 // ----------------------------------------------------------------------------
16 // the accel table has all accelerators for a given window or menu
17 // ----------------------------------------------------------------------------
19 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
26 wxAcceleratorTable(const wxAcceleratorTable
& accel
) { Ref(accel
); }
28 // load from .rc resource (Windows specific)
29 wxAcceleratorTable(const wxString
& resource
);
31 // initialize from array
32 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
34 virtual ~wxAcceleratorTable();
36 wxAcceleratorTable
& operator = (const wxAcceleratorTable
& accel
) { if ( *this != accel
) Ref(accel
); return *this; }
38 #if WXWIN_COMPATIBILITY_2_4
39 bool operator==(const wxAcceleratorTable
& accel
) const
40 { return m_refData
== accel
.m_refData
; }
41 bool operator!=(const wxAcceleratorTable
& accel
) const
42 { return !(*this == accel
); }
46 void SetHACCEL(WXHACCEL hAccel
);
47 WXHACCEL
GetHACCEL() const;
49 // translate the accelerator, return true if done
50 bool Translate(wxWindow
*window
, WXMSG
*msg
) const;
53 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)