]> O.S.I.I.S - jp/crow.git/commitdiff
crowide lqi explorer
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 17 Mar 2018 03:31:05 +0000 (04:31 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 17 Mar 2018 03:31:05 +0000 (04:31 +0100)
CrowIDE/CrowIDE.csproj
CrowIDE/src/CrowIDE.cs
CrowIDE/src/ProjectTree/ImlProjectItem.cs
CrowIDE/ui/CrowIDE.crow
CrowIDE/ui/DockWindows/winLQIs.crow [new file with mode: 0644]
CrowIDE/ui/LQIsExplorer.crow [deleted file]

index 1cae7289c95a09b3ad0899e9c7a0ef6902841203..736877234f3754109d85170d4f2c8c2c128bb886 100644 (file)
@@ -24,7 +24,7 @@
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
-    <DefineConstants>DEBUG;</DefineConstants>
+    <DefineConstants>DEBUG;DBG_EVENTS</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
     <EmbeddedResource Include="ui\MembersView.template">
       <LogicalName>Crow.Coding.MembersView.template</LogicalName>
     </EmbeddedResource>
-    <EmbeddedResource Include="ui\LQIsExplorer.crow" />
     <EmbeddedResource Include="ui\MemberView.crow" />
     <EmbeddedResource Include="ui\ProjectProperties.crow" />
     <EmbeddedResource Include="ui\TreeExpandable.template">
     <EmbeddedResource Include="ui\DockWindows\winStyleView.crow" />
     <EmbeddedResource Include="ui\CategoryExp.template" />
     <EmbeddedResource Include="ui\DockWindows\winDesign.crow" />
+    <EmbeddedResource Include="ui\DockWindows\winLQIs.crow" />
   </ItemGroup>
   <ItemGroup>
     <None Include="ui\test.crow">
index 0332592deb5f9e213824dfd7ea4bcfec4ef4d684..681da208f628fe125357c2bc7a39489dfd65e8b6 100644 (file)
@@ -42,7 +42,7 @@ namespace Crow.Coding
                CMDUndo, CMDRedo, CMDCut, CMDCopy, CMDPaste, CMDHelp,
                CMDAbout, CMDOptions,
                CMDViewGTExp, CMDViewProps, CMDViewProj, CMDViewProjProps, CMDViewErrors, CMDViewSolution, CMDViewEditor, CMDViewProperties,
-               CMDViewToolbox, CMDViewSchema, CMDViewStyling,CMDViewDesign,
+               CMDViewToolbox, CMDViewSchema, CMDViewStyling,CMDViewDesign,CMDViewLQIs,
                CMDCompile;
 
                void initCommands () {
@@ -78,6 +78,8 @@ namespace Crow.Coding
                        { Caption = "IML Shematic View", CanExecute = true};
                        CMDViewStyling = new Command(new Action(() => loadWindow ("#Crow.Coding.ui.DockWindows.winStyleView.crow",this)))
                        { Caption = "Styling Explorer", CanExecute = true};
+                       CMDViewLQIs = new Command(new Action(() => loadWindow ("#Crow.Coding.ui.DockWindows.winLQIs.crow",this)))
+                       { Caption = "LQIs Explorer", CanExecute = true};
                                
                        CMDViewGTExp = new Command(new Action(() => loadWindow ("#Crow.Coding.ui.DockWindows.winGTExplorer.crow")))
                        { Caption = "Graphic Tree Explorer", CanExecute = false};
index 0575d17792e15ef59bc953838355a33aa3d9a652..b967ce50d53ad1f4f1201395addd1eabe2838344 100644 (file)
@@ -54,9 +54,12 @@ namespace Crow.Coding
                                        return;
                                instance = value;
                                NotifyValueChanged ("Instance", instance);
+                               NotifyValueChanged ("LQIs", LQIs);
                        }
                }
