| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394 |
- //
- // System.Windows.Forms.Menu.cs
- //
- // Author:
- // stubbed out by Paul Osman ([email protected])
- // Dennis Hayes ([email protected])
- //
- // (C) 2002 Ximian, Inc
- //
- using System;
- using System.Reflection;
- using System.Globalization;
- //using System.Windows.Forms.AccessibleObject.IAccessible;
- using System.Drawing;
- using System.Collections;
- using System.Runtime.Remoting;
- namespace System.Windows.Forms {
- /// <summary>
- /// ToDo note:
- /// - Nothing is implemented
- /// </summary>
- using System.ComponentModel;
- public abstract class Menu : Component {
- //
- // -- Public Methods
- //
- //inherited
- //public virtual ObjRef CreateObjRef(Type t) {
- // throw new NotImplementedException();
- //}
- //
- //public void Dispose() {
- // throw new NotImplementedException();
- //}
- //
- //protected virtual void Dispose(bool disposing) {
- // throw new NotImplementedException();
- //}
- public override bool Equals(object o) {
- throw new NotImplementedException();
- }
- //public static bool Equals(object o1, object o2) {
- // throw new NotImplementedException();
- //}
- [MonoTODO]
- public override int GetHashCode() {
- //FIXME add our proprities
- return base.GetHashCode();
- }
- public ContextMenu GetContextMenu() {
- throw new NotImplementedException();
- }
- public MainMenu GetMainMenu() {
- throw new NotImplementedException();
- }
- //inherited
- //public object GetLifetimeService() {
- // throw new NotImplementedException();
- //}
- //public Type GetType() {
- // throw new NotImplementedException();
- //}
- //public virtual object InitializeLifetimeService() {
- // throw new NotImplementedException();
- //}
- public virtual void MergeMenu(Menu menuSrc) {
- throw new NotImplementedException();
- }
- public override string ToString() {
- throw new NotImplementedException();
- }
- //
- // -- Protected Methods
- //
- protected void CloneMenu(Menu menuSrc) {
- throw new NotImplementedException();
- }
- ~Menu() {
- throw new NotImplementedException();
- }
- //protected virtual object GetService(Type service) {
- // throw new NotImplementedException();
- //}
- //
- //protected object MemberwiseClone() {
- // throw new NotImplementedException();
- //}
- //
- // -- Public Events
- //
- //inherited
- //public event EventHandler Disposed;
- //
- // -- Public Properties
- //
- //inherited
- //public IContainer Container {
- // get {
- // throw new NotImplementedException();
- // }
- //}
- public IntPtr Handle {
- get {
- throw new NotImplementedException();
- }
- }
- public virtual bool IsParent {
- get {
- throw new NotImplementedException();
- }
- }
- public MenuItem MdiListItem {
- get {
- throw new NotImplementedException();
- }
- }
- public Menu.MenuItemCollection MenuItems {
- get {
- throw new NotImplementedException();
- }
- }
- //inherited
- //public virtual ISite Site {
- // get {
- // throw new NotImplementedException();
- // }
- // set {
- // throw new NotImplementedException();
- // }
- //}
- //
- // -- Protected Properties
- //
- //inherited
- //protected bool DesignMode {
- // get {
- // throw new NotImplementedException();
- // }
- //}
- //protected EventHandlerList Events {
- // get {
- // throw new NotImplementedException();
- // }
- //}
- //
- // System.Windows.Forms.Menu.MenuItemCollection.cs
- //
- // Author:
- // stubbed out by Paul Osman ([email protected])
- //
- // (C) 2002 Ximian, Inc
- //
- /// <summary>
- /// ToDo note:
- /// - Nothing is implemented
- /// </summary>
- public class MenuItemCollection : IList, ICollection, IEnumerable {
-
- //
- // -- Constructor
- //
- public MenuItemCollection(Menu m) {
- throw new NotImplementedException ();
- }
-
- //
- // -- Public Methods
- //
-
- public virtual int Add(MenuItem m) {
- throw new NotImplementedException ();
- }
-
- public virtual MenuItem Add(string s) {
- throw new NotImplementedException ();
- }
-
- public virtual int Add(int i, MenuItem m) {
- throw new NotImplementedException ();
- }
-
- public virtual MenuItem Add(string s, EventHandler e) {
- throw new NotImplementedException ();
- }
-
- public virtual MenuItem Add(string s, MenuItem[] items) {
- throw new NotImplementedException ();
- }
-
- public virtual void AddRange(MenuItem[] items) {
- throw new NotImplementedException ();
- }
-
- public virtual void Clear() {
- throw new NotImplementedException ();
- }
-
- public bool Contains(MenuItem m) {
- throw new NotImplementedException ();
- }
-
- public void CopyTo(Array a, int i) {
- throw new NotImplementedException ();
- }
-
- public override bool Equals(object o) {
- throw new NotImplementedException ();
- }
-
- //inherited
- //public static bool Equals(object o1, object o2) {
- // throw new NotImplementedException ();
- //}
-
- [MonoTODO]
- public override int GetHashCode() {
- //FIXME add our proprities
- return base.GetHashCode();
- } public IEnumerator GetEnumerator() {
- throw new NotImplementedException ();
- }
-
- //public override Type GetType() {
- // throw new NotImplementedException ();
- //}
-
- public int IndexOf(MenuItem m) {
- throw new NotImplementedException ();
- }
-
- public virtual void Remove(MenuItem m) {
- throw new NotImplementedException ();
- }
-
- public virtual void RemoveAt(int i) {
- throw new NotImplementedException ();
- }
-
- public override string ToString() {
- throw new NotImplementedException ();
- }
-
- //
- // -- Protected Methods
- //
-
- ~MenuItemCollection() {
- throw new NotImplementedException ();
- }
-
- //inherited
- //protected object MemberwiseClone() {
- // throw new NotImplementedException ();
- //}
-
- //
- // -- Public Properties
- //
-
- public int Count {
- get {
- throw new NotImplementedException ();
- }
- }
-
- // public virtual MenuItem this(int i)
- // {
- // get
- // {
- // throw new NotImplementedException ();
- // }
- // }
- /// <summary>
- /// IList Interface implmentation.
- /// </summary>
- bool IList.IsReadOnly{
- get{
- // We allow addition, removeal, and editing of items after creation of the list.
- return false;
- }
- }
- bool IList.IsFixedSize{
- get{
- // We allow addition and removeal of items after creation of the list.
- return false;
- }
- }
- //[MonoTODO]
- object IList.this[int index]{
- get{
- throw new NotImplementedException ();
- }
- set{
- throw new NotImplementedException ();
- }
- }
-
- [MonoTODO]
- void IList.Clear(){
- throw new NotImplementedException ();
- }
-
- [MonoTODO]
- int IList.Add( object value){
- throw new NotImplementedException ();
- }
- [MonoTODO]
- bool IList.Contains( object value){
- throw new NotImplementedException ();
- }
- [MonoTODO]
- int IList.IndexOf( object value){
- throw new NotImplementedException ();
- }
- [MonoTODO]
- void IList.Insert(int index, object value){
- throw new NotImplementedException ();
- }
- [MonoTODO]
- void IList.Remove( object value){
- throw new NotImplementedException ();
- }
- [MonoTODO]
- void IList.RemoveAt( int index){
- throw new NotImplementedException ();
- }
- // End of IList interface
- /// <summary>
- /// ICollection Interface implmentation.
- /// </summary>
- int ICollection.Count{
- get{
- throw new NotImplementedException ();
- }
- }
- bool ICollection.IsSynchronized{
- get{
- throw new NotImplementedException ();
- }
- }
- object ICollection.SyncRoot{
- get{
- throw new NotImplementedException ();
- }
- }
- void ICollection.CopyTo(Array array, int index){
- throw new NotImplementedException ();
- }
- // End Of ICollection
- }
- }
- }
-
|