1 /***************************************************************************
2 formcopyright.cpp - description
5 copyright : (C) 2000 by Jürgen Vigna
7 ***************************************************************************/
9 /***************************************************************************
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. *
16 ***************************************************************************/
18 #include "FormCopyright.h"
19 #include "formcopyrightdialog.h"
22 FormCopyright::FormCopyright(LyXFunc *c, Dialogs *d)
23 : dialog_(0), lf_(c), d_(d), h_(0)
25 // let the dialog be shown
26 // This is a permanent connection so we won't bother
27 // storing a copy because we won't be disconnecting.
28 d->showCopyright.connect(slot(this, &FormCopyright::show));
32 FormCopyright::~FormCopyright()
37 void FormCopyright::show()
40 dialog_ = new FormCopyrightDialog(0, "Copyright and Warranty",
42 if (!dialog_->isVisible())
43 h_ = d_->hideAll.connect(slot(this, &FormCopyright::hide));
47 void FormCopyright::hide()