- 产品名/展示串、SDK 与运行时导出 API、.NET 命名空间全部换为 DogProtect
- 文件与目录改名: dogprotect.sln / DogProtect/ / DogProtectCon/ / sdk/DogProtect.SDK /
sdk/DogProtectSDK.{h,pas,bas,inc} / runtime/DogProtect.Runtime/ / core/dogprotect.rc /
app/dogprotect_gui.app
- 项目文件扩展名 .vmp → .dog(含 GUI 过滤器、默认输出名、示例工程、单测)
- VM 代码节名默认 .dog(上游为随机 ".xyz"),产物节为 .dog0/.dog1/...
- 授权数据与配置: DogProtect.dat / DogProtectLicense.ini / Global\\DogProtect.dat
- 域名占位 dogprotect.example,bundle id com.dogprotect.dogprotect
- 保留 VMP_* 内部宏与 third-party/
- BUILD-LINUX.md 增补改名说明与 SDK 兼容性提示
53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
#ifndef PROGRESS_DIALOG_H
|
|
#define PROGRESS_DIALOG_H
|
|
|
|
class WaitCursor;
|
|
|
|
class ProgressDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ProgressDialog(QWidget *parent = NULL);
|
|
public slots:
|
|
void startProgress(const QString &caption, unsigned long long max);
|
|
void stepProgress(unsigned long long value);
|
|
void notify(MessageType type, IObject *sender, const QString &message);
|
|
void cancelClicked();
|
|
signals:
|
|
void cancel();
|
|
protected:
|
|
void closeEvent(QCloseEvent *event);
|
|
private:
|
|
std::auto_ptr<WaitCursor> wait_cursor_;
|
|
QProgressBar *progressBar;
|
|
QLabel *label;
|
|
};
|
|
|
|
Q_DECLARE_INTERFACE(ILog, "ILog")
|
|
|
|
class GUILog : public QObject, ILog
|
|
{
|
|
Q_OBJECT
|
|
Q_INTERFACES(ILog)
|
|
public:
|
|
GUILog(QObject *parent = 0);
|
|
virtual void Notify(MessageType type, IObject *sender, const std::string &message);
|
|
virtual void StartProgress(const std::string &caption, unsigned long long max);
|
|
virtual void StepProgress(unsigned long long value, bool is_project);
|
|
virtual void EndProgress();
|
|
virtual void set_warnings_as_errors(bool /*value*/) { }
|
|
virtual void set_arch_name(const std::string & /*arch_name*/) { }
|
|
void reset() { is_canceled_ = false; }
|
|
public slots:
|
|
void cancel();
|
|
signals:
|
|
void notify(MessageType type, IObject *sender, const QString &message);
|
|
void startProgress(const QString &, unsigned long long);
|
|
void stepProgress(unsigned long long);
|
|
void endProgress();
|
|
private:
|
|
void checkCanceled();
|
|
bool is_canceled_;
|
|
};
|
|
|
|
#endif |