OpenMS
2.7.0
|
A log window (QTextEdit) with convenience functions. More...
#include <OpenMS/VISUAL/LogWindow.h>
Public Types | |
enum | LogState { NOTICE , WARNING , CRITICAL } |
Log message states. More... | |
Public Member Functions | |
LogWindow (QWidget *parent) | |
Default constructor. More... | |
void | appendText (const QString &text) |
appends text without adding line breaks and shows the log-window More... | |
void | appendNewHeader (const LogState state, const String &heading, const String &body) |
appends a new block with heading and a body More... | |
void | addNewline () |
appends a line break (same as append("")) More... | |
int | maxLength () const |
read max_length More... | |
void | setMaxLength (int max_length) |
set max_length More... | |
Protected Slots | |
void | trimText_ () |
if text length reached max_length_, then delete prefix until length of text is 1/2 of max_length_ More... | |
Properties | |
int | max_length |
Private Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) override |
Private Attributes | |
int | max_length_ { -1 } |
-1 by default, which means there is no maximum length More... | |
A log window (QTextEdit) with convenience functions.
enum LogState |
void addNewline | ( | ) |
appends a line break (same as append(""))
Referenced by TOPPViewBase::abortTOPPTool(), and TOPPViewBase::finishTOPPToolExecution().
appends a new block with heading
and a body
Referenced by TOPPViewBase::addDataFile(), TOPPViewBase::copyLayer(), TOPPASBase::downloadTOPPASfromHomepage_(), TOPPViewBase::editMetadata(), TOPPViewBase::finishTOPPToolExecution(), TOPPViewBase::loadFiles(), TOPPASBase::outputVertexFinished(), TOPPViewBase::rerunTOPPTool(), TOPPViewBase::runTOPPTool_(), TOPPViewBase::showCurrentPeaksAs3D(), TOPPASBase::showPipelineFinishedLogMessage(), TOPPViewBase::showTOPPDialog_(), TOPPASBase::toolCrashed(), TOPPASBase::toolFailed(), TOPPASBase::toolFinished(), TOPPASBase::toolStarted(), and TOPPViewBase::updateToolBar().
void appendText | ( | const QString & | text | ) |
appends text without adding line breaks and shows the log-window
Referenced by TOPPViewBase::updateProcessLog().
|
overrideprivate |
int maxLength | ( | ) | const |
read max_length
void setMaxLength | ( | int | max_length | ) |
set max_length
Referenced by TOPPASBase::TOPPASBase().
|
protectedslot |
if text length reached max_length_, then delete prefix until length of text is 1/2 of max_length_
|
private |
-1 by default, which means there is no maximum length
|
readwrite |