3 * See the file COPYING.
5 * \author Angus Leeming
7 * Full author contact details are available in file CREDITS
11 #pragma implementation
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
23 typedef FormCB<ControlError, FormDB<FD_error> > base_class;
25 FormError::FormError()
26 : base_class(_("LaTeX Error"))
30 void FormError::build()
32 dialog_.reset(build_error(this));
34 // Manage the cancel/close button
35 bc().setCancel(dialog_->button_close);
39 void FormError::update()
41 string const txt = formatted(controller().params(),
42 dialog_->frame_message->w - 10);
43 fl_set_object_label(dialog_->frame_message, txt.c_str());