1/*
2 * This file is part of the KDE project
3 *
4 * Copyright (C) 2011 Shantanu Tushar <shaan7in@gmail.com>
5 * Copyright (C) 2012 Sujith Haridasan <sujith.haridasan@kdemail.net>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 sure
21 * USA
22 */
23
24#include "src/MainWindow.h"
25#include <kapplication.h>
26#include <kaboutdata.h>
27#include <kcmdlineargs.h>
28
29int main(int argc, char *argv[])
30{
31 KAboutData aboutData("calligraactive",
32 0,
33 ki18n("Calligra Active"),
34 "1.0 Beta",
35 ki18n("Calligra application for tablets"),
36 KAboutData::License_GPL_V2,
37 ki18n("Copyright (c) 2011-2012"));
38 aboutData.addAuthor(ki18n("Shantanu Tushar"),
39 ki18n("Maintainer and main developer"),
40 "shantanu@kde.org",
41 "http://www.shantanutushar.com");
42 aboutData.addAuthor(ki18n("Sujith Haridasan"),
43 ki18n("Maintainer and main developer"),
44 "sujith.haridasan@kdemail.net",
45 "http://www.sujithh.info");
46 KCmdLineArgs::init(argc, argv, &aboutData);
47 KCmdLineOptions options;
48 options.add("+[file]", ki18n("File to open"));
49 KCmdLineArgs::addCmdLineOptions(options);
50
51
52 KApplication app;
53 MainWindow mw;
54
55 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
56 if(args->count()) {
57 mw.openFile(args->arg(0));
58 }
59 args->clear();
60
61 mw.show();
62
63 return app.exec();
64}
65