3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "controllers/ControlLog.h"
15 #include "support/std_sstream.h"
18 #include "QLogDialog.h"
20 #include "qt_helpers.h"
22 #include <qtextview.h>
23 #include <qpushbutton.h>
26 typedef QController<ControlLog, QView<QLogDialog> > base_class;
28 QLog::QLog(Dialog & parent)
29 : base_class(parent, "")
33 void QLog::build_dialog()
35 dialog_.reset(new QLogDialog(this));
39 void QLog::update_contents()
41 setTitle(controller().title());
43 std::ostringstream ss;
44 controller().getContents(ss);
46 dialog_->logTV->setText(toqstr(ss.str()));