1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxAcceleratorTable
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "accel.h"
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
24 #include "wx/window.h"
31 #include "wx/palmos/private.h"
33 IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable
, wxObject
)
35 class WXDLLEXPORT wxAcceleratorRefData
: public wxObjectRefData
37 friend class WXDLLEXPORT wxAcceleratorTable
;
39 wxAcceleratorRefData();
40 ~wxAcceleratorRefData();
42 inline HACCEL
GetHACCEL() const { return m_hAccel
; }
47 DECLARE_NO_COPY_CLASS(wxAcceleratorRefData
)
50 #define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
52 wxAcceleratorRefData::wxAcceleratorRefData()
56 wxAcceleratorRefData::~wxAcceleratorRefData()
60 wxAcceleratorTable::wxAcceleratorTable()
64 wxAcceleratorTable::~wxAcceleratorTable()
68 wxAcceleratorTable::wxAcceleratorTable(const wxString
& resource
)
72 extern int wxCharCodeWXToMSW(int id
, bool *isVirtual
);
74 wxAcceleratorTable::wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[])
78 bool wxAcceleratorTable::Ok() const
83 void wxAcceleratorTable::SetHACCEL(WXHACCEL hAccel
)
87 WXHACCEL
wxAcceleratorTable::GetHACCEL() const
92 bool wxAcceleratorTable::Translate(wxWindow
*window
, WXMSG
*wxmsg
) const