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 ***************************************************************************/
21 #include "FormCopyright.h"
22 #include "formcopyrightdialog.h"
25 FormCopyright::FormCopyright(LyXView *v, Dialogs *d)
26 : dialog_(0), lv_(v), d_(d), h_(0)
28 // let the dialog be shown
29 // This is a permanent connection so we won't bother
30 // storing a copy because we won't be disconnecting.
31 d->showCopyright.connect(slot(this, &FormCopyright::show));
34 FormCopyright::~FormCopyright()
39 void FormCopyright::show()
42 dialog_ = new FormCopyrightDialog(0, _("LyX: Copyright and Warranty"));
44 if (!dialog_->isVisible())
45 h_ = d_->hideAll.connect(slot(this, &FormCopyright::hide));
49 void FormCopyright::hide()