blob: 8721b456be94b201a23af263e4999cbb669c51ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
|