| 
    KiCad PCB EDA Suite
    
   | 
 
#include <background_jobs_monitor.h>
  
Public Member Functions | |
| BACKGROUND_JOB_REPORTER (BACKGROUND_JOBS_MONITOR *aMonitor, const std::shared_ptr< BACKGROUND_JOB > &aJob) | |
| void | SetTitle (const wxString &aTitle) override | 
| Change the title displayed on the window caption.   | |
| void | Report (const wxString &aMessage) override | 
| Display aMessage in the progress bar dialog.   | |
| void | Cancel () | 
| void | AdvancePhase () override | 
| Use the next available virtual zone of the dialog progress bar.   | |
| void | SetNumPhases (int aNumPhases) override | 
| Set the number of phases.   | |
| void | SetCurrentProgress (double aProgress) override | 
| Set the progress value to aProgress (0..1).   | |
| void | AddPhases (int aNumPhases) override | 
| virtual void | BeginPhase (int aPhase) override | 
| Initialize the aPhase 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.   | |
| 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.   | |
| 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 | |
| bool | updateUI () override | 
Private Attributes | |
| BACKGROUND_JOBS_MONITOR * | m_monitor | 
| std::shared_ptr< BACKGROUND_JOB > | m_job | 
| wxString | m_title | 
| wxString | m_report | 
Definition at line 45 of file background_jobs_monitor.h.
| BACKGROUND_JOB_REPORTER::BACKGROUND_JOB_REPORTER | ( | BACKGROUND_JOBS_MONITOR * | aMonitor, | 
| const std::shared_ptr< BACKGROUND_JOB > & | aJob ) | 
Definition at line 175 of file background_jobs_monitor.cpp.
References m_job, m_monitor, and PROGRESS_REPORTER_BASE::PROGRESS_REPORTER_BASE().
      
  | 
  overridevirtualinherited | 
Implements PROGRESS_REPORTER.
Definition at line 98 of file progress_reporter_base.cpp.
References m_numPhases.
      
  | 
  overridevirtual | 
Use the next available virtual zone of the dialog progress bar.
Reimplemented from PROGRESS_REPORTER_BASE.
Definition at line 206 of file background_jobs_monitor.cpp.
References PROGRESS_REPORTER_BASE::AdvancePhase(), m_job, m_monitor, and PROGRESS_REPORTER_BASE::m_phase.
      
  | 
  overridevirtualinherited | 
Use the next available virtual zone of the dialog progress bar and updates the message.
Implements PROGRESS_REPORTER.
Reimplemented in DIALOG_DRC, and DIALOG_ERC.
Definition at line 57 of file progress_reporter_base.cpp.
References AdvancePhase(), and 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 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 m_phase, and m_progress.
      
  | 
  inline | 
Definition at line 57 of file background_jobs_monitor.h.
References PROGRESS_REPORTER_BASE::m_cancelled.
      
  | 
  inherited | 
Definition at line 104 of file progress_reporter_base.cpp.
References m_maxProgress, m_numPhases, m_phase, and m_progress.
Referenced by GAUGE_PROGRESS_REPORTER::updateUI(), and WX_PROGRESS_REPORTER::updateUI().
      
  | 
  inlineoverridevirtualinherited | 
Implements PROGRESS_REPORTER.
Definition at line 108 of file progress_reporter_base.h.
References m_cancelled.
      
  | 
  overridevirtualinherited | 
Update the UI dialog.
Implements PROGRESS_REPORTER.
Definition at line 113 of file progress_reporter_base.cpp.
References m_cancelled, m_maxProgress, m_progress, and updateUI().
Referenced by SCH_EDIT_FRAME::importFile(), and SCH_EDIT_FRAME::OpenProjectFiles().
      
  | 
  overridevirtual | 
Display aMessage in the progress bar dialog.
Reimplemented from PROGRESS_REPORTER_BASE.
Definition at line 191 of file background_jobs_monitor.cpp.
      
  | 
  overridevirtual | 
Set the progress value to aProgress (0..1).
Reimplemented from PROGRESS_REPORTER_BASE.
Definition at line 214 of file background_jobs_monitor.cpp.
References m_job, m_monitor, and PROGRESS_REPORTER_BASE::SetCurrentProgress().
      
  | 
  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 m_maxProgress.
      
  | 
  overridevirtual | 
