1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2000 The LyX Team.
8 * ====================================================== */
11 * FormCopyright Interface Class Implementation
16 #include "FormCopyright.h"
18 FormCopyright::FormCopyright(LyXView * lv, Dialogs * d)
19 : dialog_(NULL), lv_(lv), d_(d), h_(0)
21 // let the dialog be shown
22 // This is a permanent connection so we won't bother
23 // storing a copy because we won't be disconnecting.
24 d->showCopyright.connect(slot(this, &FormCopyright::show));
28 FormCopyright::~FormCopyright()
30 if (dialog_!=NULL) hide();
34 void FormCopyright::show()
36 if(dialog_!=NULL) { // "About" box hasn't been closed, so just raise it
37 Gdk_Window dialog_win(dialog_->get_window());
41 else { // create new "About" dialog box
42 vector<string> authors; //null. Authors are not listed in LyX copyright dialogbox.
44 dialog_ = new Gnome::About(PACKAGE, VERSION,
45 "(C) 1995 by Matthias Ettrich, \n1995-2000 LyX Team",
47 "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.",
50 // it should be disconnected before deleting dialog_ in FormCopyright::hide()
51 destroy_ = dialog_->destroy.connect(slot(this, &FormCopyright::hide));
55 h_ = d_->hideAll.connect(slot(this, &FormCopyright::hide));
60 void FormCopyright::hide()
66 destroy_.disconnect();