]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBibitem.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormBibitem.h
index 14c9dbfecc3ba3b384e5445452ea476aaefd1778..9599fbc85a6d454a820995a8fd3315f3ab9ce27a 100644 (file)
@@ -1,10 +1,11 @@
+// -*- C++ -*-
 /**
  * \file FormBibitem.h
  * Copyright 2001 the LyX Team
  * Read the file COPYING
  *
- * \author Angus Leeming
- * \author John Levon
+ * \author John Levon, moz@compsoc.man.ac.uk
+ * \author Angus Leeming, a.leeming@.ac.uk
  */
 
 #ifndef FORMBIBITEM_H
 #pragma interface
 #endif
 
-#include "FormInset.h"
+#include "FormBase.h"
+
+class ControlBibitem;
 struct FD_form_bibitem;
 
 /**
  * For bibliography entry editing
  */
-class FormBibitem : public FormCommand {
+class FormBibitem : public FormCB<ControlBibitem, FormDB<FD_form_bibitem> > {
 public:
        ///
-       FormBibitem(LyXView *, Dialogs *);
-       ///
-       ~FormBibitem();
+       FormBibitem(ControlBibitem &);
+
 private:
-       /// Connect signals etc. Set form's max size.
-       virtual void connect();
-       /// Build the dialog
+       /// Set the Params variable for the Controller.
+       virtual void apply();
+       /// Build the dialog.
        virtual void build();
-       /// Update dialog before showing it
+       /// Update dialog before/whilst showing it.
        virtual void update();
-       /// input handler
-       virtual bool input(FL_OBJECT *,long);
-       /// Apply from dialog (modify or create inset)
-       virtual void apply();
-       /// Pointer to the actual instantiation of the xform's form
-       virtual FL_FORM * form() const;
-       ///
+       /// Filter the inputs on callback from xforms
+       virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
+
+       /// Fdesign generated method
        FD_form_bibitem * build_bibitem();
-       /// Real GUI implementation.
-       FD_form_bibitem * dialog_;
 };
 
 #endif // FORMBIBITEM_H