diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2008-12-31 03:00:00 +0300 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:58 +0300 |
commit | 3a524e5ba2d7bb0c46e11502822f8093dd2ab0f4 (patch) | |
tree | b33da9cac0a5fc22a16bdf4de106c8a9eefd1465 /CPP/7zip/UI/FileManager/RegistryUtils.cpp | |
parent | c1f1243a70558e86e14b1ea09dc287737378894b (diff) |
4.634.63
Diffstat (limited to 'CPP/7zip/UI/FileManager/RegistryUtils.cpp')
-rwxr-xr-x | CPP/7zip/UI/FileManager/RegistryUtils.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CPP/7zip/UI/FileManager/RegistryUtils.cpp b/CPP/7zip/UI/FileManager/RegistryUtils.cpp index f071a9c9..ed118457 100755 --- a/CPP/7zip/UI/FileManager/RegistryUtils.cpp +++ b/CPP/7zip/UI/FileManager/RegistryUtils.cpp @@ -3,6 +3,7 @@ #include "StdAfx.h" #include "RegistryUtils.h" +#include "Common/IntToString.h" #include "Windows/Registry.h" using namespace NWindows; @@ -28,6 +29,8 @@ static const TCHAR *kLargePagesEnable = TEXT("LargePages"); // static const TCHAR *kSingleClick = TEXT("SingleClick"); // static const TCHAR *kUnderline = TEXT("Underline"); +static const TCHAR *kFlatViewName = TEXT("FlatViewArc"); + void SaveRegLang(const UString &langFile) { CKey key; @@ -149,4 +152,12 @@ bool ReadUnderline(){ return ReadOption(kUnderline, false); } void SaveLockMemoryEnable(bool enable) { Save7ZipOption(kLargePagesEnable, enable); } bool ReadLockMemoryEnable() { return Read7ZipOption(kLargePagesEnable, false); } +static CSysString GetFlatViewName(UInt32 panelIndex) +{ + TCHAR panelString[32]; + ConvertUInt64ToString(panelIndex, panelString); + return (CSysString)kFlatViewName + panelString; +} +void SaveFlatView(UInt32 panelIndex, bool enable) { SaveOption(GetFlatViewName(panelIndex), enable); } +bool ReadFlatView(UInt32 panelIndex) { return ReadOption(GetFlatViewName(panelIndex), false); } |