1 /* -------------------------------------------------------------
3 main.cpp (part of The KDE Dictionary Client)
5 Copyright (C) 2000-2001 Christian Gebauer <gebauer@kde.org>
6 (C) by Matthias H�zer 1998
8 This file is distributed under the Artistic License.
9 See LICENSE for details.
11 ------------------------------------------------------------- */
15 #include <kaboutdata.h>
16 #include <kcmdlineargs.h>
18 #include <kdelibs_export.h>
20 #include "application.h"
23 static KCmdLineOptions knoptions
[] =
26 { "clipboard", I18N_NOOP("Define X11-clipboard content (selected text)"), 0 },
27 { "+[word/phrase]", I18N_NOOP("Lookup the given word/phrase"), 0 },
32 extern "C" KDE_EXPORT
int kdemain(int argc
, char* argv
[])
34 KAboutData
aboutData("kdict",
35 I18N_NOOP("Dictionary"),
37 I18N_NOOP("The KDE Dictionary Client"),
38 KAboutData:: License_Artistic
,
39 "Copyright (c) 1999-2001, Christian Gebauer\nCopyright (c) 1998, Matthias Hoelzer",
43 aboutData
.addAuthor("Christian Gebauer",I18N_NOOP("Maintainer"),"gebauer@kde.org");
44 aboutData
.addAuthor("Matthias Hoelzer",I18N_NOOP("Original Author"),"hoelzer@kde.org");
46 KCmdLineArgs::init( argc
, argv
, &aboutData
);
47 KCmdLineArgs::addCmdLineOptions( knoptions
);
48 KUniqueApplication::addCmdLineOptions();
50 if (!Application::start())