]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/accel.cpp
don't assume there's always an active wxEventLoop instance
[wxWidgets.git] / src / palmos / accel.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/accel.cpp
3// Purpose: wxAcceleratorTable
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created: 10/13/04
7// RCS-ID: $Id$
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// For compilers that support precompilation, includes "wx.h".
13#include "wx/wxprec.h"
14
15#ifdef __BORLANDC__
16#pragma hdrstop
17#endif
18
19#ifndef WX_PRECOMP
20 #include "wx/window.h"
21#endif
22
23#include "wx/accel.h"
24
25#if wxUSE_ACCEL
26
27#include "wx/palmos/private.h"
28
29IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
30
31class WXDLLEXPORT wxAcceleratorRefData: public wxObjectRefData
32{
33 friend class WXDLLEXPORT wxAcceleratorTable;
34public:
35 wxAcceleratorRefData();
36 virtual ~wxAcceleratorRefData();
37
38 inline HACCEL GetHACCEL() const { return m_hAccel; }
39protected:
40 HACCEL m_hAccel;
41 bool m_ok;
42
43 DECLARE_NO_COPY_CLASS(wxAcceleratorRefData)
44};
45
46#define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
47
48wxAcceleratorRefData::wxAcceleratorRefData()
49{
50}
51
52wxAcceleratorRefData::~wxAcceleratorRefData()
53{
54}
55
56wxAcceleratorTable::wxAcceleratorTable()
57{
58}
59
60wxAcceleratorTable::~wxAcceleratorTable()
61{
62}
63
64wxAcceleratorTable::wxAcceleratorTable(const wxString& resource)
65{
66}
67
68extern int wxCharCodeWXToMSW(int id, bool *isVirtual);
69
70wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[])
71{
72}
73
74bool wxAcceleratorTable::IsOk() const
75{
76 return false;
77}
78
79void wxAcceleratorTable::SetHACCEL(WXHACCEL hAccel)
80{
81}
82
83WXHACCEL wxAcceleratorTable::GetHACCEL() const
84{
85 return 0;
86}
87
88bool wxAcceleratorTable::Translate(wxWindow *window, WXMSG *wxmsg) const
89{
90 return false;
91}
92
93#endif