WX_PROGRESS_REPORTER: fixed windows build error
This commit is contained in:
parent
4facfd846a
commit
4bf90f9717
|
@ -53,7 +53,7 @@ void PROGRESS_REPORTER::AdvancePhase( )
|
||||||
void PROGRESS_REPORTER::Report( const wxString& aMessage )
|
void PROGRESS_REPORTER::Report( const wxString& aMessage )
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> guard( m_lock );
|
std::lock_guard<std::mutex> guard( m_lock );
|
||||||
m_message = aMessage;
|
m_rptMessage = aMessage;
|
||||||
updateUI();
|
updateUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,5 +102,5 @@ void WX_PROGRESS_REPORTER::updateUI()
|
||||||
cur = 0;
|
cur = 0;
|
||||||
|
|
||||||
SetRange( 1000 );
|
SetRange( 1000 );
|
||||||
Update( cur, m_message );
|
Update( cur, m_rptMessage );
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,9 +47,11 @@ class PROGRESS_REPORTER
|
||||||
int currentProgress() const;
|
int currentProgress() const;
|
||||||
virtual void updateUI() = 0;
|
virtual void updateUI() = 0;
|
||||||
|
|
||||||
wxString m_message;
|
wxString m_rptMessage;
|
||||||
int m_phase, m_numPhases;
|
int m_phase;
|
||||||
int m_progress, m_maxProgress;
|
int m_numPhases;
|
||||||
|
int m_progress;
|
||||||
|
int m_maxProgress;
|
||||||
|
|
||||||
std::mutex m_lock;
|
std::mutex m_lock;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue