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