13 QVBoxLayout *lo =
new QVBoxLayout;
19 p_textEdit =
new QTextEdit;
20 p_textEdit->setFont(QFont(
"Courier"));
21 p_textEdit->setFontPointSize(10);
24 lo->addWidget(p_textEdit);
33 p_textEdit->append(
string);
39 p_textEdit->setFont(QFont(
"Courier"));
40 p_textEdit->setFontPointSize(10);
45 QString s = QFileDialog::getSaveFileName(
this,
"Save log to file");
48 std::string filename(s.toStdString());
49 fout.open(filename.c_str());
50 fout << p_textEdit->toPlainText().toStdString();
void Write(const QString &string)
Add more information to the log widget.
GuiLog(QWidget *parent=0)
Constructor.
void Save()
Save the contents of the log widget to a file.
void Clear()
Clear the contents of the log widget.
Namespace for ISIS/Bullet specific routines.