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/TerminalWindow.axaml')
-rw-r--r--UVtools.WPF/Windows/TerminalWindow.axaml78
1 files changed, 78 insertions, 0 deletions
diff --git a/UVtools.WPF/Windows/TerminalWindow.axaml b/UVtools.WPF/Windows/TerminalWindow.axaml
new file mode 100644
index 0000000..fe88998
--- /dev/null
+++ b/UVtools.WPF/Windows/TerminalWindow.axaml
@@ -0,0 +1,78 @@
+<uc:WindowEx 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"
+ xmlns:uc="clr-namespace:UVtools.WPF.Controls"
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="500"
+ MinWidth="500"
+ MinHeight="300"
+ Width="800"
+ Height="500"
+ Padding="10"
+ WindowStartupLocation="CenterOwner"
+ DragDrop.AllowDrop="True"
+ Icon="/Assets/Icons/UVtools.ico"
+ x:Class="UVtools.WPF.Windows.TerminalWindow"
+ Title="UVtools interactive terminal">
+ <Grid RowDefinitions="4*,5,*,5,Auto">
+ <TextBox Grid.Row="0"
+ Name="TerminalTextBox"
+ AcceptsReturn="True"
+ IsReadOnly="True"
+ Watermark="Terminal"
+ UseFloatingWatermark="True"
+ Text="{Binding TerminalText}"/>
+
+ <GridSplitter Grid.Row="1"
+ ResizeDirection="Rows"
+ ResizeBehavior="PreviousAndNext"/>
+
+ <TextBox Grid.Row="2"
+ AcceptsReturn="{Binding MultiLine}"
+ Watermark="> Type in the command or text to send
+&#x0a;Alt + enter: Shortcut to send the command"
+ Text="{Binding CommandText}"/>
+
+ <WrapPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right">
+ <!--
+ <ToggleSwitch VerticalAlignment="Center"
+ IsChecked="{Binding MultiLine}"
+ OnContent="Multi line"
+ OffContent="Single line"/>
+-->
+ <ToggleButton Margin="0,0,0,0"
+ VerticalAlignment="Center"
+ IsChecked="{Binding Verbose}"
+ ToolTip.Tip="Sent command appears on the terminal text"
+ Content="Verbose"/>
+
+ <ToggleButton Margin="2,0,0,0"
+ VerticalAlignment="Center"
+ IsChecked="{Binding ClearCommandAfterSend}"
+ ToolTip.Tip="Clears the sent command on the input box"
+ Content="Clear"/>
+
+ <ToggleButton Margin="2,0,0,0"
+ VerticalAlignment="Center"
+ IsChecked="{Binding AutoScroll}"
+ Content="Auto scroll"/>
+
+
+ <Button Margin="15,0,0,0"
+ Content="Clear"
+ VerticalAlignment="Center"
+ Command="{Binding Clear}"
+ ToolTip.Tip="Clears the terminal text (cls)
+&#x0a;Alt + delete"
+ HotKey="Alt+Delete"/>
+ <Button Margin="5,0,0,0"
+ Content="Send"
+ Padding="40,6"
+ VerticalAlignment="Center"
+ Command="{Binding SendCommand}"
+ IsDefault="True"
+ HotKey="Alt+Enter"/>
+ </WrapPanel>
+
+ </Grid>
+</uc:WindowEx>