-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
333 lines (280 loc) · 20.5 KB
/
MainWindow.xaml
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<Window x:Class="Simplist3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Simplist3"
Title="Simplist3" Height="660" Width="380"
WindowStartupLocation="Manual" Topmost="True" AllowsTransparency="True"
ResizeMode="CanMinimize" WindowStyle="None" ShowInTaskbar="False" Background="Transparent"
Loaded="Window_Loaded" Deactivated="Window_Deactivated" Closing="Window_Closing" PreviewKeyDown="GlobalPreviewKeyDown" FocusVisualStyle="{x:Null}">
<Window.Resources>
<Style TargetType="local:AniScrollViewer">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
</Style>
</Window.Resources>
<Grid x:Name="gridRoot" Margin="10" Background="White" >
<Grid.Effect>
<DropShadowEffect x:Name="grideffectShadow" BlurRadius="10" ShadowDepth="1" Direction="270" Color="Black" Opacity="0.6"/>
</Grid.Effect>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="40"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Content Area -->
<Grid x:Name="gridContent" Grid.Row="2" Height="550" ClipToBounds="True">
<local:AniScrollViewer x:Name="scrollSeason" VerticalScrollBarVisibility="Visible" ClipToBounds="True">
<StackPanel x:Name="stackSeason" Background="White">
<local:Container x:Name="containWeek0" Title="일요일" Response="Container_Response"/>
<local:Container x:Name="containWeek1" Title="월요일" Response="Container_Response"/>
<local:Container x:Name="containWeek2" Title="화요일" Response="Container_Response"/>
<local:Container x:Name="containWeek3" Title="수요일" Response="Container_Response"/>
<local:Container x:Name="containWeek4" Title="목요일" Response="Container_Response"/>
<local:Container x:Name="containWeek5" Title="금요일" Response="Container_Response"/>
<local:Container x:Name="containWeek6" Title="토요일" Response="Container_Response"/>
<local:Container x:Name="containWeek7" Title="#" Response="Container_Response"/>
</StackPanel>
</local:AniScrollViewer>
<local:AniScrollViewer x:Name="scrollArchive" VerticalScrollBarVisibility="Auto" Opacity="0" IsHitTestVisible="False" ClipToBounds="True">
<local:Container x:Name="containArchive" ContainerType="Archive" Response="Container_Response"/>
</local:AniScrollViewer>
<local:AniScrollViewer x:Name="scrollNotify" VerticalScrollBarVisibility="Auto" Opacity="0" IsHitTestVisible="False" ClipToBounds="True">
<StackPanel x:Name="stackNotify"/>
</local:AniScrollViewer>
<Grid x:Name="gridSetting" Background="Transparent" Opacity="0" IsHitTestVisible="False" ClipToBounds="True">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="50"/>
<RowDefinition Height="50"/>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<StackPanel Orientation="Horizontal" Margin="15,0,0,0">
<TextBlock Text="Simplist" FontSize="24"/>
<TextBlock Text="3" Margin="5,0,0,0" FontSize="24" Foreground="{DynamicResource PrimaryBrush}"/>
</StackPanel>
<TextBlock x:Name="textVersion" HorizontalAlignment="Right" FontSize="18" Margin="0,0,15,0"/>
</Grid>
<CheckBox x:Name="checkTray" Content="종료 시 트레이로 이동" Grid.Row="1"/>
<CheckBox x:Name="checkNoQuestion" Content="묻지 않고 자막 다운로드" Grid.Row="2"/>
<CheckBox x:Name="checkShowRaws" Content="Raws 토렌트만 표시" Grid.Row="3"/>
</Grid>
</Grid>
<!-- Tab -->
<Grid x:Name="gridNormalTab" Grid.Row="1" Background="{DynamicResource PrimaryBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<local:TabButton x:Name="tabSeason" Grid.Column="0" Height="40" Type="season" Source="Resources/season.png" Response="TabButton_Response" ViewMode="Focused"/>
<local:TabButton x:Name="tabArchive" Grid.Column="1" Height="40" Type="archive" Source="Resources/archive.png" Response="TabButton_Response"/>
<local:TabButton x:Name="tabNotify" Grid.Column="2" Height="40" Type="noti" Source="Resources/notion.png" Response="TabButton_Response"/>
<local:TabButton x:Name="tabSetting" Grid.Column="3" Height="40" Type="setting" Source="Resources/setting.png" Response="TabButton_Response"/>
</Grid>
<!-- Add + Modify -->
<Grid x:Name="gridAddModify" Grid.Row="1" Grid.RowSpan="2" Background="#AA000000" Opacity="0" IsHitTestVisible="False" ClipToBounds="True">
<Grid Width="40" Background="Transparent" HorizontalAlignment="Right" MouseDown="gridAddModify_MouseDown"/>
<StackPanel x:Name="stackAddModify" Background="White" Width="320" Margin="-160,0,0,0" HorizontalAlignment="Left">
<Grid Height="50" Background="{DynamicResource DarkPrimaryBrush}">
<TextBlock x:Name="textAddScript" Text="" Margin="15,0,0,0"
Foreground="White" FontSize="16"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<local:ImageButton x:Name="buttonOpenFolder" HorizontalAlignment="Right" Size="50" Source="Resources/folder.png"
Type="openfolder" Response="ImageButton_Response" EnterLeave="button_EnterLeave"/>
<local:ImageButton x:Name="buttonDisable" HorizontalAlignment="Right" Size="50" Source="Resources/disable.png"
Type="disable" Response="ImageButton_Response" EnterLeave="button_EnterLeave"/>
<local:ImageButton x:Name="buttonDelete" HorizontalAlignment="Right" Source="Resources/delete.png" Size="50"
Type="delete" Response="ImageButton_Response" EnterLeave="button_EnterLeave"/>
<local:ImageButton x:Name="buttonSave" HorizontalAlignment="Right" Size="50" Source="Resources/ok.png"
Type="save" Response="ImageButton_Response" EnterLeave="button_EnterLeave"/>
</StackPanel>
</Grid>
<Grid Height="540">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="60"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Grid.Row="0" Source="Resources/title.png" Width="20" Margin="5,0,0,0"/>
<TextBlock x:Name="textModTitle" Grid.Row="0" Grid.Column="1" Text="제목" FontSize="16" Margin="5,0,0,0"/>
<TextBox x:Name="textboxTitle" Grid.Row="0" Grid.Column="2" Margin="10" ContextMenu="{x:Null}" TextChanged="textboxTitle_TextChanged"/>
<TextBlock x:Name="textCaution" Grid.Row="1" Grid.ColumnSpan="3" Text="" FontSize="16" Margin="10" TextWrapping="Wrap"/>
<StackPanel Grid.Row="1" Grid.ColumnSpan="3">
<Grid x:Name="gridModifyExtra" >
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="50"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="60"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Grid.Row="0" Source="Resources/time.png" Width="20" Margin="5,0,0,0"/>
<Image Grid.Row="1" Source="Resources/synctitle.png" Width="20" Margin="5,0,0,0"/>
<Image x:Name="imageKeyword" Grid.Row="2" Source="Resources/search.png" Width="20" Margin="5,0,0,0"/>
<TextBlock Grid.Row="0" Grid.Column="1" Text="시간" FontSize="16" Margin="5,0,0,0"/>
<TextBlock x:Name="textLinkTitle" Grid.Row="1" Grid.Column="1" Text="원제" FontSize="16" Margin="5,0,0,0"/>
<TextBlock x:Name="textKeyword" Grid.Row="2" Grid.Column="1" Text="검색어" FontSize="16" Margin="5,0,0,0"/>
<Grid Grid.Row="0" Grid.Column="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="5"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ComboBox x:Name="comboboxWeekday" Margin="10" SelectedIndex="0" >
<ComboBoxItem Content="일"/>
<ComboBoxItem Content="월"/>
<ComboBoxItem Content="화"/>
<ComboBoxItem Content="수"/>
<ComboBoxItem Content="목"/>
<ComboBoxItem Content="금"/>
<ComboBoxItem Content="토"/>
<ComboBoxItem Content="#"/>
</ComboBox>
<TextBox x:Name="textboxHour" Grid.Column="1" Margin="10" ContextMenu="{x:Null}"/>
<TextBlock Grid.Column="2" Text=":" FontSize="16"/>
<TextBox x:Name="textboxMinute" Grid.Column="3" Margin="10" ContextMenu="{x:Null}"/>
</Grid>
<ComboBox x:Name="comboboxSync" Grid.Row="1" Grid.Column="2" Margin="10" SelectedIndex="0"/>
<TextBlock x:Name="textSync" Grid.Row="1" Grid.Column="2" Text="" FontSize="16" Margin="10" Visibility="Collapsed"/>
<TextBox x:Name="textboxKeyword" Grid.Row="2" Grid.Column="2" Margin="10" ContextMenu="{x:Null}"/>
</Grid>
<Grid x:Name="gridEpisode" Height="50">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="60"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Source="Resources/bookmark.png" Width="20" Margin="5,0,0,0"/>
<TextBlock Grid.Column="1" Text="북마크" FontSize="16" Margin="5,0,0,0"/>
<TextBox x:Name="textboxEpisode" Grid.Column="2" Margin="10" ContextMenu="{x:Null}"/>
</Grid>
<Grid x:Name="gridAniTable" Height="340">
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="stackTableWeekday" Orientation="Horizontal" Background="{DynamicResource DarkPrimaryBrush}">
<local:TabButton Size="40" Text="일" Type="0" Response="Weekday_Click" ViewMode="Focused"/>
<local:TabButton Size="40" Text="월" Type="1" Response="Weekday_Click"/>
<local:TabButton Size="40" Text="화" Type="2" Response="Weekday_Click"/>
<local:TabButton Size="40" Text="수" Type="3" Response="Weekday_Click"/>
<local:TabButton Size="40" Text="목" Type="4" Response="Weekday_Click"/>
<local:TabButton Size="40" Text="금" Type="5" Response="Weekday_Click"/>
<local:TabButton Size="40" Text="토" Type="6" Response="Weekday_Click"/>
<local:TabButton Size="40" Text="#" Type="7" Response="Weekday_Click"/>
</StackPanel>
<local:AniScrollViewer x:Name="scrollAnitable" Grid.Row="1">
<StackPanel x:Name="stackAnitable">
</StackPanel>
</local:AniScrollViewer>
</Grid>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
<!-- Download -->
<Grid x:Name="gridDown" Grid.Row="1" Margin="0,40,0,0" Grid.RowSpan="2" Background="White" Opacity="0" IsHitTestVisible="False" ClipToBounds="True">
<local:AniScrollViewer x:Name="scrollTorrent" Width="360">
<StackPanel x:Name="stackTorrent"/>
</local:AniScrollViewer>
<Grid x:Name="gridSubtitle" Margin="360,0,0,0" Width="360" Opacity="0" IsHitTestVisible="False" ClipToBounds="True">
</Grid>
</Grid>
<Grid x:Name="gridDownTab" Margin="0,-40,0,0" Height="40" VerticalAlignment="Top" Grid.Row="1" Background="{DynamicResource DarkPrimaryBrush}">
<Grid x:Name="gridTorrentCaption">
<TextBlock x:Name="textCaption" Text="" Grid.Column="1" FontSize="16" Foreground="White"
HorizontalAlignment="Left" Margin="15,0,110,0"/>
<Grid x:Name="gridEpisodeBox" Width="85" Margin="0,0,15,0" HorizontalAlignment="Right">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="20"/>
</Grid.ColumnDefinitions>
<local:ImageButton Size="20" Grid.Column="0" Source="Resources/minus.png" InnerMargin="1" VerticalAlignment="Center" Type="-1" Response="TorrentEpisode_Response"/>
<TextBlock x:Name="textEpisode" Grid.Column="1" Text="00" FontSize="18" VerticalAlignment="Center" FontFamily="Century Gothic" Foreground="White" TextAlignment="Center"/>
<local:ImageButton Size="20" Grid.Column="2" Source="Resources/plus.png" InnerMargin="1" VerticalAlignment="Center" Type="1" Response="TorrentEpisode_Response"/>
</Grid>
</Grid>
<Grid x:Name="gridSubtitleCaption">
<local:ImageButton x:Name="buttonBack" Size="40" InnerMargin="5" Source="Resources/left.png"
Type="back" Response="BackButton_Response" Margin="1,0,0,0" ViewMode="Hidden"/>
<Grid ClipToBounds="True">
<Grid x:Name="gridNewCaption" Opacity="0" Width="280">
<TextBlock x:Name="textNewCaption" Text="Very Long Title" Grid.Column="1" FontSize="16" Foreground="White"
HorizontalAlignment="Center" Opacity="1" TextTrimming="CharacterEllipsis"/>
</Grid>
<Grid x:Name="gridOldCaption" Opacity="0" Width="280">
<TextBlock x:Name="textOldCaption" Text=" Very Long Title" Grid.Column="1" FontSize="16" Foreground="White"
HorizontalAlignment="Center" Opacity="1" TextTrimming="CharacterEllipsis"/>
</Grid>
</Grid>
</Grid>
</Grid>
<!-- Titlebar -->
<Grid Grid.Row="0" Background="{DynamicResource PrimaryBrush}" MouseDown="Statusbar_MouseDown">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="50"/>
<ColumnDefinition Width="50"/>
</Grid.ColumnDefinitions>
<TextBlock x:Name="textTitle" Text="Season" Grid.Column="1" FontSize="18" Foreground="White"
TextOptions.TextFormattingMode="Display"/>
<TextBlock x:Name="textTitleOld" Text="" Grid.Column="1" FontSize="18" Foreground="White"
TextOptions.TextFormattingMode="Display" Opacity="0"/>
<Grid x:Name="gridNotice" Grid.ColumnSpan="5" Background="{DynamicResource DarkPrimaryBrush}" Opacity="0">
<Grid x:Name="gridAlert" Background="Crimson"/>
<TextBlock x:Name="textNotice" Text="" Grid.Column="1" FontSize="14" Foreground="White" FontWeight="Bold"
TextOptions.TextFormattingMode="Display"
Margin="50,0,100,0"/>
</Grid>
<local:ImageButton x:Name="buttonAdd" Size="50" Source="Resources/plus.png"
Type="add" Response="ImageButton_Response"/>
<local:ImageButton x:Name="buttonArrange" Grid.Column="2" HorizontalAlignment="Right" Source="Resources/refresh.png" Size="50"
Type="arrange" InnerMargin="12" Response="ImageButton_Response" ViewMode="Hidden"/>
<local:ImageButton x:Name="buttonShot" Grid.Column="3" HorizontalAlignment="Right" Source="Resources/screenshot.png" Size="50"
Type="shot" InnerMargin="14" Response="ImageButton_Response" />
<local:ImageButton x:Name="buttonSort" Grid.Column="3" HorizontalAlignment="Right" Source="Resources/season.png" Size="50"
Type="sort" InnerMargin="14" Response="ImageButton_Response" ViewMode="Hidden"/>
<local:ImageButton x:Name="buttonRefresh" Grid.Column="3" HorizontalAlignment="Right" Source="Resources/sync.png" Size="50"
Type="refresh" InnerMargin="12" Response="ImageButton_Response" ViewMode="Hidden"/>
<local:ImageButton x:Name="buttonUpdate" Grid.Column="3" HorizontalAlignment="Right" Source="Resources/download.png" Size="50"
Type="update" InnerMargin="12" Response="ImageButton_Response" ViewMode="Hidden"/>
<local:ImageButton x:Name="buttonUpdateCheck" Grid.Column="3" HorizontalAlignment="Right" Source="Resources/refresh.png" Size="50"
Type="vercheck" InnerMargin="12" Response="ImageButton_Response" ViewMode="Hidden"/>
<local:ImageButton Grid.Column="4" HorizontalAlignment="Right" Size="50" Source="Resources/close.png"
Type="close" Response="ImageButton_Response"/>
<local:TabButton x:Name="tabTorrent" Type="Torrent" Grid.Column="2" Size="50" Height="40" Source="Resources/download.png" ViewMode="Hidden" Response="DownloadTab_Response"/>
<local:TabButton x:Name="tabSubtitle" Type="Subtitle" Grid.Column="3" Size="50" Height="40" Source="Resources/subtitle.png" ViewMode="Hidden" Response="DownloadTab_Response"/>
</Grid>
<!-- Changelog -->
<Grid x:Name="gridChangelog" Visibility="Collapsed" Grid.RowSpan="3" Background="#77000000">
<Grid Background="White" Margin="30,100">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid Background="{DynamicResource PrimaryBrush}">
<TextBlock Text="Changelog" Grid.Column="1" FontSize="18" Foreground="White"
TextOptions.TextFormattingMode="Display" Margin="20,0,0,0"/>
<local:ImageButton x:Name="buttonChangeLog" Size="50" Source="Resources/ok.png"
Type="changelog" HorizontalAlignment="Right" Response="ImageButton_Response"/>
</Grid>
<ScrollViewer Grid.Row="1">
<TextBlock x:Name="textChangeLog2" Grid.Row="4" VerticalAlignment="Top" Margin="15" FontSize="14"/>
</ScrollViewer>
</Grid>
</Grid>
</Grid>
</Window>