]> O.S.I.I.S - jp/crow.git/commitdiff
add debug msg for DEBUG_LAYOUTING
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 24 Jan 2017 00:28:16 +0000 (01:28 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Tue, 24 Jan 2017 00:28:16 +0000 (01:28 +0100)
src/GraphicObjects/GraphicObject.cs
src/LayoutingQueueItem.cs

index 18745fa135e32fe95094e1bea263f56379c3017a..fc13c4a1c1f80eba3587ff191561d570e7941c57 100644 (file)
@@ -250,7 +250,6 @@ namespace Crow
                        set {
                                if (horizontalAlignment == value)
                                        return;
-
                                horizontalAlignment = value;
                                NotifyValueChanged("HorizontalAlignment", horizontalAlignment);
                                RegisterForLayouting (LayoutingType.X);
@@ -262,7 +261,6 @@ namespace Crow
                        set {
                                if (left == value)
                                        return;
-
                                left = value;
                                NotifyValueChanged ("Left", left);
                                this.RegisterForLayouting (LayoutingType.X);
@@ -274,7 +272,6 @@ namespace Crow
                        set {
                                if (top == value)
                                        return;
-
                                top = value;
                                NotifyValueChanged ("Top", top);
                                this.RegisterForLayouting (LayoutingType.Y);
@@ -872,6 +869,7 @@ namespace Crow
                        #if DEBUG_LAYOUTING
                        CurrentInterface.currentLQI.Slot = LastSlots;
                        CurrentInterface.currentLQI.NewSlot = Slot;
+                       Debug.WriteLine ("\t\t{0} => {1}",LastSlots,Slot);
                        #endif
 
                        switch (layoutType) {
index 95bc6bb725a29ea5d9d1598b74050f708a43fbf7..c7ae30246a26bcfce1928250420aed5a112b6977 100644 (file)
@@ -83,6 +83,7 @@ namespace Crow
                        LQITime = new Stopwatch();
                        Slot = Rectangle.Empty;
                        NewSlot = Rectangle.Empty;
+                       Debug.WriteLine ("\tRegister => " + this.ToString ());
                        #endif
                }
                #endregion
@@ -100,13 +101,20 @@ namespace Crow
                        }
                        #if DEBUG_LAYOUTING
                        LQITime.Start();
+                       Debug.WriteLine ("=> " + this.ToString ());
                        #endif
                        LayoutingTries++;
                        if (!Layoutable.UpdateLayout (LayoutType)) {
+                               #if DEBUG_LAYOUTING
+                               Debug.WriteLine ("\t\tRequeued");
+                               #endif
                                if (LayoutingTries < Interface.MaxLayoutingTries) {
                                        Layoutable.RegisteredLayoutings |= LayoutType;
                                        (Layoutable as GraphicObject).CurrentInterface.LayoutingQueue.Enqueue (this);
                                } else if (DiscardCount < Interface.MaxDiscardCount) {
+                                       #if DEBUG_LAYOUTING
+                                       Debug.WriteLine ("\t\tDiscarded");
+                                       #endif
                                        LayoutingTries = 0;
                                        DiscardCount++;
                                        Layoutable.RegisteredLayoutings |= LayoutType;