From 5ded9101522573336813c88d49e2ed27d70429fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Fri, 20 Aug 2021 20:23:23 +0200 Subject: [PATCH] keep only HelloWorld, ShowCase and PerfTests samples --- Crow.ControlsLib/AnalogMeter.cs | 68 -- Crow.ControlsLib/Crow.ControlsLib.csproj | 63 -- Crow.ControlsLib/Default.style | 139 --- Crow.ControlsLib/DockingView.cs | 166 ---- Crow.ControlsLib/DocksView.cs | 91 -- Crow.ControlsLib/Templates/AnalogMeter0.goml | 5 - Crow.ControlsLib/Templates/Checkbox2.goml | 5 - .../Templates/DockingView.template | 24 - Crow.ControlsLib/Templates/ListBox.template | 7 - Crow.ControlsLib/Templates/Menu.template | 2 - Crow.ControlsLib/Templates/MenuItem.template | 23 - .../Templates/MessageBox.template | 31 - Crow.ControlsLib/Templates/Popper.template | 8 - .../Templates/RadioButton.template | 6 - Crow.ControlsLib/Templates/ScrollBar.template | 21 - .../Templates/ScrollingListBox.goml | 13 - Crow.ControlsLib/Templates/Slider.template | 1 - .../Templates/Spinner (copier).goml | 14 - Crow.ControlsLib/Templates/Spinner.template | 18 - Crow.ControlsLib/Templates/TabItem.template | 20 - .../Templates/ToolWindow.template | 24 - Crow.ControlsLib/Templates/TreeView.template | 14 - Crow.ControlsLib/Templates/Window.template | 39 - .../Templates/imgItemTemplate.goml | 8 - Crow.ControlsLib/Templates/tmpDirItem.goml | 11 - Crow.ControlsLib/Templates/treeList.crow | 3 - Crow.sln | 59 -- Samples/BindingTest/BindingTest.csproj | 8 - Samples/BindingTest/Program.cs | 41 - Samples/BindingTest/ui/test.crow | 17 - .../CrowDebugAssemblyLoadContext.cs | 15 - Samples/CrowDebugger/CrowDebugger.csproj | 8 - Samples/CrowDebugger/Program.cs | 58 -- .../DebugLogAnalyzer/DebugLogAnalyzer.csproj | 15 - .../Properties/AssemblyInfo.cs | 5 - .../DebugLogAnalyzer/src/DbgEventWidget.cs | 162 ---- Samples/DebugLogAnalyzer/src/DbgLogViewer.cs | 807 ------------------ .../DebugLogAnalyzer/src/DebugInterface.cs | 142 --- .../src/DebugInterfaceWidget.cs | 472 ---------- Samples/DebugLogAnalyzer/src/Program.cs | 259 ------ Samples/DebugLogAnalyzer/ui/Button.template | 12 - .../ui/DbgEventTreeItems.itemp | 70 -- .../DebugLogAnalyzer/ui/DbgEventView.template | 44 - .../DebugLogAnalyzer/ui/DbgEvtTooltip.crow | 42 - Samples/DebugLogAnalyzer/ui/DebugLog.crow | 104 --- .../DebugLogAnalyzer/ui/EnumSelector.template | 10 - .../DebugLogAnalyzer/ui/WidgetRecord.itemp | 11 - Samples/DebugLogAnalyzer/ui/dbg.style | 37 - Samples/DebugLogAnalyzer/ui/dbglog.crow | 100 --- .../ui/dockWindows/winLogGraph.crow | 15 - Samples/DebugLogAnalyzer/ui/focused.crow | 17 - Samples/DebugLogAnalyzer/ui/main.crow | 167 ---- Samples/Directory.Build.props | 2 +- Samples/HelloWorld/HelloWorld.csproj | 1 + Samples/PathPainter/Painter.cs | 203 ----- Samples/PathPainter/PathPainter.csproj | 7 - Samples/PathPainter/Program.cs | 77 -- Samples/PathPainter/ui/Icons/Lines.svg | 7 - Samples/PathPainter/ui/Icons/Rect.svg | 6 - Samples/PathPainter/ui/Icons/Select.svg | 6 - Samples/PathPainter/ui/Painter.style | 3 - Samples/PathPainter/ui/Spinner.template | 14 - Samples/PathPainter/ui/colorSelector.template | 11 - Samples/PathPainter/ui/main.crow | 43 - Samples/PerfTests/Program.cs | 16 +- Samples/dockableWindows/dockableWindows.cs | 62 -- .../dockableWindows/dockableWindows.csproj | 13 - Samples/dockableWindows/ui/GTreeExp.itemp | 32 - Samples/dockableWindows/ui/TabView.template | 32 - Samples/dockableWindows/ui/dock.style | 15 - Samples/dockableWindows/ui/dockWin.template | 43 - Samples/dockableWindows/ui/test.crow | 46 - Samples/dragNdrop/dragNdrop.cs | 68 -- Samples/dragNdrop/dragNdrop.csproj | 8 - Samples/dragNdrop/ui/GTreeExp.itemp | 32 - Samples/dragNdrop/ui/test.crow | 55 -- Samples/main.cs | 564 ------------ Samples/testMSBuild/Program.cs | 370 -------- Samples/testMSBuild/testMSBuild.csproj | 23 - 79 files changed, 14 insertions(+), 5266 deletions(-) delete mode 100644 Crow.ControlsLib/AnalogMeter.cs delete mode 100644 Crow.ControlsLib/Crow.ControlsLib.csproj delete mode 100644 Crow.ControlsLib/Default.style delete mode 100644 Crow.ControlsLib/DockingView.cs delete mode 100644 Crow.ControlsLib/DocksView.cs delete mode 100644 Crow.ControlsLib/Templates/AnalogMeter0.goml delete mode 100644 Crow.ControlsLib/Templates/Checkbox2.goml delete mode 100644 Crow.ControlsLib/Templates/DockingView.template delete mode 100644 Crow.ControlsLib/Templates/ListBox.template delete mode 100644 Crow.ControlsLib/Templates/Menu.template delete mode 100644 Crow.ControlsLib/Templates/MenuItem.template delete mode 100644 Crow.ControlsLib/Templates/MessageBox.template delete mode 100644 Crow.ControlsLib/Templates/Popper.template delete mode 100644 Crow.ControlsLib/Templates/RadioButton.template delete mode 100644 Crow.ControlsLib/Templates/ScrollBar.template delete mode 100644 Crow.ControlsLib/Templates/ScrollingListBox.goml delete mode 100644 Crow.ControlsLib/Templates/Slider.template delete mode 100644 Crow.ControlsLib/Templates/Spinner (copier).goml delete mode 100644 Crow.ControlsLib/Templates/Spinner.template delete mode 100644 Crow.ControlsLib/Templates/TabItem.template delete mode 100644 Crow.ControlsLib/Templates/ToolWindow.template delete mode 100644 Crow.ControlsLib/Templates/TreeView.template delete mode 100644 Crow.ControlsLib/Templates/Window.template delete mode 100644 Crow.ControlsLib/Templates/imgItemTemplate.goml delete mode 100644 Crow.ControlsLib/Templates/tmpDirItem.goml delete mode 100644 Crow.ControlsLib/Templates/treeList.crow delete mode 100644 Samples/BindingTest/BindingTest.csproj delete mode 100644 Samples/BindingTest/Program.cs delete mode 100644 Samples/BindingTest/ui/test.crow delete mode 100644 Samples/CrowDebugger/CrowDebugAssemblyLoadContext.cs delete mode 100644 Samples/CrowDebugger/CrowDebugger.csproj delete mode 100644 Samples/CrowDebugger/Program.cs delete mode 100644 Samples/DebugLogAnalyzer/DebugLogAnalyzer.csproj delete mode 100644 Samples/DebugLogAnalyzer/Properties/AssemblyInfo.cs delete mode 100644 Samples/DebugLogAnalyzer/src/DbgEventWidget.cs delete mode 100644 Samples/DebugLogAnalyzer/src/DbgLogViewer.cs delete mode 100644 Samples/DebugLogAnalyzer/src/DebugInterface.cs delete mode 100644 Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs delete mode 100644 Samples/DebugLogAnalyzer/src/Program.cs delete mode 100644 Samples/DebugLogAnalyzer/ui/Button.template delete mode 100644 Samples/DebugLogAnalyzer/ui/DbgEventTreeItems.itemp delete mode 100644 Samples/DebugLogAnalyzer/ui/DbgEventView.template delete mode 100644 Samples/DebugLogAnalyzer/ui/DbgEvtTooltip.crow delete mode 100644 Samples/DebugLogAnalyzer/ui/DebugLog.crow delete mode 100644 Samples/DebugLogAnalyzer/ui/EnumSelector.template delete mode 100644 Samples/DebugLogAnalyzer/ui/WidgetRecord.itemp delete mode 100644 Samples/DebugLogAnalyzer/ui/dbg.style delete mode 100644 Samples/DebugLogAnalyzer/ui/dbglog.crow delete mode 100644 Samples/DebugLogAnalyzer/ui/dockWindows/winLogGraph.crow delete mode 100644 Samples/DebugLogAnalyzer/ui/focused.crow delete mode 100644 Samples/DebugLogAnalyzer/ui/main.crow delete mode 100644 Samples/PathPainter/Painter.cs delete mode 100644 Samples/PathPainter/PathPainter.csproj delete mode 100644 Samples/PathPainter/Program.cs delete mode 100644 Samples/PathPainter/ui/Icons/Lines.svg delete mode 100644 Samples/PathPainter/ui/Icons/Rect.svg delete mode 100644 Samples/PathPainter/ui/Icons/Select.svg delete mode 100644 Samples/PathPainter/ui/Painter.style delete mode 100644 Samples/PathPainter/ui/Spinner.template delete mode 100644 Samples/PathPainter/ui/colorSelector.template delete mode 100644 Samples/PathPainter/ui/main.crow delete mode 100644 Samples/dockableWindows/dockableWindows.cs delete mode 100644 Samples/dockableWindows/dockableWindows.csproj delete mode 100644 Samples/dockableWindows/ui/GTreeExp.itemp delete mode 100644 Samples/dockableWindows/ui/TabView.template delete mode 100644 Samples/dockableWindows/ui/dock.style delete mode 100644 Samples/dockableWindows/ui/dockWin.template delete mode 100644 Samples/dockableWindows/ui/test.crow delete mode 100644 Samples/dragNdrop/dragNdrop.cs delete mode 100644 Samples/dragNdrop/dragNdrop.csproj delete mode 100644 Samples/dragNdrop/ui/GTreeExp.itemp delete mode 100644 Samples/dragNdrop/ui/test.crow delete mode 100644 Samples/main.cs delete mode 100644 Samples/testMSBuild/Program.cs delete mode 100644 Samples/testMSBuild/testMSBuild.csproj diff --git a/Crow.ControlsLib/AnalogMeter.cs b/Crow.ControlsLib/AnalogMeter.cs deleted file mode 100644 index ff23bd6b..00000000 --- a/Crow.ControlsLib/AnalogMeter.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// AnalogMeter.cs -// -// Author: -// Jean-Philippe Bruyère -// -// Copyright (c) 2013-2017 Jean-Philippe Bruyère -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -using System; -using System.Xml.Serialization; -using System.ComponentModel; -using Cairo; - -namespace Crow -{ - public class AnalogMeter : NumericControl - { - #region CTOR - protected AnalogMeter () : base(){} - public AnalogMeter (Interface iface) : base(iface){} - #endregion - - #region GraphicObject Overrides - protected override void onDraw (Context gr) - { - base.onDraw (gr); - - Rectangle r = ClientRectangle; - Point m = r.Center; - - gr.Save (); - - - double aUnit = Math.PI*2.0 / (Maximum - Minimum); - gr.Translate (m.X, r.Height *1.1); - gr.Rotate (Value/4.0 * aUnit - Math.PI/4.0); - gr.Translate (-m.X, -m.Y); - - gr.LineWidth = 2; - Foreground.SetAsSource (gr); - gr.MoveTo (m.X,0.0); - gr.LineTo (m.X, -m.Y*0.5); - gr.Stroke (); - - gr.Restore (); - } - #endregion - } -} - diff --git a/Crow.ControlsLib/Crow.ControlsLib.csproj b/Crow.ControlsLib/Crow.ControlsLib.csproj deleted file mode 100644 index 75fd3f14..00000000 --- a/Crow.ControlsLib/Crow.ControlsLib.csproj +++ /dev/null @@ -1,63 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {6E48BD3D-7B33-4368-AA8A-D878427DAC83} - Library - Crow.ControlsLib - Crow.ControlsLib - v4.5 - 0.5 - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - false - - - full - true - bin\Release - prompt - 4 - false - - - - - - - - - - - - - Crow.DockingView.template - - - - - - - - - - - - - {C2980F9B-4798-4C05-99E2-E174810F7C7B} - Crow - - - \ No newline at end of file diff --git a/Crow.ControlsLib/Default.style b/Crow.ControlsLib/Default.style deleted file mode 100644 index 07689b50..00000000 --- a/Crow.ControlsLib/Default.style +++ /dev/null @@ -1,139 +0,0 @@ -Button, CheckBox, RadioButton, ComboBox, Expandable, -MessageBox, Popper, Slider, Spinner, TextBox { - Focusable = true; - Height = Fit; -} -Border { - Foreground = Gray; -} -CheckBox { Caption = CheckBox; } -RadioButton { Caption = RadioButton; } -Expandable { Caption = Expandable; } -Popper { Caption = Popper; } -GroupBox { Caption = Group Box; } -Wrapper { - Orientation = Vertical; -} -Button { - Caption = Button; - Width = Fit; -} -Label { - Height = Fit; - Width = Fit; - Margin = 0; -} -Menu { - Margin = 1; - Background = vgradient|0:DimGray|1:Onyx; - Height = Fit; - Width = Stretched; - VerticalAlignment = Top; -} -MenuItem { - Caption = MenuItem; - Width = Stretched; - Height = Fit; - Background = Transparent; - Foreground = LightGray; - MouseEnter = {Background = vgradient|0:UnitedNationsBlue|1:Onyx;Foreground=White;} - MouseLeave = {Foreground=LightGray;Background=Transparent;} -} -MessageBox { - Background = 0.3,0.3,0.3,0.3; - Width = Fit; - Title=MessageBox; - Font = serif, 12; - MinimumSize = 200,120; -} -Slider { - Background = vgradient|0:Black|0.1:Gray|0.9:Gray|1:LightGray; - Foreground = Gray; - Width = Fit; -} -Splitter { - Focusable = true; - Background = DimGray; -} -Spinner { - Foreground = DimGray; -} -TabView { - CacheEnabled = false; -} -TabItem { - Caption = TabItem; - Focusable = true; - CacheEnabled = false; -} -TextBox { - Background = White; - Foreground = Black; - Selectable = True; - Text = TextBox; - Margin = 1; -} -Window { - Caption = Window; - Focusable = true; - MinimumSize=5,5; - Width = 150; - Height = 150; -} -ToolWindow { - Caption = Window; - Template = #Crow.ToolWindow.template; - Focusable = true; - MinimumSize=50,50; - Width = 150; - Height = 150; -} -DocksView { - AllowDrop = true; -} -DockingView { - Focusable = true; - AllowDrag = true; -} -FileDialog { - Template = #Crow.FileDialog.template; - Focusable = true; - MinimumSize=50,50; - Width = 500; - Height = 300; -} -ProgressBar { - Foreground = vgradient|0:BlueCrayola|0.5:SkyBlue|1:BlueCrayola; -} -ScrollBar { - Maximum = 0; - Value = 0; -} -Scroller { - CacheEnabled = false; -} -Icon { - Margin=1; - Width=12; - Height=12; -} -Control { - Margin=0; - Spacing=3; -} -SaturationValueSelector { - Foreground=Red; -} -HueSelector { - ClipToClientRect=False; -} -ColorSpinner { - Minimum = 0; - Maximum = 255; - SmallIncrement = 1; -} -HSVSpinner { - Minimum = 0; - Maximum = 1; - SmallIncrement = 0.01; -} \ No newline at end of file diff --git a/Crow.ControlsLib/DockingView.cs b/Crow.ControlsLib/DockingView.cs deleted file mode 100644 index 8d76d457..00000000 --- a/Crow.ControlsLib/DockingView.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// DockingView.cs -// -// Author: -// Jean-Philippe Bruyère -// -// Copyright (c) 2013-2017 Jean-Philippe Bruyère -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -using System; - -namespace Crow -{ - public class DockingView : Window - { - #region CTOR - protected DockingView() : base () - { - } - #endregion - - bool isDocked = false; - Alignment docking = Alignment.Center; - - Point lastMousePos; //last known mouse pos in this control - Point undockingMousePosOrig; //mouse pos when docking was donne, use for undocking on mouse move - Rectangle savedSlot; //last undocked slot recalled when view is undocked - bool wasResizable; - - public DocksView docker; - - public override void OnLayoutChanges (LayoutingType layoutType) - { - base.OnLayoutChanges (layoutType); - - if (isDocked) - return; - - if (docker == null) - return; - - Rectangle dvCliRect = docker.ClientRectangle; - - if (layoutType == LayoutingType.X) { - if (Slot.X < docker.DockingThreshold) - dock (Alignment.Left); - else if (Slot.Right > dvCliRect.Width - docker.DockingThreshold) - dock (Alignment.Right); - }else if (layoutType == LayoutingType.Y) { - if (Slot.Y < docker.DockingThreshold) - dock (Alignment.Top); - else if (Slot.Bottom > dvCliRect.Height - docker.DockingThreshold) - dock (Alignment.Bottom); - } - } - - public override void onMouseMove (object sender, MouseMoveEventArgs e) - { - lastMousePos = e.Position; - - if (this.HasFocus && e.Mouse.IsButtonDown (MouseButton.Left) && isDocked) { - if (docking == Alignment.Left) { - if (lastMousePos.X - undockingMousePosOrig.X > docker.DockingThreshold) - undock (); - } else if (docking == Alignment.Right) { - if (undockingMousePosOrig.X - lastMousePos.X > docker.DockingThreshold) - undock (); - } else if (docking == Alignment.Top) { - if (lastMousePos.Y - undockingMousePosOrig.Y > docker.DockingThreshold) - undock (); - } else if (docking == Alignment.Bottom) { - if (undockingMousePosOrig.Y - lastMousePos.Y > docker.DockingThreshold) - undock (); - } - return; - } - - base.onMouseMove (sender, e); - } - public override void onMouseDown (object sender, MouseButtonEventArgs e) - { - base.onMouseDown (sender, e); - - if (this.HasFocus && isDocked && e.Button == MouseButton.Left) - undockingMousePosOrig = lastMousePos; - } - -// protected override void onBorderMouseEnter (object sender, MouseMoveEventArgs e) -// { -// base.onBorderMouseEnter (sender, e); -// -// if (isDocked) { -// switch (docking) { -// case Alignment.Top: -// if (this.currentDirection != Window.Direction.S) -// onBorderMouseLeave (this, null); -// break; -// case Alignment.Left: -// if (this.currentDirection != Window.Direction.E) -// onBorderMouseLeave (this, null); -// break; -// case Alignment.TopLeft: -// break; -// case Alignment.Right: -// if (this.currentDirection != Window.Direction.W) -// onBorderMouseLeave (this, null); -// break; -// case Alignment.TopRight: -// break; -// case Alignment.Bottom: -// if (this.currentDirection != Window.Direction.N) -// onBorderMouseLeave (this, null); -// break; -// case Alignment.BottomLeft: -// break; -// case Alignment.BottomRight: -// break; -// case Alignment.Center: -// break; -// default: -// break; -// } -// } -// } - - void undock () { - docker.Undock(this); - - this.Left = savedSlot.Left; - this.Top = savedSlot.Top; - this.Width = savedSlot.Width; - this.Height = savedSlot.Height; - - isDocked = false; - Resizable = wasResizable; - } - void dock (Alignment align){ - this.Left = this.Top = 0; - isDocked = true; - docking = align; - undockingMousePosOrig = lastMousePos; - savedSlot = this.LastPaintedSlot; - wasResizable = Resizable; - Resizable = false; - - docker.Dock (this, align); - } - } -} - diff --git a/Crow.ControlsLib/DocksView.cs b/Crow.ControlsLib/DocksView.cs deleted file mode 100644 index a93bdc78..00000000 --- a/Crow.ControlsLib/DocksView.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -// DocksView.cs -// -// Author: -// Jean-Philippe Bruyère -// -// Copyright (c) 2013-2017 Jean-Philippe Bruyère -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -using System; -using System.Xml.Serialization; -using System.ComponentModel; -using System.Collections.Generic; - -namespace Crow -{ - public class DocksView : Group - { - List childViews = new List(); - GenericStack rootStack = null; - - public override void AddChild (GraphicObject g) - { - DockingView dv = g as DockingView; - if (g == null) - throw new Exception ("DocksView accept only DockingView as child"); - base.AddChild (g); - childViews.Add (dv); - dv.docker = this; - } - public override void RemoveChild (GraphicObject child) - { - DockingView dv = child as DockingView; - if (child == null) - throw new Exception ("DocksView accept only DockingView as child"); - base.RemoveChild (child); - childViews.Remove (dv); - dv.docker = this; - } - public void Dock (DockingView dv, Alignment pos){ - switch (pos) { - case Alignment.Top: - if (rootStack?.Orientation != Orientation.Vertical) - this.Width = Measure.Stretched; - break; - case Alignment.Bottom: - this.Width = Measure.Stretched; - break; - case Alignment.Left: - this.Height = Measure.Stretched; - break; - case Alignment.Right: - this.Height = Measure.Stretched; - break; - } - } - public void Undock (DockingView dv){ - } - - int dockingThreshold; - - [XmlAttributeAttribute][DefaultValue(10)] - public virtual int DockingThreshold { - get { return dockingThreshold; } - set { - if (dockingThreshold == value) - return; - dockingThreshold = value; - NotifyValueChanged ("DockingThreshold", dockingThreshold); - - } - } - } -} - diff --git a/Crow.ControlsLib/Templates/AnalogMeter0.goml b/Crow.ControlsLib/Templates/AnalogMeter0.goml deleted file mode 100644 index 8187aac4..00000000 --- a/Crow.ControlsLib/Templates/AnalogMeter0.goml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Crow.ControlsLib/Templates/Checkbox2.goml b/Crow.ControlsLib/Templates/Checkbox2.goml deleted file mode 100644 index 0a67fce7..00000000 --- a/Crow.ControlsLib/Templates/Checkbox2.goml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/Crow.ControlsLib/Templates/DockingView.template b/Crow.ControlsLib/Templates/DockingView.template deleted file mode 100644 index 0a3b4e01..00000000 --- a/Crow.ControlsLib/Templates/DockingView.template +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - diff --git a/Crow.ControlsLib/Templates/ListBox.template b/Crow.ControlsLib/Templates/ListBox.template deleted file mode 100644 index f6d6214d..00000000 --- a/Crow.ControlsLib/Templates/ListBox.template +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - diff --git a/Crow.ControlsLib/Templates/Menu.template b/Crow.ControlsLib/Templates/Menu.template deleted file mode 100644 index c560043c..00000000 --- a/Crow.ControlsLib/Templates/Menu.template +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/Crow.ControlsLib/Templates/MenuItem.template b/Crow.ControlsLib/Templates/MenuItem.template deleted file mode 100644 index 0f93b20c..00000000 --- a/Crow.ControlsLib/Templates/MenuItem.template +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/Crow.ControlsLib/Templates/MessageBox.template b/Crow.ControlsLib/Templates/MessageBox.template deleted file mode 100644 index c33eb869..00000000 --- a/Crow.ControlsLib/Templates/MessageBox.template +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Crow.ControlsLib/Templates/ScrollingListBox.goml b/Crow.ControlsLib/Templates/ScrollingListBox.goml deleted file mode 100644 index f294aea6..00000000 --- a/Crow.ControlsLib/Templates/ScrollingListBox.goml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - diff --git a/Crow.ControlsLib/Templates/Slider.template b/Crow.ControlsLib/Templates/Slider.template deleted file mode 100644 index 9c7bb705..00000000 --- a/Crow.ControlsLib/Templates/Slider.template +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Crow.ControlsLib/Templates/Spinner (copier).goml b/Crow.ControlsLib/Templates/Spinner (copier).goml deleted file mode 100644 index fcb849c3..00000000 --- a/Crow.ControlsLib/Templates/Spinner (copier).goml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Crow.ControlsLib/Templates/Spinner.template b/Crow.ControlsLib/Templates/Spinner.template deleted file mode 100644 index 4d3569bf..00000000 --- a/Crow.ControlsLib/Templates/Spinner.template +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - diff --git a/Crow.ControlsLib/Templates/TabItem.template b/Crow.ControlsLib/Templates/TabItem.template deleted file mode 100644 index f82b79c9..00000000 --- a/Crow.ControlsLib/Templates/TabItem.template +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/Crow.ControlsLib/Templates/ToolWindow.template b/Crow.ControlsLib/Templates/ToolWindow.template deleted file mode 100644 index f021f6ee..00000000 --- a/Crow.ControlsLib/Templates/ToolWindow.template +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - diff --git a/Crow.ControlsLib/Templates/TreeView.template b/Crow.ControlsLib/Templates/TreeView.template deleted file mode 100644 index c29e34c5..00000000 --- a/Crow.ControlsLib/Templates/TreeView.template +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - diff --git a/Crow.ControlsLib/Templates/Window.template b/Crow.ControlsLib/Templates/Window.template deleted file mode 100644 index 20b23147..00000000 --- a/Crow.ControlsLib/Templates/Window.template +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - diff --git a/Crow.ControlsLib/Templates/imgItemTemplate.goml b/Crow.ControlsLib/Templates/imgItemTemplate.goml deleted file mode 100644 index c08f390e..00000000 --- a/Crow.ControlsLib/Templates/imgItemTemplate.goml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - diff --git a/Crow.ControlsLib/Templates/tmpDirItem.goml b/Crow.ControlsLib/Templates/tmpDirItem.goml deleted file mode 100644 index 01aef1e6..00000000 --- a/Crow.ControlsLib/Templates/tmpDirItem.goml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/Crow.ControlsLib/Templates/treeList.crow b/Crow.ControlsLib/Templates/treeList.crow deleted file mode 100644 index d47621af..00000000 --- a/Crow.ControlsLib/Templates/treeList.crow +++ /dev/null @@ -1,3 +0,0 @@ - - diff --git a/Crow.sln b/Crow.sln index 0e50f247..cdd60dd3 100644 --- a/Crow.sln +++ b/Crow.sln @@ -19,34 +19,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorld", "Samples\Hello EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ShowCase", "Samples\ShowCase\ShowCase.csproj", "{56329D48-D382-4850-93DE-59C453894E8A}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "unitTests", "unitTests\unitTests.csproj", "{0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BasicTests", "Samples\BasicTests\BasicTests.csproj", "{7AEB6DD5-916E-4415-84E1-78EC6E5881CE}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PerfTests", "Samples\PerfTests\PerfTests.csproj", "{18EBB41F-815E-4BF5-B80F-C9E2FAB2993A}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DebugLogAnalyzer", "Samples\DebugLogAnalyzer\DebugLogAnalyzer.csproj", "{7915538F-B2B1-414C-95A3-1FC58E3286B9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dragNdrop", "Samples\dragNdrop\dragNdrop.csproj", "{6E361E34-D266-4BEB-97F4-E209E01C6246}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dockableWindows", "Samples\dockableWindows\dockableWindows.csproj", "{E19FD3DB-902A-4C99-8BF0-5ACAFFE35608}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BindingTest", "Samples\BindingTest\BindingTest.csproj", "{242094B3-A1F1-44F8-B78D-D819B595DDBA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PathPainter", "Samples\PathPainter\PathPainter.csproj", "{4066FE1E-3508-4361-ABAA-21601F632ED8}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CrowDebugger", "Samples\CrowDebugger\CrowDebugger.csproj", "{F86711E7-CACE-4050-82BF-0229CCEFDBA3}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C2980F9B-4798-4C05-99E2-E174810F7C7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C2980F9B-4798-4C05-99E2-E174810F7C7B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C2980F9B-4798-4C05-99E2-E174810F7C7B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C2980F9B-4798-4C05-99E2-E174810F7C7B}.Release|Any CPU.Build.0 = Release|Any CPU {F535A8AB-CD93-49AB-B1B0-FFF9AE51ED6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F535A8AB-CD93-49AB-B1B0-FFF9AE51ED6A}.Debug|Any CPU.Build.0 = Debug|Any CPU {F535A8AB-CD93-49AB-B1B0-FFF9AE51ED6A}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -55,42 +35,10 @@ Global {56329D48-D382-4850-93DE-59C453894E8A}.Debug|Any CPU.Build.0 = Debug|Any CPU {56329D48-D382-4850-93DE-59C453894E8A}.Release|Any CPU.ActiveCfg = Release|Any CPU {56329D48-D382-4850-93DE-59C453894E8A}.Release|Any CPU.Build.0 = Release|Any CPU - {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Release|Any CPU.Build.0 = Release|Any CPU - {7AEB6DD5-916E-4415-84E1-78EC6E5881CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7AEB6DD5-916E-4415-84E1-78EC6E5881CE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7AEB6DD5-916E-4415-84E1-78EC6E5881CE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7AEB6DD5-916E-4415-84E1-78EC6E5881CE}.Release|Any CPU.Build.0 = Release|Any CPU {18EBB41F-815E-4BF5-B80F-C9E2FAB2993A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {18EBB41F-815E-4BF5-B80F-C9E2FAB2993A}.Debug|Any CPU.Build.0 = Debug|Any CPU {18EBB41F-815E-4BF5-B80F-C9E2FAB2993A}.Release|Any CPU.ActiveCfg = Release|Any CPU {18EBB41F-815E-4BF5-B80F-C9E2FAB2993A}.Release|Any CPU.Build.0 = Release|Any CPU - {7915538F-B2B1-414C-95A3-1FC58E3286B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7915538F-B2B1-414C-95A3-1FC58E3286B9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7915538F-B2B1-414C-95A3-1FC58E3286B9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7915538F-B2B1-414C-95A3-1FC58E3286B9}.Release|Any CPU.Build.0 = Release|Any CPU - {6E361E34-D266-4BEB-97F4-E209E01C6246}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6E361E34-D266-4BEB-97F4-E209E01C6246}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6E361E34-D266-4BEB-97F4-E209E01C6246}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6E361E34-D266-4BEB-97F4-E209E01C6246}.Release|Any CPU.Build.0 = Release|Any CPU - {E19FD3DB-902A-4C99-8BF0-5ACAFFE35608}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E19FD3DB-902A-4C99-8BF0-5ACAFFE35608}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E19FD3DB-902A-4C99-8BF0-5ACAFFE35608}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E19FD3DB-902A-4C99-8BF0-5ACAFFE35608}.Release|Any CPU.Build.0 = Release|Any CPU - {242094B3-A1F1-44F8-B78D-D819B595DDBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {242094B3-A1F1-44F8-B78D-D819B595DDBA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {242094B3-A1F1-44F8-B78D-D819B595DDBA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {242094B3-A1F1-44F8-B78D-D819B595DDBA}.Release|Any CPU.Build.0 = Release|Any CPU - {4066FE1E-3508-4361-ABAA-21601F632ED8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4066FE1E-3508-4361-ABAA-21601F632ED8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4066FE1E-3508-4361-ABAA-21601F632ED8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4066FE1E-3508-4361-ABAA-21601F632ED8}.Release|Any CPU.Build.0 = Release|Any CPU - {F86711E7-CACE-4050-82BF-0229CCEFDBA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F86711E7-CACE-4050-82BF-0229CCEFDBA3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F86711E7-CACE-4050-82BF-0229CCEFDBA3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F86711E7-CACE-4050-82BF-0229CCEFDBA3}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -98,14 +46,7 @@ Global GlobalSection(NestedProjects) = preSolution {F535A8AB-CD93-49AB-B1B0-FFF9AE51ED6A} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} {56329D48-D382-4850-93DE-59C453894E8A} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {7AEB6DD5-916E-4415-84E1-78EC6E5881CE} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} {18EBB41F-815E-4BF5-B80F-C9E2FAB2993A} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {7915538F-B2B1-414C-95A3-1FC58E3286B9} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {6E361E34-D266-4BEB-97F4-E209E01C6246} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {E19FD3DB-902A-4C99-8BF0-5ACAFFE35608} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {242094B3-A1F1-44F8-B78D-D819B595DDBA} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {4066FE1E-3508-4361-ABAA-21601F632ED8} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {F86711E7-CACE-4050-82BF-0229CCEFDBA3} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {00D4E149-7131-49F4-BAAD-559AA961A78E} diff --git a/Samples/BindingTest/BindingTest.csproj b/Samples/BindingTest/BindingTest.csproj deleted file mode 100644 index ed05c677..00000000 --- a/Samples/BindingTest/BindingTest.csproj +++ /dev/null @@ -1,8 +0,0 @@ - - - - - ui.%(Filename)%(Extension) - - - \ No newline at end of file diff --git a/Samples/BindingTest/Program.cs b/Samples/BindingTest/Program.cs deleted file mode 100644 index 019e3ce6..00000000 --- a/Samples/BindingTest/Program.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2013-2020 Jean-Philippe Bruyère -// -// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) -using System; -using System.Runtime.CompilerServices; -using Crow; -using Samples; - -namespace BindingTest -{ - class Program : SampleBase - { - - static void Main () - { - using (Program app = new Program ()) { - app.Run (); - //DbgLogger.save (app); - } - } - - protected override void OnInitialized () - { - Load ("#ui.test.crow").DataSource = this; - TcVCInstance = new TestClassVC (); - } - - - void setDataSourceNull (object sender, MouseButtonEventArgs e) - { - TcVCInstance = null; - Console.WriteLine ("set data source null"); - } - void setDataSourceThis (object sender, MouseButtonEventArgs e) - { - TcVCInstance = new TestClassVC () { Prop1 = "instance 1 prop1 value", Prop2 = "instance 1 prop2 value" }; - Console.WriteLine ("set data source not null"); - } - - } -} diff --git a/Samples/BindingTest/ui/test.crow b/Samples/BindingTest/ui/test.crow deleted file mode 100644 index 305f6594..00000000 --- a/Samples/BindingTest/ui/test.crow +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - -