New test.
[mono.git] / mcs / class / System.Design / System.Windows.Forms.Design / ParentControlDesigner.cs
1 //
2 // System.Windows.Forms.Design.ComponentEditorForm.cs
3 //
4 // Author:
5 //   Dennis Hayes (dennish@raytek.com)
6 // (C) 2002 Ximian, Inc.  http://www.ximian.com
7 //
8
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
17 // 
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
20 // 
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 //
29
30 using System;
31 using System.Collections;
32 using System.ComponentModel;\r
33 using System.ComponentModel.Design;\r
34 using System.Diagnostics;\r
35 using System.Drawing;\r
36 using System.Drawing.Design;\r
37 \r
38 namespace System.Windows.Forms.Design
39 {\r
40         public class ParentControlDesigner : ControlDesigner, ISelectionUIHandler, IOleDragClient\r
41         {\r
42                 #region Public Instance Constructors\r
43 \r
44                 [MonoTODO]\r
45                 public ParentControlDesigner ()\r
46                 {\r
47                         throw new NotImplementedException ();\r
48                 }\r
49 \r
50                 #endregion Public Instance Constructors\r
51 \r
52                 #region Static Constructor\r
53 \r
54                 static ParentControlDesigner ()\r
55                 {\r
56                         ParentControlDesigner.StepControls = new BooleanSwitch ("StepControls", "ParentControlDesigner: step added controls");\r
57                 }\r
58 \r
59                 #endregion Static Constructor\r
60 \r
61                 #region Internal Instance Properties\r
62 \r
63                 [MonoTODO]\r
64                 internal Size ParentGridSize\r
65                 {\r
66                         get\r
67                         {\r
68                                 throw new NotImplementedException ();\r
69                         }\r
70                 }\r
71 \r
72                 #endregion Internal Instance Properties\r
73 \r
74                 #region Protected Instance Properties\r
75 \r
76                 [MonoTODO]\r
77                 protected virtual Point DefaultControlLocation\r
78                 {\r
79                         get\r
80                         {\r
81                                 throw new NotImplementedException ();\r
82                         }\r
83                 }\r
84 \r
85                 [MonoTODO]\r
86                 protected virtual bool DrawGrid\r
87                 {\r
88                         get\r
89                         {\r
90                                 throw new NotImplementedException ();\r
91                         }\r
92                         set\r
93                         {\r
94                                 throw new NotImplementedException ();\r
95                         }\r
96                 }\r
97 \r
98                 [MonoTODO]\r
99                 protected Size GridSize\r
100                 {\r
101                         get\r
102                         {\r
103                                 throw new NotImplementedException ();\r
104                         }\r
105                         set\r
106                         {\r
107                                 throw new NotImplementedException ();\r
108                         }\r
109                 }\r
110 \r
111                 #endregion Protected Instance Properties\r
112 \r
113                 #region Override implementation of ControlDesigner\r
114 \r
115                 [MonoTODO]\r
116                 protected override void Dispose (bool disposing)\r
117                 {\r
118                         throw new NotImplementedException ();\r
119                 }\r
120 \r
121                 [MonoTODO]\r
122                 public override void Initialize (IComponent component)\r
123                 {\r
124                         throw new NotImplementedException ();\r
125                 }\r
126 \r
127                 [MonoTODO]\r
128                 protected override void OnDragDrop (DragEventArgs de)\r
129                 {\r
130                         throw new NotImplementedException ();\r
131                 }\r
132 \r
133                 [MonoTODO]\r
134                 protected override void OnDragEnter (DragEventArgs de)\r
135                 {\r
136                         throw new NotImplementedException ();\r
137                 }\r
138 \r
139                 [MonoTODO]\r
140                 protected override void OnDragLeave (EventArgs e)\r
141                 {\r
142                         throw new NotImplementedException ();\r
143                 }\r
144 \r
145                 [MonoTODO]\r
146                 protected override void OnDragOver (DragEventArgs de)\r
147                 {\r
148                         throw new NotImplementedException ();\r
149                 }\r
150 \r
151                 [MonoTODO]\r
152                 protected override void OnGiveFeedback (GiveFeedbackEventArgs e)\r
153                 {\r
154                         throw new NotImplementedException ();\r
155                 }\r
156 \r
157                 [MonoTODO]\r
158                 protected override void OnMouseDragBegin (int x, int y)\r
159                 {\r
160                         throw new NotImplementedException ();\r
161                 }\r
162 \r
163                 [MonoTODO]\r
164                 protected override void OnMouseDragEnd (bool cancel)\r
165                 {\r
166                         throw new NotImplementedException ();\r
167                 }\r
168 \r
169                 [MonoTODO]\r
170                 protected override void OnMouseDragMove (int x, int y)\r
171                 {\r
172                         throw new NotImplementedException ();\r
173                 }\r
174 \r
175                 [MonoTODO]\r
176                 protected override void OnMouseEnter ()\r
177                 {\r
178                         throw new NotImplementedException ();\r
179                 }\r
180 \r
181                 [MonoTODO]\r
182                 protected override void OnMouseHover ()\r
183                 {\r
184                         throw new NotImplementedException ();\r
185                 }\r
186 \r
187                 [MonoTODO]\r
188                 protected override void OnMouseLeave ()\r
189                 {\r
190                         throw new NotImplementedException ();\r
191                 }\r
192 \r
193                 [MonoTODO]\r
194                 protected override void OnPaintAdornments (PaintEventArgs pe)\r
195                 {\r
196                         throw new NotImplementedException ();\r
197                 }\r
198 \r
199                 [MonoTODO]\r
200                 protected override void OnSetCursor ()\r
201                 {\r
202                         throw new NotImplementedException ();\r
203                 }\r
204 \r
205                 [MonoTODO]\r
206                 protected override void PreFilterProperties (IDictionary properties)\r
207                 {\r
208                         throw new NotImplementedException ();\r
209                 }\r
210 \r
211                 [MonoTODO]\r
212                 protected override void WndProc (ref Message m)\r
213                 {\r
214                         throw new NotImplementedException ();\r
215                 }\r
216 \r
217                 [MonoTODO]\r
218                 protected override bool EnableDragRect\r
219                 {\r
220                         get\r
221                         {\r
222                                 throw new NotImplementedException ();\r
223                         }\r
224                 }\r
225 \r
226                 #endregion Override implementation of ControlDesigner\r
227 \r
228                 #region Private Static Methods\r
229 \r
230                 [MonoTODO]\r
231                 protected static void InvokeCreateTool (ParentControlDesigner toInvoke, ToolboxItem tool)\r
232                 {\r
233                         throw new NotImplementedException ();\r
234                 }\r
235 \r
236                 #endregion Private Static Methods\r
237 \r
238                 #region Implementation of IOleDragClient\r
239 \r
240                 [MonoTODO]\r
241                 bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)\r
242                 {\r
243                         throw new NotImplementedException ();\r
244                 }\r
245 \r
246                 [MonoTODO]\r
247                 bool IOleDragClient.CanModifyComponents\r
248                 {\r
249                         get\r
250                         {\r
251                                 throw new NotImplementedException ();\r
252                         }\r
253                 }\r
254 \r
255                 [MonoTODO]\r
256                 IComponent IOleDragClient.Component\r
257                 {\r
258                         get\r
259                         {\r
260                                 throw new NotImplementedException ();\r
261                         }\r
262                 }\r
263 \r
264                 [MonoTODO]\r
265                 Control IOleDragClient.GetControlForComponent (object component)\r
266                 {\r
267                         throw new NotImplementedException ();\r
268                 }\r
269 \r
270                 [MonoTODO]\r
271                 Control IOleDragClient.GetDesignerControl ()\r
272                 {\r
273                         throw new NotImplementedException ();\r
274                 }\r
275 \r
276                 [MonoTODO]\r
277                 bool IOleDragClient.IsDropOk (IComponent component)\r
278                 {\r
279                         throw new NotImplementedException ();\r
280                 }\r
281 \r
282                 #endregion Implementation of IOleDragClient\r
283 \r
284                 #region Implementation of ISelectionUIHandler\r
285 \r
286                 [MonoTODO]\r
287                 bool ISelectionUIHandler.BeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)\r
288                 {\r
289                         throw new NotImplementedException ();\r
290                 }\r
291 \r
292                 [MonoTODO]\r
293                 void ISelectionUIHandler.DragMoved (object[] components, Rectangle offset)\r
294                 {\r
295                         throw new NotImplementedException ();\r
296                 }\r
297 \r
298                 [MonoTODO]\r
299                 void ISelectionUIHandler.EndDrag (object[] components, bool cancel)\r
300                 {\r
301                         throw new NotImplementedException ();\r
302                 }\r
303 \r
304                 [MonoTODO]\r
305                 Rectangle ISelectionUIHandler.GetComponentBounds (object component)\r
306                 {\r
307                         throw new NotImplementedException ();\r
308                 }\r
309 \r
310                 [MonoTODO]\r
311                 SelectionRules ISelectionUIHandler.GetComponentRules (object component)\r
312                 {\r
313                         throw new NotImplementedException ();\r
314                 }\r
315 \r
316                 [MonoTODO]\r
317                 Rectangle ISelectionUIHandler.GetSelectionClipRect (object component)\r
318                 {\r
319                         throw new NotImplementedException ();\r
320                 }\r
321 \r
322                 [MonoTODO]\r
323                 void ISelectionUIHandler.OleDragDrop (DragEventArgs de)\r
324                 {\r
325                         throw new NotImplementedException ();\r
326                 }\r
327 \r
328                 [MonoTODO]\r
329                 void ISelectionUIHandler.OleDragEnter (DragEventArgs de)\r
330                 {\r
331                         throw new NotImplementedException ();\r
332                 }\r
333 \r
334                 [MonoTODO]\r
335                 void ISelectionUIHandler.OleDragLeave ()\r
336                 {\r
337                         throw new NotImplementedException ();\r
338                 }\r
339 \r
340                 [MonoTODO]\r
341                 void ISelectionUIHandler.OleDragOver (DragEventArgs de)\r
342                 {\r
343                         throw new NotImplementedException ();\r
344                 }\r
345 \r
346                 [MonoTODO]\r
347                 void ISelectionUIHandler.OnSelectionDoubleClick (IComponent component)\r
348                 {\r
349                         throw new NotImplementedException ();\r
350                 }\r
351 \r
352                 [MonoTODO]\r
353                 bool ISelectionUIHandler.QueryBeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)\r
354                 {\r
355                         throw new NotImplementedException ();\r
356                 }\r
357 \r
358                 [MonoTODO]\r
359                 void ISelectionUIHandler.ShowContextMenu (IComponent component)\r
360                 {\r
361                         throw new NotImplementedException ();\r
362                 }\r
363 \r
364                 #endregion Implementation of ISelectionUIHandler\r
365 \r
366                 #region Public Instance Methods\r
367 \r
368                 [MonoTODO]\r
369                 public virtual bool CanParent (Control control)\r
370                 {\r
371                         throw new NotImplementedException ();\r
372                 }\r
373 \r
374                 [MonoTODO]\r
375                 public virtual bool CanParent (ControlDesigner controlDesigner)\r
376                 {\r
377                         throw new NotImplementedException ();\r
378                 }\r
379 \r
380                 #endregion Public Instance Methods\r
381 \r
382                 #region Internal Instance Methods\r
383 \r
384                 [MonoTODO]\r
385                 internal Point GetSnappedPoint (Point pt)\r
386                 {\r
387                         throw new NotImplementedException ();\r
388                 }\r
389 \r
390                 [MonoTODO]\r
391                 internal void SetCursor ()\r
392                 {\r
393                         throw new NotImplementedException ();\r
394                 }\r
395 \r
396                 #endregion Internal Instance Methods\r
397 \r
398                 #region Protected Instance Methods\r
399 \r
400                 [MonoTODO]\r
401                 protected void CreateTool (ToolboxItem tool)\r
402                 {\r
403                         throw new NotImplementedException ();\r
404                 }\r
405 \r
406                 [MonoTODO]\r
407                 protected void CreateTool (ToolboxItem tool, Point location)\r
408                 {\r
409                         throw new NotImplementedException ();\r
410                 }\r
411 \r
412                 [MonoTODO]\r
413                 protected void CreateTool (ToolboxItem tool, Rectangle bounds)\r
414                 {\r
415                         throw new NotImplementedException ();\r
416                 }\r
417 \r
418                 [MonoTODO]\r
419                 protected virtual IComponent[] CreateToolCore (ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize)\r
420                 {\r
421                         throw new NotImplementedException ();\r
422                 }\r
423 \r
424                 [MonoTODO]\r
425                 protected Control GetControl (object component)\r
426                 {\r
427                         throw new NotImplementedException ();\r
428                 }\r
429 \r
430                 [MonoTODO]\r
431                 protected Rectangle GetUpdatedRect (Rectangle originalRect, Rectangle dragRect, bool updateSize)\r
432                 {\r
433                         throw new NotImplementedException ();\r
434                 }\r
435 \r
436                 #endregion Protected Instance Methods\r
437 \r
438                 #region Private Static Fields\r
439 \r
440                 private static BooleanSwitch StepControls;\r
441 \r
442                 #endregion Private Static Fields\r
443         }\r
444 }\r