PROGRESS_REPORTER: implement SetCurrentProgress() method
This commit is contained in:
parent
65a1ed96e0
commit
9d0f5c7f94
|
@ -61,6 +61,12 @@ void PROGRESS_REPORTER::SetMaxProgress( int aMaxProgress )
|
||||||
m_maxProgress.store( aMaxProgress );
|
m_maxProgress.store( aMaxProgress );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PROGRESS_REPORTER::SetCurrentProgress( double aProgress )
|
||||||
|
{
|
||||||
|
m_maxProgress.store( 10000 );
|
||||||
|
m_progress.store( (int) (aProgress * 10000.0) );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void PROGRESS_REPORTER::AdvanceProgress()
|
void PROGRESS_REPORTER::AdvanceProgress()
|
||||||
{
|
{
|
||||||
|
|
|
@ -63,6 +63,11 @@ class PROGRESS_REPORTER
|
||||||
*/
|
*/
|
||||||
void Report( const wxString& aMessage );
|
void Report( const wxString& aMessage );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the progress value to aProgress (0..1)
|
||||||
|
*/
|
||||||
|
void SetCurrentProgress( double aProgress );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fix the value thar gives the 100 precent progress bar length
|
* Fix the value thar gives the 100 precent progress bar length
|
||||||
* (inside the current virtual zone)
|
* (inside the current virtual zone)
|
||||||
|
|
Loading…
Reference in New Issue