]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormCopyright.h
The KDE monster patch from John
[lyx.git] / src / frontends / kde / FormCopyright.h
1 /***************************************************************************
2                           formcopyright.h  -  description
3                              -------------------
4     begin                : Thu Feb 3 2000
5     copyright            : (C) 2000 by Jürgen Vigna
6     email                : jug@sad.it
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #ifndef FORMCOPYRIGHT_H
19 #define FORMCOPYRIGHT_H
20
21 #include "DialogBase.h"
22 #include "boost/utility.hpp"
23
24 class Dialogs;
25 class LyXView;
26 class CopyrightDialog;
27
28 /**
29   @author Jürgen Vigna
30   */
31 class FormCopyright : public DialogBase, public noncopyable {
32 public: 
33         FormCopyright(LyXView *, Dialogs *);
34         ~FormCopyright();
35
36 private: 
37         /// Create the dialog if necessary, update it and display it.
38         void show();
39         /// Hide the dialog.
40         void hide();
41         /// Not used but we've got to implement it.
42         void update(bool) {}
43
44         /// Real GUI implementation.
45         CopyrightDialog * dialog_;
46         /** Which LyXFunc do we use?
47             We could modify Dialogs to have a visible LyXFunc* instead and
48             save a couple of bytes per dialog.
49         */
50         LyXView * lv_;
51         /** Which Dialogs do we belong to?
52             Used so we can get at the signals we have to connect to.
53         */
54         Dialogs * d_;
55         /// Hide connection.
56         Connection h_;
57 };
58
59 #endif