]> 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 b7cddbcf1b0603008c5abc2920defd409051a468..a99f7cc9488f499bbb588d2802e737650c1f6d8a 100644 (file)
@@ -1,14 +1,13 @@
-/*
+/**
  * \file FormError.C
- * Copyright 2000-2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  */
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include <config.h>
 
 #include "xforms_helpers.h" // formatted
 #include FORMS_H_LOCATION
 
-typedef FormCB<ControlError, FormDB<FD_error> > base_class;
+typedef FormController<ControlError, FormView<FD_error> > base_class;
 
-FormError::FormError()
-       : base_class(_("LaTeX Error"))
+FormError::FormError(Dialog & parent)
+       : base_class(parent, _("LaTeX Error"))
 {}
 
 
@@ -31,7 +30,7 @@ void FormError::build()
        dialog_.reset(build_error(this));
 
        // Manage the cancel/close button
-       bc().setCancel(dialog_->button_close);
+       bcview().setCancel(dialog_->button_close);
 }