]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/accel.cpp
Deprecate wxPathExists, make wxDirExists used everywhere, minor source cleaning.
[wxWidgets.git] / src / palmos / accel.cpp
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma implementation "accel.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #ifndef WX_PRECOMP
24 #include "wx/window.h"
25 #endif
26
27 #include "wx/accel.h"
28
29 #if wxUSE_ACCEL
30
31 #include "wx/palmos/private.h"
32
33 IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
34
35 class WXDLLEXPORT wxAcceleratorRefData: public wxObjectRefData
36 {
37 friend class WXDLLEXPORT wxAcceleratorTable;
38 public:
39 wxAcceleratorRefData();
40 ~wxAcceleratorRefData();
41
42 inline HACCEL GetHACCEL() const { return m_hAccel; }
43 protected:
44 HACCEL m_hAccel;
45 bool m_ok;
46
47 DECLARE_NO_COPY_CLASS(wxAcceleratorRefData)
48 };
49
50 #define M_ACCELDATA ((wxAcceleratorRefData *)m_refData)
51
52 wxAcceleratorRefData::wxAcceleratorRefData()
53 {
54 }
55
56 wxAcceleratorRefData::~wxAcceleratorRefData()
57 {
58 }
59
60 wxAcceleratorTable::wxAcceleratorTable()
61 {
62 }
63
64 wxAcceleratorTable::~wxAcceleratorTable()
65 {
66 }
67
68 wxAcceleratorTable::wxAcceleratorTable(const wxString& resource)
69 {
70 }
71
72 extern int wxCharCodeWXToMSW(int id, bool *isVirtual);
73
74 wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[])
75 {
76 }
77
78 bool wxAcceleratorTable::Ok() const
79 {
80 return false;
81 }
82
83 void wxAcceleratorTable::SetHACCEL(WXHACCEL hAccel)
84 {
85 }
86
87 WXHACCEL wxAcceleratorTable::GetHACCEL() const
88 {
89 return 0;
90 }
91
92 bool wxAcceleratorTable::Translate(wxWindow *window, WXMSG *wxmsg) const
93 {
94 return false;
95 }
96
97 #endif