Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pavlov <ipavlov@users.sourceforge.net>2017-04-30 03:00:00 +0300
committerKornel <kornel@geekhood.net>2017-05-05 20:56:20 +0300
commit2efa10565ac395d2ce9a679ead46e70fb2f963eb (patch)
tree84c8df4deb69ec44ea15af9378f24347db55c357 /CPP/7zip/UI/FileManager/SplitUtils.cpp
parent603abd5528c97346e9448c0ff47949f818fe558c (diff)
17.0017.00
Diffstat (limited to 'CPP/7zip/UI/FileManager/SplitUtils.cpp')
-rw-r--r--CPP/7zip/UI/FileManager/SplitUtils.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/CPP/7zip/UI/FileManager/SplitUtils.cpp b/CPP/7zip/UI/FileManager/SplitUtils.cpp
index b0172a9f..4b6235b3 100644
--- a/CPP/7zip/UI/FileManager/SplitUtils.cpp
+++ b/CPP/7zip/UI/FileManager/SplitUtils.cpp
@@ -57,16 +57,25 @@ bool ParseVolumeSizes(const UString &s, CRecordVector<UInt64> &values)
return true;
}
+
+static const char * const k_Sizes[] =
+{
+ "10M"
+ , "100M"
+ , "1000M"
+ , "650M - CD"
+ , "700M - CD"
+ , "4092M - FAT"
+ , "4480M - DVD" // 4489 MiB limit
+ , "8128M - DVD DL" // 8147 MiB limit
+ , "23040M - BD" // 23866 MiB limit
+ // , "1457664 - 3.5\" floppy"
+};
+
void AddVolumeItems(NWindows::NControl::CComboBox &combo)
{
- combo.AddString(TEXT("10M"));
- combo.AddString(TEXT("650M - CD"));
- combo.AddString(TEXT("700M - CD"));
- combo.AddString(TEXT("4092M - FAT"));
- combo.AddString(TEXT("4480M - DVD")); // 4489 MiB limit
- combo.AddString(TEXT("8128M - DVD DL")); // 8147 MiB limit
- combo.AddString(TEXT("23040M - BD")); // 23866 MiB limit
- combo.AddString(TEXT("1457664 - 3.5\" floppy"));
+ for (unsigned i = 0; i < ARRAY_SIZE(k_Sizes); i++)
+ combo.AddString(CSysString(k_Sizes[i]));
}
UInt64 GetNumberOfVolumes(UInt64 size, const CRecordVector<UInt64> &volSizes)