Skip to content

Commit

Permalink
Attribute libraries in About Dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellMorgenstern committed Apr 25, 2023
1 parent eed3018 commit ba03556
Show file tree
Hide file tree
Showing 4 changed files with 222 additions and 12 deletions.
29 changes: 29 additions & 0 deletions LICENSE.Modified_BSD
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---------------------------------- 'Modified BSD' ------------------------------

Copyright 1985 - 2018, Regents of the University of California and others

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
23 changes: 23 additions & 0 deletions LICENSE_1_0.txt.BOOST
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:

The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
125 changes: 125 additions & 0 deletions license-openssl-ssleay.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@

LICENSE ISSUES
==============

The OpenSSL toolkit stays under a double license, i.e. both the conditions of
the OpenSSL License and the original SSLeay license apply to the toolkit.
See below for the actual license texts.

OpenSSL License
---------------

/* ====================================================================
* Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* [email protected].
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* ([email protected]). This product includes software written by Tim
* Hudson ([email protected]).
*
*/

Original SSLeay License
-----------------------

/* Copyright (C) 1995-1998 Eric Young ([email protected])
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young ([email protected]).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson ([email protected]).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young ([email protected])"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson ([email protected])"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/

57 changes: 45 additions & 12 deletions src/help/aboutbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ AboutBox::AboutBox(QWidget *parent)

// Scrolling Credits Text
QString data =
QString("<br /><br /><br /><br /><br /><br /><br /><br /><br />") +
QString("<br /><br /><br /><br /><br /><br />") +

"<p>" +
tr("Fritzing is made by: ") +
Expand Down Expand Up @@ -161,26 +161,59 @@ AboutBox::AboutBox(QWidget *parent)

"<p>" +
tr("Special thanks go out to all the students and alpha testers who were brave enough to give Fritzing a test spin.") +
"</p>" +

"<br /><br /><br /><br /><br /><br /><br /><br />";
"</p>";

QString br = "<br/>";
QString lgplv3 = tr("LGPLv3");
QString lgplv2 = tr("GPLv2 with linking exception");
QString boost = tr("Boost License 1.0");
QString modifiedbsd = tr("Modified BSD License");
QString bsd = tr("BSD License");
QString pnglicense = tr("PNG Reference Library License version 2");
QString openssl = tr("Dual OpenSSL and SSLeay License");
QString zlib = tr("zlib License");


QString licensesTable = "<p>" + tr("The following libraries are used by Fritzing:") + br +
QString(
"<table width='80%' border='0' cellspacing='0' cellpadding='0'>"
"<tr><td align='left'>Qt</td><td align='left'>%1</td></tr>"
"<tr><td align='left'>Boost</td><td align='left'>%2</td></tr>"
"<tr><td align='left'>svgpp</td><td align='left'>%2</td></tr>"
"<tr><td align='left'>libngspice</td><td align='left'>%3</td></tr>"
"<tr><td align='left'>libquazip</td><td align='left'>%1</td></tr>"
"<tr><td align='left'>libpng</td><td align='left'>%4</td></tr>"
"<tr><td align='left'>libcrypto</td><td align='left'>%5</td></tr>"
"<tr><td align='left'>libjpg</td><td align='left'>%6</td></tr>"
"<tr><td align='left'>zlib</td><td align='left'>%7</td></tr>"
"<tr><td align='left'>libgit2</td><td align='left'>%8</td></tr>"
"</table>"
"</p>"
"<br /><br /><br /><br /><br /><br /><br /><br />"
)
.arg(lgplv3)
.arg(boost)
.arg(modifiedbsd)
.arg(pnglicense)
.arg(openssl)
.arg(bsd)
.arg(zlib)
.arg(lgplv2);

QPixmap fadepixmap(":/resources/images/aboutbox_scrollfade.png");

data = "<div align='center'><table width='90%'><tr><td align='center'>" +
data +
"</td></td></table>" +
licensesTable +
"</div>";

m_expandingLabel = new ExpandingLabel(this, AboutWidth);
m_expandingLabel->setObjectName("aboutText");
m_expandingLabel->setLabelText(data);
m_expandingLabel->setFont(smallFont);
m_expandingLabel->setGeometry(0, AboutText, AboutWidth, fadepixmap.height());

// setAlignment only aligns the "current paragraph"
// the QTextCursor code aligns all paragraphs
QTextCursor cursor(m_expandingLabel->document());
cursor.select(QTextCursor::Document);
QTextBlockFormat fmt;
fmt.setAlignment(Qt::AlignCenter);
cursor.mergeBlockFormat(fmt);

// Add a fade out and a fade in the scrollArea
auto *scrollFade = new QLabel(this);
scrollFade->setPixmap(fadepixmap);
Expand Down

0 comments on commit ba03556

Please sign in to comment.