moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kverbos / kverbos / main.cpp
blob297e375690af1e3f987720e2c72aec97e5b99fb0
1 /***************************************************************************
2 main.cpp - description
3 -------------------
4 begin : Fre Dez 14 19:28:09 CET 2001
5 copyright : (C) 2001 by Arnold Kraschinski
6 email : arnold.k67@gmx.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #include <kcmdlineargs.h>
19 #include <kaboutdata.h>
21 #include "kverbos.h"
23 static const char description[] =
24 I18N_NOOP("KVerbos");
26 static KCmdLineOptions options[] =
28 { "+[File]", I18N_NOOP("File to open"), 0 },
29 KCmdLineLastOption
30 // INSERT YOUR COMMANDLINE OPTIONS HERE
35 int main(int argc, char *argv[])
38 KAboutData aboutData( "kverbos", I18N_NOOP("KVerbos"),
39 VERSION, description, KAboutData::License_GPL,
40 "(c) 2001, Arnold Kraschinski", 0, 0, "arnold.k67@gmx.de");
41 aboutData.addAuthor("Arnold Kraschinski",0, "arnold.k67@gmx.de");
42 aboutData.addCredit("David Vignoni", I18N_NOOP("svg icon"), "david80v@tin.it");
43 KCmdLineArgs::init( argc, argv, &aboutData );
44 KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
46 KApplication app;
48 if (app.isRestored())
50 RESTORE(KVerbosApp);
52 else
54 KVerbosApp *kverbos = new KVerbosApp();
55 kverbos->show();
57 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
59 if (args->count())
61 kverbos->openDocumentFile(args->url(0));
63 else
65 // Meiner Meinung nach geh�t die folgende Zeile nicht hier hin, weil hier das
66 // Programm durchl�ft, wenn kein Dateiname ber die Kommandozeile eingegeben
67 // worden ist.
68 // kverbos->openDocumentFile();
70 args->clear();
73 return app.exec();