36 : m_outputStream(output_stream)
54 m_outputStream << title << Qt::endl;
55 m_outputStream.flush();
61 m_outputStream << status << Qt::endl;
62 m_outputStream.flush();
69 if(m_count <= m_totalSteps)
71 m_outputStream << m_count <<
" ";
75 m_outputStream << QObject::tr(
"%1 on %2").arg(m_count).arg(m_totalSteps)
78 m_outputStream.flush();
84 m_outputStream << text;
85 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