19    QVBoxLayout *lo = 
new QVBoxLayout;
 
   25    p_textEdit = 
new QTextEdit;
 
   26    p_textEdit->setFont(QFont(
"Courier"));
 
   27    p_textEdit->setFontPointSize(10);
 
   30    lo->addWidget(p_textEdit);
 
 
   39    p_textEdit->append(
string);
 
 
   45    p_textEdit->setFont(QFont(
"Courier"));
 
   46    p_textEdit->setFontPointSize(10);
 
 
   51    QString s = QFileDialog::getSaveFileName(
this, 
"Save log to file");
 
   54      std::string filename(s.toStdString());
 
   55      fout.open(filename.c_str());
 
   56      fout << p_textEdit->toPlainText().toStdString();
 
 
void Write(const QString &string)
Add more information to the log widget.
 
void Save()
Save the contents of the log widget to a file.
 
void Clear()
Clear the contents of the log widget.
 
GuiLog(QWidget *parent=0)
Constructor.
 
This is free and unencumbered software released into the public domain.