aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogAnalyzer/ui/DebugLog.crow
blob: 2b5ab978a03760700a4ebac4a9da1f30ff69e201 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0"?>
<Window Caption="Debug Log" Background="0.05,0.05,0.1,0.9" Width="80%" Height="80%">
	<VerticalStack>
		<TabView>
			<VerticalStack Name="LogGraph" Background="DarkGrey">
				<EnumSelector RadioButtonStyle="CheckBox2" Template="#Dbg.EnumSelector.template"
						Caption="Discarded Events" EnumValue="{²../dbv.Filter}" BitFieldExcludeMask="255" />					
				<HorizontalStack>
					<DbgLogViewer Visible="true" Name="dbv" Events="{Events}" Widgets="{Widgets}" 
											 CurrentEvent="{²CurrentEvent}" CurrentWidget="{²CurrentWidget}" />
					<ScrollBar Maximum="{../dbv.MaxScrollY}" Value="{²../dbv.ScrollY}" SmallIncrement="1" LargeIncrement="10"
											CursorRatio="{../dbv.ChildHeightRatio}"/>
				</HorizontalStack>
				<ScrollBar Style="HScrollBar"  Maximum="{../dbv.MaxScrollX}" Value="{²../dbv.ScrollX}" SmallIncrement="1" LargeIncrement="10"
					CursorRatio="{../dbv.ChildWidthRatio}"/>
				<HorizontalStack Height="Fit" DataSource="{CurrentWidget}" Spacing="3">
					<Label Style="smallLabValue" Text="{name}"/>
					<Label Style="smallLabValue" Text="{listIndex}" Tooltip="List index"/>
					<Label Style="smallLabValue" Text="{treeIndex}" Tooltip="tree index"/>
					<Label Style="smallLabValue" Text="{yIndex}" Tooltip="yIndex"/>
					<Label Style="smallLabValue" Text="{xLevel}" Tooltip="xLevel"/>
					<Label Style="smallLabCaption" Text="Width:"/>
					<Label Style="smallLabValue" Text="{Width}"/>
					<Label Style="smallLabCaption" Text="Height:" />
					<Label Style="smallLabValue" Text="{Height}"/>
					<Label Style="smallLabCaption" Text="ScrollX:" />
					<Label Style="smallLabValue" Text="{../../dbv.ScrollX}"/>
					<Label Style="smallLabCaption" Text="MaxScrollX:" />
					<Label Style="smallLabValue" Text="{../../dbv.MaxScrollX}"/>
					<Label Style="smallLabValue" Tooltip="XScale" Text="{../../dbv.XScale}"/>
					<Label Style="smallLabValue" Tooltip="VisibleTicks" Text="{../../dbv.VisibleTicks}"/>				
				</HorizontalStack>
			</VerticalStack>
			<!--<VerticalStack Name="AllEvents" Width="Stretched" IsVisible="false">
				<TreeView Height="Stretched" Name="dbgTV" Data="{Events}" SelectedItem="{²CurrentEvent}" Background="DarkGrey"							
							ItemTemplate="#Dbg.DbgEventTreeItems.itemp"/> 
				<ListBox Data="{CurWidgetEvents}" Height="100" SelectedItem="{²CurrentEvent}">
					<ItemTemplate>
						<ListItem Margin="0" Height="16" Width="Fit"
									Selected="{Background=${ControlHighlight}}"
									Unselected="{Background=Transparent}">
							<DbgEventWidget Height="10" Width="Fit" Event="{}" Tooltip="#Dbg.DbgEvtTooltip.crow" TicksPerPixel="20" VerticalAlignment="Center"/>
						</ListItem>
					</ItemTemplate>
					<Template>
						<Wrapper Name="ItemsContainer" Spacing="1" Background="DarkGrey"/>
					</Template>
				</ListBox>				
			</VerticalStack>
			<VerticalStack Name="CurWidgetEvents" Width="Stretched" IsVisible="false">
				<TreeView Height="Stretched" Data="{CurrentWidgetEvents}" Background="DarkGrey"							
							ItemTemplate="#Dbg.DbgEventTreeItems.itemp"/> 
			</VerticalStack>-->
		</TabView>
		<Splitter/>
		<HorizontalStack Height="30%">
			<ListBox Data="{Widgets}" Width="200" SelectedItem="{²CurrentWidget}"
				ItemTemplate="#Dbg.WidgetRecord.itemp">				
			</ListBox>
			<Splitter/>
			<VerticalStack>
				<HorizontalStack Height="Fit" Background="Onyx" Spacing="5">
					<Label Text="{CurrentWidget}"/>
					<Label Text="events"/>
				</HorizontalStack>
				<ListBox  Data="{CurrentWidgetEvents}" Background="Black" SelectedItem="{²CurrentEvent}">
					<ItemTemplate>
						<ListItem Margin="0" Height="16" IsSelected="{²IsSelected}" Width="Fit"
									Selected="{Background=${ControlHighlight}}" Template="Crow.ScrollingListBox.template"
									Unselected="{Background=Transparent}">
							<DbgEventWidget Height="10" Width="Fit" Event="{}" Tooltip="#Dbg.DbgEvtTooltip.crow" TicksPerPixel="50" VerticalAlignment="Center"/>
						</ListItem>
					</ItemTemplate>
					<Template>
						<Wrapper Name="ItemsContainer" Spacing="1" Background="{./Background}"/>
					</Template>
				</ListBox>
				<!--<TreeView Data="{Events}" SelectedItem="{²CurrentEvent}" Background="DarkGrey"							
							ItemTemplate="#Dbg.DbgEventTreeItems.itemp"/>-->
			</VerticalStack>
			<Splitter/>
			<DbgEventView Template="#Dbg.DbgEventView.template" Event="{../../dbv.HoverEvent}"/>
			<Splitter/>
			<DbgEventView Template="#Dbg.DbgEventView.template" Event="{CurrentEvent}"/>
		</HorizontalStack>
		<HorizontalStack Height="Fit" Background="Onyx" Margin="1">
			<HorizontalStack Height="Fit" DataSource="{CurrentEvent}">
				<Label Foreground="Black" Text="Current Event:" Background="{Color}" Margin="2" />
				<DbgEventWidget Height="14" Width="Stretched" Event="{}" Tooltip="#Dbg.DbgEvtTooltip.crow" />
			</HorizontalStack>
			<Menu Fit="true" Data="{EventCommands}">
				<ItemTemplate>
					<Button Command="{}"/>
				</ItemTemplate>
			</Menu>
			<Popper Caption="Search...">
				<VerticalStack Fit="true" Background="Onyx" Margin="10">
					<ComboBox Caption="Event Type" Data="{AllEventTypes}" SelectedItem="{²SearchEventType}"/>
					<ComboBox Caption="Widget" Data="{Widgets}" SelectedItem="{²SearchWidget}"/>
				</VerticalStack>
			</Popper>
		</HorizontalStack>
	</VerticalStack>
</Window>