diff options
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); } |