// -*- C++ -*-
-/* FormCopyright.h
- * FormCopyright Interface Class
- * This file is part of
- * ======================================================
+/* This file is part of
+ * =================================================
+ *
+ * LyX, The Document Processor
+ * Copyright 1995 Matthias Ettrich.
+ * Copyright 1995-2000 The LyX Team.
*
- * LyX, The Document Processor
+ * =================================================
*
- * Copyright 2000 The LyX Team.
- *
- * ======================================================
- */
+ * \author Michael Koziarski <michael@koziarski.org>
+ * */
#ifndef FORMCOPYRIGHT_H
#define FORMCOPYRIGHT_H
-#include "DialogBase.h"
-#include <gnome--/about.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
-class Dialogs;
-// same arguement as in Dialogs.h s/LyX/UI/
-class LyXView;
+#include "ControlCopyright.h"
+#include "GnomeBase.h"
-/** This class provides an GTK-- implementation of the FormCopyright Dialog.
+namespace Gtk {
+class Button;
+class Label;
+}
+
+/**
+ * This class implements the dialog to show the copyright.
*/
-class FormCopyright : public DialogBase {
+class FormCopyright : public FormCB<ControlCopyright> {
public:
- /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
- FormCopyright(LyXView *, Dialogs *);
///
- ~FormCopyright();
-private:
- /// 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() {}
+ FormCopyright(ControlCopyright & c);
+ ///
+ ~FormCopyright() {};
- /// Real GUI implementation.
- Gnome::About * 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.
- SigC::Connection h_;
- /// Destroy connection.
- SigC::Connection destroy_;
+ void apply() {};
+ void update() {};
+
+private:
+
+ /// Build the dialog
+ void build();
+ Gtk::Button * ok();
+ void CancelClicked() { CancelButton(); }
+ Gtk::Label * disclaimer();
+ Gtk::Label * copyright();
+ Gtk::Label * license();
+ /// The ok button
+
};
#endif
-
-