From 0be02be5f71b8c31ff01f918dce5133a0a51cd91 Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Mon, 9 Jan 2023 15:38:10 +0100 Subject: [PATCH] - modificato stile slider - modificato TFSEditor --- .../DispositionPanel/DispositionPanelV.xaml | 1 - Icarus/DispositionPanel/DispositionPanelVM.vb | 20 - Icarus/Icarus.vbproj | 5 + Icarus/Project/ProjectV.xaml | 31 +- .../Resources/SliderManager/FromSelected.png | Bin 0 -> 284 bytes .../Resources/SliderManager/OnlySelected.png | Bin 0 -> 215 bytes .../Resources/SliderManager/UntilSelected.png | Bin 0 -> 272 bytes Icarus/RibPanel/RibPanelV.xaml | 1 - Icarus/RightPanel/RightPanelV.xaml | 6 +- .../ShellNumberPanel/ShellNumberPanelV.xaml | 1 - .../ShowValueSlider/ShowValueSlider.xaml.vb | 21 + .../LayerAdvancementSliderV.xaml | 6 +- Icarus/SliderManager/LayerIndexSliderV.xaml | 63 +- Icarus/SliderManager/SliderManagerVM.vb | 85 ++- Icarus/StartMachPanel/StartMachPanelV.xaml | 1 - Icarus/TSFEditor/TFSEditorV.xaml | 13 +- Icarus/TSFEditor/TFSEditorVM.vb | 4 +- Icarus/Utility/Dictionary.xaml | 650 ++++++++++++++++-- Icarus/Utility/Dictionary.xaml.vb | 24 +- 19 files changed, 817 insertions(+), 115 deletions(-) create mode 100644 Icarus/Resources/SliderManager/FromSelected.png create mode 100644 Icarus/Resources/SliderManager/OnlySelected.png create mode 100644 Icarus/Resources/SliderManager/UntilSelected.png diff --git a/Icarus/DispositionPanel/DispositionPanelV.xaml b/Icarus/DispositionPanel/DispositionPanelV.xaml index 3574294..6f85827 100644 --- a/Icarus/DispositionPanel/DispositionPanelV.xaml +++ b/Icarus/DispositionPanel/DispositionPanelV.xaml @@ -7,7 +7,6 @@ Margin="5,0,0,0"> - diff --git a/Icarus/DispositionPanel/DispositionPanelVM.vb b/Icarus/DispositionPanel/DispositionPanelVM.vb index 0d006a1..5fdb1b3 100644 --- a/Icarus/DispositionPanel/DispositionPanelVM.vb +++ b/Icarus/DispositionPanel/DispositionPanelVM.vb @@ -307,26 +307,6 @@ Public Class DispositionPanelVM End Class -Public Class CenterToolTipConverter - Implements IMultiValueConverter - - Public Function Convert(ByVal values As Object(), ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IMultiValueConverter.Convert - For Each value In values - If TypeOf (value) IsNot Double Then - Return Double.NaN - End If - Next - Dim placementTargetHeight As Double = CDbl(values(0)) - Dim toolTipHeight As Double = CDbl(values(1)) - Return (placementTargetHeight / 2.0) - (toolTipHeight / 2.0) - End Function - - Public Function ConvertBack(ByVal value As Object, ByVal targetTypes As Type(), ByVal parameter As Object, ByVal culture As CultureInfo) As Object() Implements IMultiValueConverter.ConvertBack - Throw New NotSupportedException() - End Function - -End Class - Public Class FromBooleanToVisibility Implements IValueConverter diff --git a/Icarus/Icarus.vbproj b/Icarus/Icarus.vbproj index 339bb53..a726866 100644 --- a/Icarus/Icarus.vbproj +++ b/Icarus/Icarus.vbproj @@ -681,6 +681,11 @@ + + + + + IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\Icarus\IcarusR32.exe diff --git a/Icarus/Project/ProjectV.xaml b/Icarus/Project/ProjectV.xaml index ecbe545..f8a3797 100644 --- a/Icarus/Project/ProjectV.xaml +++ b/Icarus/Project/ProjectV.xaml @@ -7,8 +7,7 @@ - + @@ -18,32 +17,46 @@ + + + + + - - - - + --> @@ -72,9 +85,9 @@ - + - + 2BR0px`-A z7srr@*0<9SavpLJaE(7wyn#hJAV(pAQS%Vno`?<(vjj~iDUPrN&aw@0HXfU-eOe;T z4fu<0*8h`q+Y~cU^ literal 0 HcmV?d00001 diff --git a/Icarus/Resources/SliderManager/OnlySelected.png b/Icarus/Resources/SliderManager/OnlySelected.png new file mode 100644 index 0000000000000000000000000000000000000000..4ab1b9281eb0da078f17fd46252416c1f0138714 GIT binary patch literal 215 zcmeAS@N?(olHy`uVBq!ia0vp^svyk41|*NpQ(y*CoCO|{#S9GGLLkg|>2BR0pkSw` zi(^Pc>)UG^c^ec&S{`1u=vZvgvNZX|?uKLwj>S7T*_b*PT1oGGwC{;%Nj--^n}qU} zo+8)2Uk3tp+&9V`EfVoI%F4QC-LTgAIO~Ho-QT7gO#gX1R&BNQ)+sM_msGmTG6i~m zc$;k570O>F@baYWrS~CQwf4Obs`(w!mt@)XRAbuWh`vP(6%5DLNUB);6b=JAiow&> K&t;ucLK6U1;ZO7c literal 0 HcmV?d00001 diff --git a/Icarus/Resources/SliderManager/UntilSelected.png b/Icarus/Resources/SliderManager/UntilSelected.png new file mode 100644 index 0000000000000000000000000000000000000000..d43c45f15ae1ebcb280105f2c5d857678be1c091 GIT binary patch literal 272 zcmeAS@N?(olHy`uVBq!ia0vp^svyk41|*NpQ(y*CoCO|{#S9GGLLkg|>2BR0px_}- z7srr@*0)m+avpLJaE(90wB`Vxi1ddCwyrlC#JM?}RBtv!G^%#+u5sC;vHP%w&z%GH z6TH<@pv+9CT~nJjo4QZ)(}{b~dSQW#B9Hd(#lSZo$k?M!ROtV!mymzH8Eyv{T)p z_l0h-e|z_M_Y;Q#;t literal 0 HcmV?d00001 diff --git a/Icarus/RibPanel/RibPanelV.xaml b/Icarus/RibPanel/RibPanelV.xaml index f93269e..484fbbd 100644 --- a/Icarus/RibPanel/RibPanelV.xaml +++ b/Icarus/RibPanel/RibPanelV.xaml @@ -5,7 +5,6 @@ xmlns:PrintApp="clr-namespace:Icarus" Margin="5"> - diff --git a/Icarus/RightPanel/RightPanelV.xaml b/Icarus/RightPanel/RightPanelV.xaml index fa8d706..b453b10 100644 --- a/Icarus/RightPanel/RightPanelV.xaml +++ b/Icarus/RightPanel/RightPanelV.xaml @@ -3,10 +3,12 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5" xmlns:PrintApp="clr-namespace:Icarus" - Margin="5"> + Margin="5,0,5,0"> + BorderThickness="0" + Margin="0" + Padding="0"> - + - + - - - - - - @@ -1808,7 +1797,7 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2335,7 +2504,7 @@ - + @@ -2357,8 +2526,6 @@ - - --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +