aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/ui/LQIsExplorer.crow
blob: 945492449accbd0f4b5f1f12e204e80471d973dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?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="Onyx"
								HorizontalAlignment="Left"
								MouseEnter="{Background=hgradient|0:BlueCrayola|1:Transparent}"
								MouseLeave="{Background=Onyx}">
							<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="Mantis" 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>