Menu.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. //
  2. // System.Windows.Forms.Menu.cs
  3. //
  4. // Author:
  5. // stubbed out by Paul Osman ([email protected])
  6. // Dennis Hayes ([email protected])
  7. //
  8. // (C) 2002 Ximian, Inc
  9. //
  10. using System;
  11. using System.Reflection;
  12. using System.Globalization;
  13. //using System.Windows.Forms.AccessibleObject.IAccessible;
  14. using System.Drawing;
  15. using System.Collections;
  16. using System.Runtime.Remoting;
  17. namespace System.Windows.Forms {
  18. /// <summary>
  19. /// ToDo note:
  20. /// - Nothing is implemented
  21. /// </summary>
  22. using System.ComponentModel;
  23. public abstract class Menu : Component {
  24. //
  25. // -- Public Methods
  26. //
  27. //inherited
  28. //public virtual ObjRef CreateObjRef(Type t) {
  29. // throw new NotImplementedException();
  30. //}
  31. //
  32. //public void Dispose() {
  33. // throw new NotImplementedException();
  34. //}
  35. //
  36. //protected virtual void Dispose(bool disposing) {
  37. // throw new NotImplementedException();
  38. //}
  39. public override bool Equals(object o) {
  40. throw new NotImplementedException();
  41. }
  42. //public static bool Equals(object o1, object o2) {
  43. // throw new NotImplementedException();
  44. //}
  45. [MonoTODO]
  46. public override int GetHashCode() {
  47. //FIXME add our proprities
  48. return base.GetHashCode();
  49. }
  50. public ContextMenu GetContextMenu() {
  51. throw new NotImplementedException();
  52. }
  53. public MainMenu GetMainMenu() {
  54. throw new NotImplementedException();
  55. }
  56. //inherited
  57. //public object GetLifetimeService() {
  58. // throw new NotImplementedException();
  59. //}
  60. //public Type GetType() {
  61. // throw new NotImplementedException();
  62. //}
  63. //public virtual object InitializeLifetimeService() {
  64. // throw new NotImplementedException();
  65. //}
  66. public virtual void MergeMenu(Menu menuSrc) {
  67. throw new NotImplementedException();
  68. }
  69. public override string ToString() {
  70. throw new NotImplementedException();
  71. }
  72. //
  73. // -- Protected Methods
  74. //
  75. protected void CloneMenu(Menu menuSrc) {
  76. throw new NotImplementedException();
  77. }
  78. ~Menu() {
  79. throw new NotImplementedException();
  80. }
  81. //protected virtual object GetService(Type service) {
  82. // throw new NotImplementedException();
  83. //}
  84. //
  85. //protected object MemberwiseClone() {
  86. // throw new NotImplementedException();
  87. //}
  88. //
  89. // -- Public Events
  90. //
  91. //inherited
  92. //public event EventHandler Disposed;
  93. //
  94. // -- Public Properties
  95. //
  96. //inherited
  97. //public IContainer Container {
  98. // get {
  99. // throw new NotImplementedException();
  100. // }
  101. //}
  102. public IntPtr Handle {
  103. get {
  104. throw new NotImplementedException();
  105. }
  106. }
  107. public virtual bool IsParent {
  108. get {
  109. throw new NotImplementedException();
  110. }
  111. }
  112. public MenuItem MdiListItem {
  113. get {
  114. throw new NotImplementedException();
  115. }
  116. }
  117. public Menu.MenuItemCollection MenuItems {
  118. get {
  119. throw new NotImplementedException();
  120. }
  121. }
  122. //inherited
  123. //public virtual ISite Site {
  124. // get {
  125. // throw new NotImplementedException();
  126. // }
  127. // set {
  128. // throw new NotImplementedException();
  129. // }
  130. //}
  131. //
  132. // -- Protected Properties
  133. //
  134. //inherited
  135. //protected bool DesignMode {
  136. // get {
  137. // throw new NotImplementedException();
  138. // }
  139. //}
  140. //protected EventHandlerList Events {
  141. // get {
  142. // throw new NotImplementedException();
  143. // }
  144. //}
  145. //
  146. // System.Windows.Forms.Menu.MenuItemCollection.cs
  147. //
  148. // Author:
  149. // stubbed out by Paul Osman ([email protected])
  150. //
  151. // (C) 2002 Ximian, Inc
  152. //
  153. /// <summary>
  154. /// ToDo note:
  155. /// - Nothing is implemented
  156. /// </summary>
  157. public class MenuItemCollection : IList, ICollection, IEnumerable {
  158. //
  159. // -- Constructor
  160. //
  161. public MenuItemCollection(Menu m) {
  162. throw new NotImplementedException ();
  163. }
  164. //
  165. // -- Public Methods
  166. //
  167. public virtual int Add(MenuItem m) {
  168. throw new NotImplementedException ();
  169. }
  170. public virtual MenuItem Add(string s) {
  171. throw new NotImplementedException ();
  172. }
  173. public virtual int Add(int i, MenuItem m) {
  174. throw new NotImplementedException ();
  175. }
  176. public virtual MenuItem Add(string s, EventHandler e) {
  177. throw new NotImplementedException ();
  178. }
  179. public virtual MenuItem Add(string s, MenuItem[] items) {
  180. throw new NotImplementedException ();
  181. }
  182. public virtual void AddRange(MenuItem[] items) {
  183. throw new NotImplementedException ();
  184. }
  185. public virtual void Clear() {
  186. throw new NotImplementedException ();
  187. }
  188. public bool Contains(MenuItem m) {
  189. throw new NotImplementedException ();
  190. }
  191. public void CopyTo(Array a, int i) {
  192. throw new NotImplementedException ();
  193. }
  194. public override bool Equals(object o) {
  195. throw new NotImplementedException ();
  196. }
  197. //inherited
  198. //public static bool Equals(object o1, object o2) {
  199. // throw new NotImplementedException ();
  200. //}
  201. [MonoTODO]
  202. public override int GetHashCode() {
  203. //FIXME add our proprities
  204. return base.GetHashCode();
  205. } public IEnumerator GetEnumerator() {
  206. throw new NotImplementedException ();
  207. }
  208. //public override Type GetType() {
  209. // throw new NotImplementedException ();
  210. //}
  211. public int IndexOf(MenuItem m) {
  212. throw new NotImplementedException ();
  213. }
  214. public virtual void Remove(MenuItem m) {
  215. throw new NotImplementedException ();
  216. }
  217. public virtual void RemoveAt(int i) {
  218. throw new NotImplementedException ();
  219. }
  220. public override string ToString() {
  221. throw new NotImplementedException ();
  222. }
  223. //
  224. // -- Protected Methods
  225. //
  226. ~MenuItemCollection() {
  227. throw new NotImplementedException ();
  228. }
  229. //inherited
  230. //protected object MemberwiseClone() {
  231. // throw new NotImplementedException ();
  232. //}
  233. //
  234. // -- Public Properties
  235. //
  236. public int Count {
  237. get {
  238. throw new NotImplementedException ();
  239. }
  240. }
  241. // public virtual MenuItem this(int i)
  242. // {
  243. // get
  244. // {
  245. // throw new NotImplementedException ();
  246. // }
  247. // }
  248. /// <summary>
  249. /// IList Interface implmentation.
  250. /// </summary>
  251. bool IList.IsReadOnly{
  252. get{
  253. // We allow addition, removeal, and editing of items after creation of the list.
  254. return false;
  255. }
  256. }
  257. bool IList.IsFixedSize{
  258. get{
  259. // We allow addition and removeal of items after creation of the list.
  260. return false;
  261. }
  262. }
  263. //[MonoTODO]
  264. object IList.this[int index]{
  265. get{
  266. throw new NotImplementedException ();
  267. }
  268. set{
  269. throw new NotImplementedException ();
  270. }
  271. }
  272. [MonoTODO]
  273. void IList.Clear(){
  274. throw new NotImplementedException ();
  275. }
  276. [MonoTODO]
  277. int IList.Add( object value){
  278. throw new NotImplementedException ();
  279. }
  280. [MonoTODO]
  281. bool IList.Contains( object value){
  282. throw new NotImplementedException ();
  283. }
  284. [MonoTODO]
  285. int IList.IndexOf( object value){
  286. throw new NotImplementedException ();
  287. }
  288. [MonoTODO]
  289. void IList.Insert(int index, object value){
  290. throw new NotImplementedException ();
  291. }
  292. [MonoTODO]
  293. void IList.Remove( object value){
  294. throw new NotImplementedException ();
  295. }
  296. [MonoTODO]
  297. void IList.RemoveAt( int index){
  298. throw new NotImplementedException ();
  299. }
  300. // End of IList interface
  301. /// <summary>
  302. /// ICollection Interface implmentation.
  303. /// </summary>
  304. int ICollection.Count{
  305. get{
  306. throw new NotImplementedException ();
  307. }
  308. }
  309. bool ICollection.IsSynchronized{
  310. get{
  311. throw new NotImplementedException ();
  312. }
  313. }
  314. object ICollection.SyncRoot{
  315. get{
  316. throw new NotImplementedException ();
  317. }
  318. }
  319. void ICollection.CopyTo(Array array, int index){
  320. throw new NotImplementedException ();
  321. }
  322. // End Of ICollection
  323. }
  324. }
  325. }