Author: jpobst
Date: 2007-10-18 15:55:25 -0400 (Thu, 18 Oct 2007)
New Revision: 87794

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2007-10-17  Jonathan Pobst  <[EMAIL PROTECTED]>

        * ListView: Couple of corcompare fixes.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-18 19:48:54 UTC (rev 87793)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-10-18 19:55:25 UTC (rev 87794)
@@ -1,3 +1,7 @@
+2007-10-17  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * ListView: Couple of corcompare fixes.
+
 2007-10-17  Geoff Norton  <[EMAIL PROTECTED]>
 
        * XplatUIOSX.cs: Implement support for window icons in the dock.  Set

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-10-18 19:48:54 UTC (rev 87793)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-10-18 19:55:25 UTC (rev 87794)
@@ -109,6 +109,7 @@
                private Size tile_size;
                private bool virtual_mode;
                private int virtual_list_size;
+               private bool right_to_left_layout;
 #endif
 
                // internal variables
@@ -133,6 +134,7 @@
                static object ItemSelectionChangedEvent = new object ();
                static object CacheVirtualItemsEvent = new object ();
                static object RetrieveVirtualItemEvent = new object ();
+               static object RightToLeftLayoutChangedEvent = new object ();
                static object VirtualItemsSelectionRangeChangedEvent = new 
object ();
 #endif
 
@@ -257,6 +259,11 @@
                        remove { Events.RemoveHandler 
(RetrieveVirtualItemEvent, value); }
                }
 
+               public event EventHandler RightToLeftLayoutChanged {
+                       add { Events.AddHandler (RightToLeftLayoutChangedEvent, 
value); }
+                       remove { Events.RemoveHandler 
(RightToLeftLayoutChangedEvent, value); }
+               }
+               
                public event 
ListViewVirtualItemsSelectionRangeChangedEventHandler 
VirtualItemsSelectionRangeChanged {
                        add { Events.AddHandler 
(VirtualItemsSelectionRangeChangedEvent, value); }
                        remove { Events.RemoveHandler 
(VirtualItemsSelectionRangeChangedEvent, value); }
@@ -722,6 +729,19 @@
                                base.Padding = value;
                        }
                }
+               
+               [MonoTODO ("RTL not supported")]
+               [Localizable (true)]
+               [DefaultValue (false)]
+               public virtual bool RightToLeftLayout {
+                       get { return right_to_left_layout; }
+                       set { 
+                               if (right_to_left_layout != value) {
+                                       right_to_left_layout = value;
+                                       OnRightToLeftLayoutChanged 
(EventArgs.Empty);
+                               }
+                       }
+               }
 #endif
 
                [DefaultValue (true)]
@@ -3098,12 +3118,13 @@
                        if (eh != null)
                                eh(this, e);
                }
-#endif
 
+#else
                protected override void OnEnabledChanged (EventArgs e)
                {
                        base.OnEnabledChanged (e);
                }
+#endif
 
                protected override void OnFontChanged (EventArgs e)
                {
@@ -3210,6 +3231,14 @@
                                eh (this, args);
                }
 
+               [EditorBrowsable (EditorBrowsableState.Advanced)]
+               protected virtual void OnRightToLeftLayoutChanged (EventArgs e)
+               {
+                       EventHandler eh = 
(EventHandler)Events[RightToLeftLayoutChangedEvent];
+                       if (eh != null)
+                               eh (this, e);
+               }
+               
                protected virtual void OnVirtualItemsSelectionRangeChanged 
(ListViewVirtualItemsSelectionRangeChangedEventArgs args)
                {
                        ListViewVirtualItemsSelectionRangeChangedEventHandler 
eh = 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to