2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.Design / System.Windows.Forms.Design / ComponentTray.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.ComponentModel;
32 using System.ComponentModel.Design;
33 using System.Drawing;
34 using System.Drawing.Design;
35
36 namespace System.Windows.Forms.Design
37 {
38         [DesignTimeVisible (false)]
39         [ToolboxItem (false)]
40         [ProvideProperty ("Location", typeof(IComponent))]
41         public class ComponentTray : ScrollableControl, IExtenderProvider, ISelectionUIHandler, IOleDragClient
42         {
43                 #region Public Instance Constructors
44
45                 [MonoTODO]
46                 public ComponentTray (IDesigner mainDesigner, IServiceProvider serviceProvider)
47                 {
48                         throw new NotImplementedException ();
49                 }
50
51                 #endregion Public Instance Constructors
52
53                 #region Static Constructor
54
55                 [MonoTODO]
56                 static ComponentTray ()
57                 {
58                 }
59
60                 #endregion Static Constructor
61
62                 #region Public Instance Properties
63
64                 [MonoTODO]
65                 public bool AutoArrange
66                 {
67                         get
68                         {
69                                 throw new NotImplementedException ();
70                         }
71                         set
72                         {
73                                 throw new NotImplementedException ();
74                         }
75                 }
76
77                 [MonoTODO]
78                 public int ComponentCount
79                 {
80                         get
81                         {
82                                 throw new NotImplementedException ();
83                         }
84                 }
85
86                 [MonoTODO]
87                 public bool ShowLargeIcons
88                 {
89                         get
90                         {
91                                 throw new NotImplementedException ();
92                         }
93                         set
94                         {
95                                 throw new NotImplementedException ();
96                         }
97                 }
98
99                 #endregion Public Instance Properties
100
101                 #region Override implementation of ScrollableControl
102
103                 [MonoTODO]
104                 protected override void Dispose (bool disposing)
105                 {
106                         throw new NotImplementedException ();
107                 }
108
109                 [MonoTODO]
110                 protected override object GetService (Type serviceType)
111                 {
112                         throw new NotImplementedException ();
113                 }
114
115                 [MonoTODO]
116                 protected override void WndProc (ref Message m)
117                 {
118                         throw new NotImplementedException ();
119                 }
120
121                 [MonoTODO]
122                 protected override void OnDoubleClick (EventArgs e)
123                 {
124                         throw new NotImplementedException ();
125                 }
126
127                 [MonoTODO]
128                 protected override void OnDragDrop (DragEventArgs de)
129                 {
130                         throw new NotImplementedException ();
131                 }
132
133                 [MonoTODO]
134                 protected override void OnDragEnter (DragEventArgs de)
135                 {
136                         throw new NotImplementedException ();
137                 }
138
139                 [MonoTODO]
140                 protected override void OnDragLeave (EventArgs e)
141                 {
142                         throw new NotImplementedException ();
143                 }
144
145                 [MonoTODO]
146                 protected override void OnDragOver (DragEventArgs de)
147                 {
148                         throw new NotImplementedException ();
149                 }
150
151                 [MonoTODO]
152                 protected override void OnGiveFeedback (GiveFeedbackEventArgs gfevent)
153                 {
154                         throw new NotImplementedException ();
155                 }
156
157                 [MonoTODO]
158                 protected override void OnLayout (LayoutEventArgs levent)
159                 {
160                         throw new NotImplementedException ();
161                 }
162
163                 [MonoTODO]
164                 protected override void OnMouseDown (MouseEventArgs e)
165                 {
166                         throw new NotImplementedException ();
167                 }
168
169                 [MonoTODO]
170                 protected override void OnMouseMove (MouseEventArgs e)
171                 {
172                         throw new NotImplementedException ();
173                 }
174
175                 [MonoTODO]
176                 protected override void OnMouseUp (MouseEventArgs e)
177                 {
178                         throw new NotImplementedException ();
179                 }
180
181                 [MonoTODO]
182                 protected override void OnPaint (PaintEventArgs pe)
183                 {
184                         throw new NotImplementedException ();
185                 }
186
187                 #endregion Override implementation of ScrollableControl
188
189                 #region Implementation of IExtenderProvider
190
191                 [MonoTODO]
192                 bool IExtenderProvider.CanExtend (object component)
193                 {
194                         throw new NotImplementedException ();
195                 }
196
197                 #endregion Implementation of IExtenderProvider
198
199                 #region Implementation of IOleDragClient
200
201                 [MonoTODO]
202                 bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
203                 {
204                         throw new NotImplementedException ();
205                 }
206
207                 [MonoTODO]
208                 bool IOleDragClient.CanModifyComponents
209                 {
210                         get
211                         {
212                                 throw new NotImplementedException ();
213                         }
214                 }
215
216                 [MonoTODO]
217                 IComponent IOleDragClient.Component
218                 {
219                         get
220                         {
221                                 throw new NotImplementedException ();
222                         }
223                 }
224
225                 [MonoTODO]
226                 Control IOleDragClient.GetControlForComponent (object component)
227                 {
228                         throw new NotImplementedException ();
229                 }
230
231                 [MonoTODO]
232                 Control IOleDragClient.GetDesignerControl ()
233                 {
234                         throw new NotImplementedException ();
235                 }
236
237                 [MonoTODO]
238                 bool IOleDragClient.IsDropOk (IComponent component)
239                 {
240                         throw new NotImplementedException ();
241                 }
242
243                 #endregion Implementation of IOleDragClient
244
245                 #region Implementation of ISelectionUIHandler
246
247                 [MonoTODO]
248                 bool ISelectionUIHandler.BeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
249                 {
250                         throw new NotImplementedException ();
251                 }
252
253                 [MonoTODO]
254                 void ISelectionUIHandler.DragMoved (object[] components, Rectangle offset)
255                 {
256                         throw new NotImplementedException ();
257                 }
258
259                 [MonoTODO]
260                 void ISelectionUIHandler.EndDrag (object[] components, bool cancel)
261                 {
262                         throw new NotImplementedException ();
263                 }
264
265                 [MonoTODO]
266                 Rectangle ISelectionUIHandler.GetComponentBounds (object component)
267                 {
268                         throw new NotImplementedException ();
269                 }
270
271                 [MonoTODO]
272                 SelectionRules ISelectionUIHandler.GetComponentRules (object component)
273                 {
274                         throw new NotImplementedException ();
275                 }
276
277                 [MonoTODO]
278                 Rectangle ISelectionUIHandler.GetSelectionClipRect (object component)
279                 {
280                         throw new NotImplementedException ();
281                 }
282
283                 [MonoTODO]
284                 void ISelectionUIHandler.OleDragDrop (DragEventArgs de)
285                 {
286                         throw new NotImplementedException ();
287                 }
288
289                 [MonoTODO]
290                 void ISelectionUIHandler.OleDragEnter (DragEventArgs de)
291                 {
292                         throw new NotImplementedException ();
293                 }
294
295                 [MonoTODO]
296                 void ISelectionUIHandler.OleDragLeave ()
297                 {
298                         throw new NotImplementedException ();
299                 }
300
301                 [MonoTODO]
302                 void ISelectionUIHandler.OleDragOver (DragEventArgs de)
303                 {
304                         throw new NotImplementedException ();
305                 }
306
307                 [MonoTODO]
308                 void ISelectionUIHandler.OnSelectionDoubleClick (IComponent component)
309                 {
310                         throw new NotImplementedException ();
311                 }
312
313                 [MonoTODO]
314                 bool ISelectionUIHandler.QueryBeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
315                 {
316                         throw new NotImplementedException ();
317                 }
318
319                 [MonoTODO]
320                 void ISelectionUIHandler.ShowContextMenu (IComponent component)
321                 {
322                         throw new NotImplementedException ();
323                 }
324
325                 #endregion Implementation of ISelectionUIHandler
326
327
328                 #region Public Instance Methods
329
330                 [MonoTODO]
331                 public virtual void AddComponent (IComponent component)
332                 {
333                         throw new NotImplementedException ();
334                 }
335
336                 [MonoTODO]
337                 public virtual void RemoveComponent (IComponent component)
338                 {
339                         throw new NotImplementedException ();
340                 }
341
342                 [MonoTODO]
343                 public void CreateComponentFromTool (ToolboxItem tool)
344                 {
345                         throw new NotImplementedException ();
346                 }
347
348                 [MonoTODO]
349                 [DesignOnly (true)]
350                 [Category ("Layout")]
351                 [Localizable (false)]
352                 [Browsable (false)]
353                 public Point GetLocation (IComponent receiver)
354                 {
355                         throw new NotImplementedException ();
356                 }
357
358                 [MonoTODO]
359                 public void SetLocation (IComponent receiver, Point location)
360                 {
361                         throw new NotImplementedException ();
362                 }
363
364                 #endregion Public Instance Methods
365
366                 #region Protected Instance Methods
367
368                 [MonoTODO]
369                 protected virtual bool CanCreateComponentFromTool (ToolboxItem tool)
370                 {
371                         throw new NotImplementedException ();
372                 }
373
374                 [MonoTODO]
375                 protected virtual bool CanDisplayComponent (IComponent component)
376                 {
377                         throw new NotImplementedException ();
378                 }
379
380                 [MonoTODO]
381                 protected void DisplayError (Exception e)
382                 {
383                         throw new NotImplementedException ();
384                 }
385
386                 [MonoTODO]
387                 protected virtual void OnSetCursor ()
388                 {
389                         throw new NotImplementedException ();
390                 }
391
392                 [MonoTODO]
393                 protected virtual void OnLostCapture ()
394                 {
395                         throw new NotImplementedException ();
396                 }
397
398                 #endregion Protected Instance Methods
399         }
400 }