]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormError.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormError.h
index b0b62e255bfd8c4e8deb4adc8692d713d0df7f2e..d927e02d4558204118bdb94a1aaae333e1dcc8da 100644 (file)
@@ -1,12 +1,16 @@
 // -*- C++ -*-
-/* This file is part of
+/*
+ * \file FormError.h
+ * This file is part of
  * ====================================================== 
  *
  *           LyX, The Document Processor
  *
- *           Copyright 2000 The LyX Team.
+ *           Copyright 2000-2001 The LyX Team.
  *
  * ======================================================
+ *
+ * \author Angus Leeming, a.leeming@.ac.uk
  */
 
 #ifndef FORMERROR_H
 #pragma interface
 #endif
 
-#include "FormInset.h"
+#include "FormBase.h"
 
-class InsetError;
+class ControlError;
 struct FD_form_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 FormCB<ControlError, FormDB<FD_form_error> > {
 public:
        /// Constructor
-       FormError(LyXView *, Dialogs *);
-       ///
-       ~FormError();
-private:
-       /// Disconnect signals. Also perform any necessary housekeeping.
-       virtual void disconnect();
+       FormError(ControlError &);
 
-       /// Slot launching dialog to an existing inset
-       void showInset(InsetError *);
-       /// Update dialog before showing it
-       virtual void update();
+private:
+       /// not needed.
+       virtual void apply() {}
        /// Build the dialog
        virtual void build();
-       /// Pointer to the actual instantiation of the xform's form
-       virtual FL_FORM * form() const;
+       /// Update dialog before showing it
+       virtual void update();
+
        /// Fdesign generated method
        FD_form_error * build_error();
-
-       /// Real GUI implementation.
-       FD_form_error * dialog_;
-       /// pointer to the inset passed through showInset
-       InsetError * inset_;
-       /// the error message
-       string message_;
 };
 
-#endif
+#endif // FORMERROR_H