moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kiten / main.cpp
blobc6a724e885d171169169628dc3b91b1303564211
1 /**
2 This file is part of Kiten, a KDE Japanese Reference Tool...
3 Copyright (C) 2001 Jason Katz-Brown <jason@katzbrown.com>
4 (C) 2005 Paul Temple <paul.temple@gmx.net>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 USA
20 **/
22 #include <kcmdlineargs.h>
23 #include <kaboutdata.h>
24 #include <kapplication.h>
25 #include <kmainwindow.h>
26 #include <qsqlpropertymap.h>
28 #include "kiten.h"
30 void noMessageOutput(QtMsgType, const char *)
34 static KCmdLineOptions options[] =
36 KCmdLineLastOption
37 // INSERT YOUR COMMANDLINE OPTIONS HERE
40 int main(int argc, char *argv[])
42 qInstallMsgHandler(noMessageOutput);
43 KAboutData aboutData( "kiten", I18N_NOOP("Kiten"),
44 "1.2", I18N_NOOP("Japanese Reference Tool"), KAboutData::License_GPL,
45 "(c) 2001-2004, Jason Katz-Brown", 0, "http://www.katzbrown.com/kiten");
47 aboutData.addAuthor("Jason Katz-Brown", I18N_NOOP("Original author"), "jason@katzbrown.com");
48 aboutData.addCredit("Jim Breen", I18N_NOOP("Wrote xjdic, of which Kiten borrows code, and the xjdic index file generator.\nAlso is main author of edict and kanjidic, which Kiten essentially require."), "jwb@csse.monash.edu.au");
49 aboutData.addAuthor("Neil Stevens", I18N_NOOP("Code simplification, UI suggestions."), "neil@qualityassistant.com");
50 aboutData.addCredit("David Vignoni", I18N_NOOP("svg icon"), "david80v@tin.it");
51 aboutData.addCredit("Paul Temple", I18N_NOOP("Porting to KConfig XT, bug fixing"), "paul.temple@gmx.net");
52 KCmdLineArgs::init(argc, argv, &aboutData);
53 KCmdLineArgs::addCmdLineOptions(options); // Add our own options.
55 KApplication a;
56 // a.installKDEPropertyMap();
57 // QSqlPropertyMap *map = QSqlPropertyMap::defaultMap();
58 // map->insert("MyStringList", "value");
60 TopLevel *t = new TopLevel();
61 t->show();
62 return a.exec();