forked from RobG66/Gamelist-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsDialog.xaml
More file actions
146 lines (123 loc) · 10.5 KB
/
SettingsDialog.xaml
File metadata and controls
146 lines (123 loc) · 10.5 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<Window x:Class="GamelistManager.SettingsDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Settings" Height="370" Width="530" ResizeMode="NoResize" Loaded="Window_Loaded" SizeToContent="WidthAndHeight">
<Grid Width="Auto" Height="Auto">
<Grid.Background>
<ImageBrush
ImageSource="pack://application:,,,/Resources/backgrounds/gears.png"
Opacity=".1"
Stretch="UniformToFill"
/>
</Grid.Background>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel HorizontalAlignment="Left" Margin="0,0,0,5">
<TextBlock Text="Batocera Hostname:" Margin="5"/>
<TextBox x:Name="textBox_HostName" Width="100" MaxLength="50" Margin="0,0,0,5" TextChanged="textBox_TextChanged"/>
<TextBlock Text="Batocera UserID:" Margin="5"/>
<TextBox x:Name="textBox_UserID" MaxLength="50" Width="100" Margin="0,0,0,5" TextChanged="textBox_TextChanged"/>
<TextBlock Text="Batocera Password:" Margin="5"/>
<TextBox x:Name="textBox_Password" MaxLength="50" Width="100" TextChanged="textBox_TextChanged"/>
<TextBlock Margin="5,10,0,0">
Alternating Row Color:
</TextBlock>
<ComboBox x:Name="comboBox_AlternatingRowColor" Margin="5,0,5,0" SelectionChanged="comboBox_AlternatingRowColor_SelectionChanged"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,20,0,0">
<Button x:Name="button_Save" Content="Save" Style="{StaticResource GreenButtonStyle}" Width="40" Height="20" HorizontalAlignment="Center" Margin="0,0,5,0" Click="buttonSave_Click" IsEnabled="False"/>
<Button x:Name="button_Close" Content="Close" Style="{StaticResource CoolButtonStyle1}" Width="40" Height="20" Margin="5,0,0,0" Click="buttonClose_Click"/>
</StackPanel>
</StackPanel>
<!-- Second StackPanel with the textboxes -->
<StackPanel Grid.Column="1" HorizontalAlignment="Left" Orientation="Vertical" Margin="10,5,5,5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"/>
<ColumnDefinition Width="auto"/>
</Grid.ColumnDefinitions>
<CheckBox Grid.Row="0" Grid.Column="0" ToolTip="This provides undo/redo functionality when editing gamelists" x:Name="checkBox_TrackChanges" VerticalAlignment="Center" Content="Change Tracking Maximum:" IsChecked="False" Click="CheckBox_Click"/>
<TextBox Grid.Row="0" Grid.Column="1" x:Name="textBox_ChangeCount" Text="15"
FontSize="12" VerticalAlignment="Center" Margin="10,0,0,0"
HorizontalAlignment="Left"
Width="20" MaxLength="2" MaxLines="1" Background="#FFFDFDFD"
PreviewTextInput="NumericTextBox_PreviewTextInput"
DataObject.Pasting="NumericTextBox_Pasting"/>
<CheckBox Grid.Row="1" Grid.Column="0" ToolTip="Substantial gamelist changes will require your confirmation" x:Name="checkBox_ConfirmBulkChanges" VerticalAlignment="Center" Content="Confirm bulk changes" IsChecked="True" Margin="0,0,0,0" Click="CheckBox_Click"/>
<CheckBox Grid.Row="1" Grid.Column="1" ToolTip="You will be reminded to save before loading another gamelist" x:Name="checkBox_EnableSaveReminder" VerticalAlignment="Center" Content="Enable save reminder" IsChecked="True" Margin="10,0,0,0" Click="CheckBox_Click"/>
<CheckBox Grid.Row="2" Grid.Column="0" ToolTip="Single color and corrupt downloaded images will not be saved" x:Name="checkBox_VerifyImageDownloads" VerticalAlignment="Center" Content="Verify Image Downloads" IsChecked="False" Margin="0,0,0,0"/>
</Grid>
<Label Content="Folder Paths:" FontSize="14" Foreground="Blue" FontWeight="Bold"/>
<Border Grid.Column="1" BorderBrush="Black" BorderThickness="1">
<Grid x:Name="Paths" Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Image Path -->
<Label Grid.Row="0" Grid.Column="0" Content="Image:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="0" Grid.Column="1" x:Name="textBox_image" Tag="image" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Title Shot Path -->
<Label Grid.Row="1" Grid.Column="0" Content="Title Shot:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="1" Grid.Column="1" x:Name="textBox_titleshot" Tag="titleshot" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Marquee Path -->
<Label Grid.Row="2" Grid.Column="0" Content="Marquee:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="2" Grid.Column="1" x:Name="textBox_marquee" Tag="marquee" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Thumbnail Path -->
<Label Grid.Row="3" Grid.Column="0" Content="Thumbnail:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="3" Grid.Column="1" x:Name="textBox_thumbnail" Tag="thumbnail" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Cartridge Path -->
<Label Grid.Row="4" Grid.Column="0" Content="Cartridge:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="4" Grid.Column="1" x:Name="textBox_cartridge" Tag="cartridge" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Video Path -->
<Label Grid.Row="5" Grid.Column="0" Content="Video:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="5" Grid.Column="1" x:Name="textBox_video" Tag="video" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Music Path -->
<Label Grid.Row="6" Grid.Column="0" Content="Music:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="6" Grid.Column="1" x:Name="textBox_music" Tag="music" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Map Path -->
<Label Grid.Row="7" Grid.Column="0" Content="Map:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="7" Grid.Column="1" x:Name="textBox_map" Tag="map" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Bezel Path -->
<Label Grid.Row="8" Grid.Column="0" Content="Bezel:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="8" Grid.Column="1" x:Name="textBox_bezel" Tag="bezel" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Manual Path -->
<Label Grid.Row="0" Margin="5,0,0,0" Grid.Column="2" Content="Manual:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="0" Grid.Column="3" x:Name="textBox_manual" Tag="manual" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Fanart Path -->
<Label Grid.Row="1" Margin="5,0,0,0" Grid.Column="2" Content="Fanart:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="1" Grid.Column="3" x:Name="textBox_fanart" Tag="fanart" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Box Back Path -->
<Label Grid.Row="2" Margin="5,0,0,0" Grid.Column="2" Content="Box Back:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="2" Grid.Column="3" x:Name="textBox_boxback" Tag="boxback" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Magazine Path -->
<Label Grid.Row="3" Margin="5,0,0,0" Grid.Column="2" Content="Magazine:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="3" Grid.Column="3" x:Name="textBox_magazine" Tag="magazine" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<!-- Mix Path -->
<Label Grid.Row="4" Margin="5,0,0,0" Grid.Column="2" Content="Mix:" HorizontalAlignment="Right" Width="Auto"/>
<TextBox Grid.Row="4" Grid.Column="3" x:Name="textBox_mix" Tag="mix" MaxLines="1" MaxLength="30" Width="100" HorizontalAlignment="Right" VerticalAlignment="Center"/>
<Button Grid.Row="8" Grid.Column="2" x:Name="button_Reset" Content="Reset Folder Paths" Style="{StaticResource CoolButtonStyle1}" Width="100" Height="20" Click="button_Reset_Click" Grid.ColumnSpan="2" HorizontalAlignment="Right" Margin="0,3,0,3"/>
</Grid>
</Border>
</StackPanel>
</Grid>
</Window>