]>
Commit | Line | Data |
---|---|---|
ffecfa5a | 1 | ///////////////////////////////////////////////////////////////////////////// |
e2731512 | 2 | // Name: src/palmos/accel.cpp |
ffecfa5a | 3 | // Purpose: wxAcceleratorTable |
e2731512 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
ffecfa5a JS |
5 | // Modified by: |
6 | // Created: 10/13/04 | |
e2731512 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
ffecfa5a JS |
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 | ||
29 | IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject) | |
30 | ||
31 | class WXDLLEXPORT wxAcceleratorRefData: public wxObjectRefData | |
32 | { | |
33 | friend class WXDLLEXPORT wxAcceleratorTable; | |
34 | public: | |
35 | wxAcceleratorRefData(); | |
d3c7fc99 | 36 | virtual ~wxAcceleratorRefData(); |
ffecfa5a JS |
37 | |
38 | inline HACCEL GetHACCEL() const { return m_hAccel; } | |
39 | protected: | |
40 | HACCEL m_hAccel; | |
41 | bool m_ok; | |
42 | ||
c0c133e1 | 43 | wxDECLARE_NO_COPY_CLASS(wxAcceleratorRefData); |
ffecfa5a JS |
44 | }; |
45 | ||
46 | #define M_ACCELDATA ((wxAcceleratorRefData *)m_refData) | |
47 | ||
48 | wxAcceleratorRefData::wxAcceleratorRefData() | |
49 | { | |
50 | } | |
51 | ||
52 | wxAcceleratorRefData::~wxAcceleratorRefData() | |
53 | { | |
54 | } | |
55 | ||
56 | wxAcceleratorTable::wxAcceleratorTable() | |
57 | { | |
58 | } | |
59 | ||
60 | wxAcceleratorTable::~wxAcceleratorTable() | |
61 | { | |
62 | } | |
63 | ||
64 | wxAcceleratorTable::wxAcceleratorTable(const wxString& resource) | |
65 | { | |
66 | } | |
67 | ||
68 | extern int wxCharCodeWXToMSW(int id, bool *isVirtual); | |
69 | ||
70 | wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]) | |
71 | { | |
72 | } | |
73 | ||
b7cacb43 | 74 | bool wxAcceleratorTable::IsOk() const |
ffecfa5a JS |
75 | { |
76 | return false; | |
77 | } | |
78 | ||
79 | void wxAcceleratorTable::SetHACCEL(WXHACCEL hAccel) | |
80 | { | |
81 | } | |
82 | ||
83 | WXHACCEL wxAcceleratorTable::GetHACCEL() const | |
84 | { | |
85 | return 0; | |
86 | } | |
87 | ||
88 | bool wxAcceleratorTable::Translate(wxWindow *window, WXMSG *wxmsg) const | |
89 | { | |
90 | return false; | |
91 | } | |
92 | ||
93 | #endif |