From c1b29a565bdbf37fd88d268588710ce8f4f84d5b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Thu, 15 Feb 2018 14:58:36 +0100 Subject: [PATCH] CrowIDE WIP, context commands, tooltips, PointIsIn(ref point), configuration no longer static. also: - remove default null value for datasource - dschange sender changed in group and privateContainer - try closing menuItem, should debug - Contains search also template in TemplatedContainer - change in nodeAddress: expresion starting with '/' means current node - MouseEventArgs CTOR with one source button - RemoveWidget trigger check HoverWidget - Orientation binding in Menu template --- Crow.csproj | 10 ++- Default.style | 2 + Icons/Icon_no.svg | 4 + Icons/compiler_error.svg | 13 ++++ Icons/compiler_warning.svg | 53 +++++++++++++ Icons/compiler_warning_orange.svg | 54 +++++++++++++ Icons/project.svg | 9 +++ Icons/projectRef.svg | 21 +++++ Icons/warning_construction.svg | 60 +++++++++++++++ Templates/ContextMenu.template | 43 +++++++++++ Templates/Menu.template | 2 +- Templates/MenuItem.template | 2 +- Tests/BasicTests.cs | 27 ++++++- .../Interfaces/GraphicObject/testCtxMenu.crow | 4 + Tests/Tests.csproj | 3 + src/Configuration.cs | 73 +++++++++--------- src/GraphicObjects/GraphicObject.cs | 77 ++++++++++++++----- src/GraphicObjects/Group.cs | 2 +- src/GraphicObjects/ILayoutable.cs | 2 +- src/GraphicObjects/MenuItem.cs | 17 +++- src/GraphicObjects/Popper.cs | 6 ++ src/GraphicObjects/PrivateContainer.cs | 2 +- src/GraphicObjects/Scroller.cs | 52 +++++++++---- src/GraphicObjects/TemplatedContainer.cs | 7 +- src/GraphicObjects/TemplatedGroup.cs | 7 +- src/IML/NodeAddress.cs | 23 +++--- src/Input/MouseEventArgs.cs | 6 ++ src/Interface.cs | 49 +++++++++++- 28 files changed, 531 insertions(+), 99 deletions(-) create mode 100644 Icons/Icon_no.svg create mode 100644 Icons/compiler_error.svg create mode 100644 Icons/compiler_warning.svg create mode 100644 Icons/compiler_warning_orange.svg create mode 100644 Icons/project.svg create mode 100644 Icons/projectRef.svg create mode 100644 Icons/warning_construction.svg create mode 100644 Templates/ContextMenu.template create mode 100755 Tests/Interfaces/GraphicObject/testCtxMenu.crow diff --git a/Crow.csproj b/Crow.csproj index 4de640dd..a061ae54 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -30,7 +30,7 @@ true full true - DEBUG_UPDATE0;DEBUG_FOCUS0;DEBUG_LAYOUTING0;TRACE0;DEBUG;MEASURE_TIME;DEBUG_LOAD0;DEBUG_BINDING;DEBUG_CLIP_RECTANGLE0 + DEBUG_UPDATE0;DEBUG_FOCUS0;DEBUG_LAYOUTING0;TRACE0;DEBUG;MEASURE_TIME;DEBUG_LOAD0;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0 false $(SolutionDir)build\Debug @@ -371,10 +371,18 @@ Crow.Tooltip.template + + Crow.ContextMenu.template + + + + PreserveNewest + + diff --git a/Default.style b/Default.style index 9a0f3f54..4eaabf4c 100644 --- a/Default.style +++ b/Default.style @@ -29,6 +29,7 @@ Menu { Height = Fit; Width = Stretched; VerticalAlignment = Top; + SelectionBackground = Transparent; } MenuItem { Caption = MenuItem; @@ -38,6 +39,7 @@ MenuItem { Foreground = LightGray; MouseEnter = {Background = vgradient|0:UnitedNationsBlue|1:Onyx;Foreground=White;} MouseLeave = {Foreground=LightGray;Background=Transparent;} + SelectionBackground = Transparent; } MessageBox { Background = 0.3,0.3,0.3,0.3; diff --git a/Icons/Icon_no.svg b/Icons/Icon_no.svg new file mode 100644 index 00000000..c7613fbc --- /dev/null +++ b/Icons/Icon_no.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Icons/compiler_error.svg b/Icons/compiler_error.svg new file mode 100644 index 00000000..1b505681 --- /dev/null +++ b/Icons/compiler_error.svg @@ -0,0 +1,13 @@ + + + + Layer 1 + + X + + + Layer 2 + + ! + + \ No newline at end of file diff --git a/Icons/compiler_warning.svg b/Icons/compiler_warning.svg new file mode 100644 index 00000000..9dac3772 --- /dev/null +++ b/Icons/compiler_warning.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + 3D effect warning triangle + 18/9/07 + + + Tim O'Ryan + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Icons/compiler_warning_orange.svg b/Icons/compiler_warning_orange.svg new file mode 100644 index 00000000..233437ff --- /dev/null +++ b/Icons/compiler_warning_orange.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + 3D effect warning triangle + 18/9/07 + + + Tim O'Ryan + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Icons/project.svg b/Icons/project.svg new file mode 100644 index 00000000..1f9a1f1b --- /dev/null +++ b/Icons/project.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/Icons/projectRef.svg b/Icons/projectRef.svg new file mode 100644 index 00000000..3ebd7b5f --- /dev/null +++ b/Icons/projectRef.svg @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/Icons/warning_construction.svg b/Icons/warning_construction.svg new file mode 100644 index 00000000..4c101ec0 --- /dev/null +++ b/Icons/warning_construction.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + 3D effect warning triangle + 18/9/07 + + + Tim O'Ryan + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Templates/ContextMenu.template b/Templates/ContextMenu.template new file mode 100644 index 00000000..3fb29552 --- /dev/null +++ b/Templates/ContextMenu.template @@ -0,0 +1,43 @@ + + + + + + + + + + diff --git a/Templates/Menu.template b/Templates/Menu.template index c560043c..99ae5545 100644 --- a/Templates/Menu.template +++ b/Templates/Menu.template @@ -1,2 +1,2 @@  - + diff --git a/Templates/MenuItem.template b/Templates/MenuItem.template index 0f93b20c..511c5265 100644 --- a/Templates/MenuItem.template +++ b/Templates/MenuItem.template @@ -13,7 +13,7 @@ Background="{./Background}">