From f73ce5a6db8949227834d9d65b195bbb9e8acb32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sat, 18 Sep 2021 09:22:04 +0000 Subject: [PATCH] save commit, BubbleEvents, iface.search type and ext meth for loadCtx wise searches, IncludedEvents as list, removed discarded events --- Crow/Default.style | 8 +- Crow/Templates/Button.template | 2 +- Crow/Templates/CheckBox2.template | 12 +- Crow/Templates/ContextMenu.template | 4 +- Crow/Templates/FileDialog.template | 6 +- Crow/Templates/MenuButton.template | 2 +- Crow/Templates/MenuItem.itmp | 3 +- Crow/Templates/MenuItem.template | 2 +- Crow/Templates/Popper.template | 4 +- Crow/src/Colors.cs | 8 +- Crow/src/DebugUtils/DbgEvent.cs | 6 +- Crow/src/DebugUtils/DbgEvtType.cs | 41 ++-- Crow/src/DebugUtils/DbgWidgetEvent.cs | 8 +- Crow/src/DebugUtils/DebugLogger.cs | 24 ++- Crow/src/IML/CompilerServices.cs | 43 ++-- Crow/src/IML/Instantiator.cs | 42 ++-- Crow/src/Input/KeyPressEventArgs.cs | 2 +- Crow/src/Interface.cs | 59 +++++- Crow/src/ItemTemplate.cs | 5 +- Crow/src/Text/SpanCharReader.cs | 64 +++++- Crow/src/Widgets/Expandable.cs | 1 + Crow/src/Widgets/FileDialog.cs | 25 ++- Crow/src/Widgets/MenuItem.cs | 3 +- Crow/src/Widgets/TemplatedGroup.cs | 39 +++- Crow/src/Widgets/Widget.cs | 49 +++-- Crow/src/styling/StyleReader.cs | 188 +++++++++--------- Directory.Build.props | 2 +- README.md | 6 +- Samples/HelloWorld/main.cs | 11 + Samples/HelloWorld/ui/helloworld.crow | 40 +++- Samples/ShowCase/ShowCase.cs | 13 +- Samples/ShowCase/ui/Button.template | 2 +- Samples/ShowCase/ui/showcase.crow | 4 +- Samples/common/src/Editor.cs | 4 +- Samples/common/src/SampleBase.cs | 11 + Samples/common/src/SampleBaseForEditor.cs | 7 +- .../Interfaces/Experimental/buttonSizing.crow | 9 + .../Experimental/enumSelector2.crow | 18 ++ .../Interfaces/Experimental/fileDialog.crow | 17 ++ 39 files changed, 529 insertions(+), 265 deletions(-) create mode 100644 Samples/common/ui/Interfaces/Experimental/buttonSizing.crow create mode 100644 Samples/common/ui/Interfaces/Experimental/enumSelector2.crow create mode 100644 Samples/common/ui/Interfaces/Experimental/fileDialog.crow diff --git a/Crow/Default.style b/Crow/Default.style index c2b17b4b..181ed47b 100644 --- a/Crow/Default.style +++ b/Crow/Default.style @@ -100,8 +100,9 @@ Wrapper { } Button { Template = "#Crow.Button.template"; + //Focusable = "true"; Caption = "Button"; - MinimumSize = "50,22"; + MinimumSize = "60,22"; Height = "Fit"; Width = "Fit"; } @@ -163,6 +164,7 @@ ListItem { //Selected = "{Background=${ControlHighlight}}"; //Unselected = "{Background=Transparent}"; //Margin="1"; + Focusable = "true"; } MessageBox { Background = "0.1,0.1,0.2,0.85"; @@ -362,13 +364,13 @@ TableHeaderLabel { Button, CheckBox, RadioButton, ComboBox, Expandable, MessageBox, Popper, Slider, Spinner, TextBox, NumericControl { - //Focusable = "true"; + Focusable = "true"; Foreground="${ControlForeground}"; Height = "Fit"; Background = "${ControlBackground}"; CornerRadius = "${ControlCornerRadius}"; Margin="0"; - BubbleMouseEvent="MouseWheel|Keyboard"; + BubbleEvents="MouseWheel|Keyboard"; } TemplatedControl, GenericStack { CacheEnabled="true"; diff --git a/Crow/Templates/Button.template b/Crow/Templates/Button.template index 9ad621d9..6627021e 100644 --- a/Crow/Templates/Button.template +++ b/Crow/Templates/Button.template @@ -1,4 +1,4 @@ - + diff --git a/Crow/Templates/CheckBox2.template b/Crow/Templates/CheckBox2.template index 0fa0ffef..68afd0bf 100644 --- a/Crow/Templates/CheckBox2.template +++ b/Crow/Templates/CheckBox2.template @@ -1,7 +1,5 @@ - - \ No newline at end of file +