]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormError.C
Really dull and boring header shit
[lyx.git] / src / frontends / xforms / FormError.C
1 /**
2  * \file FormError.C
3  * See the file COPYING.
4  *
5  * \author Angus Leeming 
6  *
7  * Full author contact details are available in file CREDITS
8  */
9
10 #ifdef __GNUG__
11 #pragma implementation
12 #endif
13
14 #include <config.h>
15
16 #include "xformsBC.h"
17 #include "ControlError.h"
18 #include "FormError.h"
19 #include "forms/form_error.h"
20 #include "xforms_helpers.h" // formatted
21 #include FORMS_H_LOCATION
22
23 typedef FormCB<ControlError, FormDB<FD_error> > base_class;
24
25 FormError::FormError()
26         : base_class(_("LaTeX Error"))
27 {}
28
29
30 void FormError::build()
31 {
32         dialog_.reset(build_error(this));
33
34         // Manage the cancel/close button
35         bc().setCancel(dialog_->button_close);
36 }
37
38
39 void FormError::update()
40 {
41         string const txt = formatted(controller().params(),
42                                      dialog_->frame_message->w - 10);
43         fl_set_object_label(dialog_->frame_message, txt.c_str());
44 }