File indexing completed on 2024-04-21 03:50:56

0001 /*************************************************************************
0002  *  Copyright (C) 2020 by Caio Jordão Carvalho <caiojcarvalho@gmail.com> *
0003  *                                                                       *
0004  *  This program is free software; you can redistribute it and/or        *
0005  *  modify it under the terms of the GNU General Public License as       *
0006  *  published by the Free Software Foundation; either version 3 of       *
0007  *  the License, or (at your option) any later version.                  *
0008  *                                                                       *
0009  *  This program is distributed in the hope that it will be useful,      *
0010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of       *
0011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
0012  *  GNU General Public License for more details.                         *
0013  *                                                                       *
0014  *  You should have received a copy of the GNU General Public License    *
0015  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.*
0016  *************************************************************************/
0017 
0018 #include "ui/mark.h"
0019 #include <QApplication>
0020 #include <QScreen>
0021 
0022 #include <KAboutData>
0023 #include <KXmlGuiWindow>
0024 
0025 int main(int argc, char *argv[])
0026 {
0027     QApplication app(argc, argv);
0028 
0029     KAboutData aboutData(
0030             // The program name used internally. (componentName)
0031             QStringLiteral("mark"),
0032             // A displayable program name string. (displayName)
0033             QStringLiteral("marK"),
0034             // The program version string. (version)
0035             QStringLiteral("0.1.0"),
0036             // Short description of what the app does. (shortDescription)
0037             QStringLiteral("Scientific tool for annotation of machine learning datasets."),
0038             // The license this code is released under
0039             KAboutLicense::GPL_V3,
0040             // Copyright Statement (copyrightStatement = QString())
0041             QStringLiteral("(c) 2020"),
0042             // Optional text shown in the About box.
0043             // Can contain any information desired. (otherText)
0044             QStringLiteral("The project is in its early stage of development, currently supports image and text annotation."),
0045             // The program homepage string. (homePageAddress = QString())
0046             QStringLiteral("https://invent.kde.org/education/mark"),
0047             // The bug report email address
0048             // (bugsEmailAddress = QLatin1String("submit@bugs.kde.org")
0049             QStringLiteral("submit@bugs.kde.org"));
0050     aboutData.addAuthor(QStringLiteral("Caio Jordão Carvalho"), QStringLiteral("Maintainer"), QStringLiteral("caiojcarvalho@gmail.com"),
0051                         QStringLiteral("caiojcarvalho.wordpress.com"), QStringLiteral("cjlcarvalho"));
0052     aboutData.addAuthor(QStringLiteral("Jean Lima Andrade"), QStringLiteral("Text support"), QStringLiteral("jyeno@protonmail.com"),
0053                         QStringLiteral("jyeno.home.blog"), QStringLiteral("jyeno"));
0054     KAboutData::setApplicationData(aboutData);
0055 
0056     marK *w = new marK();
0057     w->setWindowState(Qt::WindowMaximized);
0058     w->setWindowIcon(QIcon::fromTheme("document-edit"));
0059     w->show();
0060 
0061     return app.exec();
0062 }