]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormError.h
More pref work from Angus
[lyx.git] / src / frontends / xforms / FormError.h
index fb7003a0ad8dbe88b5f4899bdfb77b4db72a31db..4211bc89812e877948eafce0b0e8d7630d7e79ce 100644 (file)
 #pragma interface
 #endif
 
-#include "FormBase.h"
+#include "FormInset.h"
 
 class InsetError;
 struct FD_form_error;
 
 /** This class provides an XForms implementation of the FormError Dialog.
  */
-class FormError : public FormBase {
+class FormError : public FormInset {
 public:
        /// Constructor
        FormError(LyXView *, Dialogs *);
        ///
        ~FormError();
 private:
+       /// Disconnect signals. Also perform any necessary housekeeping.
+       virtual void disconnect();
+
        /// Slot launching dialog to an existing inset
-       void showInset( InsetError * const );
+       void showInset( InsetError * );
        /// Update dialog before showing it
        virtual void update();
        /// Build the dialog
        virtual void build();
-       /// Reset data when hide() is called
-       virtual void clearStore();
        /// Pointer to the actual instantiation of the xform's form
        virtual FL_FORM * form() const;
        /// Fdesign generated method
@@ -45,8 +46,8 @@ private:
 
        /// Real GUI implementation.
        FD_form_error * dialog_;
-       /// inset::hide connection.
-       Connection ih_;
+       /// pointer to the inset passed through showInset
+       InsetError * inset_;
        /// the error message
        string message_;
 };