]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/FormCopyright.h
Clean-up of the button controller.
[lyx.git] / src / frontends / gnome / FormCopyright.h
index 216fbd70bcd52eb910781f11cf0d537eb08e38d3..f8d3287172de197363d0e9e1b53bd0fbc1da41c3 100644 (file)
@@ -1,60 +1,55 @@
 // -*- 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>
-#include "boost/utility.hpp"
+#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, public noncopyable {
+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.
-       Connection h_;
-       /// Destroy connection.
-       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
-
-