-/*
+/**
* \file FormError.C
- * This file is part of
- * ======================================================
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Angus Leeming
*
- * Copyright 2000-2001 The LyX Team.
- *
- * ======================================================
- *
- * \author Angus Leeming, a.leeming@.ac.uk
+ * 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 "form_error.h"
+#include "forms/form_error.h"
#include "xforms_helpers.h" // formatted
+#include FORMS_H_LOCATION
-typedef FormCB<ControlError, FormDB<FD_form_error> > base_class;
+typedef FormController<ControlError, FormView<FD_error> > base_class;
-FormError::FormError(ControlError & c)
- : base_class(c, _("LaTeX Error"))
+FormError::FormError(Dialog & parent)
+ : base_class(parent, _("LaTeX Error"))
{}
void FormError::build()
{
- dialog_.reset(build_error());
+ dialog_.reset(build_error(this));
- // Manage the cancel/close button
- bc().setCancel(dialog_->button_cancel);
+ // Manage the cancel/close button
+ bcview().setCancel(dialog_->button_close);
}
void FormError::update()
{
string const txt = formatted(controller().params(),
- dialog_->message->w - 10);
- fl_set_object_label(dialog_->message, txt.c_str());
+ dialog_->frame_message->w - 10);
+ fl_set_object_label(dialog_->frame_message, txt.c_str());
}