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>2008-08-13 04:00:00 +0400
committerKornel LesiƄski <kornel@geekhood.net>2016-05-28 02:15:56 +0300
commit173c07e166fdf6fcd20f18ea73008f1b628945df (patch)
tree13ebea85cdc4c16ae93714ff0627ee9f91ad7e08 /CPP/7zip/UI/Far/ProgressBox.h
parent3901bf0ab88106a5b031cba7bc18d60cdebf7eef (diff)
4.59 beta
Diffstat (limited to 'CPP/7zip/UI/Far/ProgressBox.h')
-rwxr-xr-xCPP/7zip/UI/Far/ProgressBox.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/CPP/7zip/UI/Far/ProgressBox.h b/CPP/7zip/UI/Far/ProgressBox.h
index 9e6f671a..2bada8e9 100755
--- a/CPP/7zip/UI/Far/ProgressBox.h
+++ b/CPP/7zip/UI/Far/ProgressBox.h
@@ -6,30 +6,25 @@
#include "Common/MyString.h"
#include "Common/Types.h"
+void ConvertUInt64ToStringAligned(UInt64 value, char *s, int alignSize);
+
class CMessageBox
{
- CSysString m_Title;
- CSysString m_Message;
- int m_NumStrings;
- int m_Width;
+ AString _title;
+ int _width;
public:
- void Init(const CSysString &title,
- const CSysString &message, int numStrings, int width);
- void ShowProcessMessages(const char *messages[]);
+ void Init(const AString &title, int width);
+ void ShowMessages(const char *strings[], int numStrings);
};
class CProgressBox: public CMessageBox
{
- UInt64 m_Total;
- UInt64 m_CompletedPrev;
- UInt64 m_Step;
+ AString _prevMessage;
+ AString _prevPercentMessage;
+ bool _wasShown;
public:
- void Init(const CSysString &title,
- const CSysString &message, UInt64 step);
- void ShowProcessMessage(const char *message);
- void PrintPercent(UInt64 percent);
- void PrintCompeteValue(UInt64 completed);
- void SetTotal(UInt64 total);
+ void Init(const AString &title, int width);
+ void Progress(const UInt64 *total, const UInt64 *completed, const AString &message);
};
#endif