JX Application Framework
|
#include <JTextProgressDisplay.h>
Public Member Functions | |
JTextProgressDisplay () | |
~JTextProgressDisplay () override | |
bool | IncrementProgress (const JString &message=JString::empty) override |
bool | IncrementProgress (const JSize delta) override |
bool | IncrementProgress (const JString &message, const JSize delta) override |
void | ProcessFinished () override |
void | DisplayBusyCursor () override |
![]() | |
JProgressDisplay () | |
virtual | ~JProgressDisplay () |
void | FixedLengthProcessBeginning (const JSize stepCount, const JString &message, const bool allowCancel, const bool modal) |
void | VariableLengthProcessBeginning (const JString &message, const bool allowCancel, const bool modal) |
virtual bool | ProcessContinuing () |
bool | ProcessRunning () const |
ProcessType | GetCurrentProcessType () const |
JSize | GetCurrentStepCount () const |
Protected Member Functions | |
void | ProcessBeginning (const ProcessType processType, const JSize stepCount, const JString &message, const bool allowCancel, const bool modal) override |
bool | CheckForCancel () override |
![]() | |
bool | AllowCancel () const |
bool | IsModal () const |
JSize | GetMaxStepCount () const |
void | IncrementStepCount (const JSize delta=1) |
Additional Inherited Members | |
![]() | |
enum | ProcessType { kNoRunningProcess , kFixedLengthProcess , kVariableLengthProcess } |
Interface for the JTextProgressDisplay class.
Class for displaying the progress of a long process on the console.
JTextProgressDisplay::JTextProgressDisplay | ( | ) |
|
override |
Make sure we restore the original signal handler.
|
overrideprotectedvirtual |
Implements JProgressDisplay.
|
overridevirtual |
Implements JProgressDisplay.
The iteration count is incremented by the specified value.
Update the display to show that progress is being made. Returns false if process was cancelled by user.
Implements JProgressDisplay.
|
overridevirtual |
Update the display to show that progress is being made. Returns false if process was cancelled by user.
If the current process is of variable length and the message is not nullptr, then it is displayed in place of the usual iteration count.
Implements JProgressDisplay.
|
overridevirtual |
Update the display to show that progress is being made. Returns false if process was cancelled by user.
If the current process is of variable length and the message is not nullptr, then it is displayed in place of the usual iteration count.
Implements JProgressDisplay.
|
overrideprotectedvirtual |
Display the message.
Reimplemented from JProgressDisplay.
|
overridevirtual |
Derived classes must call this and then clean up the display they created.
Reimplemented from JProgressDisplay.