2 // System.Windows.Forms.Design.ComponentEditorForm.cs
5 // Dennis Hayes (dennish@raytek.com)
6 // (C) 2002 Ximian, Inc. http://www.ximian.com
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:
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
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.
31 using System
.ComponentModel
;
32 using System
.ComponentModel
.Design
;
34 using System
.Drawing
.Design
;
36 namespace System
.Windows
.Forms
.Design
38 [DesignTimeVisible (false)]
40 [ProvideProperty ("Location", typeof(IComponent
))]
41 public class ComponentTray
: ScrollableControl
, IExtenderProvider
, ISelectionUIHandler
, IOleDragClient
43 #region Public Instance Constructors
46 public ComponentTray (IDesigner mainDesigner
, IServiceProvider serviceProvider
)
48 throw new NotImplementedException ();
51 #endregion Public Instance Constructors
53 #region Static Constructor
56 static ComponentTray ()
60 #endregion Static Constructor
62 #region Public Instance Properties
65 public bool AutoArrange
69 throw new NotImplementedException ();
73 throw new NotImplementedException ();
78 public int ComponentCount
82 throw new NotImplementedException ();
87 public bool ShowLargeIcons
91 throw new NotImplementedException ();
95 throw new NotImplementedException ();
99 #endregion Public Instance Properties
101 #region Override implementation of ScrollableControl
104 protected override void Dispose (bool disposing
)
106 throw new NotImplementedException ();
110 protected override object GetService (Type serviceType
)
112 throw new NotImplementedException ();
116 protected override void WndProc (ref Message m
)
118 throw new NotImplementedException ();
122 protected override void OnDoubleClick (EventArgs e
)
124 throw new NotImplementedException ();
128 protected override void OnDragDrop (DragEventArgs de
)
130 throw new NotImplementedException ();
134 protected override void OnDragEnter (DragEventArgs de
)
136 throw new NotImplementedException ();
140 protected override void OnDragLeave (EventArgs e
)
142 throw new NotImplementedException ();
146 protected override void OnDragOver (DragEventArgs de
)
148 throw new NotImplementedException ();
152 protected override void OnGiveFeedback (GiveFeedbackEventArgs gfevent
)
154 throw new NotImplementedException ();
158 protected override void OnLayout (LayoutEventArgs levent
)
160 throw new NotImplementedException ();
164 protected override void OnMouseDown (MouseEventArgs e
)
166 throw new NotImplementedException ();
170 protected override void OnMouseMove (MouseEventArgs e
)
172 throw new NotImplementedException ();
176 protected override void OnMouseUp (MouseEventArgs e
)
178 throw new NotImplementedException ();
182 protected override void OnPaint (PaintEventArgs pe
)
184 throw new NotImplementedException ();
187 #endregion Override implementation of ScrollableControl
189 #region Implementation of IExtenderProvider
192 bool IExtenderProvider
.CanExtend (object component
)
194 throw new NotImplementedException ();
197 #endregion Implementation of IExtenderProvider
199 #region Implementation of IOleDragClient
202 bool IOleDragClient
.AddComponent (IComponent component
, string name
, bool firstAdd
)
204 throw new NotImplementedException ();
208 bool IOleDragClient
.CanModifyComponents
212 throw new NotImplementedException ();
217 IComponent IOleDragClient
.Component
221 throw new NotImplementedException ();
226 Control IOleDragClient
.GetControlForComponent (object component
)
228 throw new NotImplementedException ();
232 Control IOleDragClient
.GetDesignerControl ()
234 throw new NotImplementedException ();
238 bool IOleDragClient
.IsDropOk (IComponent component
)
240 throw new NotImplementedException ();
243 #endregion Implementation of IOleDragClient
245 #region Implementation of ISelectionUIHandler
248 bool ISelectionUIHandler
.BeginDrag (object[] components
, SelectionRules rules
, int initialX
, int initialY
)
250 throw new NotImplementedException ();
254 void ISelectionUIHandler
.DragMoved (object[] components
, Rectangle offset
)
256 throw new NotImplementedException ();
260 void ISelectionUIHandler
.EndDrag (object[] components
, bool cancel
)
262 throw new NotImplementedException ();
266 Rectangle ISelectionUIHandler
.GetComponentBounds (object component
)
268 throw new NotImplementedException ();
272 SelectionRules ISelectionUIHandler
.GetComponentRules (object component
)
274 throw new NotImplementedException ();
278 Rectangle ISelectionUIHandler
.GetSelectionClipRect (object component
)
280 throw new NotImplementedException ();
284 void ISelectionUIHandler
.OleDragDrop (DragEventArgs de
)
286 throw new NotImplementedException ();
290 void ISelectionUIHandler
.OleDragEnter (DragEventArgs de
)
292 throw new NotImplementedException ();
296 void ISelectionUIHandler
.OleDragLeave ()
298 throw new NotImplementedException ();
302 void ISelectionUIHandler
.OleDragOver (DragEventArgs de
)
304 throw new NotImplementedException ();
308 void ISelectionUIHandler
.OnSelectionDoubleClick (IComponent component
)
310 throw new NotImplementedException ();
314 bool ISelectionUIHandler
.QueryBeginDrag (object[] components
, SelectionRules rules
, int initialX
, int initialY
)
316 throw new NotImplementedException ();
320 void ISelectionUIHandler
.ShowContextMenu (IComponent component
)
322 throw new NotImplementedException ();
325 #endregion Implementation of ISelectionUIHandler
328 #region Public Instance Methods
331 public virtual void AddComponent (IComponent component
)
333 throw new NotImplementedException ();
337 public virtual void RemoveComponent (IComponent component
)
339 throw new NotImplementedException ();
343 public void CreateComponentFromTool (ToolboxItem tool
)
345 throw new NotImplementedException ();
350 [Category ("Layout")]
351 [Localizable (false)]
353 public Point
GetLocation (IComponent receiver
)
355 throw new NotImplementedException ();
359 public void SetLocation (IComponent receiver
, Point location
)
361 throw new NotImplementedException ();
364 #endregion Public Instance Methods
366 #region Protected Instance Methods
369 protected virtual bool CanCreateComponentFromTool (ToolboxItem tool
)
371 throw new NotImplementedException ();
375 protected virtual bool CanDisplayComponent (IComponent component
)
377 throw new NotImplementedException ();
381 protected void DisplayError (Exception e
)
383 throw new NotImplementedException ();
387 protected virtual void OnSetCursor ()
389 throw new NotImplementedException ();
393 protected virtual void OnLostCapture ()
395 throw new NotImplementedException ();
398 #endregion Protected Instance Methods