KiCad PCB EDA Suite
|
#include <console_log.h>
Public Member Functions | |
CONSOLE_PROGRESS_REPORTER (CONSOLE_LOG *log) | |
~CONSOLE_PROGRESS_REPORTER () | |
virtual void | SetCurrentProgress (double aProgress) override |
Set the progress value to aProgress (0..1). | |
CONSOLE_PROGRESS_REPORTER (CONSOLE_LOG *log) | |
~CONSOLE_PROGRESS_REPORTER () | |
virtual void | SetCurrentProgress (double aProgress) override |
Set the progress value to aProgress (0..1). | |
void | SetNumPhases (int aNumPhases) override |
Set the number of phases. | |
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. | |
void | SetMaxProgress (int aMaxProgress) override |
Fix the value that gives the 100 percent progress bar length (inside the current virtual zone). | |
void | AdvanceProgress () override |
Increment the progress bar length (inside the current virtual zone). | |
bool | KeepRefreshing (bool aWait=false) override |
Update the UI dialog. | |
void | SetTitle (const wxString &aTitle) override |
Change the title displayed on the window caption. | |
bool | IsCancelled () const override |
int | CurrentProgress () const |
Protected Attributes | |
wxString | m_rptMessage |
std::mutex | m_mutex |
std::atomic_int | m_phase |
std::atomic_int | m_numPhases |
std::atomic_int | m_progress |
std::atomic_int | m_maxProgress |
std::atomic_bool | m_cancelled |
std::atomic_bool | m_messageChanged |
Private Member Functions | |
virtual bool | updateUI () override |
virtual bool | updateUI () override |
Private Attributes | |
CONSOLE_LOG * | m_log |
Definition at line 95 of file console_log.h.
|
inline |
Definition at line 98 of file console_log.h.
|
inline |
Definition at line 101 of file console_log.h.
|
inline |
Definition at line 100 of file drc_proto.h.
|
inline |
Definition at line 103 of file drc_proto.h.
|
overridevirtualinherited |
Implements PROGRESS_REPORTER.
Definition at line 98 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_numPhases.
|
overridevirtualinherited |
Use the next available virtual zone of the dialog progress bar.
Implements PROGRESS_REPORTER.
Reimplemented in BACKGROUND_JOB_REPORTER, and DIALOG_PCM_PROGRESS.
Definition at line 50 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_phase, and PROGRESS_REPORTER_BASE::m_progress.
Referenced by BACKGROUND_JOB_REPORTER::AdvancePhase(), DIALOG_PCM_PROGRESS::AdvancePhase(), DIALOG_ERC::AdvancePhase(), PROGRESS_REPORTER_BASE::AdvancePhase(), and DIALOG_DRC::AdvancePhase().
|
overridevirtualinherited |
Use the next available virtual zone of the dialog progress bar and updates the message.
Implements PROGRESS_REPORTER.
Reimplemented in DIALOG_ERC, and DIALOG_DRC.
Definition at line 57 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::AdvancePhase(), and PROGRESS_REPORTER_BASE::Report().
|
overridevirtualinherited |
Increment the progress bar length (inside the current virtual zone).
Implements PROGRESS_REPORTER.
Definition at line 86 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_progress.
|
overridevirtualinherited |
Initialize the aPhase virtual zone of the dialog progress bar.
Implements PROGRESS_REPORTER.
Definition at line 43 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_phase, and PROGRESS_REPORTER_BASE::m_progress.
|
inherited |
Definition at line 104 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_maxProgress, PROGRESS_REPORTER_BASE::m_numPhases, PROGRESS_REPORTER_BASE::m_phase, and PROGRESS_REPORTER_BASE::m_progress.
Referenced by WX_PROGRESS_REPORTER::updateUI(), and GAUGE_PROGRESS_REPORTER::updateUI().
|
inlineoverridevirtualinherited |
Implements PROGRESS_REPORTER.
Definition at line 108 of file progress_reporter_base.h.
Referenced by SYMBOL_EDIT_FRAME::SYMBOL_EDIT_FRAME().
|
overridevirtualinherited |
Update the UI dialog.
Implements PROGRESS_REPORTER.
Definition at line 113 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_cancelled, PROGRESS_REPORTER_BASE::m_maxProgress, PROGRESS_REPORTER_BASE::m_progress, and PROGRESS_REPORTER_BASE::updateUI().
Referenced by PCB_EDIT_FRAME::GenIPC2581File().
|
overridevirtualinherited |
Display aMessage in the progress bar dialog.
Implements PROGRESS_REPORTER.
Reimplemented in DIALOG_ERC, and BACKGROUND_JOB_REPORTER.
Definition at line 64 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_messageChanged, PROGRESS_REPORTER_BASE::m_mutex, and PROGRESS_REPORTER_BASE::m_rptMessage.
Referenced by PROGRESS_REPORTER_BASE::AdvancePhase().
|
inlineoverridevirtual |
Set the progress value to aProgress (0..1).
Reimplemented from PROGRESS_REPORTER_BASE.
Definition at line 103 of file console_log.h.
References PROGRESS_REPORTER_BASE::SetCurrentProgress(), and updateUI().
|
inlineoverridevirtual |
Set the progress value to aProgress (0..1).
Reimplemented from PROGRESS_REPORTER_BASE.
Definition at line 105 of file drc_proto.h.
References PROGRESS_REPORTER_BASE::SetCurrentProgress(), and updateUI().
|
overridevirtualinherited |
Fix the value that gives the 100 percent progress bar length (inside the current virtual zone).
Implements PROGRESS_REPORTER.
Definition at line 73 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_maxProgress.
|
overridevirtualinherited |
Set the number of phases.
Implements PROGRESS_REPORTER.
Definition at line 92 of file progress_reporter_base.cpp.
References PROGRESS_REPORTER_BASE::m_numPhases.
Referenced by DIALOG_PCM_PROGRESS::OnCancelClicked(), and BACKGROUND_JOB_REPORTER::SetNumPhases().
|
inlineoverridevirtualinherited |
Change the title displayed on the window caption.
Has meaning only for some reporters. Does nothing for others.
Implements PROGRESS_REPORTER.
Reimplemented in WX_PROGRESS_REPORTER.
Definition at line 106 of file progress_reporter_base.h.
|
inlineoverrideprivatevirtual |
Implements PROGRESS_REPORTER_BASE.
Definition at line 110 of file console_log.h.
References CONSOLE_LOG::GREEN, m_log, PROGRESS_REPORTER_BASE::m_maxProgress, PROGRESS_REPORTER_BASE::m_progress, PROGRESS_REPORTER_BASE::m_rptMessage, CONSOLE_LOG::PrintProgress(), and CONSOLE_LOG::SetColor().
Referenced by SetCurrentProgress().
|
inlineoverrideprivatevirtual |
Implements PROGRESS_REPORTER_BASE.
Definition at line 112 of file drc_proto.h.
References CONSOLE_LOG::GREEN, m_log, PROGRESS_REPORTER_BASE::m_maxProgress, PROGRESS_REPORTER_BASE::m_progress, PROGRESS_REPORTER_BASE::m_rptMessage, CONSOLE_LOG::PrintProgress(), and CONSOLE_LOG::SetColor().
|
protectedinherited |
Definition at line 123 of file progress_reporter_base.h.
Referenced by PROGRESS_REPORTER_BASE::KeepRefreshing(), DIALOG_DRC::OnCancelClick(), DIALOG_ERC::OnCancelClick(), DIALOG_PCM_PROGRESS::OnCancelClicked(), DIALOG_DRC::OnRunDRCClick(), DIALOG_ERC::OnRunERCClick(), DIALOG_ERC::updateUI(), and DIALOG_DRC::updateUI().
|
private |
Definition at line 120 of file console_log.h.
Referenced by updateUI().
|
protectedinherited |
Definition at line 122 of file progress_reporter_base.h.
Referenced by PROGRESS_REPORTER_BASE::CurrentProgress(), PROGRESS_REPORTER_BASE::KeepRefreshing(), DIALOG_PCM_PROGRESS::OnCloseClicked(), PROGRESS_REPORTER_BASE::SetCurrentProgress(), PROGRESS_REPORTER_BASE::SetMaxProgress(), DIALOG_DRC::updateUI(), and updateUI().
|
protectedinherited |
Definition at line 129 of file progress_reporter_base.h.
Referenced by PROGRESS_REPORTER_BASE::Report(), and WX_PROGRESS_REPORTER::updateUI().
|
mutableprotectedinherited |
Definition at line 118 of file progress_reporter_base.h.
Referenced by DIALOG_PCM_PROGRESS::PCMReport(), PROGRESS_REPORTER_BASE::Report(), WX_PROGRESS_REPORTER::updateUI(), and DIALOG_PCM_PROGRESS::updateUI().
|
protectedinherited |
Definition at line 120 of file progress_reporter_base.h.
Referenced by PROGRESS_REPORTER_BASE::AddPhases(), PROGRESS_REPORTER_BASE::CurrentProgress(), BACKGROUND_JOB_REPORTER::SetNumPhases(), PROGRESS_REPORTER_BASE::SetNumPhases(), and DIALOG_PCM_PROGRESS::updateUI().
|
protectedinherited |
Definition at line 119 of file progress_reporter_base.h.
Referenced by BACKGROUND_JOB_REPORTER::AdvancePhase(), PROGRESS_REPORTER_BASE::AdvancePhase(), PROGRESS_REPORTER_BASE::BeginPhase(), PROGRESS_REPORTER_BASE::CurrentProgress(), and DIALOG_PCM_PROGRESS::updateUI().
|
protectedinherited |
Definition at line 121 of file progress_reporter_base.h.
Referenced by PROGRESS_REPORTER_BASE::AdvancePhase(), PROGRESS_REPORTER_BASE::AdvanceProgress(), PROGRESS_REPORTER_BASE::BeginPhase(), PROGRESS_REPORTER_BASE::CurrentProgress(), PROGRESS_REPORTER_BASE::KeepRefreshing(), DIALOG_PCM_PROGRESS::OnCloseClicked(), PROGRESS_REPORTER_BASE::SetCurrentProgress(), DIALOG_DRC::updateUI(), and updateUI().
|
protectedinherited |
Definition at line 116 of file progress_reporter_base.h.
Referenced by PROGRESS_REPORTER_BASE::Report(), WX_PROGRESS_REPORTER::updateUI(), and updateUI().