1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/accel.cpp
3 // Purpose: wxAcceleratorTable
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
20 #include "wx/window.h"
27 #include "wx/palmos/private.h"
29 IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable
, wxObject
)
31 class WXDLLEXPORT wxAcceleratorRefData
: public wxObjectRefData
33 friend class WXDLLEXPORT wxAcceleratorTable
;
35 wxAcceleratorRefData();
36 virtual ~wxAcceleratorRefData();
38 inline HACCEL
GetHACCEL() const { return m_hAccel
; }
43 DECLARE_NO_COPY_CLASS(wxAcceleratorRefData
)
46 #define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
48 wxAcceleratorRefData::wxAcceleratorRefData()
52 wxAcceleratorRefData::~wxAcceleratorRefData()
56 wxAcceleratorTable::wxAcceleratorTable()
60 wxAcceleratorTable::~wxAcceleratorTable()
64 wxAcceleratorTable::wxAcceleratorTable(const wxString
& resource
)
68 extern int wxCharCodeWXToMSW(int id
, bool *isVirtual
);
70 wxAcceleratorTable::wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[])
74 bool wxAcceleratorTable::Ok() const
79 void wxAcceleratorTable::SetHACCEL(WXHACCEL hAccel
)
83 WXHACCEL
wxAcceleratorTable::GetHACCEL() const
88 bool wxAcceleratorTable::Translate(wxWindow
*window
, WXMSG
*wxmsg
) const