34 : m_outputStream(output_stream)
52 m_outputStream << title << Qt::endl;
53 m_outputStream.flush();
59 m_outputStream << status << Qt::endl;
60 m_outputStream.flush();
67 if(m_count <= m_totalSteps)
69 m_outputStream << m_count <<
" ";
73 m_outputStream << QObject::tr(
"%1 on %2").arg(m_count).arg(m_totalSteps)
76 m_outputStream.flush();
82 m_outputStream << text;
83 m_outputStream.flush();
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...
virtual void count() override
count steps report when a step is computed in an algorithm
virtual void setStatus(const QString &status) override
current status of the process
virtual void setTitle(const QString &title) override
current kind of process running
virtual bool shouldIstop() override
should the procces be stopped ? If true, then cancel process Use this function at strategic point of ...
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...
virtual void appendText(const QString &text) override
append a text to a long report
UiMonitorText(QTextStream &output_stream)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
simle text monitor implementation of the User Interface Monitor