From 5fc76c5f6234fcdcf208607c434a6d5d8bbf79da Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Thu, 18 Aug 2016 17:26:50 +0200 Subject: [PATCH] =?utf8?q?tests=20reorganization=20=09modifi=C3=A9=C2=A0:?= =?utf8?q?=20=20=20=20=20=20=20=20=20Crow.csproj=20=09modifi=C3=A9=C2=A0:?= =?utf8?q?=20=20=20=20=20=20=20=20=20Tests/BasicTests.cs=20=09renomm=C3=A9?= =?utf8?q?=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interfaces/Expandable/0.?= =?utf8?q?crow=20->=20Tests/Interfaces/TemplatedContainer/0.crow=20=09reno?= =?utf8?q?mm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interfaces/Expan?= =?utf8?q?dable/6.crow=20->=20Tests/Interfaces/TemplatedContainer/6.crow?= =?utf8?q?=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interf?= =?utf8?q?aces/Expandable/7.crow=20->=20Tests/Interfaces/TemplatedContaine?= =?utf8?q?r/7.crow=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Test?= =?utf8?q?s/Interfaces/Divers/testDirViewer2.crow=20->=20Tests/Interfaces/?= =?utf8?q?TemplatedContainer/testDirViewer2.crow=20=09renomm=C3=A9=C2=A0:?= =?utf8?q?=20=20=20=20=20=20=20=20=20Tests/Interfaces/Divers/testGroupBox.?= =?utf8?q?crow=20->=20Tests/Interfaces/TemplatedContainer/testGroupBox.cro?= =?utf8?q?w=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Inter?= =?utf8?q?faces/Divers/testMsgBox.crow=20->=20Tests/Interfaces/TemplatedCo?= =?utf8?q?ntainer/testMsgBox.crow=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20?= =?utf8?q?=20=20=20=20Tests/Interfaces/Divers/testPopper.crow=20->=20Tests?= =?utf8?q?/Interfaces/TemplatedContainer/testPopper.crow=20=09renomm=C3=A9?= =?utf8?q?=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interfaces/Divers/testTa?= =?utf8?q?bView.crow=20->=20Tests/Interfaces/TemplatedContainer/testTabVie?= =?utf8?q?w.crow=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/?= =?utf8?q?Interfaces/Divers/testTreeView.crow=20->=20Tests/Interfaces/Temp?= =?utf8?q?latedContainer/testTreeView.crow=20=09renomm=C3=A9=C2=A0:=20=20?= =?utf8?q?=20=20=20=20=20=20=20Tests/Interfaces/Divers/testWindow.goml=20-?= =?utf8?q?>=20Tests/Interfaces/TemplatedContainer/testWindow.goml=20=09ren?= =?utf8?q?omm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interfaces/Dive?= =?utf8?q?rs/testWindow2.goml=20->=20Tests/Interfaces/TemplatedContainer/t?= =?utf8?q?estWindow2.goml=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20?= =?utf8?q?=20Tests/Interfaces/Divers/testWindow3.goml=20->=20Tests/Interfa?= =?utf8?q?ces/TemplatedContainer/testWindow3.goml=20=09renomm=C3=A9=C2=A0:?= =?utf8?q?=20=20=20=20=20=20=20=20=20Tests/Interfaces/Divers/test=5FListbo?= =?utf8?q?x.crow=20->=20Tests/Interfaces/TemplatedContainer/test=5FListbox?= =?utf8?q?.crow=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/I?= =?utf8?q?nterfaces/Divers/testButton.crow=20->=20Tests/Interfaces/Templat?= =?utf8?q?edControl/testButton.crow=20=09renomm=C3=A9=C2=A0:=20=20=20=20?= =?utf8?q?=20=20=20=20=20Tests/Interfaces/Divers/testCheckbox.crow=20->=20?= =?utf8?q?Tests/Interfaces/TemplatedControl/testCheckbox.crow=20=09renomm?= =?utf8?q?=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interfaces/Divers/?= =?utf8?q?testCombobox.crow=20->=20Tests/Interfaces/TemplatedControl/testC?= =?utf8?q?ombobox.crow=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20?= =?utf8?q?Tests/Interfaces/Divers/testItemTemplateTag.crow=20->=20Tests/In?= =?utf8?q?terfaces/TemplatedControl/testItemTemplateTag.crow=20=09renomm?= =?utf8?q?=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interfaces/Divers/?= =?utf8?q?testRadioButton.crow=20->=20Tests/Interfaces/TemplatedControl/te?= =?utf8?q?stRadioButton.crow=20=09renomm=C3=A9=C2=A0:=20=20=20=20=20=20=20?= =?utf8?q?=20=20Tests/Interfaces/Divers/testScrollbar.goml=20->=20Tests/In?= =?utf8?q?terfaces/TemplatedControl/testScrollbar.goml=20=09renomm=C3=A9?= =?utf8?q?=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Interfaces/Divers/testSp?= =?utf8?q?inner.goml=20->=20Tests/Interfaces/TemplatedControl/testSpinner.?= =?utf8?q?goml=20=09modifi=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20Tests/Te?= =?utf8?q?sts.csproj=20=09modifi=C3=A9=C2=A0:=20=20=20=20=20=20=20=20=20sr?= =?utf8?q?c/GraphicObjects/Expandable.cs=20=09modifi=C3=A9=C2=A0:=20=20=20?= =?utf8?q?=20=20=20=20=20=20src/GraphicObjects/Group.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit TemplatedGroup class nouveau fichier : src/GraphicObjects/TemplatedGroup.cs nouveau fichier : Tests/Interfaces/TemplatedGroup/0.crow modifié : src/IMLReader.cs --- Crow.csproj | 1 + Tests/BasicTests.cs | 4 +- .../{Expandable => TemplatedContainer}/0.crow | 0 .../{Expandable => TemplatedContainer}/6.crow | 0 .../{Expandable => TemplatedContainer}/7.crow | 0 .../testDirViewer2.crow | 0 .../testGroupBox.crow | 0 .../testMsgBox.crow | 0 .../testPopper.crow | 0 .../testTabView.crow | 1 - .../testTreeView.crow | 4 +- .../testWindow.goml | 6 +- .../testWindow2.goml | 0 .../testWindow3.goml | 2 +- .../test_Listbox.crow | 6 +- .../testButton.crow | 0 .../testCheckbox.crow | 1 - .../testCombobox.crow | 0 .../testItemTemplateTag.crow | 6 +- .../testRadioButton.crow | 1 - .../testScrollbar.goml | 0 .../testSpinner.goml | 0 Tests/Interfaces/TemplatedGroup/0.crow | 1 + Tests/Tests.csproj | 85 ++++++----- src/GraphicObjects/Expandable.cs | 1 + src/GraphicObjects/Group.cs | 2 - src/GraphicObjects/TemplatedGroup.cs | 144 ++++++++++++++++++ src/IMLReader.cs | 24 ++- 28 files changed, 224 insertions(+), 65 deletions(-) rename Tests/Interfaces/{Expandable => TemplatedContainer}/0.crow (100%) rename Tests/Interfaces/{Expandable => TemplatedContainer}/6.crow (100%) rename Tests/Interfaces/{Expandable => TemplatedContainer}/7.crow (100%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testDirViewer2.crow (100%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testGroupBox.crow (100%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testMsgBox.crow (100%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testPopper.crow (100%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testTabView.crow (99%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testTreeView.crow (97%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testWindow.goml (97%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testWindow2.goml (100%) rename Tests/Interfaces/{Divers => TemplatedContainer}/testWindow3.goml (93%) rename Tests/Interfaces/{Divers => TemplatedContainer}/test_Listbox.crow (97%) rename Tests/Interfaces/{Divers => TemplatedControl}/testButton.crow (100%) rename Tests/Interfaces/{Divers => TemplatedControl}/testCheckbox.crow (99%) rename Tests/Interfaces/{Divers => TemplatedControl}/testCombobox.crow (100%) rename Tests/Interfaces/{Divers => TemplatedControl}/testItemTemplateTag.crow (97%) rename Tests/Interfaces/{Divers => TemplatedControl}/testRadioButton.crow (99%) rename Tests/Interfaces/{Divers => TemplatedControl}/testScrollbar.goml (100%) rename Tests/Interfaces/{Divers => TemplatedControl}/testSpinner.goml (100%) create mode 100755 Tests/Interfaces/TemplatedGroup/0.crow create mode 100644 src/GraphicObjects/TemplatedGroup.cs diff --git a/Crow.csproj b/Crow.csproj index 0bebc5f2..570a8941 100644 --- a/Crow.csproj +++ b/Crow.csproj @@ -140,6 +140,7 @@ + diff --git a/Tests/BasicTests.cs b/Tests/BasicTests.cs index 9717c230..b2299f42 100644 --- a/Tests/BasicTests.cs +++ b/Tests/BasicTests.cs @@ -95,14 +95,16 @@ namespace Tests this.KeyDown += KeyboardKeyDown1; testFiles = new string [] { @"Interfaces/Divers/welcome.crow" }; + testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedGroup", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Container", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Group", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Stack", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Wrapper", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Splitter", "*.crow")).ToArray (); - testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Expandable", "*.crow")).ToArray (); testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Divers", "*.crow")).ToArray (); + testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedControl", "*.crow")).ToArray (); + testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/TemplatedContainer", "*.crow")).ToArray (); this.Title = testFiles [idx] + ". Press to switch example."; CrowInterface.LoadInterface(testFiles[idx]).DataSource = this; diff --git a/Tests/Interfaces/Expandable/0.crow b/Tests/Interfaces/TemplatedContainer/0.crow similarity index 100% rename from Tests/Interfaces/Expandable/0.crow rename to Tests/Interfaces/TemplatedContainer/0.crow diff --git a/Tests/Interfaces/Expandable/6.crow b/Tests/Interfaces/TemplatedContainer/6.crow similarity index 100% rename from Tests/Interfaces/Expandable/6.crow rename to Tests/Interfaces/TemplatedContainer/6.crow diff --git a/Tests/Interfaces/Expandable/7.crow b/Tests/Interfaces/TemplatedContainer/7.crow similarity index 100% rename from Tests/Interfaces/Expandable/7.crow rename to Tests/Interfaces/TemplatedContainer/7.crow diff --git a/Tests/Interfaces/Divers/testDirViewer2.crow b/Tests/Interfaces/TemplatedContainer/testDirViewer2.crow similarity index 100% rename from Tests/Interfaces/Divers/testDirViewer2.crow rename to Tests/Interfaces/TemplatedContainer/testDirViewer2.crow diff --git a/Tests/Interfaces/Divers/testGroupBox.crow b/Tests/Interfaces/TemplatedContainer/testGroupBox.crow similarity index 100% rename from Tests/Interfaces/Divers/testGroupBox.crow rename to Tests/Interfaces/TemplatedContainer/testGroupBox.crow diff --git a/Tests/Interfaces/Divers/testMsgBox.crow b/Tests/Interfaces/TemplatedContainer/testMsgBox.crow similarity index 100% rename from Tests/Interfaces/Divers/testMsgBox.crow rename to Tests/Interfaces/TemplatedContainer/testMsgBox.crow diff --git a/Tests/Interfaces/Divers/testPopper.crow b/Tests/Interfaces/TemplatedContainer/testPopper.crow similarity index 100% rename from Tests/Interfaces/Divers/testPopper.crow rename to Tests/Interfaces/TemplatedContainer/testPopper.crow diff --git a/Tests/Interfaces/Divers/testTabView.crow b/Tests/Interfaces/TemplatedContainer/testTabView.crow similarity index 99% rename from Tests/Interfaces/Divers/testTabView.crow rename to Tests/Interfaces/TemplatedContainer/testTabView.crow index 27c221f4..ca558d14 100644 --- a/Tests/Interfaces/Divers/testTabView.crow +++ b/Tests/Interfaces/TemplatedContainer/testTabView.crow @@ -32,4 +32,3 @@ Caption="Add new tab" Width="Fit" Height="30" MouseClick="onAddTabButClick"/> - diff --git a/Tests/Interfaces/Divers/testTreeView.crow b/Tests/Interfaces/TemplatedContainer/testTreeView.crow similarity index 97% rename from Tests/Interfaces/Divers/testTreeView.crow rename to Tests/Interfaces/TemplatedContainer/testTreeView.crow index 3ec7ce6a..3a44bf34 100755 --- a/Tests/Interfaces/Divers/testTreeView.crow +++ b/Tests/Interfaces/TemplatedContainer/testTreeView.crow @@ -9,7 +9,7 @@ MouseLeave="{Background=Transparent}"/> - +