Set the number of phases.
Implements PROGRESS_REPORTER.
Definition at line 198 of file background_jobs_monitor.cpp.
References m_job, m_monitor, PROGRESS_REPORTER_BASE::m_numPhases, and PROGRESS_REPORTER_BASE::SetNumPhases().
      
  | 
  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 51 of file background_jobs_monitor.h.
      
  | 
  overrideprivatevirtual | 
Implements PROGRESS_REPORTER_BASE.
Definition at line 185 of file background_jobs_monitor.cpp.
References PROGRESS_REPORTER_BASE::m_cancelled.
      
  | 
  protectedinherited | 
Definition at line 123 of file progress_reporter_base.h.
Referenced by BACKGROUND_JOB_REPORTER::Cancel(), IsCancelled(), KeepRefreshing(), DIALOG_DRC::OnCancelClick(), DIALOG_ERC::OnCancelClick(), DIALOG_PCM_PROGRESS::OnCancelClicked(), DIALOG_DRC::OnRunDRCClick(), DIALOG_ERC::OnRunERCClick(), PROGRESS_REPORTER_BASE(), BACKGROUND_JOB_REPORTER::updateUI(), DIALOG_DRC::updateUI(), and DIALOG_ERC::updateUI().
      
  | 
  private | 
Definition at line 69 of file background_jobs_monitor.h.
Referenced by AdvancePhase(), BACKGROUND_JOB_REPORTER(), Report(), SetCurrentProgress(), and SetNumPhases().
      
  | 
  protectedinherited | 
Definition at line 122 of file progress_reporter_base.h.
Referenced by CurrentProgress(), KeepRefreshing(), DIALOG_PCM_PROGRESS::OnCloseClicked(), PROGRESS_REPORTER_BASE(), SetCurrentProgress(), SetMaxProgress(), CONSOLE_PROGRESS_REPORTER::updateUI(), and DIALOG_DRC::updateUI().
      
  | 
  protectedinherited | 
Definition at line 129 of file progress_reporter_base.h.
Referenced by PROGRESS_REPORTER_BASE(), Report(), and WX_PROGRESS_REPORTER::updateUI().
      
  | 
  private | 
Definition at line 68 of file background_jobs_monitor.h.
Referenced by AdvancePhase(), BACKGROUND_JOB_REPORTER(), Report(), SetCurrentProgress(), and SetNumPhases().
      
  | 
  mutableprotectedinherited | 
Definition at line 118 of file progress_reporter_base.h.
Referenced by DIALOG_PCM_PROGRESS::PCMReport(), Report(), DIALOG_PCM_PROGRESS::updateUI(), and WX_PROGRESS_REPORTER::updateUI().
      
  | 
  protectedinherited | 
Definition at line 120 of file progress_reporter_base.h.
Referenced by AddPhases(), CurrentProgress(), PROGRESS_REPORTER_BASE(), BACKGROUND_JOB_REPORTER::SetNumPhases(), SetNumPhases(), and DIALOG_PCM_PROGRESS::updateUI().
      
  | 
  protectedinherited | 
Definition at line 119 of file progress_reporter_base.h.
Referenced by BACKGROUND_JOB_REPORTER::AdvancePhase(), AdvancePhase(), BeginPhase(), CurrentProgress(), PROGRESS_REPORTER_BASE(), and DIALOG_PCM_PROGRESS::updateUI().
      
  | 
  protectedinherited | 
Definition at line 121 of file progress_reporter_base.h.
Referenced by AdvancePhase(), AdvanceProgress(), BeginPhase(), CurrentProgress(), KeepRefreshing(), DIALOG_PCM_PROGRESS::OnCloseClicked(), PROGRESS_REPORTER_BASE(), SetCurrentProgress(), CONSOLE_PROGRESS_REPORTER::updateUI(), and DIALOG_DRC::updateUI().
      
  | 
  private | 
Definition at line 71 of file background_jobs_monitor.h.
      
  | 
  protectedinherited | 
Definition at line 116 of file progress_reporter_base.h.
Referenced by Report(), CONSOLE_PROGRESS_REPORTER::updateUI(), and WX_PROGRESS_REPORTER::updateUI().
      
  | 
  private | 
Definition at line 70 of file background_jobs_monitor.h.