MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / appendNewHeader

Method appendNewHeader

src/openms_gui/source/VISUAL/LogWindow.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void LogWindow::appendNewHeader(const LogWindow::LogState state, const String& heading, const String& body)
53 {
54 String state_string;
55 switch (state)
56 {
57 case NOTICE: state_string = "NOTICE"; break;
58 case WARNING: state_string = "WARNING"; break;
59 case CRITICAL: state_string = "ERROR"; break;
60 }
61
62 // update log
63 append("==============================================================================");
64 append((DateTime::now().getTime() + " " + state_string + ": " + heading).toQString());
65 append(body.toQString());
66
67 //show log tool window
68 qobject_cast<QWidget*>(parent())->show();
69 }
70
71 void LogWindow::addNewline()
72 {

Callers 15

annotateWithFilenameMethod · 0.80
annotateWorker_Method · 0.80
addDataFileMethod · 0.80
editMetadataMethod · 0.80
updateToolBarMethod · 0.80
showTOPPDialog_Method · 0.80
rerunTOPPToolMethod · 0.80
runTOPPTool_Method · 0.80
showCurrentPeaksAs3DMethod · 0.80
loadFilesMethod · 0.80

Calls 4

appendFunction · 0.85
showMethod · 0.80
toQStringMethod · 0.45
getTimeMethod · 0.45

Tested by

no test coverage detected