You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.5 KiB
C++

#pragma once
#include "ObjContainer.h"
class CTimingProgressMgr
{
public:
CTimingProgressMgr(void);
~CTimingProgressMgr(void);
void SetShowInfo(CString str);
void SetTimingProgressTime(double ExecuteTime);
void StartTimingProgress();
void StartTimingProgressExt();
void StopExecute();//停止执行
int GetExecuteTime(){return m_ExecuteTime;};
bool IsbStopExecute(){return m_StopExecute;};
CString GetShowInfo(){return m_ShowInfo;};
void SetbExecuting(bool b){m_bExecuting = b;};
bool IsbExecuting(){return m_bExecuting;};
void SetbCloseApp(){m_bCloseApp = true;};
bool IsbCloseApp(){return m_bCloseApp;};
void SetbStopBtn(bool b){m_bStopBtn = b;};
bool IsbStopBtn(){return m_bStopBtn;};
void AddCurExecuteTime(double AddTime){m_CurExecuteTime = m_CurExecuteTime+AddTime;};
bool CheckCurExecuteTime(double CheckTime);
double GetProgressVal();
private:
private:
CString m_ShowInfo;//显示的信息
double m_ExecuteTime;//执行时间ms (总时间)
double m_CurExecuteTime;//当前的执行时间ms
bool m_StopExecute;//停止执行
bool m_bExecuting;//是否正在执行
bool m_bStopBtn;//是否有stop 按钮
bool m_bCloseApp;//是否正在执行关闭软件操作
};
extern CTimingProgressMgr gTimingProgressMgr;