]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormCopyright.C
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / kde / FormCopyright.C
1 /**
2  * \file FormCopyright.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author Jürgen Vigna
7  */
8 #include <config.h>
9
10 #include "Dialogs.h"
11 #include "FormCopyright.h"
12 #include "copyrightdlg.h"
13 #include "gettext.h"
14
15 FormCopyright::FormCopyright(LyXView *v, Dialogs *d)
16         : dialog_(0), lv_(v), d_(d), h_(0)
17 {
18         d->showCopyright.connect(slot(this, &FormCopyright::show));
19 }
20
21
22 FormCopyright::~FormCopyright()
23 {
24         delete dialog_;
25 }
26
27
28 void FormCopyright::show()
29 {
30         if (!dialog_)
31                 dialog_ = new CopyrightDialog(0, _("LyX: Copyright and Warranty"));
32
33         if (!dialog_->isVisible())
34                 h_ = d_->hideAll.connect(slot(this, &FormCopyright::hide));
35  
36         dialog_->show();
37 }
38
39
40 void FormCopyright::hide()
41 {
42         dialog_->hide();
43         h_.disconnect();
44 }