Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/Windows/ToolWindow.axaml')
-rw-r--r--UVtools.WPF/Windows/ToolWindow.axaml100
1 files changed, 100 insertions, 0 deletions
diff --git a/UVtools.WPF/Windows/ToolWindow.axaml b/UVtools.WPF/Windows/ToolWindow.axaml
index 0fba631..4c37dda 100644
--- a/UVtools.WPF/Windows/ToolWindow.axaml
+++ b/UVtools.WPF/Windows/ToolWindow.axaml
@@ -202,6 +202,106 @@
</StackPanel>
</Border>
+
+ <!-- Profiles -->
+ <Border
+ Background="WhiteSmoke"
+ Margin="5"
+ BorderBrush="LightBlue"
+ BorderThickness="4"
+ IsVisible="{Binding IsProfilesVisible}"
+ >
+
+ <StackPanel Orientation="Vertical">
+ <Grid
+ ColumnDefinitions="Auto,*" Background="LightBlue">
+ <TextBlock
+ Padding="10" FontWeight="Bold"
+ VerticalAlignment="Center"
+ Text="{Binding Profiles.Count, StringFormat=Profiles: \{0\}}" />
+
+ <StackPanel Orientation="Horizontal"
+ Grid.Column="1"
+ HorizontalAlignment="Right"
+ Spacing="2">
+ <Button
+ VerticalAlignment="Center"
+ ToolTip.Tip="Clear all profiles"
+ IsEnabled="{Binding Profiles.Count}"
+ Command="{Binding ClearProfiles}"
+ >
+ <Image Width="16" Height="16" Source="/Assets/Icons/delete-16x16.png" />
+ </Button>
+
+
+ </StackPanel>
+
+ </Grid>
+
+ <Grid
+ RowDefinitions="Auto,Auto"
+ ColumnDefinitions="*,5,Auto"
+ Margin="15"
+ >
+
+ <ComboBox
+ Margin="0,0,0,10"
+ IsEnabled="{Binding Profiles.Count}"
+ IsVisible="{Binding Profiles.Count}"
+ SelectedItem="{Binding SelectedProfileItem}"
+ Items="{Binding Profiles}" />
+
+ <Button
+ Grid.Row="0"
+ Grid.Column="2"
+ Margin="0,0,0,10"
+ VerticalAlignment="Center"
+ ToolTip.Tip="Remove the selected profile"
+ IsEnabled="{Binding SelectedProfileItem, Converter={x:Static ObjectConverters.IsNotNull}}"
+ IsVisible="{Binding Profiles.Count}"
+ Command="{Binding RemoveSelectedProfile}"
+ >
+ <Image Source="/Assets/Icons/trash-16x16.png" />
+ </Button>
+
+ <TextBox
+ Grid.Row="1"
+ Grid.Column="0"
+ IsEnabled="{Binding ButtonOkEnabled}"
+ Text="{Binding ProfileText}"
+ Watermark="Profile name or leave empty for auto name"
+ />
+
+ <Button
+ Grid.Row="1"
+ Grid.Column="2"
+ VerticalAlignment="Center"
+ ToolTip.Tip="Add a new profile with the current set values"
+ IsEnabled="{Binding ButtonOkEnabled}"
+ Command="{Binding AddProfile}"
+ >
+ <Image Source="/Assets/Icons/plus-16x16.png" />
+ </Button>
+
+ </Grid>
+
+
+ <!--
+ <StackPanel Spacing="20" Margin="15,0,15,15" Orientation="Horizontal">
+ <CheckBox
+ Content="Clear ROI after perform the operation"
+ IsChecked="{Binding ClearROIAfterOperation}"
+ />
+ <Button
+ Padding="5"
+ Content="Clear ROI"
+ Command="{Binding ClearROI}"/>
+ </StackPanel>
+ !-->
+
+ </StackPanel>
+
+ </Border>
<!-- Content -->
<Border