-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPreferences.xaml
More file actions
105 lines (99 loc) · 8.95 KB
/
Preferences.xaml
File metadata and controls
105 lines (99 loc) · 8.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ni="http://schemas.ni.com/controls/2009/xaml/presentation" xmlns:preview="clr-namespace:scripthea.preview" x:Name="wndPreferences" x:Class="scripthea.PreferencesWindow"
Title=" Scripthea Configuration" Height="491.087" Width="500" WindowStartupLocation="CenterScreen" ShowInTaskbar="False" Closing="wndSDOptions_Closing" FontSize="13" Icon="Properties/TripleBarBlack.png" MinWidth="400" MinHeight="500">
<Grid Margin="4">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="47.429"/>
</Grid.RowDefinitions>
<TabControl x:Name="tabControl" Margin="3,0" Grid.Column="1" BorderBrush="{x:Null}" >
<TabItem x:Name="tiGeneral" Header=" General " Height="28" Background="#FFECECEC" HorizontalAlignment="Left" Margin="-2,0,-3,0" Style="{StaticResource RoundedTopTabItemStyle}" Width="100">
<StackPanel Margin="7,7,0,0">
<GroupBox Height="60" Margin="0,3" Header="Startup image depot folder (if empty - the last working one)">
<ComboBox x:Name="cbStartupImageDepotFolder" Background="{x:Null}" Margin="5" IsEditable="True"/>
</GroupBox>
<CheckBox x:Name="chkShowCueMeta" IsChecked="True" Content="Show cue's header and footer (if any)" Margin="10,5,0,0"/>
<GroupBox Height="62" Margin="0,5,0,0" Header="Updates">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,4,0,0">
<CheckBox x:Name="chkUpdates" Content="Biweekly check for updates" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
<Button x:Name="btnCheck4Update" Content=" Check Now " HorizontalAlignment="Left" VerticalAlignment="Center" Background="#FFFAF5E5" Margin="10,0,0,0" Height="28" Width="80" Style="{StaticResource RoundedButtonStyle}"/>
<Label x:Name="lbNewVer" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="6,0,0,0" FontFamily="Segoe UI Semibold"/>
</StackPanel>
</GroupBox>
<CheckBox x:Name="chkClearEntriesImageDepot" Content="Remove image depot entries of missing image flies when depot opens." HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,8,0,0" IsChecked="True" />
<GroupBox Height="95" Margin="0,10,0.333,3" Header="Cues folder (if empty - the factory one)" Visibility="Collapsed">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="38"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<TextBox x:Name="tbCuesFolder" Background="{x:Null}" Margin="5" Height="26" VerticalAlignment="Top" />
<Button x:Name="btnBrowse" Content="Browse " HorizontalAlignment="Right" VerticalAlignment="Center" Background="#FFF5FAE5" Margin="0,0,5,0" Height="26" Width="111" Grid.Row="1" FontFamily="Segoe UI Semibold" />
<CheckBox x:Name="chkAsDefault" Content="Use it at start-up" Margin="10,0,0,0" VerticalAlignment="Center" Grid.Row="1" HorizontalAlignment="Left" IsChecked="True"/>
</Grid>
</GroupBox>
<GroupBox Header="Image Depot Master" Height="80" Margin="0,10,0,0">
<StackPanel>
<CheckBox x:Name="chkValidationAsk" Content="Ask before removing images in image depot synchronization." HorizontalAlignment="Left" Margin="7,8,0,0" VerticalAlignment="Top"/>
<CheckBox x:Name="chkViewerRemoveImages" Content="Remove image files along with img.depot entries. (IDM 'n Viewer)" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="7,8,0,0" IsChecked="True"/>
</StackPanel>
</GroupBox>
</StackPanel>
</TabItem>
<TabItem x:Name="tiLLMserver" Header=" LLM server " Height="28" Background="#FFECECEC" HorizontalAlignment="Left" Margin="6,-2,-10,0" Width="100" Style="{StaticResource RoundedTopTabItemStyle}">
<StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="LLM server" Margin="0" FontFamily="Segoe UI Semibold"></Label>
<RadioButton x:Name="rbLMStudio" Content="LM Studio " HorizontalAlignment="Left" Margin="7,7,0,0" VerticalAlignment="Top" FontFamily="Segoe UI Semibold" IsChecked="True" />
<RadioButton x:Name="rbOllama" Content="Ollama" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="7,7,0,0" FontFamily="Segoe UI Semibold" IsEnabled="False" Foreground="Gray"/>
</StackPanel>
<preview:LMstudioUC x:Name="LMstudio"/>
</StackPanel>
</TabItem>
<TabItem x:Name="tiIDutilities" Header=" Img.Depot Utilities " Height="28" Background="#FFECECEC" Visibility="Collapsed">
<StackPanel Margin="0,7,0,3" />
</TabItem>
<TabItem x:Name="tiPython" Header=" Python setup " Height="28" HorizontalAlignment="Left" Background="#FFF1F0F0" Margin="12,0,-18,0" Style="{StaticResource RoundedTopTabItemStyle}" Width="120" BorderBrush="#FF6A6A80">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="210"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,0,0,0.333" Grid.RowSpan="2">
<StackPanel Margin="0,7,0,3" Orientation="Horizontal" >
<CheckBox x:Name="chkPythonEnabled" Content="Enable Python macros" FontFamily="Segoe UI Semibold" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,5,0,5" Checked="chkPythonEnabled_Checked"/>
<Label Margin="50,0,0,3" Content="Location type" VerticalAlignment="Center"/>
<RadioButton x:Name="rbIntegrated" VerticalAlignment="Center" Margin="0" Content="Integrated" IsChecked="True"/>
<RadioButton x:Name="rbCustom" VerticalAlignment="Center" Margin="5,0,0,0" Content="Custom"/>
</StackPanel>
<GroupBox x:Name="gbPyLoc" BorderBrush="SeaGreen" Header="Custom location of the embedded python (e.g. python311.dll)">
<StackPanel Margin="0,10,0,5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="75"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="tbPyCustomLocation" Margin="0" Height="26" Background="#FFFBFBF4" />
<Button x:Name="btnPyCustomLocation" Grid.Column="1" Content=" Browse " Height="30" Background="#FFF6FAF1" Style="{StaticResource RoundedButtonStyle}" Click="btnPyBaseLocation_Click" Margin="10,0,0,0" FontFamily="Segoe UI Semibold" />
</Grid>
</StackPanel>
</GroupBox>
<Button x:Name="btnValidatePython" Content=" Validate python location " HorizontalAlignment="Right" Margin="0,10,0,0" Height="30" Background="White" Style="{StaticResource RoundedButtonStyle}" Click="btnValidatePython_Click"/>
<TextBox x:Name="tbValidLog" Grid.Row="1" Margin="0,3,-1,0" BorderBrush="{x:Null}" VerticalScrollBarVisibility="Visible" TextWrapping="Wrap" Height="200"/>
</StackPanel>
</Grid>
</TabItem>
</TabControl>
<Grid Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="109"/>
<ColumnDefinition Width="110"/>
</Grid.ColumnDefinitions>
<Button x:Name="btnOK" Content="OK" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="90" Click="OKButton_Click" Height="25" FontWeight="Bold" IsDefault="True" Background="#FFF7F7F7" BorderBrush="#FF0468B2" Style="{StaticResource RoundedButtonStyle}" Grid.Column="1"/>
<Button x:Name="btnCancel" Content="Cancel" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="95" Height="25" RenderTransformOrigin="0.502,0.5" Click="btnCancel_Click" IsCancel="True" Background="#FFF7F7F7" Style="{StaticResource RoundedButtonStyle}" Grid.Column="2"/>
</Grid>
</Grid>
</Window>