File indexing completed on 2024-04-28 05:43:53

0001 /*
0002  * KTechLab: An IDE for microcontrollers and electronics
0003  * Copyright 2018  Zoltan Padrah <zoltan_padrah@users.sf.net>
0004  *
0005  * This program is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU General Public License as
0007  * published by the Free Software Foundation; either version 2 of
0008  * the License or (at your option) version 3 or any later version
0009  * accepted by the membership of KDE e.V. (or its successor approved
0010  * by the membership of KDE e.V.), which shall act as a proxy
0011  * defined in Section 14 of version 3 of the license.
0012  *
0013  * This program is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016  * GNU General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU General Public License
0019  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
0020  *
0021  */
0022 
0023 #include "../src/ktechlab.h"
0024 
0025 #include <KAboutData>
0026 #include <KLocalizedString>
0027 
0028 #include <QApplication>
0029 #include <QCommandLineParser>
0030 
0031 #include <ktechlab_version.h>
0032 #include <ktechlab_debug.h>
0033 
0034 int main(int argc, char *argv[]) {
0035     QApplication app(argc, argv);
0036     KAboutData aboutData(QByteArray("ktechlab"), i18n("KTechLab"),
0037                 KTECHLAB_VERSION_STRING, i18n("An IDE for microcontrollers and electronics"),
0038                 KAboutLicense::GPL_V2, i18n("(C) 2003-2017, The KTechLab developers"),
0039                 "", "https://userbase.kde.org/KTechlab", "ktechlab-devel@kde.org" );
0040     KAboutData::setApplicationData(aboutData);
0041 
0042     QCommandLineParser parser;
0043     aboutData.setupCommandLine(&parser);
0044     parser.process(app);
0045     aboutData.processCommandLine(&parser);
0046 
0047     KTechlab *ktechlab = new KTechlab();
0048     qCInfo(KTL_LOG) << "ktechlab instance:" << ktechlab;
0049 }