1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
/***************************************************************************
-----------------------------------------------------------------------
begin : Thu Mar 11 20:50:53 MET 1999
copyright : (C) 1999-2001 Ewald Arnold
(C) 2001 The KDE-EDU team
email : kvoctrain@ewald-arnold.de
-----------------------------------------------------------------------
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "kvoctrain.h"
#include "kvoctraincore.h"
# include <tdecmdlineargs.h>
# include <tdeaboutdata.h>
# include <tdelocale.h>
int main(int argc, char* argv[]) {
static TDECmdLineOptions options[] =
{
{ I18N_NOOP("+[file]"), I18N_NOOP("Document file to open"), 0 },
TDECmdLineLastOption
};
static const char description[] = I18N_NOOP("Vocabulary Trainer");
static const char version[] = KVOCTRAIN_VERSION_STRING;
TDEAboutData aboutData("kvoctrain",
I18N_NOOP("KVocTrain"),
version,
description,
TDEAboutData::License_GPL,
I18N_NOOP("© 1999-2002\tEwald Arnold\n"
"© 2001-2002\tThe KDE team\n"
"© 2004-2007\tPeter Hedlund\n"
"© 2007 \tFrederik Gladhorn\n"),
I18N_NOOP("Helps you train your vocabulary"),
"http://edu.kde.org/kvoctrain",
"submit@bugs.kde.org");
aboutData.addAuthor("Frederik Gladhorn",
I18N_NOOP("Current Maintainer"), "frederik.gladhorn@kdemail.net");
aboutData.addAuthor("Peter Hedlund",
I18N_NOOP("Former Maintainer and Countless Improvements"), "peter.hedlund@kdemail.net");
aboutData.addAuthor("Ewald Arnold", I18N_NOOP("Original Author"), "kvoctrain@ewald-arnold.de",
"http://www.ewald-arnold.de" );
aboutData.addCredit("Waldo Bastian",
I18N_NOOP("Help with port to Qt3/KDE3"));
aboutData.addCredit("Andrea Marconi",
I18N_NOOP("Initial Italian localization"));
aboutData.addCredit("Hans Kottmann",
I18N_NOOP("Initial French localization"));
aboutData.addCredit("Grzegorz Ilczuk",
I18N_NOOP("Initial Polish localization"));
aboutData.addCredit("Eric Bischoff",
I18N_NOOP("Converting documentation to docbook format"));
aboutData.addCredit("Kevin Kramer",
I18N_NOOP("Tool to create lists with ISO639 codes"));
aboutData.addCredit("Andreas Neuper",
I18N_NOOP("Converter script \"langen2kvtml\" \nDownload files at http://www.vokabeln.de/files.htm"));
aboutData.addCredit("Dennis Haney",
I18N_NOOP("Patch to implement Leitner learning method"));
aboutData.addCredit("Anne-Marie Mahfouf",
I18N_NOOP("Port to TDEConfig XT"));
aboutData.addCredit(I18N_NOOP("KDE Team"),
I18N_NOOP("Many small enhancements"));
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
TDEApplication app;
kvoctrainApp *kva = 0;
if (app.isRestored()) {
int n = 1;
while (TDEMainWindow::canBeRestored(n)){
kva = new kvoctrainApp;
kva->restore(n);
kva->show();
n++;
}
}
else
{
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
kva = new kvoctrainApp;
if ( args && args->count() == 1 )
kva->loadfileFromPath(args->arg(0), true);
kva->show();
}
return app.exec();
}
|