3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <moz@compsoc.man.ac.uk>
11 #include "QErrorDialog.h"
12 #include "ControlError.h"
17 #include <qtextview.h>
18 #include <qpushbutton.h>
20 typedef Qt2CB<ControlError, Qt2DB<QErrorDialog> > base_class;
22 QError::QError(ControlError & c)
23 : base_class(c, _("LaTeX Error"))
28 void QError::build_dialog()
30 dialog_.reset(new QErrorDialog(this));
32 bc().setCancel(dialog_->closePB);
36 void QError::update_contents()
38 dialog_->errorTV->setText(controller().params().c_str());