]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/FormCopyright.h
Dekel's lyxrc.example; Angus's FormDocument; John's build-listerrors; POTFILES.in...
[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 #include "boost/utility.hpp"
20
21 class Dialogs;
22 // same arguement as in Dialogs.h s/LyX/UI/
23 class LyXView;
24
25 /** This class provides an GTK-- implementation of the FormCopyright Dialog.
26  */
27 class FormCopyright : public DialogBase, public noncopyable {
28 public:
29         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
30         FormCopyright(LyXView *, Dialogs *);
31         ///
32         ~FormCopyright();
33 private:
34         /// Create the dialog if necessary, update it and display it.
35         void show();
36         /// Hide the dialog.
37         void hide();
38         /// Not used but we've got to implement it.
39         void update() {}
40
41         /// Real GUI implementation.
42          Gnome::About * dialog_;
43         /** Which LyXFunc do we use?
44             We could modify Dialogs to have a visible LyXFunc* instead and
45             save a couple of bytes per dialog.
46         */
47         LyXView * lv_;
48         /** Which Dialogs do we belong to?
49             Used so we can get at the signals we have to connect to.
50         */
51         Dialogs * d_;
52         /// Hide connection.
53         Connection h_;
54         /// Destroy connection.
55         Connection destroy_;
56 };
57
58 #endif
59
60