#ifndef FORMCOPYRIGHT_H
#define FORMCOPYRIGHT_H
-#include "DialogBase.h"
-#include "form_copyright.h"
-#include "support/utility.hpp"
+#include "FormBase.h"
#ifdef __GNUG__
#pragma interface
#endif
-class Dialogs;
-// same arguement as in Dialogs.h s/LyX/UI/
-class LyXView;
+struct FD_form_copyright;
/** This class provides an XForms implementation of the FormCopyright Dialog.
*/
-class FormCopyright : public DialogBase, public noncopyable {
+class FormCopyright : public FormBaseBI {
public:
- /**@name Constructors and Destructors */
- //@{
/// #FormCopyright x(LyXFunc ..., Dialogs ...);#
FormCopyright(LyXView *, Dialogs *);
///
~FormCopyright();
- //@}
-
- /**@name Real per-instance Callback Methods */
- //@{
- static int WMHideCB(FL_FORM *, void *);
- static void OKCB(FL_OBJECT *, long);
- //@}
private:
- /**@name Slot Methods */
- //@{
- /// Create the dialog if necessary, update it and display it.
- void show();
- /// Hide the dialog.
- void hide();
- /// Not used but we've got to implement it.
- void update() {}
- //@}
-
/// Build the dialog
- void build();
- ///
+ virtual void build();
+ /// Pointer to the actual instantiation of the xform's form
+ virtual FL_FORM * form() const;
+ /// Fdesign generated method
FD_form_copyright * build_copyright();
- /// Explicitly free the dialog.
- void free();
- /**@name Private Data */
- //@{
/// Real GUI implementation.
FD_form_copyright * dialog_;
- /** Which LyXFunc do we use?
- We could modify Dialogs to have a visible LyXFunc* instead and
- save a couple of bytes per dialog.
- */
- LyXView * lv_;
- /** Which Dialogs do we belong to?
- Used so we can get at the signals we have to connect to.
- */
- Dialogs * d_;
- /// Hide connection.
- Connection h_;
- //@}
};
#endif
-