diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml b/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml new file mode 100644 index 0000000..1a0a0a5 --- /dev/null +++ b/UVtools.WPF/Controls/Tools/ToolScriptingControl.axaml @@ -0,0 +1,67 @@ +<UserControl xmlns="https://github.com/avaloniaui" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" + x:Class="UVtools.WPF.Controls.Tools.ToolScriptingControl"> + <StackPanel Orientation="Vertical"> + <Grid RowDefinitions="Auto" + ColumnDefinitions="Auto,10,500,5,Auto"> + + <TextBlock Grid.Row="0" Grid.Column="0" + Text="Script file:" + VerticalAlignment="Center"/> + + <TextBox Grid.Row="0" Grid.Column="2" + IsReadOnly="True" + Text="{Binding Operation.FilePath}" /> + + <StackPanel Grid.Row="0" Grid.Column="4" + Orientation="Horizontal" Spacing="1"> + <Button + ToolTip.Tip="Loads an script file" + VerticalAlignment="Center" + Command="{Binding LoadScript}"> + <Image Source="/Assets/Icons/file-import-16x16.png" /> + </Button> + + <Button + IsEnabled="{Binding Operation.HaveFile}" + ToolTip.Tip="Reloads the script" + VerticalAlignment="Center" + Command="{Binding ReloadScript}"> + <Image Source="/Assets/Icons/refresh-16x16.png" /> + </Button> + + <Button + IsEnabled="{Binding Operation.HaveFile}" + ToolTip.Tip="Open the script folder" + VerticalAlignment="Center" + Command="{Binding OpenScriptFolder}"> + <Image Source="/Assets/Icons/open-16x16.png" /> + </Button> + + <Button + IsEnabled="{Binding Operation.HaveFile}" + ToolTip.Tip="Open the script file" + VerticalAlignment="Center" + Command="{Binding OpenScriptFile}"> + <Image Source="/Assets/Icons/file-code-16x16.png" /> + </Button> + </StackPanel> + + </Grid> + + <StackPanel + Name="ScriptConfigurationPanel" + IsVisible="{Binding Operation.CanExecute}" + Margin="0,10" Spacing="5"/> + + <Grid + Name="ScriptVariablesGrid" + IsVisible="{Binding Operation.CanExecute}" + ColumnDefinitions="Auto,10,Auto,5,Auto"> + + </Grid> + </StackPanel> +</UserControl> |