From 149205e8ebe5c4ab1ca52ca700ff754aabdf14aa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Wed, 16 Jul 2025 20:08:03 +0200 Subject: DebugLogViewer, DockTests --- Samples/DebugLogViewer/ui/CrowEdit.style | 141 +++++++++++++++++++++ Samples/DebugLogViewer/ui/DbgEventTreeItems.itemp | 70 ++++++++++ Samples/DebugLogViewer/ui/DbgEventView.template | 44 +++++++ Samples/DebugLogViewer/ui/DbgEvtTooltip.crow | 42 ++++++ .../ui/DbgWidgetEventListItems.itemp | 11 ++ Samples/DebugLogViewer/ui/EnumSelector.template | 21 +++ Samples/DebugLogViewer/ui/IconCommand.itmp | 10 ++ Samples/DebugLogViewer/ui/MenuButton.template | 11 ++ Samples/DebugLogViewer/ui/MenuItem.itmp | 16 +++ Samples/DebugLogViewer/ui/WidgetRecord.itemp | 12 ++ Samples/DebugLogViewer/ui/main.crow | 122 ++++++++++++++++++ Samples/DebugLogViewer/ui/winDebugLog.crow | 103 +++++++++++++++ Samples/DebugLogViewer/ui/winLogGraph.crow | 30 +++++ Samples/DebugLogViewer/ui/winLogNavigation.crow | 45 +++++++ 14 files changed, 678 insertions(+) create mode 100644 Samples/DebugLogViewer/ui/CrowEdit.style create mode 100644 Samples/DebugLogViewer/ui/DbgEventTreeItems.itemp create mode 100644 Samples/DebugLogViewer/ui/DbgEventView.template create mode 100644 Samples/DebugLogViewer/ui/DbgEvtTooltip.crow create mode 100644 Samples/DebugLogViewer/ui/DbgWidgetEventListItems.itemp create mode 100644 Samples/DebugLogViewer/ui/EnumSelector.template create mode 100644 Samples/DebugLogViewer/ui/IconCommand.itmp create mode 100644 Samples/DebugLogViewer/ui/MenuButton.template create mode 100644 Samples/DebugLogViewer/ui/MenuItem.itmp create mode 100644 Samples/DebugLogViewer/ui/WidgetRecord.itemp create mode 100644 Samples/DebugLogViewer/ui/main.crow create mode 100644 Samples/DebugLogViewer/ui/winDebugLog.crow create mode 100644 Samples/DebugLogViewer/ui/winLogGraph.crow create mode 100644 Samples/DebugLogViewer/ui/winLogNavigation.crow (limited to 'Samples/DebugLogViewer/ui') diff --git a/Samples/DebugLogViewer/ui/CrowEdit.style b/Samples/DebugLogViewer/ui/CrowEdit.style new file mode 100644 index 00000000..eccf2c6d --- /dev/null +++ b/Samples/DebugLogViewer/ui/CrowEdit.style @@ -0,0 +1,141 @@ +SmallUIFont = "sans, 12"; +SmallFont = "consolas, 12"; +InactiveTabBackground = "DarkGrey"; +SelectedTabBackground = "Onyx"; +InactiveTabForeground = "Grey"; +SelectedTabForeground = "White"; +MenuIconSize = "22"; + +ControlForeground = "LightGrey"; +ControlCaptionHoverColor = "White"; + +ControlHighlight = "RoyalBlue"; +ControlIdle = "Jet"; + +DockWindowBackground = "DarkGrey"; + +TreeItemBorderCornerRadius = "0"; +TreeItemBorderFG = "Transparent"; +TreeItemBorderHighlightFG = "DimGrey"; +TreeItemBackground = "Transparent"; +//TreeItemHighlight = " + +TxtInFileDialog { + Margin = "2"; + Font = "mono, 14"; +} + +Editor { + Focusable="true"; + Height="Stretched"; + Width="Stretched"; + Background="White"; + Foreground="Black"; + MouseWheelSpeed = "20"; + BubbleEvents ="None"; + ClipToClientRect = "true"; + MouseCursor = "ibeam"; + CacheEnabled = "true"; +} + +icon { + Width="14"; + Height="14"; +} +MemberViewLabel { + Margin="1"; + Height="Fit"; + Width="50%"; + Background="White"; +} +MemberViewHStack { + Focusable="true"; + Height="Fit"; + Spacing="1"; + MouseEnter="{Background=SteelBlue}"; + MouseLeave="{Background=Transparent}"; +} + +IcoBut { + Template = "#ui.IcoBut.template"; + MinimumSize = "10,10"; + Width = "32"; + Height = "32"; +} +Spinner { + Template = "#ui.spinner.template"; +} +TreeIcon { + Width="16"; + Height="16"; +} +TreeIconSmall { + Width="12"; + Height="12"; +} +TreeLabel { + Foreground="White"; + Margin = "1"; +} +TreeLabel2 { + Foreground="Black"; + Background="LightGrey"; + Margin = "1"; + Font = "sans, 9"; +} + +Splitter { + Thickness="1"; + Background="Transparent"; + Hover="{Background=White}"; + Unhover="{Background=Transparent}"; +} + +MenuItem { + Template = "#ui.MenuItem.template"; +} + +MenuIcon { + Margin = "1"; + Width = "${MenuIconSize}"; + Height = "${MenuIconSize}"; +} + +EnumSelector { + Template = "#ui.EnumSelector.template"; + ItemStyle = "CheckBoxEvtType"; +} +CheckBox { + Template= "#Crow.CheckBox2.template"; + Width = "Stretched"; + Height = "Fit"; + CornerRadius = "2"; + Background = "${ControlIdle}"; + Foreground = "${ControlForeground}"; + Checked = "{Background=${ControlHighlight}}"; + Unchecked = "{Background=${ControlIdle}}"; + MouseEnter = "{Foreground=${ControlCaptionHoverColor}}"; + MouseLeave = "{Foreground=${ControlForeground}}"; +} +StateBox { + Template= "#Crow.CheckBox2.template"; + Width = "Stretched"; + Height = "Fit"; + CornerRadius = "2"; + Background = "${ControlIdle}"; + Foreground = "${ControlForeground}"; + Checked = "{Background=Green}"; + Unchecked = "{Background=DarkRed}"; + Focusable = "false"; +} +StateBoxSmall { + Template= "#ui.SimpleStatus.template"; + Checked = "{Background=Green}"; + Unchecked = "{Background=DarkRed}"; + Focusable = "false"; + Background = "DarkRed"; + Foreground = "${ControlForeground}"; + Width = "Fit"; + Height = "Fit"; +} + diff --git a/Samples/DebugLogViewer/ui/DbgEventTreeItems.itemp b/Samples/DebugLogViewer/ui/DbgEventTreeItems.itemp new file mode 100644 index 00000000..1267fa54 --- /dev/null +++ b/Samples/DebugLogViewer/ui/DbgEventTreeItems.itemp @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Samples/DebugLogViewer/ui/DbgEventView.template b/Samples/DebugLogViewer/ui/DbgEventView.template new file mode 100644 index 00000000..8b6f5482 --- /dev/null +++ b/Samples/DebugLogViewer/ui/DbgEventView.template @@ -0,0 +1,44 @@ + + + \ No newline at end of file diff --git a/Samples/DebugLogViewer/ui/DbgEvtTooltip.crow b/Samples/DebugLogViewer/ui/DbgEvtTooltip.crow new file mode 100644 index 00000000..a3369249 --- /dev/null +++ b/Samples/DebugLogViewer/ui/DbgEvtTooltip.crow @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file diff --git a/Samples/DebugLogViewer/ui/DbgWidgetEventListItems.itemp b/Samples/DebugLogViewer/ui/DbgWidgetEventListItems.itemp new file mode 100644 index 00000000..d7a397ae --- /dev/null +++ b/Samples/DebugLogViewer/ui/DbgWidgetEventListItems.itemp @@ -0,0 +1,11 @@ + + + + + diff --git a/Samples/DebugLogViewer/ui/EnumSelector.template b/Samples/DebugLogViewer/ui/EnumSelector.template new file mode 100644 index 00000000..3472ec0d --- /dev/null +++ b/Samples/DebugLogViewer/ui/EnumSelector.template @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/Samples/DebugLogViewer/ui/IconCommand.itmp b/Samples/DebugLogViewer/ui/IconCommand.itmp new file mode 100644 index 00000000..8f648dd5 --- /dev/null +++ b/Samples/DebugLogViewer/ui/IconCommand.itmp @@ -0,0 +1,10 @@ + + + + diff --git a/Samples/DebugLogViewer/ui/MenuButton.template b/Samples/DebugLogViewer/ui/MenuButton.template new file mode 100644 index 00000000..3a3e2c61 --- /dev/null +++ b/Samples/DebugLogViewer/ui/MenuButton.template @@ -0,0 +1,11 @@ + + diff --git a/Samples/DebugLogViewer/ui/MenuItem.itmp b/Samples/DebugLogViewer/ui/MenuItem.itmp new file mode 100644 index 00000000..8dfb3301 --- /dev/null +++ b/Samples/DebugLogViewer/ui/MenuItem.itmp @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/Samples/DebugLogViewer/ui/WidgetRecord.itemp b/Samples/DebugLogViewer/ui/WidgetRecord.itemp new file mode 100644 index 00000000..e9d15d1e --- /dev/null +++ b/Samples/DebugLogViewer/ui/WidgetRecord.itemp @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/Samples/DebugLogViewer/ui/main.crow b/Samples/DebugLogViewer/ui/main.crow new file mode 100644 index 00000000..a1f99e19 --- /dev/null +++ b/Samples/DebugLogViewer/ui/main.crow @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Samples/DebugLogViewer/ui/winDebugLog.crow b/Samples/DebugLogViewer/ui/winDebugLog.crow new file mode 100644 index 00000000..90557a09 --- /dev/null +++ b/Samples/DebugLogViewer/ui/winDebugLog.crow @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Samples/DebugLogViewer/ui/winLogGraph.crow b/Samples/DebugLogViewer/ui/winLogGraph.crow new file mode 100644 index 00000000..085596a0 --- /dev/null +++ b/Samples/DebugLogViewer/ui/winLogGraph.crow @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + diff --git a/Samples/DebugLogViewer/ui/winLogNavigation.crow b/Samples/DebugLogViewer/ui/winLogNavigation.crow new file mode 100644 index 00000000..62d71a53 --- /dev/null +++ b/Samples/DebugLogViewer/ui/winLogNavigation.crow @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.3.1-4-g156e