1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2000 The LyX Team.
8 * ====================================================== */
11 * FormCopyright Interface Class Implementation
17 #include "FormCopyright.h"
19 FormCopyright::FormCopyright(LyXView * lv, Dialogs * d)
20 : dialog_(NULL), lv_(lv), d_(d), h_(0)
22 // let the dialog be shown
23 // This is a permanent connection so we won't bother
24 // storing a copy because we won't be disconnecting.
25 d->showCopyright.connect(slot(this, &FormCopyright::show));
29 FormCopyright::~FormCopyright()
31 if (dialog_!=NULL) hide();
35 void FormCopyright::show()
37 if(dialog_!=NULL) { // "About" box hasn't been closed, so just raise it
38 Gdk_Window dialog_win(dialog_->get_window());
42 else { // create new "About" dialog box
43 vector<string> authors; //null. Authors are not listed in LyX copyright dialogbox.
45 dialog_ = new Gnome::About(PACKAGE, VERSION,
46 _("(C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team"),
48 _("This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\nLyX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA."),
51 // it should be disconnected before deleting dialog_ in FormCopyright::hide()
52 destroy_ = dialog_->destroy.connect(slot(this, &FormCopyright::hide));
56 h_ = d_->hideAll.connect(slot(this, &FormCopyright::hide));
61 void FormCopyright::hide()
67 destroy_.disconnect();