KiCad PCB EDA Suite
|
Reporter forwarding messages to stdout or stderr as appropriate. More...
#include <cli_progress_reporter.h>
Public Member Functions | |
CLI_PROGRESS_REPORTER () | |
virtual | ~CLI_PROGRESS_REPORTER () |
virtual void | SetNumPhases (int aNumPhases) override |
Set the number of phases. | |
virtual void | AddPhases (int aNumPhases) override |
virtual void | BeginPhase (int aPhase) override |
Initialize the aPhase virtual zone of the dialog progress bar. | |
virtual void | AdvancePhase () override |
Use the next available virtual zone of the dialog progress bar. | |
virtual void | AdvancePhase (const wxString &aMessage) override |
Use the next available virtual zone of the dialog progress bar and updates the message. | |
virtual void | Report (const wxString &aMessage) override |
Display aMessage in the progress bar dialog. | |
virtual void | SetCurrentProgress (double aProgress) override |
Set the progress value to aProgress (0..1). | |
virtual void | SetMaxProgress (int aMaxProgress) override |
Fix the value that gives the 100 percent progress bar length (inside the current virtual zone). | |
virtual void | AdvanceProgress () override |
Increment the progress bar length (inside the current virtual zone). | |
virtual bool | KeepRefreshing (bool aWait=false) override |
Update the UI (if any). | |
virtual void | SetTitle (const wxString &aTitle) override |
Change the title displayed on the window caption. | |
virtual bool | IsCancelled () const override |
Static Public Member Functions | |
static PROGRESS_REPORTER & | GetInstance () |
Private Member Functions | |
void | printLine (const wxString &aMessage) |
Reporter forwarding messages to stdout or stderr as appropriate.
Definition at line 33 of file cli_progress_reporter.h.
|
inline |
Definition at line 36 of file cli_progress_reporter.h.
|
inlinevirtual |
Definition at line 38 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Implements PROGRESS_REPORTER.
Definition at line 46 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Use the next available virtual zone of the dialog progress bar.
Implements PROGRESS_REPORTER.
Definition at line 56 of file cli_progress_reporter.h.
|
overridevirtual |
Use the next available virtual zone of the dialog progress bar and updates the message.
Implements PROGRESS_REPORTER.
Definition at line 36 of file cli_progress_reporter.cpp.
References printLine().
|
inlineoverridevirtual |
Increment the progress bar length (inside the current virtual zone).
Implements PROGRESS_REPORTER.
Definition at line 82 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Initialize the aPhase virtual zone of the dialog progress bar.
Implements PROGRESS_REPORTER.
Definition at line 51 of file cli_progress_reporter.h.
|
static |
Definition at line 28 of file cli_progress_reporter.cpp.
Referenced by SCH::IFACE::OnKifaceStart(), and PCB::IFACE::OnKifaceStart().
|
inlineoverridevirtual |
Implements PROGRESS_REPORTER.
Definition at line 102 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Update the UI (if any).
Implements PROGRESS_REPORTER.
Definition at line 91 of file cli_progress_reporter.h.
|
private |
Definition at line 48 of file cli_progress_reporter.cpp.
Referenced by AdvancePhase(), and Report().
|
overridevirtual |
Display aMessage in the progress bar dialog.
Implements PROGRESS_REPORTER.
Definition at line 42 of file cli_progress_reporter.cpp.
References printLine().
|
inlineoverridevirtual |
Set the progress value to aProgress (0..1).
Implements PROGRESS_REPORTER.
Definition at line 71 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Fix the value that gives the 100 percent progress bar length (inside the current virtual zone).
Implements PROGRESS_REPORTER.
Definition at line 77 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Set the number of phases.
Implements PROGRESS_REPORTER.
Definition at line 45 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Change the title displayed on the window caption.
Has meaning only for some reporters. Does nothing for others.
Implements PROGRESS_REPORTER.
Definition at line 100 of file cli_progress_reporter.h.