]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormError.C
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FormError.C
index f5c59fc001a7f52da6c18fdbfbb8eb7eb48681e8..a99f7cc9488f499bbb588d2802e737650c1f6d8a 100644 (file)
@@ -1,49 +1,42 @@
-// -*- C++ -*-
-/*
+/**
  * \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());
 }