**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Design / System.Windows.Forms.Design / ComponentTray.cs
blob0fa616b05d9614617324af0012fc7a484cc51db0
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 //
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.
30 using System;
31 using System.ComponentModel;
32 using System.ComponentModel.Design;
33 using System.Drawing;
34 using System.Drawing.Design;
36 namespace System.Windows.Forms.Design
38 [DesignTimeVisible (false)]
39 [ToolboxItem (false)]
40 [ProvideProperty ("Location", typeof(IComponent))]
41 public class ComponentTray : ScrollableControl, IExtenderProvider, ISelectionUIHandler, IOleDragClient
43 #region Public Instance Constructors
45 [MonoTODO]
46 public ComponentTray (IDesigner mainDesigner, IServiceProvider serviceProvider)
48 throw new NotImplementedException ();
51 #endregion Public Instance Constructors
53 #region Static Constructor
55 [MonoTODO]
56 static ComponentTray ()
60 #endregion Static Constructor
62 #region Public Instance Properties
64 [MonoTODO]
65 public bool AutoArrange
67 get
69 throw new NotImplementedException ();
71 set
73 throw new NotImplementedException ();
77 [MonoTODO]
78 public int ComponentCount
80 get
82 throw new NotImplementedException ();
86 [MonoTODO]
87 public bool ShowLargeIcons
89 get
91 throw new NotImplementedException ();
93 set
95 throw new NotImplementedException ();
99 #endregion Public Instance Properties
101 #region Override implementation of ScrollableControl
103 [MonoTODO]
104 protected override void Dispose (bool disposing)
106 throw new NotImplementedException ();
109 [MonoTODO]
110 protected override object GetService (Type serviceType)
112 throw new NotImplementedException ();
115 [MonoTODO]
116 protected override void WndProc (ref Message m)
118 throw new NotImplementedException ();
121 [MonoTODO]
122 protected override void OnDoubleClick (EventArgs e)
124 throw new NotImplementedException ();
127 [MonoTODO]
128 protected override void OnDragDrop (DragEventArgs de)
130 throw new NotImplementedException ();
133 [MonoTODO]
134 protected override void OnDragEnter (DragEventArgs de)
136 throw new NotImplementedException ();
139 [MonoTODO]
140 protected override void OnDragLeave (EventArgs e)
142 throw new NotImplementedException ();
145 [MonoTODO]
146 protected override void OnDragOver (DragEventArgs de)
148 throw new NotImplementedException ();
151 [MonoTODO]
152 protected override void OnGiveFeedback (GiveFeedbackEventArgs gfevent)
154 throw new NotImplementedException ();
157 [MonoTODO]
158 protected override void OnLayout (LayoutEventArgs levent)
160 throw new NotImplementedException ();
163 [MonoTODO]
164 protected override void OnMouseDown (MouseEventArgs e)
166 throw new NotImplementedException ();
169 [MonoTODO]
170 protected override void OnMouseMove (MouseEventArgs e)
172 throw new NotImplementedException ();
175 [MonoTODO]
176 protected override void OnMouseUp (MouseEventArgs e)
178 throw new NotImplementedException ();
181 [MonoTODO]
182 protected override void OnPaint (PaintEventArgs pe)
184 throw new NotImplementedException ();
187 #endregion Override implementation of ScrollableControl
189 #region Implementation of IExtenderProvider
191 [MonoTODO]
192 bool IExtenderProvider.CanExtend (object component)
194 throw new NotImplementedException ();
197 #endregion Implementation of IExtenderProvider
199 #region Implementation of IOleDragClient
201 [MonoTODO]
202 bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
204 throw new NotImplementedException ();
207 [MonoTODO]
208 bool IOleDragClient.CanModifyComponents
212 throw new NotImplementedException ();
216 [MonoTODO]
217 IComponent IOleDragClient.Component
221 throw new NotImplementedException ();
225 [MonoTODO]
226 Control IOleDragClient.GetControlForComponent (object component)
228 throw new NotImplementedException ();
231 [MonoTODO]
232 Control IOleDragClient.GetDesignerControl ()
234 throw new NotImplementedException ();
237 [MonoTODO]
238 bool IOleDragClient.IsDropOk (IComponent component)
240 throw new NotImplementedException ();
243 #endregion Implementation of IOleDragClient
245 #region Implementation of ISelectionUIHandler
247 [MonoTODO]
248 bool ISelectionUIHandler.BeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
250 throw new NotImplementedException ();
253 [MonoTODO]
254 void ISelectionUIHandler.DragMoved (object[] components, Rectangle offset)
256 throw new NotImplementedException ();
259 [MonoTODO]
260 void ISelectionUIHandler.EndDrag (object[] components, bool cancel)
262 throw new NotImplementedException ();
265 [MonoTODO]
266 Rectangle ISelectionUIHandler.GetComponentBounds (object component)
268 throw new NotImplementedException ();
271 [MonoTODO]
272 SelectionRules ISelectionUIHandler.GetComponentRules (object component)
274 throw new NotImplementedException ();
277 [MonoTODO]
278 Rectangle ISelectionUIHandler.GetSelectionClipRect (object component)
280 throw new NotImplementedException ();
283 [MonoTODO]
284 void ISelectionUIHandler.OleDragDrop (DragEventArgs de)
286 throw new NotImplementedException ();
289 [MonoTODO]
290 void ISelectionUIHandler.OleDragEnter (DragEventArgs de)
292 throw new NotImplementedException ();
295 [MonoTODO]
296 void ISelectionUIHandler.OleDragLeave ()
298 throw new NotImplementedException ();
301 [MonoTODO]
302 void ISelectionUIHandler.OleDragOver (DragEventArgs de)
304 throw new NotImplementedException ();
307 [MonoTODO]
308 void ISelectionUIHandler.OnSelectionDoubleClick (IComponent component)
310 throw new NotImplementedException ();
313 [MonoTODO]
314 bool ISelectionUIHandler.QueryBeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
316 throw new NotImplementedException ();
319 [MonoTODO]
320 void ISelectionUIHandler.ShowContextMenu (IComponent component)
322 throw new NotImplementedException ();
325 #endregion Implementation of ISelectionUIHandler
328 #region Public Instance Methods
330 [MonoTODO]
331 public virtual void AddComponent (IComponent component)
333 throw new NotImplementedException ();
336 [MonoTODO]
337 public virtual void RemoveComponent (IComponent component)
339 throw new NotImplementedException ();
342 [MonoTODO]
343 public void CreateComponentFromTool (ToolboxItem tool)
345 throw new NotImplementedException ();
348 [MonoTODO]
349 [DesignOnly (true)]
350 [Category ("Layout")]
351 [Localizable (false)]
352 [Browsable (false)]
353 public Point GetLocation (IComponent receiver)
355 throw new NotImplementedException ();
358 [MonoTODO]
359 public void SetLocation (IComponent receiver, Point location)
361 throw new NotImplementedException ();
364 #endregion Public Instance Methods
366 #region Protected Instance Methods
368 [MonoTODO]
369 protected virtual bool CanCreateComponentFromTool (ToolboxItem tool)
371 throw new NotImplementedException ();
374 [MonoTODO]
375 protected virtual bool CanDisplayComponent (IComponent component)
377 throw new NotImplementedException ();
380 [MonoTODO]
381 protected void DisplayError (Exception e)
383 throw new NotImplementedException ();
386 [MonoTODO]
387 protected virtual void OnSetCursor ()
389 throw new NotImplementedException ();
392 [MonoTODO]
393 protected virtual void OnLostCapture ()
395 throw new NotImplementedException ();
398 #endregion Protected Instance Methods