File indexing completed on 2021-12-21 13:26:58
0001 /* AUDEX CDDA EXTRACTOR 0002 * Copyright (C) 2007-2015 Marco Nelles (audex@maniatek.com) 0003 * <https://userbase.kde.org/Audex> 0004 * 0005 * This program is free software: you can redistribute it and/or modify 0006 * it under the terms of the GNU General Public License as published by 0007 * the Free Software Foundation, either version 3 of the License, or 0008 * (at your option) any later version. 0009 * 0010 * This program is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 * GNU General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU General Public License 0016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0017 */ 0018 0019 #include <QApplication> 0020 #include <QCommandLineParser> 0021 0022 #include <KAboutData> 0023 #include <KCrash> 0024 0025 #include "config.h" 0026 #include "mainwindow.h" 0027 0028 #include <Kdelibs4ConfigMigrator> 0029 0030 int main(int argc, char *argv[]) 0031 { 0032 Kdelibs4ConfigMigrator migrator(QStringLiteral("audex")); 0033 migrator.setConfigFiles(QStringList() << QStringLiteral("audexrc")); 0034 migrator.migrate(); 0035 0036 QApplication app(argc, argv); 0037 app.setAttribute(Qt::AA_UseHighDpiPixmaps, true); 0038 0039 KCrash::initialize(); 0040 0041 KLocalizedString::setApplicationDomain("audex"); 0042 0043 KAboutData aboutData("audex", i18n("Audex"), AUDEX_VERSION); 0044 aboutData.setShortDescription(i18n("KDE CDDA Extractor")); 0045 aboutData.setLicense(KAboutLicense::GPL); 0046 aboutData.setCopyrightStatement(i18n("Copyright © 2007–2015 by Marco Nelles")); 0047 aboutData.setHomepage("https://userbase.kde.org/Audex"); 0048 aboutData.setBugAddress("audex@maniatek.com"); 0049 aboutData.addAuthor(i18n("Marco Nelles"), i18n("Current maintainer, main developer"), "marco@maniatek.de"); 0050 aboutData.addCredit(i18n("Craig Drummond"), i18n("GUI improvements, development"), nullptr, ""); 0051 aboutData.addCredit(i18n("Elson"), i18n("development"), nullptr, ""); 0052 aboutData.addCredit(i18n("credativ GmbH"), i18n("Special thanks to credativ GmbH (Germany) for support"), nullptr, "http://www.credativ.com/"); 0053 aboutData.addCredit(i18n("freedb.org"), i18n("Special thanks to freedb.org for providing a free CDDB-like CD database"), nullptr, "http://freedb.org"); 0054 aboutData.addCredit(i18n("Xiph.Org Foundation"), i18n("Special thanks to Xiph.Org Foundation for providing compact disc ripper"), nullptr, "http://www.xiph.org/paranoia/index.html"); 0055 aboutData.setTranslator(i18nc("NAME OF TRANSLATORS", "Your names"), i18nc("EMAIL OF TRANSLATORS", "Your emails")); 0056 0057 aboutData.setOrganizationDomain(QByteArray("kde.org")); 0058 aboutData.setDesktopFileName(QStringLiteral("org.kde.audex")); 0059 0060 app.setWindowIcon(QIcon::fromTheme(QStringLiteral("audex"))); 0061 0062 QCommandLineParser parser; 0063 KAboutData::setApplicationData(aboutData); 0064 parser.addVersionOption(); 0065 parser.addHelpOption(); 0066 aboutData.setupCommandLine(&parser); 0067 parser.process(app); 0068 aboutData.processCommandLine(&parser); 0069 0070 auto *window = new MainWindow(); 0071 window->show(); 0072 0073 return app.exec(); 0074 }