]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormCopyright.h
John's FormExternal patch, Edwin's Qt2 patch and Baruch's gnome 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         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
29         FormCopyright(LyXView *, Dialogs *);
30         ///
31         ~FormCopyright();
32 private:
33         /// Create the dialog if necessary, update it and display it.
34         void show();
35         /// Hide the dialog.
36         void hide();
37         /// Not used but we've got to implement it.
38         void update() {}
39
40         /// Real GUI implementation.
41          Gnome::About * dialog_;
42         /** Which LyXFunc do we use?
43             We could modify Dialogs to have a visible LyXFunc* instead and
44             save a couple of bytes per dialog.
45         */
46         LyXView * lv_;
47         /** Which Dialogs do we belong to?
48             Used so we can get at the signals we have to connect to.
49         */
50         Dialogs * d_;
51         /// Hide connection.
52         Connection h_;
53         /// Destroy connection.
54         Connection destroy_;
55 };
56
57 #endif
58
59