From 456e7c847a4aa6fed44cc2d970ac9400ea54d0c4 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Fri, 10 Feb 2017 15:54:50 +0100 Subject: [PATCH] TextBox, Label, simpler SVG icon for file sys viewers (improve speed a lot), divers debug and code clean --- Crow.csproj | 8 ++ Default.style | 1 + Icons/file.svg | 10 +++ Icons/folder.svg | 15 ++++ Icons/level-up.svg | 6 ++ Templates/Button.template | 2 +- Templates/DirectoryView.template | 4 +- Templates/FileDialog.template | 116 +++++++++----------------- Templates/FileDialog2.template | 120 +++++++++++++++++++++++++++ src/Command.cs | 16 ++-- src/GraphicObjects/FileDialog.cs | 62 +++++++++----- src/GraphicObjects/GraphicObject.cs | 22 +++-- src/GraphicObjects/Group.cs | 2 +- src/GraphicObjects/Label.cs | 18 ++-- src/GraphicObjects/MenuItem.cs | 12 ++- src/GraphicObjects/TemplatedGroup.cs | 1 - src/GraphicObjects/TextBox.cs | 7 -- 17 files changed, 288 insertions(+), 134 deletions(-) create mode 100644 Icons/file.svg create mode 100644 Icons/folder.svg create mode 100644 Icons/level-up.svg create mode 100644 Templates/FileDialog2.template diff --git a/Crow.csproj b/Crow.csproj index 98790cae..f5d90aa4 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -24,6 +24,8 @@ $(SolutionDir)build\$(Configuration) $(SolutionDir)build\obj\$(Configuration) crow.key + 8.0.30703 + 2.0 true @@ -299,6 +301,12 @@ + + Crow.FileDialog2.template + + + + diff --git a/Default.style b/Default.style index 0f4d81e1..a09c363d 100644 --- a/Default.style +++ b/Default.style @@ -87,6 +87,7 @@ ToolWindow { Height = 150; } FileDialog { + Template = #Crow.FileDialog.template; Focusable = true; MinimumSize=50,50; Width = 500; diff --git a/Icons/file.svg b/Icons/file.svg new file mode 100644 index 00000000..b156b0ab --- /dev/null +++ b/Icons/file.svg @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/Icons/folder.svg b/Icons/folder.svg new file mode 100644 index 00000000..84caa4fb --- /dev/null +++ b/Icons/folder.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/Icons/level-up.svg b/Icons/level-up.svg new file mode 100644 index 00000000..86d7c784 --- /dev/null +++ b/Icons/level-up.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Templates/Button.template b/Templates/Button.template index b1926443..92ddb39c 100755 --- a/Templates/Button.template +++ b/Templates/Button.template @@ -1,5 +1,5 @@ - + Path="#Crow.Icons.file.svg"/> diff --git a/Templates/FileDialog.template b/Templates/FileDialog.template index 7972b583..8305dfc9 100644 --- a/Templates/FileDialog.template +++ b/Templates/FileDialog.template @@ -9,7 +9,7 @@