|
|
|
|
#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();//ִֹͣ<D6B9><D6B4>
|
|
|
|
|
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;//<2F><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>Ϣ
|
|
|
|
|
double m_ExecuteTime;//ִ<><D6B4>ʱ<EFBFBD><CAB1>ms (<28><>ʱ<EFBFBD><CAB1>)
|
|
|
|
|
double m_CurExecuteTime;//<2F><>ǰ<EFBFBD><C7B0>ִ<EFBFBD><D6B4>ʱ<EFBFBD><CAB1>ms
|
|
|
|
|
bool m_StopExecute;//ִֹͣ<D6B9><D6B4>
|
|
|
|
|
bool m_bExecuting;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>
|
|
|
|
|
bool m_bStopBtn;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>stop <20><>ť
|
|
|
|
|
bool m_bCloseApp;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD>йر<D0B9><D8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
extern CTimingProgressMgr gTimingProgressMgr;
|