/** * Copyright (c) 2011-2018 by Andrew Mustun. All rights reserved. * * This file is part of the QCAD project. * * QCAD 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 3 of the License, or * (at your option) any later version. * * QCAD 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 QCAD. */ include("scripts/Help/Help.js"); include("AboutCredits.js"); /** * \class About * \brief Shows about dialog. * \ingroup ecma_help */ function About(guiAction) { Help.call(this, guiAction); } About.prototype = new Help(); About.prototype.beginEvent = function() { Help.prototype.beginEvent.call(this); var dialog = this.createWidget("AboutDialog.ui"); var f = 1; if (RS.getSystemId()==="osx") { f = 1.33; } var blue = "#0000cc"; if (RSettings.hasDarkGuiBackground()) { blue = "#2E9AFE"; } this.head = "
\n" + "\n" + ""; this.applicationName = qApp.applicationName; this.version = undefined; this.iconFile = undefined; // init plugin view: var textBrowser = dialog.findChild("PluginsText"); WidgetFactory.initTextBrowser(textBrowser, QDesktopServices.openUrl); this.initAboutPlugins(textBrowser); dialog.windowTitle = qsTr("About %1").arg(this.applicationName); if (!isNull(this.iconFile)) { dialog.findChild("Icon").icon = new QIcon(this.iconFile); } // init about view: textBrowser = dialog.findChild("AppText"); WidgetFactory.initTextBrowser(textBrowser, QDesktopServices.openUrl); this.initAboutApp(textBrowser); // init scripts view: textBrowser = dialog.findChild("ScriptsText"); WidgetFactory.initTextBrowser(textBrowser, QDesktopServices.openUrl); this.initAboutScripts(textBrowser); textBrowser = dialog.findChild("CreditsText"); WidgetFactory.initTextBrowser(textBrowser, QDesktopServices.openUrl); this.initCredits(textBrowser); // init system view: var textEdit = dialog.findChild("SystemText"); this.initAboutSystem(textEdit); // init licenses view: textBrowser = dialog.findChild("LicensesText"); this.initAboutLicenses(textBrowser); dialog.exec(); destr(dialog); EAction.activateMainWindow(); }; About.prototype.initAboutApp = function(textBrowser) { var version = RSettings.getVersionString(); var versionComplete = "%1.%2.%3.%4" .arg(RSettings.getMajorVersion()) .arg(RSettings.getMinorVersion()) .arg(RSettings.getRevisionVersion()) .arg(RSettings.getBuildVersion()); if (!isNull(this.version)) { version = ""; versionComplete = this.version; } var html = "" + this.head + "" + "| " + qsTr("Version:") + " | %1 %2 | " .arg(versionComplete) .arg(version.length>0 ? "("+version+")" : "") + "
| " + qsTr("Internet:") + " | %1 | ".arg(qApp.organizationDomain) + "
| " + qsTr("Build Date:") + " | %1 | ".arg(RSettings.getReleaseDate()) + "
| " + qsTr("Revision:") + " | %1 | ".arg(RSettings.getRevisionString().left(7)) + "
| " + qsTr("Qt Version:") + " | %1 | ".arg(RSettings.getQtVersionString()) + "
| " + qsTr("Architecture:") + " | %1 | ".arg(bca) + "
| " + qsTr("Compiler:") + " | %1 | ".arg(RSettings.getCompilerVersion()) + "
| " + qsTr("License Key:") + " | %1 | ".arg(lk) + "
" + qsTr("%1 is an application for computer-aided design (CAD).").arg(this.applicationName) + "
" + ""; if (this.applicationName!=="QCAD" && this.applicationName!=="QCAD Community Edition") { html += "" + qsTr("%1 is based on QCAD, a free (open source) software.").arg(this.applicationName) + "
"; } else { html += "" + qsTr("%1 is free (open source) software.").arg("QCAD") + "
"
+ "" + qsTr("This means that everyone can get involved!").arg("https://www.qcad.org/contribute") + "
" + qsTr("Plugins and script add-ons are subject to their respective license (see \"Plugins\" tab).") + "
" + "" + "" + qsTr("All brand or product names are trademarks or registered trademarks of their respective holders.") + "
" + "" + "© 2011-2023 RibbonSoft, GmbH.
" + "" + qsTr("Portions of this software © %1 The Qt Company Ltd.").arg("2008-2023") + "
" + "" + qsTr("Qt ships with QCAD under the LGPL Open Source license which confers various rights to you as the user, including the right to recompile the Qt libraries for your platform. To do that follow the documentation shown on the Qt website.").arg("https://www.gnu.org/licenses/lgpl-3.0.html").arg("https://doc.qt.io/qt-5/build-sources.html") + "
" + "" + qsTr("The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.") + "
" + "" + ""; textBrowser.setHtml(html); }; About.prototype.initAboutPlugins = function(textBrowser) { RPluginLoader.loadPlugins(false); var html = "" + this.head + "" + "| " + credits[i][k][0] + " | "; html += "" + credits[i][k][1] + " | "; html += "
Permission is hereby granted, free of charge, to any person obtaining a "
+ "copy of this software and associated documentation files (the \"Software\"), "
+ "to deal in the Software without restriction, including without limitation "
+ "the rights to use, copy, modify, merge, publish, distribute, sublicense, "
+ "and/or sell copies of the Software, and to permit persons to whom the "
+ "Software is furnished to do so, subject to the following conditions:"
+ "
"
+ "The above copyright notice and this permission notice shall be included in "
+ "all copies or substantial portions of the Software."
+ "
"
+ "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 AND NONINFRINGEMENT. IN NO EVENT SHALL THE "
+ "AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER "
+ "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING "
+ "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER "
+ "DEALINGS IN THE SOFTWARE.
Copyright (c) 2001, Dr Martin Porter."
+ "
All rights reserved."
+ "
"
+ "Redistribution and use in source and binary forms, with or without modification, "
+ "are permitted provided that the following conditions are met:"
+ "
"
+ " - Redistributions of source code must retain the above copyright notice, "
+ " this list of conditions and the following disclaimer."
+ "
- 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."
+ "
"
+ "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.
Copyright (c) 2016, Adam Draper."
+ "
"
+ "Permission is hereby granted, free of charge, to any person "
+ "obtaining a copy of this software and associated documentation "
+ "files (the \"Software\"), to deal in the Software without "
+ "restriction, including without limitation the rights to use, "
+ "copy, modify, merge, publish, distribute, sublicense, and/or sell "
+ "copies of the Software, and to permit persons to whom the "
+ "Software is furnished to do so, subject to the following "
+ "conditions:"
+ "
"
+ " - The above copyright notice and this permission notice shall be "
+ "included in all copies or substantial portions of the Software."
+ "
- 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."
+ "
"
+ "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 AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE "
+ "FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, "
+ "ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright 2016
"
+ "dtp studio oldenburg (https://www.dtpstudio.de)
"
+ "Grünteweg 31
"
+ "D-26127 Oldenburg
"
+ "Tel. +49 - (0)441-3001807
"
+ "info@dtpstudio.de
"
+ "
"
+ "Creative Commons Attribution-NoDerivatives 4.0 International Public License (https://creativecommons.org/licenses/by-nd/4.0/legalcode)
" + lic.replace(/\n/g, "
") + "