]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormCopyright.h
some fixes to prev patch
[lyx.git] / src / frontends / gnome / FormCopyright.h
1 // -*- C++ -*-
2 /* FormCopyright.h
3  * FormCopyright Interface Class
4  * This file is part of
5  * ====================================================== 
6  *
7  *           LyX, The Document Processor
8  *
9  *           Copyright 2000 The LyX Team.
10  *
11  * ======================================================
12  */
13
14 #ifndef FORMCOPYRIGHT_H
15 #define FORMCOPYRIGHT_H
16
17 #include "DialogBase.h"
18 #include <gnome--/about.h>
19
20 class Dialogs;
21 // same arguement as in Dialogs.h s/LyX/UI/
22 class LyXView;
23
24 /** This class provides an GTK-- implementation of the FormCopyright Dialog.
25  */
26 class FormCopyright : public DialogBase {
27 public:
28         /**@name Constructors and Destructors */
29         //@{
30         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
31         FormCopyright(LyXView *, Dialogs *);
32         ///
33         ~FormCopyright();
34         //@}
35
36 private:
37         FormCopyright() {}
38         FormCopyright(FormCopyright &) : DialogBase() {}
39         
40         /**@name Slot Methods */
41         //@{
42         /// Create the dialog if necessary, update it and display it.
43         void show();
44         /// Hide the dialog.
45         void hide();
46         /// Not used but we've got to implement it.
47         void update() {}
48         //@}
49
50         //@{
51         /// Real GUI implementation.
52          Gnome::About * dialog_;
53         /** Which LyXFunc do we use?
54             We could modify Dialogs to have a visible LyXFunc* instead and
55             save a couple of bytes per dialog.
56         */
57         LyXView * lv_;
58         /** Which Dialogs do we belong to?
59             Used so we can get at the signals we have to connect to.
60         */
61         Dialogs * d_;
62         /// Hide connection.
63         Connection h_;
64         /// Destroy connection.
65         Connection destroy_;
66         //@}
67 };
68
69 #endif
70
71