diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-22 21:57:39 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-09-01 13:24:17 +0200 |
| commit | bede92e519bb638b95e3e306575788052f0bedfe (patch) | |
| tree | 96eeaa2c008b8ba9d0e1bf71d0746d250e76d677 /src/Interface.cs | |
| parent | a4555b5e71ff4fc8ed89396d02218694230d1292 (diff) | |
Move Debug LQIs lists to CurrentInterface
LQIs visualizer
ItemTemplate expandable may use 'self' keywork
modifié : CrowIDE/CrowIDE.csproj
modifié : CrowIDE/src/CrowIDE.cs
nouveau fichier : CrowIDE/src/Extensions.cs
modifié : CrowIDE/src/ImlVisualEditor.cs
nouveau fichier : CrowIDE/ui/LQIsExplorer.crow
nouveau fichier : CrowIDE/ui/bindingExpITemp.crow
nouveau fichier : CrowIDE/ui/bindingExplorer.crow
modifié : Templates/DirectoryView.template
modifié : Templates/Window.template
modifié : src/GraphicObjects/GraphicObject.cs
modifié : src/GraphicObjects/Wrapper.cs
modifié : src/Interface.cs
modifié : src/ItemTemplate.cs
modifié : src/LayoutingQueueItem.cs
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index d01d2e8f..0c1cd766 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -320,7 +320,16 @@ namespace Crow } #endregion - + #if DEBUG_LAYOUTING + public List<LQIList> LQIsTries = new List<LQIList>(); + public LQIList curLQIsTries = new LQIList(); + public List<LQIList> LQIs = new List<LQIList>(); + public LQIList curLQIs = new LQIList(); +// public static LayoutingQueueItem[] MultipleRunsLQIs { +// get { return curUpdateLQIs.Where(l=>l.LayoutingTries>2 || l.DiscardCount > 0).ToArray(); } +// } + public LayoutingQueueItem currentLQI = null; + #endif public void Update(){ if (mouseRepeatCount > 0) { int mc = mouseRepeatCount; @@ -346,6 +355,15 @@ namespace Crow processLayouting (); + #if DEBUG_LAYOUTING + if (curLQIsTries.Count > 0){ + LQIsTries.Add(curLQIsTries); + curLQIsTries = new LQIList(); + LQIs.Add(curLQIs); + curLQIs = new LQIList(); + } + #endif + clippingRegistration (); processDrawing (); @@ -366,7 +384,14 @@ namespace Crow LayoutingQueueItem lqi = null; while (LayoutingQueue.Count > 0) { lqi = LayoutingQueue.Dequeue (); + #if DEBUG_LAYOUTING + currentLQI = lqi; + curLQIsTries.Add(currentLQI); + #endif lqi.ProcessLayouting (); + #if DEBUG_LAYOUTING + currentLQI = null; + #endif } LayoutingQueue = DiscardQueue; } @@ -496,6 +521,12 @@ namespace Crow g.ClearBinding (); GraphicTree.RemoveAt (0); } + #if DEBUG_LAYOUTING + LQIsTries = new List<LQIList>(); + curLQIsTries = new LQIList(); + LQIs = new List<LQIList>(); + curLQIs = new LQIList(); + #endif } public GraphicObject FindByName (string nameToFind) { |