]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QLog.C
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / qt2 / QLog.C
1 /**
2  * \file QLog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "controllers/ControlLog.h"
14
15 #include "support/std_sstream.h"
16
17 #include "QLog.h"
18 #include "QLogDialog.h"
19
20 #include "qt_helpers.h"
21
22 #include <qtextview.h>
23 #include <qpushbutton.h>
24
25
26 typedef QController<ControlLog, QView<QLogDialog> > base_class;
27
28 QLog::QLog(Dialog & parent)
29         : base_class(parent, "")
30 {}
31
32
33 void QLog::build_dialog()
34 {
35         dialog_.reset(new QLogDialog(this));
36 }
37
38
39 void QLog::update_contents()
40 {
41         setTitle(controller().title());
42
43         std::ostringstream ss;
44         controller().getContents(ss);
45
46         dialog_->logTV->setText(toqstr(ss.str()));
47 }