]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormInset.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormInset.h
index f9c489857278150f4d2d508c61328f22f7ad4a9d..04b9fc65626a6106d8440211d0068dbe673f65e2 100644 (file)
@@ -1,31 +1,38 @@
 // -*- C++ -*-
-/* This file is part of
- * ====================================================== 
+/**
+ * \file FormInset.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
+ */
+
+/* A base class for dialogs connected to insets. This class is temporary in that
+ * it has been superceeded by the controller-view split.
  */
 
 #ifndef FORMCOMMAND_H
 #define FORMCOMMAND_H
 
 #include "FormBaseDeprecated.h"
-#include "insets/insetcommand.h"
+#include "insets/insetcommandparams.h"
+
+#include <boost/signals/connection.hpp>
 
 #ifdef __GNUG__
 #pragma interface
 #endif
 
+class InsetCommand;
 
 /** This class is an XForms GUI base class to insets
  */
 class FormInset : public FormBaseBD {
 protected:
        /// Constructor
-       FormInset(LyXView *, Dialogs *, string const &);
+       FormInset(LyXView &, Dialogs &, string const &);
 
        /// Connect signals. Also perform any necessary initialisation.
        virtual void connect();
@@ -36,30 +43,7 @@ protected:
        virtual void updateSlot(bool);
 
        /// inset::hide connection.
-       SigC::Connection ih_;
-};
-
-
-/** This class is an XForms GUI base class to insets derived from
-    InsetCommand
- */
-class FormCommand : public FormInset {
-protected:
-       /// Constructor
-       FormCommand(LyXView *, Dialogs *, string const &);
-
-       /// Disconnect signals. Also perform any necessary housekeeping.
-       virtual void disconnect();
-
-       /// Slot launching dialog to (possibly) create a new inset
-       void createInset(string const &);
-       /// Slot launching dialog to an existing inset
-       void showInset(InsetCommand *);
-
-       /// pointer to the inset passed through showInset
-       InsetCommand * inset_;
-       /// the nitty-griity. What is modified and passed back
-       InsetCommandParams params;
+       boost::signals::connection ih_;
 };
 
 #endif