Class CreateModeText
- Namespace
- Archiver.App.Core
- Assembly
- Archiver.App.Core.dll
T-F199 step 4: the create-mode words that follow the list and the options. Returns resource keys (plain, read through GetString — T-F104), never text.
public static class CreateModeText
- Inheritance
-
CreateModeText
- Inherited Members
Methods
AutoName(IReadOnlyList<string>, ArchiveMode, ArchiveContainerFormat)
The file name Core writes when the name box is blank (T-F264's one rule); for separate archives, the first item's.
public static string AutoName(IReadOnlyList<string> sources, ArchiveMode mode, ArchiveContainerFormat format)
Parameters
sourcesIReadOnlyList<string>modeArchiveModeformatArchiveContainerFormat
Returns
DeleteAfterKey(bool, bool, bool)
Which items "delete after" sends to the Recycle Bin. The checkbox applies to whichever button is pressed, so the words follow what is possible, not the accent: the sources after Compress, the archives after Extract, both named when the list allows both.
public static string DeleteAfterKey(bool canCompress, bool canExtract, bool browsing)
Parameters
Returns
DestinationLabelKey(PrimaryAction)
"Save to" when the list compresses, "Extract to" when it extracts.
public static string DestinationLabelKey(PrimaryAction accent)
Parameters
accentPrimaryAction
Returns
FormatName(ArchiveContainerFormat)
"ZIP", "TAR.GZ", ... — the extension, as the Compress button and the summary show it.
public static string FormatName(ArchiveContainerFormat format)
Parameters
formatArchiveContainerFormat
Returns
SummaryKeys(ArchiveContainerFormat, CompressionLevel, bool, int)
The parts after the format name in the collapsed "New archive" card: compression (not for plain tar, which has no level — T-F105), password state (ZIP only, the one format that encrypts) and recovery data when it is on (T-F275).
public static IReadOnlyList<string> SummaryKeys(ArchiveContainerFormat format, CompressionLevel level, bool encrypt, int recoveryPercent = 0)
Parameters
formatArchiveContainerFormatlevelCompressionLevelencryptboolrecoveryPercentint