Skip to content

Commit cd99a8b

Browse files
committed
add *.zst associate settings
1 parent d528a1f commit cd99a8b

File tree

10 files changed

+108
-65
lines changed

10 files changed

+108
-65
lines changed

Applications/Ice/Core/Sources/Settings/AssociationSettingValue.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public sealed class AssociationSettingValue : SerializableBase
7676
{ nameof(Xz), false },
7777
{ nameof(Z), false },
7878
{ nameof(Zip), false },
79+
{ nameof(Zst), false },
7980
});
8081

8182
/* --------------------------------------------------------------------- */
@@ -603,6 +604,23 @@ public bool Zip
603604
set => SetAssociateValue(value);
604605
}
605606

607+
/* --------------------------------------------------------------------- */
608+
///
609+
/// Zst
610+
///
611+
/// <summary>
612+
/// Gets or sets a value indicating whether to associate with
613+
/// the *.zst files.
614+
/// </summary>
615+
///
616+
/* --------------------------------------------------------------------- */
617+
[DataMember(Name = "zst")]
618+
public bool Zst
619+
{
620+
get => GetAssociateValue();
621+
set => SetAssociateValue(value);
622+
}
623+
606624
#endregion
607625

608626
#region Implementations

Applications/Ice/Settings/Sources/Presenters/AssociateViewModel.cs

