lyx_mirror/src/frontends/xforms/FormError.C
Angus Leeming 6fac1dc980 Really dull and boring header shit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5210 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-05 14:10:50 +00:00

45 lines
830 B
C

/**
* \file FormError.C
* See the file COPYING.
*
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS
*/
#ifdef __GNUG__
#pragma implementation
#endif
#include <config.h>
#include "xformsBC.h"
#include "ControlError.h"
#include "FormError.h"
#include "forms/form_error.h"
#include "xforms_helpers.h" // formatted
#include FORMS_H_LOCATION
typedef FormCB<ControlError, FormDB<FD_error> > base_class;
FormError::FormError()
: base_class(_("LaTeX Error"))
{}
void FormError::build()
{
dialog_.reset(build_error(this));
// Manage the cancel/close button
bc().setCancel(dialog_->button_close);
}
void FormError::update()
{
string const txt = formatted(controller().params(),
dialog_->frame_message->w - 10);
fl_set_object_label(dialog_->frame_message, txt.c_str());
}