diff options
Diffstat (limited to 'CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp')
-rwxr-xr-x | CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp b/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp index eff29953..a17f0cac 100755 --- a/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp +++ b/CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp @@ -10,8 +10,8 @@ #include "Windows/PropVariant.h" #include "Windows/Error.h" -#include "../../FileManager/Resource/MessagesDialog/MessagesDialog.h" -#include "../../FileManager/Resource/PasswordDialog/PasswordDialog.h" +#include "../FileManager/MessagesDialog.h" +#include "../FileManager/PasswordDialog.h" using namespace NWindows; @@ -30,6 +30,7 @@ void CUpdateCallbackGUI::Init() FailedFiles.Clear(); Messages.Clear(); NumArchiveErrors = 0; + NumFiles = 0; } void CUpdateCallbackGUI::AddErrorMessage(LPCWSTR message) @@ -102,6 +103,12 @@ HRESULT CUpdateCallbackGUI::Finilize() return S_OK; } +HRESULT CUpdateCallbackGUI::SetNumFiles(UInt64 numFiles) +{ + ProgressDialog.ProgressSynch.SetNumFilesTotal(numFiles); + return S_OK; +} + HRESULT CUpdateCallbackGUI::SetTotal(UInt64 total) { ProgressDialog.ProgressSynch.SetProgress(total, 0); @@ -116,6 +123,13 @@ HRESULT CUpdateCallbackGUI::SetCompleted(const UInt64 *completeValue) return S_OK; } +HRESULT CUpdateCallbackGUI::SetRatioInfo(const UInt64 *inSize, const UInt64 *outSize) +{ + RINOK(CheckBreak()); + ProgressDialog.ProgressSynch.SetRatioInfo(inSize, outSize); + return S_OK; +} + HRESULT CUpdateCallbackGUI::GetStream(const wchar_t *name, bool /* isAnti */) { ProgressDialog.ProgressSynch.SetCurrentFileName(name); @@ -135,6 +149,8 @@ HRESULT CUpdateCallbackGUI::OpenFileError(const wchar_t *name, DWORD systemError HRESULT CUpdateCallbackGUI::SetOperationResult(Int32 /* operationResult */) { + NumFiles++; + ProgressDialog.ProgressSynch.SetNumFilesCur(NumFiles); return S_OK; } |