From 47fe040bb568b4eff544bb9f287481343216373e Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Mon, 1 Feb 2016 23:31:22 +0100 Subject: [PATCH] debug and improvments --- Crow.csproj | 5 +- Crow.userprefs | 20 +- Images/Icons/updown.svg | 59 ++-- MonoDevelop.GOLib/src/GOLibGtkHost.cs | 2 +- Templates/ArrowButTemplate.crow | 14 + Templates/Button.crow | 14 + Templates/ComboBox.goml | 2 +- Templates/Expandable.goml | 2 +- Templates/MessageBox.goml | 12 +- Templates/Popper.goml | 2 +- Templates/ScrollBar.goml | 8 +- Templates/Spinner.goml | 13 +- Templates/Window.goml | 8 +- Tests/GOLIBTest_4.cs | 12 +- Tests/GOLIBTests.cs | 29 +- Tests/Interfaces/test4.1.goml | 14 +- Tests/Interfaces/test4.goml | 20 +- Tests/Interfaces/test5.goml | 4 +- Tests/Interfaces/test6.goml | 8 +- Tests/Interfaces/testButton.crow | 322 ++++++++++++++++++++ Tests/Interfaces/testImage.crow | 87 ++++++ Tests/Interfaces/testTextBox.crow | 16 + Tests/Interfaces/testWindow.goml | 32 +- Tests/Interfaces/testWindow2.goml | 8 +- Tests/Interfaces/test_Listbox.goml | 4 +- Tests/Tests.csproj | 12 +- UnitTest/Interfaces/testButton.crow | 322 ++++++++++++++++++++ UnitTest/Interfaces/testImage.crow | 81 +++++ UnitTest/NUnitCrowWindow.cs | 10 +- UnitTest/UnitTest.csproj | 7 + src/BmpPicture.cs | 25 +- src/BubblingMouseButtonEventArgs.cs | 14 + src/CompilerServices/CompilerServices.cs | 2 +- src/GraphicObjects/Border.cs | 12 +- src/GraphicObjects/Button.cs | 110 ++++--- src/GraphicObjects/ComboBox.cs | 4 +- src/GraphicObjects/GenericStack.cs | 3 + src/GraphicObjects/GraphicObject.cs | 169 +++++++---- src/GraphicObjects/Group.cs | 4 +- src/GraphicObjects/ILayoutable.cs | 2 +- src/GraphicObjects/Image.cs | 51 ++-- src/GraphicObjects/Label.cs | 368 ++++++++++++----------- src/GraphicObjects/NumericControl.cs | 4 - src/GraphicObjects/Popper.cs | 4 +- src/GraphicObjects/Scroller.cs | 2 +- src/GraphicObjects/Slider.cs | 8 +- src/GraphicObjects/TextBox.cs | 11 +- src/GraphicObjects/Window.cs | 233 +++++++------- src/Interface.cs | 44 +-- src/OpenTKGameWindow.cs | 98 +++--- src/Picture.cs | 2 +- src/SvgPicture.cs | 26 +- 52 files changed, 1675 insertions(+), 670 deletions(-) create mode 100755 Templates/ArrowButTemplate.crow create mode 100755 Templates/Button.crow create mode 100755 Tests/Interfaces/testButton.crow create mode 100755 Tests/Interfaces/testImage.crow create mode 100755 Tests/Interfaces/testTextBox.crow create mode 100755 UnitTest/Interfaces/testButton.crow create mode 100755 UnitTest/Interfaces/testImage.crow create mode 100644 src/BubblingMouseButtonEventArgs.cs diff --git a/Crow.csproj b/Crow.csproj index b65f3170..bc8842f5 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -46,7 +46,7 @@ bin\Debug - TRACE;DEBUG;__linux__;DEBUG_LOAD_TIME0;DEBUG_LAYOUTING0;DEBUG_BINDING0 + TRACE;DEBUG;__linux__;DEBUG_LOAD_TIME0;DEBUG_LAYOUTING;DEBUG_BINDING0;DEBUG_CLIP_RECTANGLE0 + + + transform="matrix(0.81305037,0,0,0.79847006,-3.6589183,-5.1900554)" + id="up"> + d="M 32,9 7,44 57,44 Z" + style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + transform="matrix(0.81305037,0,0,0.79847006,-3.6589183,-5.1900554)" + id="down"> + d="M 7,9 57,9 32,44 Z" + style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> diff --git a/MonoDevelop.GOLib/src/GOLibGtkHost.cs b/MonoDevelop.GOLib/src/GOLibGtkHost.cs index ea45e679..f9e7e599 100644 --- a/MonoDevelop.GOLib/src/GOLibGtkHost.cs +++ b/MonoDevelop.GOLib/src/GOLibGtkHost.cs @@ -527,7 +527,7 @@ namespace MonoDevelop.GOLib } } - public IGOLibHost TopContainer { + public IGOLibHost HostContainer { get { return this as IGOLibHost; } } diff --git a/Templates/ArrowButTemplate.crow b/Templates/ArrowButTemplate.crow new file mode 100755 index 00000000..b1ba7796 --- /dev/null +++ b/Templates/ArrowButTemplate.crow @@ -0,0 +1,14 @@ + + + + \ No newline at end of file diff --git a/Templates/Button.crow b/Templates/Button.crow new file mode 100755 index 00000000..f33db837 --- /dev/null +++ b/Templates/Button.crow @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/Templates/ComboBox.goml b/Templates/ComboBox.goml index f60b1a1a..56c4792b 100755 --- a/Templates/ComboBox.goml +++ b/Templates/ComboBox.goml @@ -1,5 +1,5 @@  - +