|
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 () |
| void | SetVerbose (bool aVerbose) |
| Enable or disable verbose mode. | |
| bool | GetVerbose () const |
| 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 CLI_PROGRESS_REPORTER & | GetInstance () |
Private Member Functions | |
| void | printLine (const wxString &aMessage) |
Private Attributes | |
| bool | m_verbose |
Reporter forwarding messages to stdout or stderr as appropriate.
By default, informational messages are suppressed unless verbose mode is enabled.
Definition at line 35 of file cli_progress_reporter.h.
|
inline |
Definition at line 38 of file cli_progress_reporter.h.
References m_verbose.
Referenced by GetInstance().
|
inlinevirtual |
Definition at line 42 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Implements PROGRESS_REPORTER.
Definition at line 57 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Use the next available virtual zone of the dialog progress bar.
Implements PROGRESS_REPORTER.
Definition at line 67 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 m_verbose, and printLine().
|
inlineoverridevirtual |
Increment the progress bar length (inside the current virtual zone).
Implements PROGRESS_REPORTER.
Definition at line 93 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Initialize the aPhase virtual zone of the dialog progress bar.
Implements PROGRESS_REPORTER.
Definition at line 62 of file cli_progress_reporter.h.
|
static |
Definition at line 28 of file cli_progress_reporter.cpp.
References CLI_PROGRESS_REPORTER().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PCB::IFACE::OnKifaceStart(), and SCH::IFACE::OnKifaceStart().
|
inline |
Definition at line 51 of file cli_progress_reporter.h.
References m_verbose.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineoverridevirtual |
Implements PROGRESS_REPORTER.
Definition at line 113 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Update the UI (if any).
Implements PROGRESS_REPORTER.
Definition at line 102 of file cli_progress_reporter.h.
|
private |
Definition at line 50 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 43 of file cli_progress_reporter.cpp.
References m_verbose, and printLine().
|
inlineoverridevirtual |
Set the progress value to aProgress (0..1).
Implements PROGRESS_REPORTER.
Definition at line 82 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 88 of file cli_progress_reporter.h.
|
inlineoverridevirtual |
Set the number of phases.
Implements PROGRESS_REPORTER.
Definition at line 56 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 111 of file cli_progress_reporter.h.
|
inline |
Enable or disable verbose mode.
When enabled, progress messages are printed.
Definition at line 49 of file cli_progress_reporter.h.
References m_verbose.
Referenced by BOOST_AUTO_TEST_CASE().
|
private |
Definition at line 119 of file cli_progress_reporter.h.
Referenced by AdvancePhase(), CLI_PROGRESS_REPORTER(), GetVerbose(), Report(), and SetVerbose().