diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2009-08-29 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:16:01 +0300 |
commit | 2fed8721946901375d21d4a506fe8b114045b397 (patch) | |
tree | 30c688bd7e1c59c31081a4fe4bb5fc3a6497f066 /CPP/7zip/UI/FileManager/App.h | |
parent | c99f3ebdd639c2adb03d8b44001b10af18516504 (diff) |
9.07 beta
Diffstat (limited to 'CPP/7zip/UI/FileManager/App.h')
-rwxr-xr-x | CPP/7zip/UI/FileManager/App.h | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/CPP/7zip/UI/FileManager/App.h b/CPP/7zip/UI/FileManager/App.h index d2ced9ba..8c573cfa 100755 --- a/CPP/7zip/UI/FileManager/App.h +++ b/CPP/7zip/UI/FileManager/App.h @@ -16,6 +16,8 @@ extern HWND g_HWND; const int kNumPanelsMax = 2; +extern bool g_IsSmallScreen; + enum { kAddCommand = kToolbarStartID, @@ -202,8 +204,8 @@ public: void RefreshStatusBar() { GetFocusedPanel().RefreshStatusBar(); } - void SetListViewMode(UINT32 index) { GetFocusedPanel().SetListViewMode(index); } - UINT32 GetListViewMode() { return GetFocusedPanel().GetListViewMode(); } + void SetListViewMode(UInt32 index) { GetFocusedPanel().SetListViewMode(index); } + UInt32 GetListViewMode() { return GetFocusedPanel().GetListViewMode(); } PROPID GetSortID() { return GetFocusedPanel().GetSortID(); } void SortItemsWithPropID(PROPID propID) { GetFocusedPanel().SortItemsWithPropID(propID); } @@ -248,15 +250,24 @@ public: void ReloadToolbars(); void ReadToolbar() { - UINT32 mask = ReadToolbarsMask(); - ShowButtonsLables = ((mask & 1) != 0); - LargeButtons = ((mask & 2) != 0); - ShowStandardToolbar = ((mask & 4) != 0); - ShowArchiveToolbar = ((mask & 8) != 0); + UInt32 mask = ReadToolbarsMask(); + if (mask & ((UInt32)1 << 31)) + { + ShowButtonsLables = !g_IsSmallScreen; + LargeButtons = false; + ShowStandardToolbar = ShowArchiveToolbar = true; + } + else + { + ShowButtonsLables = ((mask & 1) != 0); + LargeButtons = ((mask & 2) != 0); + ShowStandardToolbar = ((mask & 4) != 0); + ShowArchiveToolbar = ((mask & 8) != 0); + } } void SaveToolbar() { - UINT32 mask = 0; + UInt32 mask = 0; if (ShowButtonsLables) mask |= 1; if (LargeButtons) mask |= 2; if (ShowStandardToolbar) mask |= 4; |