]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QError.C
The initial merge of the Qt frontend, and the necessary compile fixes.
[lyx.git] / src / frontends / qt2 / QError.C
1 /**
2  * \file QError.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon <moz@compsoc.man.ac.uk>
7  */
8
9 #include <config.h>
10
11 #include "ControlError.h"
12 #include "gettext.h"
13
14 #include <qtextview.h>
15 #include <qpushbutton.h>
16
17 #include "QErrorDialog.h"
18 #include "QError.h"
19 #include "Qt2BC.h"
20  
21 typedef Qt2CB<ControlError, Qt2DB<QErrorDialog> > base_class;
22
23 QError::QError(ControlError & c)
24         : base_class(c, _("LaTeX Error"))
25 {
26 }
27
28
29 void QError::build_dialog()
30 {
31         dialog_.reset(new QErrorDialog(this));
32
33         bc().setCancel(dialog_->closePB);
34 }
35
36
37 void QError::update_contents()
38 {
39         dialog_->errorTV->setText(controller().params().c_str());
40 }