ComponentTray.cs 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. //
  2. // System.Windows.Forms.Design.ComponentEditorForm.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. // (C) 2002 Ximian, Inc. http://www.ximian.com
  7. //
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System;
  29. using System.ComponentModel;
  30. using System.ComponentModel.Design;
  31. using System.Drawing;
  32. using System.Drawing.Design;
  33. namespace System.Windows.Forms.Design
  34. {
  35. [DesignTimeVisible (false)]
  36. [ToolboxItem (false)]
  37. [ProvideProperty ("Location", typeof(IComponent))]
  38. public class ComponentTray : ScrollableControl, IExtenderProvider, ISelectionUIHandler, IOleDragClient
  39. {
  40. #region Public Instance Constructors
  41. [MonoTODO]
  42. public ComponentTray (IDesigner mainDesigner, IServiceProvider serviceProvider)
  43. {
  44. throw new NotImplementedException ();
  45. }
  46. #endregion Public Instance Constructors
  47. #region Static Constructor
  48. [MonoTODO]
  49. static ComponentTray ()
  50. {
  51. }
  52. #endregion Static Constructor
  53. #region Public Instance Properties
  54. [MonoTODO]
  55. public bool AutoArrange
  56. {
  57. get
  58. {
  59. throw new NotImplementedException ();
  60. }
  61. set
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. }
  66. [MonoTODO]
  67. public int ComponentCount
  68. {
  69. get
  70. {
  71. throw new NotImplementedException ();
  72. }
  73. }
  74. [MonoTODO]
  75. public bool ShowLargeIcons
  76. {
  77. get
  78. {
  79. throw new NotImplementedException ();
  80. }
  81. set
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. }
  86. #endregion Public Instance Properties
  87. #region Override implementation of ScrollableControl
  88. [MonoTODO]
  89. protected override void Dispose (bool disposing)
  90. {
  91. throw new NotImplementedException ();
  92. }
  93. [MonoTODO]
  94. protected override object GetService (Type serviceType)
  95. {
  96. throw new NotImplementedException ();
  97. }
  98. [MonoTODO]
  99. protected override void WndProc (ref Message m)
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. [MonoTODO]
  104. protected override void OnDoubleClick (EventArgs e)
  105. {
  106. throw new NotImplementedException ();
  107. }
  108. [MonoTODO]
  109. protected override void OnDragDrop (DragEventArgs de)
  110. {
  111. throw new NotImplementedException ();
  112. }
  113. [MonoTODO]
  114. protected override void OnDragEnter (DragEventArgs de)
  115. {
  116. throw new NotImplementedException ();
  117. }
  118. [MonoTODO]
  119. protected override void OnDragLeave (EventArgs e)
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. [MonoTODO]
  124. protected override void OnDragOver (DragEventArgs de)
  125. {
  126. throw new NotImplementedException ();
  127. }
  128. [MonoTODO]
  129. protected override void OnGiveFeedback (GiveFeedbackEventArgs gfevent)
  130. {
  131. throw new NotImplementedException ();
  132. }
  133. [MonoTODO]
  134. protected override void OnLayout (LayoutEventArgs levent)
  135. {
  136. throw new NotImplementedException ();
  137. }
  138. [MonoTODO]
  139. protected override void OnMouseDown (MouseEventArgs e)
  140. {
  141. throw new NotImplementedException ();
  142. }
  143. [MonoTODO]
  144. protected override void OnMouseMove (MouseEventArgs e)
  145. {
  146. throw new NotImplementedException ();
  147. }
  148. [MonoTODO]
  149. protected override void OnMouseUp (MouseEventArgs e)
  150. {
  151. throw new NotImplementedException ();
  152. }
  153. [MonoTODO]
  154. protected override void OnPaint (PaintEventArgs pe)
  155. {
  156. throw new NotImplementedException ();
  157. }
  158. #endregion Override implementation of ScrollableControl
  159. #region Implementation of IExtenderProvider
  160. [MonoTODO]
  161. bool IExtenderProvider.CanExtend (object component)
  162. {
  163. throw new NotImplementedException ();
  164. }
  165. #endregion Implementation of IExtenderProvider
  166. #region Implementation of IOleDragClient
  167. [MonoTODO]
  168. bool IOleDragClient.AddComponent (IComponent component, string name, bool firstAdd)
  169. {
  170. throw new NotImplementedException ();
  171. }
  172. [MonoTODO]
  173. bool IOleDragClient.CanModifyComponents
  174. {
  175. get
  176. {
  177. throw new NotImplementedException ();
  178. }
  179. }
  180. [MonoTODO]
  181. IComponent IOleDragClient.Component
  182. {
  183. get
  184. {
  185. throw new NotImplementedException ();
  186. }
  187. }
  188. [MonoTODO]
  189. Control IOleDragClient.GetControlForComponent (object component)
  190. {
  191. throw new NotImplementedException ();
  192. }
  193. [MonoTODO]
  194. Control IOleDragClient.GetDesignerControl ()
  195. {
  196. throw new NotImplementedException ();
  197. }
  198. [MonoTODO]
  199. bool IOleDragClient.IsDropOk (IComponent component)
  200. {
  201. throw new NotImplementedException ();
  202. }
  203. #endregion Implementation of IOleDragClient
  204. #region Implementation of ISelectionUIHandler
  205. [MonoTODO]
  206. bool ISelectionUIHandler.BeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
  207. {
  208. throw new NotImplementedException ();
  209. }
  210. [MonoTODO]
  211. void ISelectionUIHandler.DragMoved (object[] components, Rectangle offset)
  212. {
  213. throw new NotImplementedException ();
  214. }
  215. [MonoTODO]
  216. void ISelectionUIHandler.EndDrag (object[] components, bool cancel)
  217. {
  218. throw new NotImplementedException ();
  219. }
  220. [MonoTODO]
  221. Rectangle ISelectionUIHandler.GetComponentBounds (object component)
  222. {
  223. throw new NotImplementedException ();
  224. }
  225. [MonoTODO]
  226. SelectionRules ISelectionUIHandler.GetComponentRules (object component)
  227. {
  228. throw new NotImplementedException ();
  229. }
  230. [MonoTODO]
  231. Rectangle ISelectionUIHandler.GetSelectionClipRect (object component)
  232. {
  233. throw new NotImplementedException ();
  234. }
  235. [MonoTODO]
  236. void ISelectionUIHandler.OleDragDrop (DragEventArgs de)
  237. {
  238. throw new NotImplementedException ();
  239. }
  240. [MonoTODO]
  241. void ISelectionUIHandler.OleDragEnter (DragEventArgs de)
  242. {
  243. throw new NotImplementedException ();
  244. }
  245. [MonoTODO]
  246. void ISelectionUIHandler.OleDragLeave ()
  247. {
  248. throw new NotImplementedException ();
  249. }
  250. [MonoTODO]
  251. void ISelectionUIHandler.OleDragOver (DragEventArgs de)
  252. {
  253. throw new NotImplementedException ();
  254. }
  255. [MonoTODO]
  256. void ISelectionUIHandler.OnSelectionDoubleClick (IComponent component)
  257. {
  258. throw new NotImplementedException ();
  259. }
  260. [MonoTODO]
  261. bool ISelectionUIHandler.QueryBeginDrag (object[] components, SelectionRules rules, int initialX, int initialY)
  262. {
  263. throw new NotImplementedException ();
  264. }
  265. [MonoTODO]
  266. void ISelectionUIHandler.ShowContextMenu (IComponent component)
  267. {
  268. throw new NotImplementedException ();
  269. }
  270. #endregion Implementation of ISelectionUIHandler
  271. #region Public Instance Methods
  272. [MonoTODO]
  273. public virtual void AddComponent (IComponent component)
  274. {
  275. throw new NotImplementedException ();
  276. }
  277. [MonoTODO]
  278. public virtual void RemoveComponent (IComponent component)
  279. {
  280. throw new NotImplementedException ();
  281. }
  282. [MonoTODO]
  283. public void CreateComponentFromTool (ToolboxItem tool)
  284. {
  285. throw new NotImplementedException ();
  286. }
  287. [MonoTODO]
  288. [DesignOnly (true)]
  289. [Category ("Layout")]
  290. [Localizable (false)]
  291. [Browsable (false)]
  292. public Point GetLocation (IComponent receiver)
  293. {
  294. throw new NotImplementedException ();
  295. }
  296. [MonoTODO]
  297. public void SetLocation (IComponent receiver, Point location)
  298. {
  299. throw new NotImplementedException ();
  300. }
  301. #endregion Public Instance Methods
  302. #region Protected Instance Methods
  303. [MonoTODO]
  304. protected virtual bool CanCreateComponentFromTool (ToolboxItem tool)
  305. {
  306. throw new NotImplementedException ();
  307. }
  308. [MonoTODO]
  309. protected virtual bool CanDisplayComponent (IComponent component)
  310. {
  311. throw new NotImplementedException ();
  312. }
  313. [MonoTODO]
  314. protected void DisplayError (Exception e)
  315. {
  316. throw new NotImplementedException ();
  317. }
  318. [MonoTODO]
  319. protected virtual void OnSetCursor ()
  320. {
  321. throw new NotImplementedException ();
  322. }
  323. [MonoTODO]
  324. protected virtual void OnLostCapture ()
  325. {
  326. throw new NotImplementedException ();
  327. }
  328. #endregion Protected Instance Methods
  329. }
  330. }