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:
Diffstat (limited to 'CPP/7zip/UI/Far/ProgressBox.h')
-rwxr-xr-xCPP/7zip/UI/Far/ProgressBox.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/CPP/7zip/UI/Far/ProgressBox.h b/CPP/7zip/UI/Far/ProgressBox.h
new file mode 100755
index 00000000..8721b456
--- /dev/null
+++ b/CPP/7zip/UI/Far/ProgressBox.h
@@ -0,0 +1,35 @@
+// ProgressBox.h
+
+#ifndef __PROGRESSBOX_H
+#define __PROGRESSBOX_H
+
+#include "Common/String.h"
+#include "Common/Types.h"
+
+class CMessageBox
+{
+ CSysString m_Title;
+ CSysString m_Message;
+ int m_NumStrings;
+ int m_Width;
+public:
+ void Init(const CSysString &title,
+ const CSysString &message, int numStrings, int width);
+ void ShowProcessMessages(const char *messages[]);
+};
+
+class CProgressBox: public CMessageBox
+{
+ UInt64 m_Total;
+ UInt64 m_CompletedPrev;
+ UInt64 m_Step;
+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);
+};
+
+#endif