]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormCredits.h
text2 chane, XFormsView
[lyx.git] / src / frontends / xforms / FormCredits.h
index a497d064d431d6387e248614dc61251b3be797d8..aff26344bb7fc4526a7b102560ab5864a3aaf1a3 100644 (file)
@@ -1,53 +1,43 @@
+// -*- C++ -*-
 /**
  * \file FormCredits.h
  * Copyright 2001 The LyX Team.
  * See the file COPYING.
  *
  * \author Edwin Leuven, leuven@fee.uva.nl
+ * \author Angus Leeming, a.leeming@.ac.uk
  */
 
 #ifndef FORMCREDITS_H
 #define FORMCREDITS_H
 
-#include <boost/smart_ptr.hpp>
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-#include "FormBaseDeprecated.h"
-#include "xformsBC.h"
+#include "FormBase.h"
 
+class ControlCredits;
 struct FD_form_credits;
 
 /** This class provides an XForms implementation of the FormCredits Dialog.
  */
-class FormCredits : public FormBaseBI {
+class FormCredits : public FormCB<ControlCredits, FormDB<FD_form_credits> > {
 public:
-       /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
-       FormCredits(LyXView *, Dialogs *);
+       ///
+       FormCredits(ControlCredits &);
 
 private:
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
+       /// not needed.
+       virtual void apply() {}
+       /// not needed.
+       virtual void update() {}
        /// 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_credits * build_credits();
-
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_credits> dialog_;
-       /// The ButtonController
-       ButtonController<OkCancelPolicy, xformsBC> bc_;
 };
 
-
-inline
-xformsBC & FormCredits::bc()
-{
-       return bc_;
-}
 #endif