| 
    libpappsomspp
    
   Library for mass spectrometry 
   | 
 
#include <uimonitortextpercent.h>
  
Public Member Functions | |
| UiMonitorTextPercent (QTextStream &output_stream) | |
| virtual | ~UiMonitorTextPercent () | 
| virtual void | count () override | 
| count steps report when a step is computed in an algorithm   | |
| virtual void | setTotalSteps (std::size_t total_number_of_steps) | 
| use it if the number of steps is known in an algorithm the total number of steps is usefull to report to the user a progress message in percents or with a progress bar   | |
  Public Member Functions inherited from pappso::UiMonitorText | |
| UiMonitorText (QTextStream &output_stream) | |
| ~UiMonitorText () | |
| virtual bool | shouldIstop () override | 
| should the procces be stopped ? If true, then cancel process Use this function at strategic point of your process in order to interrupt it cleanly Implementation must take care of thread resistance if implemented   | |
| virtual void | setTitle (const QString &title) override | 
| current kind of process running   | |
| virtual void | setStatus (const QString &status) override | 
| current status of the process   | |
| virtual void | appendText (const QString &text) override | 
| append a text to a long report   | |
Protected Attributes | |
| int | m_unit | 
  Protected Attributes inherited from pappso::UiMonitorText | |
| QTextStream & | m_outputStream | 
| std::size_t | m_count = 0 | 
  Protected Attributes inherited from pappso::UiMonitorInterface | |
| std::size_t | m_totalSteps = 0 | 
Definition at line 43 of file uimonitortextpercent.h.
| UiMonitorTextPercent::UiMonitorTextPercent | ( | QTextStream & | output_stream | ) | 
Default constructor
Definition at line 35 of file uimonitortextpercent.cpp.
References pappso::UiMonitorText::UiMonitorText(), pappso::UiMonitorInterface::m_totalSteps, and m_unit.
      
  | 
  virtual | 
      
  | 
  overridevirtual | 
count steps report when a step is computed in an algorithm
Reimplemented from pappso::UiMonitorText.
Definition at line 65 of file uimonitortextpercent.cpp.
References pappso::UiMonitorText::m_count, pappso::UiMonitorText::m_outputStream, pappso::UiMonitorInterface::m_totalSteps, and m_unit.
      
  | 
  virtual | 
use it if the number of steps is known in an algorithm the total number of steps is usefull to report to the user a progress message in percents or with a progress bar
| total_number_of_steps | the total number of steps | 
Reimplemented from pappso::UiMonitorText.
Definition at line 48 of file uimonitortextpercent.cpp.
References pappso::UiMonitorText::m_count, pappso::UiMonitorText::m_outputStream, pappso::UiMonitorInterface::m_totalSteps, m_unit, and pappso::UiMonitorText::setTotalSteps().
      
  | 
  protected | 
Definition at line 67 of file uimonitortextpercent.h.
Referenced by UiMonitorTextPercent(), count(), and setTotalSteps().