12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
A log window (QTextEdit) with convenience functions.
Definition: LogWindow.h:29
LogState
Log message states.
Definition: LogWindow.h:36
@ WARNING
Warning.
Definition: LogWindow.h:38
@ CRITICAL
Fatal error.
Definition: LogWindow.h:39
@ NOTICE
Notice.
Definition: LogWindow.h:37
void contextMenuEvent(QContextMenuEvent *event) override
LogWindow(QWidget *parent)
Default constructor.
int max_length_
-1 by default, which means there is no maximum length
Definition: LogWindow.h:67
void trimText_()
if text length reached max_length_, then delete prefix until length of text is 1/2 of max_length_
int maxLength() const
read max_length
void setMaxLength(int max_length)
set max_length
void appendNewHeader(const LogState state, const String &heading, const String &body)
appends a new block with heading and a body
int max_length
Definition: LogWindow.h:31
void appendText(const QString &text)
appends text without adding line breaks and shows the log-window
void addNewline()
appends a line break (same as append(""))
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19