diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-06-18 22:22:26 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-06-18 22:22:26 +0200 |
| commit | 5b48f0fa5b96b3336ac2da2d69bddccab304250a (patch) | |
| tree | 0eb900728ea3dddad3aac96b6d1347979ac74e83 /Samples | |
| parent | 13698c71260a0022f7f863322b0cea4b9cd6c271 (diff) | |
Debug logger improvments and visualization
Diffstat (limited to 'Samples')
| -rw-r--r-- | Samples/ShowCase/ui/showcase.crow | 3 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Divers/colors.crow | 15 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Divers/dbglog.crow | 63 |
3 files changed, 79 insertions, 2 deletions
diff --git a/Samples/ShowCase/ui/showcase.crow b/Samples/ShowCase/ui/showcase.crow index 83700273..7610e9b6 100644 --- a/Samples/ShowCase/ui/showcase.crow +++ b/Samples/ShowCase/ui/showcase.crow @@ -20,8 +20,7 @@ </HorizontalStack> <HorizontalStack> <Scroller Name="scroller1" Background="White" - Margin="2" ScrollY="{../scrollbar1.Value}" - ValueChanged="./_scroller_ValueChanged"> + Margin="2" ScrollY="{../scrollbar1.Value}"> <TextBox VerticalAlignment="Top" Text="{²Source}" Multiline="true" TextAlignment="TopLeft" Font="mono 10"/> 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 |