#include <jpgprgrs.h>
Inheritance diagram for JPEGProgressBySelf:
Public Member Functions | |
JPEGProgressBySelf (libJPEG::j_decompress_ptr cinfo, const StringBase &BarString) | |
~JPEGProgressBySelf () | |
Destructor - stops the progress bar Notes: Derived classes should call this subsequent to any specialized destruction code of their own. | |
Protected Member Functions | |
virtual void | OnUpdate () |
Called by JPEGProgressMonitor::Update() to provide feedback on the filter progress. Derived classes should provide an implementation for this. JPEGProgressBySelf calls the contained Progress::Update member with the percentage done. | |
Protected Attributes | |
String_64 | m_BarString |
Progress * | m_pProgressBar |
UINT32 | m_uLastPercentDone |
Definition at line 149 of file jpgprgrs.h.
|
|
|
Destructor - stops the progress bar Notes: Derived classes should call this subsequent to any specialized destruction code of their own.
Definition at line 220 of file jpgprgrs.cpp. 00221 { 00222 // If started, then stop then progress bar 00223 if (m_pProgressBar != NULL) 00224 { 00225 delete m_pProgressBar; 00226 m_pProgressBar = NULL; 00227 } 00228 }
|
|
Called by JPEGProgressMonitor::Update() to provide feedback on the filter progress. Derived classes should provide an implementation for this. JPEGProgressBySelf calls the contained Progress::Update member with the percentage done.
Implements JPEGProgressMonitor. Definition at line 243 of file jpgprgrs.cpp. 00244 { 00245 /* 00246 Fraction done = 00247 00248 completed_passes + (pass_counter/pass_limit) 00249 -------------------------------------------- 00250 total_passes 00251 */ 00252 UINT32 PercentDone = (UINT32) (100L * completed_passes + (100L * pass_counter) / pass_limit) 00253 / total_passes; 00254 00255 // Update the progress count, if required 00256 // but don't bother if the user aborted 00257 if (PercentDone != m_uLastPercentDone && m_bContinueOp) 00258 { 00259 m_bContinueOp = m_pProgressBar->Update(PercentDone); 00260 m_uLastPercentDone = PercentDone; 00261 } 00262 }
|
|
Definition at line 160 of file jpgprgrs.h. |
|
Definition at line 161 of file jpgprgrs.h. |
|
Definition at line 162 of file jpgprgrs.h. |