dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms CancelEventArgs


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms CancelEventArgs.cs,NONE,1.1 CancelEventHandler.cs,NONE,1.1InputLanguageChangedEventArgs.cs,NONE,1.1 InputLanguageChangedEventHandler.cs,NONE,1.1 InputLanguageChangingEventArgs.cs,NONE,1.1 InputLanguageChangingEventHandler.cs,NONE,1.1 Control.cs,1.12,1.13 EventId.cs,1.3,1.4 Form.cs,1.7,1.8TreeViewCancelEventArgs.cs,1.1,1.2
Date: Tue, 17 Jun 2003 07:55:51 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms
In directory subversions:/tmp/cvs-serv8132/System.Windows.Forms

Modified Files:
        Control.cs EventId.cs Form.cs TreeViewCancelEventArgs.cs 
Added Files:
        CancelEventArgs.cs CancelEventHandler.cs 
        InputLanguageChangedEventArgs.cs 
        InputLanguageChangedEventHandler.cs 
        InputLanguageChangingEventArgs.cs 
        InputLanguageChangingEventHandler.cs 
Log Message:


Stub the rest of the "Form" class, including its event handler dependencies;
copy "CancelEvent*" into the forms library to replace the missing
component model classes when CONFIG_COMPONENT_MODEL is not defined.


