" + tr("MapMap is a free/open source video mapping software.") + "
"; + // Copyright and software owners + QString copyrightText = "" + tr("Copyright © 2013 %1.").arg(MM::COPYRIGHT_OWNERS) + "
"; + // License short notice + QFile licenseShortFile(":/license-short"); + licenseShortFile.open(QIODevice::ReadOnly | QIODevice::Text); + QString licenseNoticeText = Qt::convertFromPlainText(QTextCodec::codecForName("UTF-8")->toUnicode(licenseShortFile.readAll()), Qt::WhiteSpaceNormal); + // About projection mapping + QFile aboutMappingFile(":/projection-mapping"); + aboutMappingFile.open(QIODevice::ReadOnly | QIODevice::Text); + QString aboutMappingText = QTextCodec::codecForName("UTF-8")->toUnicode(aboutMappingFile.readAll()); + // Visit our website for more information + QString projectWebsiteText = "" + tr("See the ") + QString("").arg(MM::ORGANIZATION_DOMAIN) + + tr("%1 website").arg(MM::APPLICATION_NAME) + " for more information on this software.
"; + // Append texts + aboutText.append(aboutSoftwareText); + aboutText.append(copyrightText); + aboutText.append(licenseNoticeText); + aboutText.append(aboutMappingText); + aboutText.append(projectWebsiteText); + + // Set about text + _aboutTextBrowser->setText(aboutText); + + _tabWidget->addTab(_aboutTextBrowser, tr("About")); +} + +void AboutDialog::createChangelogTab() +{ + _changelogTextBrowser = new QTextBrowser; + _changelogTextBrowser->setOpenExternalLinks(true); + + QFile changelogFile(":/changelog"); + changelogFile.open(QIODevice::ReadOnly | QIODevice::Text); + _changelogTextBrowser->setText(QTextCodec::codecForName("UTF-8")->toUnicode(changelogFile.readAll())); + + _tabWidget->addTab(_changelogTextBrowser, tr("Changelog")); +} + +void AboutDialog::createLibrairiesTab() +{ + _librariesTextBrowser = new QTextBrowser; + _librariesTextBrowser->setOpenExternalLinks(true); + + _tabWidget->addTab(_librariesTextBrowser, tr("Librairies")); +} + +void AboutDialog::createContributorsTab() +{ + _contributorsTextBrowser = new QTextBrowser; + _contributorsTextBrowser->setOpenExternalLinks(true); + + QFile contributorsFile(":/contributors"); + contributorsFile.open(QIODevice::ReadOnly | QIODevice::Text); + _contributorsTextBrowser->setText(QTextCodec::codecForName("UTF-8")->toUnicode(contributorsFile.readAll())); + + _tabWidget->addTab(_contributorsTextBrowser, tr("Contributors")); +} + +void AboutDialog::createLicenseTab() +{ + _licenseTextBrowser = new QTextBrowser; + _licenseTextBrowser->setOpenExternalLinks(true); + + QFile licenseFile(":/license"); + licenseFile.open(QIODevice::ReadOnly | QIODevice::Text); + _licenseTextBrowser->setText(QTextCodec::codecForName("UTF-8")->toUnicode(licenseFile.readAll())); + + _tabWidget->addTab(_licenseTextBrowser, tr("License")); +} + +MM_END_NAMESPACE diff --git a/AboutDialog.h b/AboutDialog.h new file mode 100644 index 0000000..8eea159 --- /dev/null +++ b/AboutDialog.h @@ -0,0 +1,67 @@ +/* + * AboutDialog.h + * + * (c) 2016 Dame Diongue -- baydamd(@)gmail(.)com + * + * 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 3 of the License, or + * (at your option) any later version. + * + * This program 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, seeCopyright © 2013 %2.
" - "MapMap is a free software for video mapping.
" - "Projection mapping, also known as video mapping and spatial augmented reality, " - "is a projection technology used to turn objects, often irregularly shaped, into " - "a display surface for video projection. These objects may be complex industrial " - "landscapes, such as buildings. By using specialized software, a two or three " - "dimensional object is spatially mapped on the virtual program which mimics the " - "real environment it is to be projected on. The software can interact with a " - "projector to fit any desired image onto the surface of that object. This " - "technique is used by artists and advertisers alike who can add extra dimensions, " - "optical illusions, and notions of movement onto previously static objects. The " - "video is commonly combined with, or triggered by, audio to create an " - "audio-visual narrative." - "This project was made possible by the support of the International Organization of " - "La Francophonie.
" - "http://mapmap.info
"
- "http://www.francophonie.org
Copyright © 2013 %2.
" +// "MapMap is a free software for video mapping.
" +// "Projection mapping, also known as video mapping and spatial augmented reality, " +// "is a projection technology used to turn objects, often irregularly shaped, into " +// "a display surface for video projection. These objects may be complex industrial " +// "landscapes, such as buildings. By using specialized software, a two or three " +// "dimensional object is spatially mapped on the virtual program which mimics the " +// "real environment it is to be projected on. The software can interact with a " +// "projector to fit any desired image onto the surface of that object. This " +// "technique is used by artists and advertisers alike who can add extra dimensions, " +// "optical illusions, and notions of movement onto previously static objects. The " +// "video is commonly combined with, or triggered by, audio to create an " +// "audio-visual narrative." +// "This project was made possible by the support of the International Organization of " +// "La Francophonie.
" +// "http://mapmap.info
"
+// "http://www.francophonie.org