]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QError.C
ws change
[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 "QErrorDialog.h"
12 #include "ControlError.h"
13 #include "QError.h"
14 #include "Qt2BC.h"
15 #include "gettext.h"
16
17 #include <qtextview.h>
18 #include <qpushbutton.h>
19
20 typedef Qt2CB<ControlError, Qt2DB<QErrorDialog> > base_class;
21
22 QError::QError(ControlError & c)
23         : base_class(c, _("LaTeX Error"))
24 {
25 }
26
27
28 void QError::build_dialog()
29 {
30         dialog_.reset(new QErrorDialog(this));
31
32         bc().setCancel(dialog_->closePB);
33 }
34
35
36 void QError::update_contents()
37 {
38         dialog_->errorTV->setText(controller().params().c_str());
39 }