blob: f0088b3fc4fe890cce043fa9731c6e2749e8b4ab (
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
<?xml version="1.0"?>
<VerticalStack RootDataLevel="true">
<Menu Data="{CommandsRoot}" >
<ItemTemplate DataType="Crow.Command" Path="#ui.MenuButton.template"/>
<ItemTemplate DataType="Crow.CommandGroup" >
<MenuItem Data="{Commands}" Width="Fit" IsEnabled="{CanExecute}"
ItemTemplate="#ui.MenuItem.itmp">
<Template>
<Popper PopDirection="Bottom" Caption="{Caption}" Width="Fit"
MouseEnter="{Background=${ControlHighlight}}"
MouseLeave="{Background=Transparent}">
<Template>
<Label Text="{./Caption}" Width="Stretched" Height="Fit" Margin="5"
Background="{./Background}"/>
</Template>
<VerticalStack Name="ItemsContainer" Height="Fit" Width="Fit" Background="Jet"/>
</Popper>
</Template>
</MenuItem>
</ItemTemplate>
</Menu>
<TabView>
<VerticalStack Name="LogGraph" Background="DarkGrey">
<EnumSelector RadioButtonStyle="CheckBoxEvtType" Template="#ui.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" RootDataLevel="true" Background="DarkGrey">
<TreeView Height="Stretched" Name="dbgTV" Data="{Events}" SelectedItem="{²CurrentEvent}" Background="DarkGrey"
ItemTemplate="#ui.DbgEventTreeItems.itemp"/>
</VerticalStack>
<VerticalStack Name="CurWidgetEvents" Width="Stretched" IsVisible="false" RootDataLevel="true" Background="DarkGrey">
<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="#ui.DbgEvtTooltip.crow" TicksPerPixel="1000" VerticalAlignment="Center"/>
</ListItem>
</ItemTemplate>
<Template>
<Wrapper Name="ItemsContainer" Spacing="1" Background="{./Background}"/>
</Template>
</ListBox>
</VerticalStack>
</TabView>
<Splitter/>
<HorizontalStack Height="30%">
<ListBox Data="{Widgets}" Width="200" SelectedItem="{²CurrentWidget}"
ItemTemplate="#ui.WidgetRecord.itemp">
</ListBox>
<ListBox Data="{CurWidgetProperties}" Width="25%" >
<ItemTemplate>
<ListItem Height="Fit" Margin="1" Focusable="true" HorizontalAlignment="Left"
Selected = "{Background=${ControlHighlight}}"
Unselected = "{Background=Transparent}">
<HorizontalStack>
<Label Text="{Key}" Width="140"/>
<Label Text="{Value}" Width="Stretched" Background="White" Foreground="Black" TextAlignment="Left"/>
</HorizontalStack>
</ListItem>
</ItemTemplate>
</ListBox>
<Splitter/>
<VerticalStack>
<HorizontalStack Height="Fit" Background="Onyx" Spacing="5">
<Label Text="{CurrentWidget}"/>
<Label Text="events"/>
</HorizontalStack>
<ListBox Height="Stretched" Data="{CurrentWidgetEvents}" SelectedItem="{²CurrentEvent}" Background="DarkGrey"
ItemTemplate="#ui.DbgWidgetEventListItems.itemp"/>
</VerticalStack>
<Splitter/>
<DbgEventView Template="#ui.DbgEventView.template" Event="{../../dbv.HoverEvent}"/>
<Splitter/>
<DbgEventView Template="#ui.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="#ui.DbgEvtTooltip.crow" />
</HorizontalStack>
<ListBox Data="{EventCommands}" Fit="true">
<Template>
<HorizontalStack Name="ItemsContainer" />
</Template>
<ItemTemplate Path="#ui.IconCommand.itmp"/>
</ListBox>
<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>
|