aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/ui/Interfaces
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-18 22:22:26 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-06-18 22:22:26 +0200
commit5b48f0fa5b96b3336ac2da2d69bddccab304250a (patch)
tree0eb900728ea3dddad3aac96b6d1347979ac74e83 /Samples/common/ui/Interfaces
parent13698c71260a0022f7f863322b0cea4b9cd6c271 (diff)
Debug logger improvments and visualization
Diffstat (limited to 'Samples/common/ui/Interfaces')
-rw-r--r--Samples/common/ui/Interfaces/Divers/colors.crow15
-rw-r--r--Samples/common/ui/Interfaces/Divers/dbglog.crow63
2 files changed, 78 insertions, 0 deletions
diff --git a/Samples/common/ui/Interfaces/Divers/colors.crow b/Samples/common/ui/Interfaces/Divers/colors.crow
new file mode 100644
index 00000000..ea46d0e6
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Divers/colors.crow
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<Window Width="80%" Height="90%">
+<ListBox Name="ColorList" Data="{TestList}" Margin="5">
+ <Template>
+ <Wrapper Name="ItemsContainer" Orientation="Horizontal"/>
+ </Template>
+ <ItemTemplate>
+ <Group Background="{}" Width="Fit" Height="Fit" >
+ <Label Text="{}" TextAlignment="Center" Font="mono, 9" Foreground="Black" Left="2" Top="2" Margin="10" Width="100"/>
+ <Label Text="{}" TextAlignment="Center" Font="mono, 9" Left="1" Top="1" Margin="10" Width="100"/>
+ </Group>
+ </ItemTemplate>
+
+</ListBox>
+</Window>
diff --git a/Samples/common/ui/Interfaces/Divers/dbglog.crow b/Samples/common/ui/Interfaces/Divers/dbglog.crow
new file mode 100644
index 00000000..02147b62
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Divers/dbglog.crow
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<HorizontalStack>
+ <TreeView Width="20%" Data="{../dbv.Events}">
+ <ItemTemplate Data="events">
+ <Expandable Caption="{type}" MouseDoubleClick="/onClickForExpand" CacheEnabled="true">
+ <Template>
+ <VerticalStack>
+ <Border CornerRadius="2" Margin="0" Height="Fit" MouseDoubleClick="./onClickForExpand"
+ Foreground="Transparent"
+ MouseEnter="{Foreground=DimGrey}"
+ MouseLeave="{Foreground=Transparent}">
+ <HorizontalStack Spacing="2" Background="Onyx">
+ <Image Margin="1" Width="9" Height="9" Focusable="true" MouseDown="./onClickForExpand"
+ Path="{./Image}"
+ Visible="{HasChildEvents}"
+ SvgSub="{./IsExpanded}"
+ MouseEnter="{Background=LightGrey}"
+ MouseLeave="{Background=Transparent}"/>
+ <Label Text="{./Caption}" Width="80" Font="mono, 8" />
+ <Label Text="{Duration}" Width="40" Font="mono, 8" TextAlignment="Center" Background="DimGrey"/>
+ <Group Height="5">
+ <DbgEventWidget Event="{}" />
+ </Group>
+ </HorizontalStack>
+ </Border>
+ <Container Name="Content" Visible="false"/>
+ </VerticalStack>
+ </Template>
+ <HorizontalStack Height="Fit">
+ <Widget Width="12" Height="10"/>
+ <VerticalStack Height="Fit" Name="ItemsContainer"/>
+ </HorizontalStack>
+ </Expandable>
+ </ItemTemplate>
+ </TreeView>
+ <Splitter/>
+ <VerticalStack>
+ <DbgLogViewer Visible="false" Name="dbv" LogFile="debug.log" MouseWheelSpeed="10" Font="mono, 8"/>
+ <!--<ScrollBar Style="HScrollBar" Maximum="{../dbv.MaxScrollX}" Value="{²../dbv.ScrollX}"/>
+ <HorizontalStack Height="Fit" DataSource="{../../dbv.CurrentWidget}">
+ <Label Text="{name}"/>
+ <Label Text="{listIndex}"/>
+ <Label Text="{instanceNum}"/>
+ <Label Text="{treeIndex}"/>
+ <Label Text="{yIndex}"/>
+ <Label Text="{xLevel}"/>
+ </HorizontalStack>
+ <DbgEventWidget Height="20" Width="Stretched" Event="{../../dbv.CurrentEvent}"/>
+ <VerticalStack DataSource="{../../dbv.CurrentEvent}">
+ <HorizontalStack>
+ <Label Text="{type}"/>
+ <Label Text="{begin}"/>
+ <Label Text="{end}"/>
+ <Label Text="{Duration}"/>
+ </HorizontalStack>
+ <ListBox Data="{events}" Height="100">
+ <ItemTemplate>
+ <DbgEventWidget Height="20" Width="Stretched" Event="{}"/>
+ </ItemTemplate>
+ </ListBox>
+ </VerticalStack>-->
+ </VerticalStack>
+</HorizontalStack> \ No newline at end of file