]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormError.h
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FormError.h
index 50331bb9411ae827fcbe1d38fa2c2efd34e7d39a..fc95d9a2e3bc50df6eefe5c3573fce378a280d4e 100644 (file)
@@ -1,65 +1,37 @@
 // -*- C++ -*-
-/* This file is part of
- * ====================================================== 
+/**
+ * \file FormError.h
+ * 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 The LyX Team.
- *
- * ======================================================
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef FORMERROR_H
 #define FORMERROR_H
 
-#include <boost/smart_ptr.hpp>
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "FormDialogView.h"
 
-#include "FormInset.h"
 
-class InsetError;
-struct FD_form_error;
+class ControlError;
+struct FD_error;
 
-/** This class provides an XForms implementation of the FormError Dialog.
+/** This class provides an XForms implementation of the Error Dialog.
  */
-class FormError : public FormInset {
+class FormError : public FormController<ControlError, FormView<FD_error> > {
 public:
        /// Constructor
-       FormError(LyXView *, Dialogs *);
+       FormError(Dialog &);
 private:
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
-       /// Disconnect signals. Also perform any necessary housekeeping.
-       virtual void disconnect();
-
-       /// Slot launching dialog to an existing inset
-       void showInset(InsetError *);
-       /// Update dialog before showing it
-       virtual void update();
+       /// not needed.
+       virtual void apply() {}
        /// Build the dialog
        virtual void build();
-       /// Pointer to the actual instantiation of the xforms form
-       virtual FL_FORM * form() const;
-       /// Fdesign generated method
-       FD_form_error * build_error();
-
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_error> dialog_;
-       /// pointer to the inset passed through showInset
-       InsetError * inset_;
-       /// the error message
-       string message_;
-       /// The ButtonController
-       ButtonController<OkCancelPolicy, xformsBC> bc_;
+       /// Update dialog before showing it
+       virtual void update();
 };
 
-
-inline
-xformsBC & FormError::bc()
-{
-       return bc_;
-}
-#endif
+#endif // FORMERROR_H