--- NEW FILE ---
/*
 * CancelEventArgs.cs - Implementation of 
 *                                              
"System.ComponentModel.CancelEventArgs" class
 *
 * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
 * Copyright (C) 2002  Free Software Foundation, Inc.
 * 
 * Contributed by Gopal.V
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

using System;

namespace System.ComponentModel
{

// Replaces the missing "CancelEventArgs" class when no component model.

#if !CONFIG_COMPONENT_MODEL

        public class CancelEventArgs: EventArgs
        {
        
                private bool cancel;
        
                public CancelEventArgs()
                {
                        cancel = false;
                }

                public CancelEventArgs(bool cancel)
                {
                        this.cancel = cancel;
                }
                
                public bool Cancel 
                {
                        get
                        {
                                return cancel;
                        }
                        set
                        {
                                cancel = value;
                        }
                }

        }
#endif
}//namespace

--- NEW FILE ---
/*
 * CancelEventHandler.cs - Implementation of 
 *                                              
"System.ComponentModel.CancelEventHandler" class
 *
 * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
 * Copyright (C) 2002  Free Software Foundation, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

using System;

namespace System.ComponentModel
{
#if !CONFIG_COMPONENT_MODEL

        [Serializable]
        public delegate void CancelEventHandler(Object sender, CancelEventArgs 
e);

#endif
}//namespace

--- NEW FILE ---
/*
 * InputLanguageChangedEventArgs.cs - Implementation of the
 *                      "System.Windows.Forms.InputLanguageChangedEventArgs" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Windows.Forms
{

#if !CONFIG_COMPACT_FORMS

using System.Globalization;

public class InputLanguageChangedEventArgs : EventArgs
{
        // Internal state.
        private CultureInfo culture;
        private InputLanguage inputLanguage;
        private byte charSet;

        // Constructors.
        public InputLanguageChangedEventArgs
                                (CultureInfo culture, byte charSet)
                        {
                                this.culture = culture;
                                this.charSet = charSet;
                        }
        public InputLanguageChangedEventArgs
                                (InputLanguage inputLanguage, byte charSet)
                        {
                                this.inputLanguage = inputLanguage;
                                this.charSet = charSet;
                        }

        // Get this object's properties.
        public CultureInfo Culture
                        {
                                get
                                {
                                        return culture;
                                }
                        }
        public InputLanguage InputLanguage
                        {
                                get
                                {
                                        return inputLanguage;
                                }
                        }
        public byte CharSet
                        {
                                get
                                {
                                        return charSet;
                                }
                        }

}; // class InputLanguageChangedEventArgs

#endif // !CONFIG_COMPACT_FORMS

}; // namespace System.Windows.Forms

--- NEW FILE ---
/*
 * InputLanguageChangedEventHandler.cs - Implementation of the
 *                      "System.Windows.Forms.InputLanguageChangedEventHandler" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Windows.Forms
{

#if !CONFIG_COMPACT_FORMS

public delegate void InputLanguageChangedEventHandler
                (Object sender, InputLanguageChangedEventArgs e);

#endif

}; // namespace System.Windows.Forms

--- NEW FILE ---
/*
 * InputLanguageChangingEventArgs.cs - Implementation of the
 *                      "System.Windows.Forms.InputLanguageChangingEventArgs" 
class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Windows.Forms
{

#if !CONFIG_COMPACT_FORMS

using System.Globalization;
using System.ComponentModel;

public class InputLanguageChangingEventArgs : CancelEventArgs
{
        // Internal state.
        private CultureInfo culture;
        private InputLanguage inputLanguage;
        private bool sysCharSet;

        // Constructors.
        public InputLanguageChangingEventArgs
                                (CultureInfo culture, bool sysCharSet)
                        {
                                this.culture = culture;
                                this.sysCharSet = sysCharSet;
                        }
        public InputLanguageChangingEventArgs
                                (InputLanguage inputLanguage, bool sysCharSet)
                        {
                                this.inputLanguage = inputLanguage;
                                this.sysCharSet = sysCharSet;
                        }

        // Get this object's properties.
        public CultureInfo Culture
                        {
                                get
                                {
                                        return culture;
                                }
                        }
        public InputLanguage InputLanguage
                        {
                                get
                                {
                                        return inputLanguage;
                                }
                        }
        public bool SysCharSet
                        {
                                get
                                {
                                        return sysCharSet;
                                }
                        }

}; // class InputLanguageChangingEventArgs

#endif // !CONFIG_COMPACT_FORMS

}; // namespace System.Windows.Forms

--- NEW FILE ---
/*
 * InputLanguageChangingEventHandler.cs - Implementation of the
 *                      
"System.Windows.Forms.InputLanguageChangingEventHandler" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Windows.Forms
{

#if !CONFIG_COMPACT_FORMS

public delegate void InputLanguageChangingEventHandler
                (Object sender, InputLanguageChangingEventArgs e);

#endif

}; // namespace System.Windows.Forms

Index: Control.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Control.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** Control.cs  17 Jun 2003 01:33:46 -0000      1.12
--- Control.cs  17 Jun 2003 11:55:49 -0000      1.13
***************
*** 470,474 ****
                                get
                                {
!                                       return new ControlCollection(this);
                                }
                        }
--- 470,474 ----
                                get
                                {
!                                       return CreateControlsInstance();
                                }
                        }
***************
*** 3069,3073 ****
                                }
                        }
- #if CONFIG_COMPONENT_MODEL
        public event CancelEventHandler Validating
                        {
--- 3069,3072 ----
***************
*** 3081,3085 ****
                                }
                        }
- #endif
        public event EventHandler VisibleChanged
                        {
--- 3080,3083 ----
***************
*** 3785,3789 ****
                                }
                        }
- #if CONFIG_COMPONENT_MODEL
        protected virtual void OnValidating(CancelEventArgs e)
                        {
--- 3783,3786 ----
***************
*** 3795,3799 ****
                                }
                        }
- #endif
        protected virtual void OnVisibleChanged(EventArgs e)
                        {
--- 3792,3795 ----

Index: EventId.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/EventId.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** EventId.cs  13 Jun 2003 10:56:29 -0000      1.3
--- EventId.cs  17 Jun 2003 11:55:49 -0000      1.4
***************
*** 98,101 ****
--- 98,115 ----
        Load,
  
+       // "Form" events.
+       Activated,
+       Closed,
+       Closing,
+       Deactivate,
+       InputLanguageChanged,
+       InputLanguageChanging,
+       MaximizedBoundsChanged,
+       MaximumSizeChanged,
+       MdiChildActivate,
+       MenuComplete,
+       MenuStart,
+       MinimumSizeChanged,
+ 
  }; // enum EventId
  

Index: Form.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/Form.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** Form.cs     13 Jun 2003 02:39:29 -0000      1.7
--- Form.cs     17 Jun 2003 11:55:49 -0000      1.8
***************
*** 25,30 ****
  using System.Drawing;
  using System.Drawing.Toolkit;
  
- [TODO]
  public class Form : ContainerControl
  {
--- 25,30 ----
  using System.Drawing;
  using System.Drawing.Toolkit;
+ using System.ComponentModel;
  
  public class Form : ContainerControl
  {
***************
*** 156,159 ****
--- 156,180 ----
                                }
                        }
+       protected override CreateParams CreateParams
+                       {
+                               get
+                               {
+                                       return base.CreateParams;
+                               }
+                       }
+       protected override ImeMode DefaultImeMode
+                       {
+                               get
+                               {
+                                       return ImeMode.NoControl;
+                               }
+                       }
+       protected override Size DefaultSize
+                       {
+                               get
+                               {
+                                       return new Size(300, 300);
+                               }
+                       }
        public Rectangle DesktopBounds
                        {
***************
*** 273,276 ****
--- 294,310 ----
                        }
        [TODO]
+       protected Rectangle MaximizedBounds
+                       {
+                               get
+                               {
+                                       // TODO
+                                       return Rectangle.Empty;
+                               }
+                               set
+                               {
+                                       // TODO
+                               }
+                       }
+       [TODO]
        public Size MaximumSize
                        {
***************
*** 394,397 ****
--- 428,432 ----
                                }
                        }
+       [TODO]
        public Form Owner
                        {
***************
*** 402,405 ****
--- 437,441 ----
                                set
                                {
+                                       // TODO: update the owned child list
                                        owner = value;
                                }
***************
*** 532,545 ****
                        }
  
-       // Handle the text changed event from "Control".
-       protected override void OnTextChanged(EventArgs e)
-                       {
-                               if(toolkitWindow != null)
-                               {
-                                       toolkitWindow.SetTitle(Text);
-                               }
-                               base.OnTextChanged(e);
-                       }
- 
        // Get the current state of a window decoration flag.
        private bool GetWindowFlag(ToolkitWindowFlags flag)
--- 568,571 ----
***************
*** 614,617 ****
--- 640,1240 ----
                                }
                        }
+ 
+       // Activate the form and give it focus.
+       [TODO]
+       public void Activate()
+                       {
+                               // TODO
+                       }
+ 
+       // Add an owned form to this form.
+       public void AddOwnedForm(Form ownedForm)
+                       {
+                               if(ownedForm != null)
+                               {
+                                       ownedForm.Owner = this;
+                               }
+                       }
+ 
+       // Close this form.
+       [TODO]
+       public void Close()
+                       {
+                               // TODO
+                       }
+ 
+       // Get the auto scale base size for a particular font.
+       [TODO]
+       public static SizeF GetAutoScalSize(Font font)
+                       {
+                               // TODO
+                               return SizeF.Empty;
+                       }
+ 
+       // Layout the MDI children of this form.
+       [TODO]
+       public void LayoutMdi(MdiLayout value)
+                       {
+                               // TODO
+                       }
+ 
+       // Remove an owned form from this form.
+       public void RemoveOwnedForm(Form ownedForm)
+                       {
+                               if(ownedForm != null && ownedForm.Owner == this)
+                               {
+                                       ownedForm.Owner = null;
+                               }
+                       }
+ 
+ #if !CONFIG_COMPACT_FORMS
+ 
+       // Set the desktop bounds of this form.
+       public void SetDesktopBounds(int x, int y, int width, int height)
+                       {
+                               Rectangle workingArea = 
SystemInformation.WorkingArea;
+                               SetBoundsCore(workingArea.X + x, workingArea.Y 
+ y,
+                                                         width, height, 
BoundsSpecified.All);
+                       }
+ 
+       // Set the desktop location of this form.
+       public void SetDesktopLocation(int x, int y)
+                       {
+                               Rectangle workingArea = 
SystemInformation.WorkingArea;
+                               Location = new Point(workingArea.X + x, 
workingArea.Y + y);
+                       }
+ 
+ #endif // !CONFIG_COMPACT_FORMS
+ 
+       // Show this form as a modal dialog.
+       [TODO]
+       private DialogResult ShowDialog(Form owner)
+                       {
+                               // TODO
+                               return DialogResult.None;
+                       }
+       public DialogResult ShowDialog()
+                       {
+                               return ShowDialog(Owner);
+                       }
+       public DialogResult ShowDialog(IWin32Window owner)
+                       {
+                               return ShowDialog(owner as Form);
+                       }
+ 
+       // Convert this object into a string.
+       public override String ToString()
+                       {
+                               return base.ToString() + ", Text: " + Text;
+                       }
+ 
+       // Event that is emitted when this form is activated.
+       public event EventHandler Activated
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.Activated, value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.Activated, value);
+                               }
+                       }
+ 
+       // Event that is emitted when this form is closed.
+       public event EventHandler Closed
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.Closed, value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.Closed, value);
+                               }
+                       }
+ 
+       // Event that is emitted when this form is closing.
+       public event CancelEventHandler Closing
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.Closing, value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.Closing, value);
+                               }
+                       }
+ 
+       // Event that is emitted when this form is deactivated.
+       public event EventHandler Deactivate
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.Deactivate, value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.Deactivate, 
value);
+                               }
+                       }
+ 
+       // Event that is emitted when the input language of a form is changed.
+       public event InputLanguageChangedEventHandler InputLanguageChanged
+                       {
+                               add
+                               {
+                                       
AddHandler(EventId.InputLanguageChanged, value);
+                               }
+                               remove
+                               {
+                                       
RemoveHandler(EventId.InputLanguageChanged, value);
+                               }
+                       }
+ 
+       // Event that is emitted when the input language of a form is changing.
+       public event InputLanguageChangingEventHandler InputLanguageChanging
+                       {
+                               add
+                               {
+                                       
AddHandler(EventId.InputLanguageChanging, value);
+                               }
+                               remove
+                               {
+                                       
RemoveHandler(EventId.InputLanguageChanging, value);
+                               }
+                       }
+ 
+       // Event that is emitted when this form is first loaded.
+       public event EventHandler Load
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.Load, value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.Load, value);
+                               }
+                       }
+ 
+       // Event that is emitted when the maximized bounds change.
+       public event EventHandler MaximizedBoundsChanged
+                       {
+                               add
+                               {
+                                       
AddHandler(EventId.MaximizedBoundsChanged, value);
+                               }
+                               remove
+                               {
+                                       
RemoveHandler(EventId.MaximizedBoundsChanged, value);
+                               }
+                       }
+ 
+       // Event that is emitted when the maximum size changes.
+       public event EventHandler MaximumSizeChanged
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.MaximumSizeChanged, 
value);
+                               }
+                               remove
+                               {
+                                       
RemoveHandler(EventId.MaximumSizeChanged, value);
+                               }
+                       }
+ 
+       // Event that is emitted when an MDI child is activated.
+       public event EventHandler MdiChildActivate
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.MdiChildActivate, 
value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.MdiChildActivate, 
value);
+                               }
+                       }
+ 
+       // Event that is emitted at the end of processing a menu item.
+       public event EventHandler MenuComplete
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.MenuComplete, value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.MenuComplete, 
value);
+                               }
+                       }
+ 
+       // Event that is emitted at the start of processing a menu item.
+       public event EventHandler MenuStart
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.MenuStart, value);
+                               }
+                               remove
+                               {
+                                       RemoveHandler(EventId.MenuStart, value);
+                               }
+                       }
+ 
+       // Event that is emitted when the minimum size changes.
+       public event EventHandler MinimumSizeChanged
+                       {
+                               add
+                               {
+                                       AddHandler(EventId.MinimumSizeChanged, 
value);
+                               }
+                               remove
+                               {
+                                       
RemoveHandler(EventId.MinimumSizeChanged, value);
+                               }
+                       }
+ 
+       // Create a new control collection for this instance.
+       protected override Control.ControlCollection CreateControlsInstance()
+                       {
+                               return new ControlCollection(this);
+                       }
+ 
+       // Create the handle for this control.
+       protected override void CreateHandle()
+                       {
+                               // Let the base class do the work.
+                               base.CreateHandle();
+                       }
+ 
+       // Dispose of this control.
+       protected override void Dispose(bool disposing)
+                       {
+                               base.Dispose(disposing);
+                       }
+ 
+       // Emit the "Activated" event.
+       protected virtual void OnActivated(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = 
(EventHandler)(GetHandler(EventId.Activated));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "Closed" event.
+       protected virtual void OnClosed(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = 
(EventHandler)(GetHandler(EventId.Closed));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "Closing" event.
+       protected virtual void OnClosing(CancelEventArgs e)
+                       {
+                               CancelEventHandler handler;
+                               handler = 
(CancelEventHandler)(GetHandler(EventId.Closing));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Handle initial control creation.
+       protected override void OnCreateControl()
+                       {
+                               base.OnCreateControl();
+                               OnLoad(EventArgs.Empty);
+                       }
+ 
+       // Emit the "Deactivate" event.
+       protected virtual void OnDeactivate(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = 
(EventHandler)(GetHandler(EventId.Deactivate));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Override the "FontChanged" event.
+       protected override void OnFontChanged(EventArgs e)
+                       {
+                               base.OnFontChanged(e);
+                       }
+ 
+       // Override the "HandleCreated" event.
+       protected override void OnHandleCreated(EventArgs e)
+                       {
+                               base.OnHandleCreated(e);
+                       }
+ 
+       // Override the "HandleDestroyed" event.
+       protected override void OnHandleDestroyed(EventArgs e)
+                       {
+                               base.OnHandleDestroyed(e);
+                       }
+ 
+       // Emit the "InputLanguageChanged" event.
+       protected virtual void OnInputLanguageChanged
+                               (InputLanguageChangedEventArgs e)
+                       {
+                               InputLanguageChangedEventHandler handler;
+                               handler = (InputLanguageChangedEventHandler)
+                                       
(GetHandler(EventId.InputLanguageChanged));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "InputLanguageChanging" event.
+       protected virtual void OnInputLanguageChanging
+                               (InputLanguageChangingEventArgs e)
+                       {
+                               InputLanguageChangingEventHandler handler;
+                               handler = (InputLanguageChangingEventHandler)
+                                       
(GetHandler(EventId.InputLanguageChanging));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "Load" event.
+       protected virtual void OnLoad(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = 
(EventHandler)(GetHandler(EventId.Load));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "MaximizedBoundsChanged" event.
+       protected virtual void OnMaximizedBoundsChanged(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = (EventHandler)
+                                       
(GetHandler(EventId.MaximizedBoundsChanged));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "MaximumSizeChanged" event.
+       protected virtual void OnMaximumSizeChanged(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = (EventHandler)
+                                       
(GetHandler(EventId.MaximumSizeChanged));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "MdiChildActivate" event.
+       protected virtual void OnMdiChildActivate(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = 
(EventHandler)(GetHandler(EventId.MdiChildActivate));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "MenuComplete" event.
+       protected virtual void OnMenuComplete(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = 
(EventHandler)(GetHandler(EventId.MenuComplete));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "MenuStart" event.
+       protected virtual void OnMenuStart(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = 
(EventHandler)(GetHandler(EventId.MenuStart));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Emit the "MinimumSizeChanged" event.
+       protected virtual void OnMinimumSizeChanged(EventArgs e)
+                       {
+                               EventHandler handler;
+                               handler = (EventHandler)
+                                       
(GetHandler(EventId.MinimumSizeChanged));
+                               if(handler != null)
+                               {
+                                       handler(this, e);
+                               }
+                       }
+ 
+       // Override the "Paint" event.
+       protected override void OnPaint(PaintEventArgs e)
+                       {
+                               base.OnPaint(e);
+                       }
+ 
+       // Override the "Resize" event.
+       protected override void OnResize(EventArgs e)
+                       {
+                               base.OnResize(e);
+                       }
+ 
+       // Override the "StyleChanged" event.
+       protected override void OnStyleChanged(EventArgs e)
+                       {
+                               base.OnStyleChanged(e);
+                       }
+ 
+       // Override the "TextChanged" event.
+       protected override void OnTextChanged(EventArgs e)
+                       {
+                               if(toolkitWindow != null)
+                               {
+                                       toolkitWindow.SetTitle(Text);
+                               }
+                               base.OnTextChanged(e);
+                       }
+ 
+       // Override the "VisibleChanged" event.
+       protected override void OnVisibleChanged(EventArgs e)
+                       {
+                               base.OnVisibleChanged(e);
+                       }
+ 
+       // Process a command key.
+       [TODO]
+       protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
+                       {
+                               // TODO
+                               return base.ProcessCmdKey(ref msg, keyData);
+                       }
+ 
+       // Process a dialog key.
+       [TODO]
+       protected override bool ProcessDialogKey(Keys keyData)
+                       {
+                               // TODO
+                               return base.ProcessDialogKey(keyData);
+                       }
+ 
+       // Preview a keyboard message.
+       [TODO]
+       protected override bool ProcessKeyPreview(ref Message msg)
+                       {
+                               // TODO
+                               return base.ProcessKeyPreview(ref msg);
+                       }
+ 
+       // Process the tab key.
+       [TODO]
+       protected override bool ProcessTabKey(bool forward)
+                       {
+                               // TODO
+                               return base.ProcessTabKey(forward);
+                       }
+ 
+       // Inner core of "Scale".
+       [TODO]
+       protected override void ScaleCore(float dx, float dy)
+                       {
+                               // TODO
+                               base.ScaleCore(dx, dy);
+                       }
+ 
+       // Select this control.
+       [TODO]
+       protected override void Select(bool directed, bool forward)
+                       {
+                               // TODO
+                               base.Select(directed, forward);
+                       }
+ 
+       // Inner core of "SetBounds".
+       protected override void SetBoundsCore
+                               (int x, int y, int width, int height,
+                                BoundsSpecified specified)
+                       {
+                               base.SetBoundsCore(x, y, width, height, 
specified);
+                       }
+ 
+       // Inner core of setting the client size.
+       protected override void SetClientSizeCore(int x, int y)
+                       {
+                               base.SetClientSizeCore(x, y);
+                       }
+ 
+       // Inner core of setting the visibility state.
+       protected override void SetVisibleCore(bool value)
+                       {
+                               base.SetVisibleCore(value);
+                       }
+ 
+ #if !CONFIG_COMPACT_FORMS
+ 
+       // Default window procedure for this control class.
+       protected override void DefWndProc(ref Message msg)
+                       {
+                               base.DefWndProc(ref msg);
+                       }
+ 
+       // Process a message.
+       public override void WndProc(ref Message m)
+                       {
+                               base.WndProc(ref m);
+                       }
+ 
+ #endif // !CONFIG_COMPACT_FORMS
+ 
+       // Collection of child controls.
+       public class ControlCollection : Control.ControlCollection
+       {
+               // Internal state.
+               private Form formOwner;
+ 
+               // Constructor.
+               public ControlCollection(Form owner) : base(owner)
+                               {
+                                       this.formOwner = owner;
+                               }
+ 
+               // Override the "Add" and "Remove" behavior.
+               [TODO]
+               public override void Add(Control control)
+                               {
+                                       // TODO
+                                       base.Add(control);
+                               }
+               [TODO]
+               public override void Remove(Control control)
+                               {
+                                       // TODO
+                                       base.Remove(control);
+                               }
+ 
+       }; // class ControlCollection
  
  }; // class Form

Index: TreeViewCancelEventArgs.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/TreeViewCancelEventArgs.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TreeViewCancelEventArgs.cs  11 Jun 2003 07:07:19 -0000      1.1
--- TreeViewCancelEventArgs.cs  17 Jun 2003 11:55:49 -0000      1.2
***************
*** 25,34 ****
  using System.ComponentModel;
  
! public class TreeViewCancelEventArgs
! #if CONFIG_COMPONENT_MODEL
!       : CancelEventArgs
! #else
!       : EventArgs
! #endif
  {
        // Internal state.
--- 25,29 ----
  using System.ComponentModel;
  
! public class TreeViewCancelEventArgs : CancelEventArgs
  {
        // Internal state.
***************
*** 39,45 ****
        public TreeViewCancelEventArgs
                                (TreeNode node, bool cancel, TreeViewAction 
action)
- #if CONFIG_COMPONENT_MODEL
                        : base(cancel)
- #endif
                        {
                                this.node = node;
--- 34,38 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]