ObjectSelectorEditor.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. //
  2. // System.ComponentModel.Design.ObjectSelectorEditor
  3. //
  4. // Authors:
  5. // Gert Driesen ([email protected])
  6. //
  7. // (C) 2004 Novell
  8. //
  9. using System.Drawing.Design;
  10. using System.Windows.Forms;
  11. using System.Windows.Forms.Design;
  12. namespace System.ComponentModel.Design
  13. {
  14. public abstract class ObjectSelectorEditor : UITypeEditor
  15. {
  16. public ObjectSelectorEditor ()
  17. {
  18. }
  19. public ObjectSelectorEditor (bool subObjectSelector)
  20. {
  21. SubObjectSelector = subObjectSelector;
  22. }
  23. [MonoTODO]
  24. public override object EditValue (ITypeDescriptorContext context, IServiceProvider provider, object value)
  25. {
  26. throw new NotImplementedException ();
  27. }
  28. public bool EqualsToValue (object value)
  29. {
  30. return (currValue == value);
  31. }
  32. [MonoTODO]
  33. protected virtual void FillTreeWithData (Selector selector, ITypeDescriptorContext context, IServiceProvider provider)
  34. {
  35. throw new NotImplementedException ();
  36. }
  37. public override UITypeEditorEditStyle GetEditStyle (ITypeDescriptorContext context)
  38. {
  39. return UITypeEditorEditStyle.DropDown;
  40. }
  41. public virtual void SetValue (object value)
  42. {
  43. currValue = value;
  44. }
  45. protected object currValue;
  46. protected object prevValue;
  47. public bool SubObjectSelector;
  48. public class Selector : TreeView
  49. {
  50. [MonoTODO]
  51. public Selector (ObjectSelectorEditor editor)
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. public SelectorNode AddNode (string label, object value, SelectorNode parent)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. [MonoTODO]
  61. public void Clear ()
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. protected void OnAfterSelect (object sender, TreeViewEventArgs e)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO]
  71. protected override void OnKeyDown (KeyEventArgs e)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO]
  76. protected override void OnKeyPress (KeyPressEventArgs e)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. public bool SetSelection (object value, TreeNodeCollection nodes)
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. [MonoTODO]
  86. public void Start (IWindowsFormsEditorService edSvc, object value)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. [MonoTODO]
  91. public void Stop ()
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. protected override void WndProc (ref Message m)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. [MonoTODO]
  101. public bool clickSeen;
  102. }
  103. public class SelectorNode : TreeNode
  104. {
  105. public SelectorNode (string label, object value) : base (label)
  106. {
  107. this.value = value;
  108. }
  109. public object value;
  110. }
  111. }
  112. }