]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: dnd.cpp | |
3 | // Purpose: wxDropTarget, wxDropSource, wxDataObject implementation | |
6dddc146 | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
6dddc146 | 6 | // Created: 10/21/99 |
0e320a79 DW |
7 | // RCS-ID: $Id$ |
8 | // Copyright: (c) 1998 AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "dnd.h" | |
14 | #endif | |
15 | ||
e6ebb514 DW |
16 | #define INCL_PM |
17 | #include <os2.h> | |
0e320a79 DW |
18 | #include "wx/window.h" |
19 | #include "wx/app.h" | |
20 | #include "wx/gdicmn.h" | |
e6ebb514 | 21 | #include "wx/dnd.h" |
0e320a79 DW |
22 | |
23 | // ---------------------------------------------------------------------------- | |
24 | // global | |
25 | // ---------------------------------------------------------------------------- | |
26 | ||
27 | // ---------------------------------------------------------------------------- | |
28 | // wxDropTarget | |
29 | // ---------------------------------------------------------------------------- | |
30 | ||
6dddc146 DW |
31 | wxDropTarget::wxDropTarget( |
32 | wxDataObject* pDataObject | |
33 | ) | |
0e320a79 | 34 | { |
6dddc146 | 35 | // TODO: |
0e320a79 DW |
36 | }; |
37 | ||
38 | wxDropTarget::~wxDropTarget() | |
39 | { | |
40 | }; | |
41 | ||
6dddc146 DW |
42 | void wxDropTarget::Register( |
43 | WXHWND hwnd | |
44 | ) | |
45 | { | |
46 | //TODO: | |
47 | }; | |
0e320a79 | 48 | |
6dddc146 DW |
49 | void wxDropTarget::Revoke( |
50 | WXHWND hwnd | |
51 | ) | |
0e320a79 | 52 | { |
6dddc146 | 53 | //TODO: |
0e320a79 DW |
54 | }; |
55 | ||
6dddc146 DW |
56 | wxDragResult wxDropTarget::OnDragOver( |
57 | wxCoord x | |
58 | , wxCoord y | |
59 | , wxDragResult vDef | |
60 | ) | |
0e320a79 | 61 | { |
6dddc146 DW |
62 | //TODO: |
63 | return vDef; | |
0e320a79 DW |
64 | }; |
65 | ||
6dddc146 DW |
66 | bool wxDropTarget::OnDrop( |
67 | wxCoord x | |
68 | , wxCoord y | |
69 | ) | |
0e320a79 | 70 | { |
6dddc146 DW |
71 | //TODO: |
72 | return FALSE; | |
73 | }; | |
0e320a79 | 74 | |
6dddc146 DW |
75 | bool wxDropTarget::OnData( |
76 | wxCoord x | |
77 | , wxCoord y | |
78 | ) | |
0e320a79 | 79 | { |
6dddc146 DW |
80 | //TODO: |
81 | return FALSE; | |
82 | }; | |
83 | ||
84 | bool wxDropTarget::GetData() | |
85 | { | |
86 | //TODO: | |
87 | return FALSE; | |
88 | }; | |
89 | ||
90 | bool wxDropTarget::IsAcceptable( | |
91 | DRAGINFO* pInfo | |
92 | ) | |
93 | { | |
94 | //TODO: | |
95 | return FALSE; | |
96 | }; | |
0e320a79 DW |
97 | |
98 | // ---------------------------------------------------------------------------- | |
6dddc146 | 99 | // wxTextDropTarget |
0e320a79 DW |
100 | // ---------------------------------------------------------------------------- |
101 | ||
6dddc146 | 102 | wxTextDropTarget::wxTextDropTarget() |
0e320a79 | 103 | { |
6dddc146 | 104 | // TODO: |
0e320a79 DW |
105 | } |
106 | ||
6dddc146 | 107 | wxTextDropTarget::~wxTextDropTarget() |
0e320a79 | 108 | { |
6dddc146 | 109 | // TODO: |
0e320a79 DW |
110 | } |
111 | ||
6dddc146 DW |
112 | bool wxTextDropTarget::OnData( |
113 | wxCoord x | |
114 | , wxCoord y | |
115 | ) | |
0e320a79 | 116 | { |
6dddc146 DW |
117 | // TODO: |
118 | return FALSE; | |
119 | }; | |
120 | ||
121 | // ---------------------------------------------------------------------------- | |
122 | // wxFileDropTarget | |
123 | // ---------------------------------------------------------------------------- | |
124 | ||
125 | wxFileDropTarget::wxFileDropTarget() | |
126 | { | |
127 | // TODO: | |
0e320a79 DW |
128 | } |
129 | ||
6dddc146 | 130 | wxFileDropTarget::~wxFileDropTarget() |
0e320a79 | 131 | { |
6dddc146 | 132 | // TODO: |
0e320a79 DW |
133 | } |
134 | ||
6dddc146 DW |
135 | bool wxFileDropTarget::OnData( |
136 | wxCoord x | |
137 | , wxCoord y | |
138 | ) | |
139 | { | |
140 | // TODO: | |
141 | return FALSE; | |
142 | }; | |
143 | ||
0e320a79 DW |
144 | //------------------------------------------------------------------------- |
145 | // wxDropSource | |
146 | //------------------------------------------------------------------------- | |
147 | ||
6dddc146 DW |
148 | wxDropSource::wxDropSource( |
149 | wxWindow* pWin | |
150 | ) | |
0e320a79 DW |
151 | { |
152 | // TODO | |
0e320a79 DW |
153 | }; |
154 | ||
6dddc146 DW |
155 | wxDropSource::wxDropSource( |
156 | wxDataObject& rData | |
157 | , wxWindow* pWin | |
158 | ) | |
0e320a79 DW |
159 | { |
160 | // TODO | |
0e320a79 DW |
161 | }; |
162 | ||
6dddc146 | 163 | wxDropSource::~wxDropSource() |
0e320a79 | 164 | { |
6dddc146 | 165 | // TODO |
0e320a79 DW |
166 | }; |
167 | ||
6dddc146 DW |
168 | wxDragResult wxDropSource::DoDragDrop( |
169 | bool WXUNUSED(bAllowMove) | |
170 | ) | |
0e320a79 | 171 | { |
6dddc146 DW |
172 | // TODO |
173 | return wxDragError; | |
0e320a79 | 174 | }; |
6dddc146 DW |
175 | |
176 | void wxDropSource::Init() | |
0e320a79 DW |
177 | { |
178 | // TODO | |
0e320a79 DW |
179 | }; |
180 |