-                       
+               public List<LQIList> LQIs {
+                       get { return instance == null ? null : instance.IFace.LQIs; }
+               }                       
                public Measure DesignWidth {
                        get { return designWidth; }
                        set { 
index d721ac361b1c98de27c052c3221aac1b62b815bc..4f1dd67598b62232e34deac0a175178dab50dc91 100644 (file)
@@ -28,6 +28,7 @@
                                <MenuItem Command="{CMDViewErrors}"/>
                                <MenuItem Command="{CMDViewGTExp}"/>
                                <MenuItem Command="{CMDViewSchema}"/>
+                               <MenuItem Command="{CMDViewLQIs}"/>
                        </MenuItem>
                        <MenuItem Caption="Project" Fit="true" PopWidth="120">
                                <MenuItem Command="{CMDCompile}"/>
diff --git a/CrowIDE/ui/DockWindows/winLQIs.crow b/CrowIDE/ui/DockWindows/winLQIs.crow
new file mode 100644 (file)
index 0000000..3581141
--- /dev/null
@@ -0,0 +1,70 @@
+<?xml version="1.0"?>
+<DockWindow Name="winLQIs" Caption="Layouting Queue Items Explorer" Width="40%" Height="80%">
+       <VerticalStack DataSource="{CurrentSolution}">
+               <TreeView DataSource="{SelectedItem}" Name="treeView" Data="{LQIs}">
+               </TreeView>
+       </VerticalStack>
+</DockWindow>
+
+<!--           <ItemTemplate DataType="Crow.LayoutingQueueItem" Data="triggeredLQIs">
+                       <Expandable>
+                               <Template>
+                                       <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+                                               <VerticalStack Fit="true" Margin="3" Background="DimGray"
+                                                               HorizontalAlignment="Left"
+                                                               MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}"
+                                                               MouseLeave="{Background=DimGray}">
+                                                       <Label Text="{FullName}" Font="droid, 8" Background="LightGray" Foreground="Black"/>
+                                                       <HorizontalStack Fit="true" Spacing="10">
+                                                               <Label Text="{LayoutingTries}" Foreground="SkyBlue"/>
+                                                               <Label Text="{DiscardCount}" Foreground="Red"/>
+                                                               <Label Text="{Name}" Font="droid bold"/>
+                                                               <Label Text="{LayoutType}" Foreground="Maize"/>
+                                                               <Label Text="{Width}"/>
+                                                               <Label Text="{Height}"/>
+                                                       </HorizontalStack>
+
+                                                       <HorizontalStack Fit="true">
+                                                               <Label Text="{Slot}"/>
+                                                               <Label Text=" => "/>
+                                                               <Label Text="{NewSlot}"/>
+                                                       </HorizontalStack>
+                                                       <GraphicObject Background="SeaGreen" Height="3" Visible="{HasTriggeredLQIs}"/>
+                                               </VerticalStack>
+                                               <Container Name="Content" Visible="false" HorizontalAlignment="Left"
+                                                               Fit="true"/>
+                                       </VerticalStack>
+                               </Template>
+                               <HorizontalStack Height="Fit" Width="Fit">
+                                       <GraphicObject Width="20" Height="10"/>
+                                       <TreeView Name="List" Height="Fit" Width="Fit"
+                                               Template="#Crow.Templates.treeList.crow" />
+                               </HorizontalStack>
+                       </Expandable>
+               </ItemTemplate>
+               <ItemTemplate DataType="Crow.LQIList" Data="GetRootLQIs">
+                       <Expandable Caption="{}" >
+                               <Template>
+                                       <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}">
+                                               <HorizontalStack Spacing="1" Height="Fit" Width="{./WidthPolicy}"
+                                                               MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}"
+                                                               MouseLeave="{Background=Transparent}">
+                                                       <Image Margin="2" Width="12" Height="12"
+
+                                                               Path="{./Image}"
+                                                               SvgSub="{./IsExpanded}"/>
+                                                       <Label Text="{./Caption}" Width="{./WidthPolicy}"/>
+                                               </HorizontalStack>
+                                               <Container Name="Content" Visible="false"
+                                                               Height="{./HeightPolicy}" Width="{./WidthPolicy}"/>
+                                       </VerticalStack>
+                               </Template>
+                               <HorizontalStack Height="Fit" Width="{./WidthPolicy}">
+                                       <GraphicObject Width="12" Height="10"/>
+                                       <TreeView Name="List" Height="Fit" Width="{./WidthPolicy}"
+                                               Template="#Crow.Templates.treeList.crow" />
+                               </HorizontalStack>
+                       </Expandable>
+               </ItemTemplate>
+       </TreeView>
+</Window>-->
diff --git a/CrowIDE/ui/LQIsExplorer.crow b/CrowIDE/ui/LQIsExplorer.crow
deleted file mode 100644 (file)
index 72a36fb..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0"?>
-<Window Width="50%" Height="50%" Background="DimGray">
-       <TreeView IsRoot="true" Name="treeView" Data="{LQIs}">
-               <ItemTemplate DataType="Crow.LayoutingQueueItem" Data="triggeredLQIs">
-                       <Expandable>
-                               <Template>
-                                       <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}">
-                                               <VerticalStack Fit="true" Margin="3" Background="DimGray"
-                                                               HorizontalAlignment="Left"
-                                                               MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}"
-                                                               MouseLeave="{Background=DimGray}">
-                                                       <Label Text="{FullName}" Font="droid, 8" Background="LightGray" Foreground="Black"/>
-                                                       <HorizontalStack Fit="true" Spacing="10">
-                                                               <Label Text="{LayoutingTries}" Foreground="SkyBlue"/>
-                                                               <Label Text="{DiscardCount}" Foreground="Red"/>
-                                                               <Label Text="{Name}" Font="droid bold"/>
-                                                               <Label Text="{LayoutType}" Foreground="Maize"/>
-                                                               <Label Text="{Width}"/>
-                                                               <Label Text="{Height}"/>
-                                                       </HorizontalStack>
-
-                                                       <HorizontalStack Fit="true">
-                                                               <Label Text="{Slot}"/>
-                                                               <Label Text=" => "/>
-                                                               <Label Text="{NewSlot}"/>
-                                                       </HorizontalStack>
-                                                       <GraphicObject Background="SeaGreen" Height="3" Visible="{HasTriggeredLQIs}"/>
-                                               </VerticalStack>
-                                               <Container Name="Content" Visible="false" HorizontalAlignment="Left"
-                                                               Fit="true"/>
-                                       </VerticalStack>
-                               </Template>
-                               <HorizontalStack Height="Fit" Width="Fit">
-                                       <GraphicObject Width="20" Height="10"/>
-                                       <TreeView Name="List" Height="Fit" Width="Fit"
-                                               Template="#Crow.Templates.treeList.crow" />
-                               </HorizontalStack>
-                       </Expandable>
-               </ItemTemplate>
-               <ItemTemplate DataType="Crow.LQIList" Data="GetRootLQIs">
-                       <Expandable Caption="{}" >
-                               <Template>
-                                       <VerticalStack Height="{./HeightPolicy}" Width="{./WidthPolicy}">
-                                               <HorizontalStack Spacing="1" Height="Fit" Width="{./WidthPolicy}"
-                                                               MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}"
-                                                               MouseLeave="{Background=Transparent}">
-                                                       <Image Margin="2" Width="12" Height="12"
-
-                                                               Path="{./Image}"
-                                                               SvgSub="{./IsExpanded}"/>
-                                                       <Label Text="{./Caption}" Width="{./WidthPolicy}"/>
-                                               </HorizontalStack>
-                                               <Container Name="Content" Visible="false"
-                                                               Height="{./HeightPolicy}" Width="{./WidthPolicy}"/>
-                                       </VerticalStack>
-                               </Template>
-                               <HorizontalStack Height="Fit" Width="{./WidthPolicy}">
-                                       <GraphicObject Width="12" Height="10"/>
-                                       <TreeView Name="List" Height="Fit" Width="{./WidthPolicy}"
-                                               Template="#Crow.Templates.treeList.crow" />
-                               </HorizontalStack>
-                       </Expandable>
-               </ItemTemplate>
-       </TreeView>
-</Window>