2009-05-08 18:52:06 +00:00
|
|
|
/*
|
2014-01-19 01:09:44 +00:00
|
|
|
* This file Copyright (C) 2009-2014 Mnemosyne LLC
|
2009-05-08 18:52:06 +00:00
|
|
|
*
|
2014-12-21 23:49:39 +00:00
|
|
|
* It may be used under the GNU GPL versions 2 or 3
|
2014-01-19 01:09:44 +00:00
|
|
|
* or any future license endorsed by Mnemosyne LLC.
|
2009-05-08 18:52:06 +00:00
|
|
|
*
|
2009-05-31 19:33:48 +00:00
|
|
|
* $Id$
|
2009-05-08 18:52:06 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <QDialogButtonBox>
|
|
|
|
#include <QPlainTextEdit>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
#include "license.h"
|
|
|
|
|
2014-12-12 23:05:10 +00:00
|
|
|
LicenseDialog::LicenseDialog (QWidget * parent):
|
2013-02-03 19:40:20 +00:00
|
|
|
QDialog (parent, Qt::Dialog)
|
2009-05-08 18:52:06 +00:00
|
|
|
{
|
2013-02-03 19:40:20 +00:00
|
|
|
setWindowTitle (tr ("License"));
|
|
|
|
resize (400, 300);
|
|
|
|
QVBoxLayout * v = new QVBoxLayout (this);
|
2009-05-08 18:52:06 +00:00
|
|
|
|
2013-02-03 19:40:20 +00:00
|
|
|
QPlainTextEdit * t = new QPlainTextEdit (this);
|
|
|
|
t->setReadOnly (true);
|
|
|
|
t->setPlainText (
|
2014-01-21 03:10:30 +00:00
|
|
|
"Copyright 2005-2014. All code is copyrighted by the respective authors.\n"
|
|
|
|
"\n"
|
2014-01-21 03:15:33 +00:00
|
|
|
"Transmission can be redistributed and/or modified under the terms of the "
|
2014-01-21 03:10:30 +00:00
|
|
|
"GNU GPL versions 2 or 3 or by any future license endorsed by Mnemosyne LLC.\n"
|
|
|
|
"\n"
|
|
|
|
"In addition, linking to and/or using OpenSSL is allowed.\n"
|
|
|
|
"\n"
|
2014-01-21 03:15:33 +00:00
|
|
|
"This program is distributed in the hope that it will be useful, "
|
|
|
|
"but WITHOUT ANY WARRANTY; without even the implied warranty of "
|
2014-01-21 03:10:30 +00:00
|
|
|
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"
|
|
|
|
"\n"
|
2014-01-21 03:15:33 +00:00
|
|
|
"Some of Transmission's source files have more permissive licenses. "
|
2014-01-21 03:10:30 +00:00
|
|
|
"Those files may, of course, be used on their own under their own terms.\n");
|
2013-02-03 19:40:20 +00:00
|
|
|
v->addWidget (t);
|
2009-05-08 18:52:06 +00:00
|
|
|
|
2013-02-03 19:40:20 +00:00
|
|
|
QDialogButtonBox * box = new QDialogButtonBox;
|
|
|
|
box->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed);
|
|
|
|
box->setOrientation (Qt::Horizontal);
|
|
|
|
box->setStandardButtons (QDialogButtonBox::Close);
|
|
|
|
v->addWidget (box);
|
2009-05-08 18:52:06 +00:00
|
|
|
|
2013-02-03 19:40:20 +00:00
|
|
|
connect (box, SIGNAL (rejected ()), this, SLOT (hide ()));
|
2009-05-08 18:52:06 +00:00
|
|
|
}
|