Lines changed: 74 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public int IconIndex
9595
/// SevenZip
9696
///
9797
/// <summary>
98-
/// Gets or sets a value indicating whether or not to associate
99-
/// with the *.7z files.
98+
/// Gets or sets a value indicating whether to associate with the
99+
/// *.7z files.
100100
/// </summary>
101101
///
102102
/* --------------------------------------------------------------------- */
@@ -111,8 +111,8 @@ public bool SevenZip
111111
/// Arj
112112
///
113113
/// <summary>
114-
/// Gets or sets a value indicating whether or not to associate
115-
/// with the *.arj files.
114+
/// Gets or sets a value indicating whether to associate with the
115+
/// *.arj files.
116116
/// </summary>
117117
///
118118
/* --------------------------------------------------------------------- */
@@ -127,8 +127,8 @@ public bool Arj
127127
/// Bz2
128128
///
129129
/// <summary>
130-
/// Gets or sets a value indicating whether or not to associate
131-
/// with the *.bz2 files.
130+
/// Gets or sets a value indicating whether to associate with the
131+
/// *.bz2 files.
132132
/// </summary>
133133
///
134134
/* --------------------------------------------------------------------- */
@@ -143,8 +143,8 @@ public bool Bz2
143143
/// Cab
144144
///
145145
/// <summary>
146-
/// Gets or sets a value indicating whether or not to associate
147-
/// with the *.cab files.
146+
/// Gets or sets a value indicating whether to associate with the
147+
/// *.cab files.
148148
/// </summary>
149149
///
150150
/* --------------------------------------------------------------------- */
@@ -159,8 +159,8 @@ public bool Cab
159159
/// Chm
160160
///
161161
/// <summary>
162-
/// Gets or sets a value indicating whether or not to associate
163-
/// with the *.chm files.
162+
/// Gets or sets a value indicating whether to associate with the
163+
/// *.chm files.
164164
/// </summary>
165165
///
166166
/* --------------------------------------------------------------------- */
@@ -175,8 +175,8 @@ public bool Chm
175175
/// Cpio
176176
///
177177
/// <summary>
178-
/// Gets or sets a value indicating whether or not to associate
179-
/// with the *.cpio files.
178+
/// Gets or sets a value indicating whether to associate with the
179+
/// *.cpio files.
180180
/// </summary>
181181
///
182182
/* --------------------------------------------------------------------- */
@@ -191,8 +191,8 @@ public bool Cpio
191191
/// Deb
192192
///
193193
/// <summary>
194-
/// Gets or sets a value indicating whether or not to associate
195-
/// with the *.deb files.
194+
/// Gets or sets a value indicating whether to associate with the
195+
/// *.deb files.
196196
/// </summary>
197197
///
198198
/* --------------------------------------------------------------------- */
@@ -207,8 +207,8 @@ public bool Deb
207207
/// Dmg
208208
///
209209
/// <summary>
210-
/// Gets or sets a value indicating whether or not to associate
211-
/// with the *.dmg files.
210+
/// Gets or sets a value indicating whether to associate with the
211+
/// *.dmg files.
212212
/// </summary>
213213
///
214214
/* --------------------------------------------------------------------- */
@@ -223,8 +223,8 @@ public bool Dmg
223223
/// Flv
224224
///
225225
/// <summary>
226-
/// Gets or sets a value indicating whether or not to associate
227-
/// with the *.flv files.
226+
/// Gets or sets a value indicating whether to associate with the
227+
/// *.flv files.
228228
/// </summary>
229229
///
230230
/* --------------------------------------------------------------------- */
@@ -239,8 +239,8 @@ public bool Flv
239239
/// Gz
240240
///
241241
/// <summary>
242-
/// Gets or sets a value indicating whether or not to associate
243-
/// with the *.gz files.
242+
/// Gets or sets a value indicating whether to associate with the
243+
/// *.gz files.
244244
/// </summary>
245245
///
246246
/* --------------------------------------------------------------------- */
@@ -255,8 +255,8 @@ public bool Gz
255255
/// Hfs
256256
///
257257
/// <summary>
258-
/// Gets or sets a value indicating whether or not to associate
259-
/// with the *.hfs files.
258+
/// Gets or sets a value indicating whether to associate with the
259+
/// *.hfs files.
260260
/// </summary>
261261
///
262262
/* --------------------------------------------------------------------- */
@@ -271,8 +271,8 @@ public bool Hfs
271271
/// Jar
272272
///
273273
/// <summary>
274-
/// Gets or sets a value indicating whether or not to associate
275-
/// with the *.jar files.
274+
/// Gets or sets a value indicating whether to associate with the
275+
/// *.jar files.
276276
/// </summary>
277277
///
278278
/* --------------------------------------------------------------------- */
@@ -287,8 +287,8 @@ public bool Jar
287287
/// Iso
288288
///
289289
/// <summary>
290-
/// Gets or sets a value indicating whether or not to associate
291-
/// with the *.iso files.
290+
/// Gets or sets a value indicating whether to associate with the
291+
/// *.iso files.
292292
/// </summary>
293293
///
294294
/* --------------------------------------------------------------------- */
@@ -303,8 +303,8 @@ public bool Iso
303303
/// Lzh
304304
///
305305
/// <summary>
306-
/// Gets or sets a value indicating whether or not to associate
307-
/// with the *.lzh files.
306+
/// Gets or sets a value indicating whether to associate with the
307+
/// *.lzh files.
308308
/// </summary>
309309
///
310310
/* --------------------------------------------------------------------- */
@@ -319,8 +319,8 @@ public bool Lzh
319319
/// Nupkg
320320
///
321321
/// <summary>
322-
/// Gets or sets a value indicating whether or not to associate
323-
/// with the *.nupkg files.
322+
/// Gets or sets a value indicating whether to associate with the
323+
/// *.nupkg files.
324324
/// </summary>
325325
///
326326
/* --------------------------------------------------------------------- */
@@ -335,8 +335,8 @@ public bool Nupkg
335335
/// Rar
336336
///
337337
/// <summary>
338-
/// Gets or sets a value indicating whether or not to associate
339-
/// with the *.rar files.
338+
/// Gets or sets a value indicating whether to associate with the
339+
/// *.rar files.
340340
/// </summary>
341341
///
342342
/* --------------------------------------------------------------------- */
@@ -351,8 +351,8 @@ public bool Rar
351351
/// Rpm
352352
///
353353
/// <summary>
354-
/// Gets or sets a value indicating whether or not to associate
355-
/// with the *.rpm files.
354+
/// Gets or sets a value indicating whether to associate with the
355+
/// *.rpm files.
356356
/// </summary>
357357
///
358358
/* --------------------------------------------------------------------- */
@@ -367,8 +367,8 @@ public bool Rpm
367367
/// Swf
368368
///
369369
/// <summary>
370-
/// Gets or sets a value indicating whether or not to associate
371-
/// with the *.swf files.
370+
/// Gets or sets a value indicating whether to associate with the
371+
/// *.swf files.
372372
/// </summary>
373373
///
374374
/* --------------------------------------------------------------------- */
@@ -383,8 +383,8 @@ public bool Swf
383383
/// Tar
384384
///
385385
/// <summary>
386-
/// Gets or sets a value indicating whether or not to associate
387-
/// with the *.tar files.
386+
/// Gets or sets a value indicating whether to associate with the
387+
/// *.tar files.
388388
/// </summary>
389389
///
390390
/* --------------------------------------------------------------------- */
@@ -399,8 +399,8 @@ public bool Tar
399399
/// Tbz
400400
///
401401
/// <summary>
402-
/// Gets or sets a value indicating whether or not to associate
403-
/// with the *.tbz files.
402+
/// Gets or sets a value indicating whether to associate with the
403+
/// *.tbz files.
404404
/// </summary>
405405
///
406406
/* --------------------------------------------------------------------- */
@@ -415,8 +415,8 @@ public bool Tbz
415415
/// Tgz
416416
///
417417
/// <summary>
418-
/// Gets or sets a value indicating whether or not to associate
419-
/// with the *.tgz files.
418+
/// Gets or sets a value indicating whether to associate with the
419+
/// *.tgz files.
420420
/// </summary>
421421
///
422422
/* --------------------------------------------------------------------- */
@@ -431,8 +431,8 @@ public bool Tgz
431431
/// Txz
432432
///
433433
/// <summary>
434-
/// Gets or sets a value indicating whether or not to associate
435-
/// with the *.txz files.
434+
/// Gets or sets a value indicating whether to associate with the
435+
/// *.txz files.
436436
/// </summary>
437437
///
438438
/* --------------------------------------------------------------------- */
@@ -447,8 +447,8 @@ public bool Txz
447447
/// Vhd
448448
///
449449
/// <summary>
450-
/// Gets or sets a value indicating whether or not to associate
451-
/// with the *.vhd files.
450+
/// Gets or sets a value indicating whether to associate with the
451+
/// *.vhd files.
452452
/// </summary>
453453
///
454454
/* --------------------------------------------------------------------- */
@@ -463,8 +463,8 @@ public bool Vhd
463463
/// Vmdk
464464
///
465465
/// <summary>
466-
/// Gets or sets a value indicating whether or not to associate
467-
/// with the *.vmdk files.
466+
/// Gets or sets a value indicating whether to associate with the
467+
/// *.vmdk files.
468468
/// </summary>
469469
///
470470
/* --------------------------------------------------------------------- */
@@ -479,8 +479,8 @@ public bool Vmdk
479479
/// Wim
480480
///
481481
/// <summary>
482-
/// Gets or sets a value indicating whether or not to associate
483-
/// with the *.wim files.
482+
/// Gets or sets a value indicating whether to associate with the
483+
/// *.wim files.
484484
/// </summary>
485485
///
486486
/* --------------------------------------------------------------------- */
@@ -495,8 +495,8 @@ public bool Wim
495495
/// Xar
496496
///
497497
/// <summary>
498-
/// Gets or sets a value indicating whether or not to associate
499-
/// with the *.xar files.
498+
/// Gets or sets a value indicating whether to associate with the
499+
/// *.xar files.
500500
/// </summary>
501501
///
502502
/* --------------------------------------------------------------------- */
@@ -511,8 +511,8 @@ public bool Xar
511511
/// Xz
512512
///
513513
/// <summary>
514-
/// Gets or sets a value indicating whether or not to associate
515-
/// with the *.xz files.
514+
/// Gets or sets a value indicating whether to associate with the
515+
/// *.xz files.
516516
/// </summary>
517517
///
518518
/* --------------------------------------------------------------------- */
@@ -527,8 +527,8 @@ public bool Xz
527527
/// Z
528528
///
529529
/// <summary>
530-
/// Gets or sets a value indicating whether or not to associate
531-
/// with the *.z files.
530+
/// Gets or sets a value indicating whether to associate with the
531+
/// *.z files.
532532
/// </summary>
533533
///
534534
/* --------------------------------------------------------------------- */
@@ -543,8 +543,8 @@ public bool Z
543543
/// Zip
544544
///
545545
/// <summary>
546-
/// Gets or sets a value indicating whether or not to associate
547-
/// with the *.zip files.
546+
/// Gets or sets a value indicating whether to associate with the
547+
/// *.zip files.
548548
/// </summary>
549549
///
550550
/* --------------------------------------------------------------------- */
@@ -554,6 +554,22 @@ public bool Zip
554554
set => Facade.Zip = value;
555555
}
556556

