File indexing completed on 2024-05-05 05:50:50
0001 /* Atelier KDE Printer Host for 3D Printing 0002 Copyright (C) <2016> 0003 Author: Lays Rodrigues - lays.rodrigues@kde.org 0004 Chris Rizzitello - rizzitello@kde.org 0005 0006 This program is free software: you can redistribute it and/or modify 0007 it under the terms of the GNU General Public License as published by 0008 the Free Software Foundation, either version 3 of the License, or 0009 (at your option) any later version. 0010 0011 This program is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 GNU General Public License for more details. 0015 0016 You should have received a copy of the GNU General Public License 0017 along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 #include "config.h" 0020 #include "mainwindow.h" 0021 #include <KAboutData> 0022 #include <KLocalizedString> 0023 #include <QApplication> 0024 #include <atcore_version.h> 0025 0026 int main(int argc, char *argv[]) 0027 { 0028 QApplication app(argc, argv); 0029 0030 QCoreApplication::setOrganizationName("KDE"); 0031 QCoreApplication::setOrganizationDomain("kde.org"); 0032 QCoreApplication::setApplicationName("atelier"); 0033 QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); 0034 0035 KAboutData aboutData( 0036 // The program name used internally. (componentName) 0037 QStringLiteral("atelier"), 0038 // A displayable program name string. (displayName) 0039 i18n("Atelier"), 0040 // The program version string. (version) 0041 QStringLiteral(ATELIER_VERSION), 0042 // Short description of what the app does. (shortDescription) 0043 i18n("Printer Host for 3DPrinters"), 0044 // The license this code is released under 0045 KAboutLicense::GPL_V3, 0046 // Copyright Statement (copyrightStatement = QString()) 0047 i18n("(c) 2016"), 0048 // Optional text shown in the About box. 0049 // Can contain any information desired. (otherText) 0050 QString(), 0051 // The program homepage string. (homePageAddress = QString()) 0052 QStringLiteral("http://atelier.kde.org"), 0053 // The bug report email address 0054 QStringLiteral("atelier@bugs.kde.org")); 0055 aboutData.addAuthor(i18n("Lays Rodrigues"), i18n("Developer"), QStringLiteral("lays.rodrigues@kde.org"), QStringLiteral("http://laysrodriguesdev.wordpress.com")); 0056 aboutData.addAuthor(i18n("Chris Rizzitello"), i18n("Developer"), QStringLiteral("rizzitello@kde.org"), QStringLiteral("http://rizzitello.wordpress.com")); 0057 aboutData.addAuthor(i18n("Patrick Pereira"), i18n("Developer"), QStringLiteral("patrickjp@kde.org"), QStringLiteral("http://patrickjp.com")); 0058 aboutData.addAuthor(i18n("Tomaz Canabrava"), i18n("Contributor"), QStringLiteral("tcanabrava@kde.org"), QStringLiteral("http://angrycane.com.br")); 0059 aboutData.setOtherText(i18n("Using AtCore: %1", QString(ATCORE_VERSION_STRING))); 0060 KAboutData::setApplicationData(aboutData); 0061 0062 auto mainWindow = new MainWindow(); 0063 mainWindow->setWindowIcon(QIcon(":/icon/atelier")); 0064 mainWindow->show(); 0065 return app.exec(); 0066 }