]> O.S.I.I.S - jp/crow.git/commitdiff
Revert "Merge branch 'GroupCacheEnableDisable'"
authorjpbruyere <jp.bruyere@hotmail.com>
Fri, 5 Feb 2016 13:40:36 +0000 (14:40 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Fri, 5 Feb 2016 13:40:36 +0000 (14:40 +0100)
This reverts commit 016421c29b8daf86c273f919a4e3e13faefc5639, reversing
changes made to acfb21c78055c8294b885baba4756cb147c4c351.

Crow.userprefs
Tests/Interfaces/4.crow
src/GraphicObjects/GraphicObject.cs
src/GraphicObjects/Group.cs

index 1119c3997d3b428111069ee604aa33c7964e186a..a89a8f1f7be11402a66266f6545454a02da085d1 100644 (file)
@@ -1,11 +1,17 @@
 <Properties GitUserInfo="UsingGIT" StartupItem="Tests/Tests.csproj">
   <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|Linux_x86" />
-  <MonoDevelop.Ide.Workbench ActiveDocument="src/GraphicObjects/Group.cs">
+  <MonoDevelop.Ide.Workbench ActiveDocument="Tests/GOLIBTests.cs">
     <Files>
-      <File FileName="Tests/Interfaces/4.crow" Line="371" Column="19" />
-      <File FileName="Tests/GOLIBTests.cs" Line="40" Column="6" />
-      <File FileName="src/GraphicObjects/Group.cs" Line="247" Column="31" />
-      <File FileName="src/GraphicObjects/GraphicObject.cs" Line="462" Column="22" />
+      <File FileName="Tests/GOLIBTests.cs" Line="98" Column="2" />
+      <File FileName="src/GraphicObjects/GraphicObject.cs" Line="538" Column="3" />
+      <File FileName="src/GraphicObjects/Group.cs" Line="197" Column="1" />
+      <File FileName="src/GraphicObjects/PrivateContainer.cs" Line="127" Column="1" />
+      <File FileName="src/OpenTKGameWindow.cs" Line="328" Column="10" />
+      <File FileName="src/Rectangles.cs" Line="90" Column="21" />
+      <File FileName="src/GraphicObjects/Scroller.cs" Line="196" Column="1" />
+      <File FileName="src/LayoutingQueue.cs" Line="30" Column="4" />
+      <File FileName="src/Interface.cs" Line="56" Column="1" />
+      <File FileName="UnitTest/NUnitCrowWindow.cs" Line="163" Column="1" />
     </Files>
   </MonoDevelop.Ide.Workbench>
   <MonoDevelop.Ide.DebuggingService.Breakpoints>
index ba7cb110a739942248f0242ce75b0f1b84a376c2..833e2bcebeeb70f2fcdd699e722a7994b8623df5 100755 (executable)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <HorizontalStack Fit="true">
-       <VerticalStack Fit="true" Spacing="10" Caching="false">
+       <VerticalStack Fit="true" Name="vsFps"  Spacing="10" >
                <HorizontalStack Fit="true">
                        <Label Text="Update:" Width="50" TextAlignment="RightCenter"/>
                        <Label Name="labUpdate" Text="{update}" Font="droid,12" Width="80" TextAlignment="Center"
@@ -92,7 +92,7 @@
                                Background="vgradient|0:AoEnglish|1:Black"/>
                </HorizontalStack>
        </VerticalStack>
-       <VerticalStack Fit="true" Spacing="10" Caching="false">
+       <VerticalStack Fit="true" Name="vsFps"  Spacing="10" >
                <HorizontalStack Fit="true">
                        <Label Text="Update:" Width="50" TextAlignment="RightCenter"/>
                        <Label Name="labUpdate" Text="{update}" Font="droid,12" Width="80" TextAlignment="Center"
                                Background="vgradient|0:AoEnglish|1:Black"/>
                </HorizontalStack>
        </VerticalStack>
-       <VerticalStack Fit="true" Spacing="10" Caching="false">
+       <VerticalStack Fit="true" Name="vsFps"  Spacing="10" >
                <HorizontalStack Fit="true">
                        <Label Text="Update:" Width="50" TextAlignment="RightCenter"/>
                        <Label Name="labUpdate" Text="{update}" Font="droid,12" Width="80" TextAlignment="Center"
                                Background="vgradient|0:AoEnglish|1:Black"/>
                </HorizontalStack>
        </VerticalStack>
-       <VerticalStack Fit="true" Spacing="10" Caching="false">
+       <VerticalStack Fit="true" Name="vsFps"  Spacing="10" >
                <HorizontalStack Fit="true">
                        <Label Text="Update:" Width="50" TextAlignment="RightCenter"/>
                        <Label Name="labUpdate" Text="{update}" Font="droid,12" Width="80" TextAlignment="Center"
index c0f9bab05a70ec3081b30486b1bb75381c5cef21..e181fdf7d9f3d549e8f6d94d50e892c1251974bb 100644 (file)
@@ -79,7 +79,6 @@ namespace Crow
                HorizontalAlignment _horizontalAlignment = HorizontalAlignment.Center;
                Size _maximumSize = "0;0";
                Size _minimumSize = "0;0";
-               bool isRegisteredForRepaint = false;
                #endregion
 
                #region public fields
@@ -460,16 +459,11 @@ namespace Crow
                        //test if this speed up a lot to cancel clipping for an uncached group
                        Group p = Parent as Group;
                        if (p != null) {
-                               if (p.bmp == null || !p.Caching) {
-                                       p.RegisterForRedraw (); 
+                               if (p.bmp == null)
                                        return;
-                               }
                        }
-                       if (HostContainer == null || isRegisteredForRepaint)
-                               return;
-
-                       HostContainer.gobjsToRedraw.Add (this);
-                       isRegisteredForRepaint = true;
+                       if (HostContainer != null)
+                               HostContainer.gobjsToRedraw.Add (this);
                }
 
                /// <summary>
@@ -491,7 +485,6 @@ namespace Crow
                        //this clipping should take only last painted slots in ancestor tree which
                        //is not the case for now.
                        HostContainer.redrawClip.AddRectangle (ScreenCoordinates(LastPaintedSlot));
-                       isRegisteredForRepaint = false;
                }
                /// <summary> return size of content + margins </summary>
                protected virtual Size measureRawSize ()
index 931ad3346995d214fd30c16e71e8ad40ede3ec3e..14142e0d603561e020520cccb66b70df9e063b5c 100644 (file)
@@ -27,14 +27,10 @@ namespace Crow
                internal int maxChildrenHeight = 0;
 
         bool _multiSelect = false;
-               bool _caching = false;
                List<GraphicObject> children = new List<GraphicObject>();
 
         public GraphicObject activeWidget;
 
-
-
-
         public virtual List<GraphicObject> Children {
                        get { return children; }
                        set { children = value; }
@@ -43,23 +39,9 @@ namespace Crow
         public bool MultiSelect
         {
             get { return _multiSelect; }
-            set { 
-                               if (value == _multiSelect)
-                                       return;
-                               _multiSelect = value; 
-                               NotifyValueChanged ("MultiSelect", _multiSelect);
-                       }
+            set { _multiSelect = value; }
         }
-               [XmlAttributeAttribute()][DefaultValue(true)]
-               public bool Caching {
-                       get { return _caching; }
-                       set {
-                               if (value == _caching)
-                                       return;
-                               _caching = value; 
-                               NotifyValueChanged ("Caching", _multiSelect);
-                       }
-               }                       
+                       
                        
         public virtual T addChild<T>(T child)
         {