mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 04:07:02 -06:00
31 lines
633 B
C++
Executable File
31 lines
633 B
C++
Executable File
// ProgressBox.h
|
|
|
|
#ifndef __PROGRESSBOX_H
|
|
#define __PROGRESSBOX_H
|
|
|
|
#include "Common/MyString.h"
|
|
#include "Common/Types.h"
|
|
|
|
void ConvertUInt64ToStringAligned(UInt64 value, char *s, int alignSize);
|
|
|
|
class CMessageBox
|
|
{
|
|
AString _title;
|
|
int _width;
|
|
public:
|
|
void Init(const AString &title, int width);
|
|
void ShowMessages(const char *strings[], int numStrings);
|
|
};
|
|
|
|
class CProgressBox: public CMessageBox
|
|
{
|
|
AString _prevMessage;
|
|
AString _prevPercentMessage;
|
|
bool _wasShown;
|
|
public:
|
|
void Init(const AString &title, int width);
|
|
void Progress(const UInt64 *total, const UInt64 *completed, const AString &message);
|
|
};
|
|
|
|
#endif
|