]>
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 | 16 | #define INCL_PM |
892b89f3 | 17 | #define INCL_DOS |
e6ebb514 | 18 | #include <os2.h> |
0e320a79 DW |
19 | #include "wx/window.h" |
20 | #include "wx/app.h" | |
21 | #include "wx/gdicmn.h" | |
e6ebb514 | 22 | #include "wx/dnd.h" |
0e320a79 | 23 | |
7e99520b DW |
24 | #if wxUSE_DRAG_AND_DROP |
25 | ||
0e320a79 DW |
26 | // ---------------------------------------------------------------------------- |
27 | // global | |
28 | // ---------------------------------------------------------------------------- | |
29 | ||
30 | // ---------------------------------------------------------------------------- | |
31 | // wxDropTarget | |
32 | // ---------------------------------------------------------------------------- | |
33 | ||
6dddc146 DW |
34 | wxDropTarget::wxDropTarget( |
35 | wxDataObject* pDataObject | |
36 | ) | |
0e320a79 | 37 | { |
6dddc146 | 38 | // TODO: |
0e320a79 DW |
39 | }; |
40 | ||
41 | wxDropTarget::~wxDropTarget() | |
42 | { | |
43 | }; | |
44 | ||
6dddc146 DW |
45 | void wxDropTarget::Register( |
46 | WXHWND hwnd | |
47 | ) | |
48 | { | |
49 | //TODO: | |
50 | }; | |
0e320a79 | 51 | |
6dddc146 DW |
52 | void wxDropTarget::Revoke( |
53 | WXHWND hwnd | |
54 | ) | |
0e320a79 | 55 | { |
6dddc146 | 56 | //TODO: |
0e320a79 DW |
57 | }; |
58 | ||
6dddc146 DW |
59 | wxDragResult wxDropTarget::OnDragOver( |
60 | wxCoord x | |
61 | , wxCoord y | |
62 | , wxDragResult vDef | |
63 | ) | |
0e320a79 | 64 | { |
6dddc146 DW |
65 | //TODO: |
66 | return vDef; | |
0e320a79 DW |
67 | }; |
68 | ||
6dddc146 DW |
69 | bool wxDropTarget::OnDrop( |
70 | wxCoord x | |
71 | , wxCoord y | |
72 | ) | |
0e320a79 | 73 | { |
6dddc146 DW |
74 | //TODO: |
75 | return FALSE; | |
76 | }; | |
0e320a79 | 77 | |
004fd0c8 DW |
78 | wxDragResult wxDropTarget::OnData( |
79 | wxCoord x | |
80 | , wxCoord y | |
81 | , wxDragResult vResult | |
82 | ) | |
83 | { | |
84 | //TODO: | |
85 | return (wxDragResult)0; | |
86 | }; | |
87 | ||
6dddc146 DW |
88 | bool wxDropTarget::GetData() |
89 | { | |
90 | //TODO: | |
91 | return FALSE; | |
92 | }; | |
93 | ||
94 | bool wxDropTarget::IsAcceptable( | |
95 | DRAGINFO* pInfo | |
96 | ) | |
97 | { | |
98 | //TODO: | |
99 | return FALSE; | |
100 | }; | |
0e320a79 | 101 | |
0e320a79 DW |
102 | //------------------------------------------------------------------------- |
103 | // wxDropSource | |
104 | //------------------------------------------------------------------------- | |
105 | ||
6dddc146 DW |
106 | wxDropSource::wxDropSource( |
107 | wxWindow* pWin | |
108 | ) | |
0e320a79 DW |
109 | { |
110 | // TODO | |
0e320a79 DW |
111 | }; |
112 | ||
6dddc146 DW |
113 | wxDropSource::wxDropSource( |
114 | wxDataObject& rData | |
115 | , wxWindow* pWin | |
116 | ) | |
0e320a79 DW |
117 | { |
118 | // TODO | |
0e320a79 DW |
119 | }; |
120 | ||
6dddc146 | 121 | wxDropSource::~wxDropSource() |
0e320a79 | 122 | { |
6dddc146 | 123 | // TODO |
0e320a79 DW |
124 | }; |
125 | ||
6dddc146 DW |
126 | wxDragResult wxDropSource::DoDragDrop( |
127 | bool WXUNUSED(bAllowMove) | |
128 | ) | |
0e320a79 | 129 | { |
6dddc146 DW |
130 | // TODO |
131 | return wxDragError; | |
0e320a79 | 132 | }; |
6dddc146 DW |
133 | |
134 | void wxDropSource::Init() | |
0e320a79 DW |
135 | { |
136 | // TODO | |
0e320a79 DW |
137 | }; |
138 | ||
7e99520b | 139 | #endif //wxUSE_DRAG_AND_DROP |