557+
/* --------------------------------------------------------------------- */
558+
///
559+
/// Zst
560+
///
561+
/// <summary>
562+
/// Gets or sets a value indicating whether to associate with the
563+
/// *.zst files.
564+
/// </summary>
565+
///
566+
/* --------------------------------------------------------------------- */
567+
public bool Zst
568+
{
569+
get => Facade.Zst;
570+
set => Facade.Zst = value;
571+
}
572+
557573
#endregion
558574

559575
#region Methods

Applications/Ice/Settings/Sources/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,15 @@ private static void Init(SettingFolder src)
9797
src.Value.Association.Lzh = true;
9898
src.Value.Association.Rar = true;
9999
src.Value.Association.SevenZip = true;
100+
src.Value.Association.Zst = true;
100101
src.Value.Association.Tar = true;
101102
src.Value.Association.Gz = true;
102103
src.Value.Association.Tgz = true;
103104
src.Value.Association.Bz2 = true;
104105
src.Value.Association.Tbz = true;
105106
src.Value.Association.Xz = true;
106107
src.Value.Association.Txz = true;
107-
src.Value.Shortcut.Preset = Preset.Settings;
108+
src.Value.Shortcut.Preset = Preset.Settings;
108109
}
109110

110111
#endregion

0 commit comments

Comments
 (0)