Fix UI
[kdenetwork.git] / kdict / main.cpp
blob235f9048cd42645d83e205da0f3346ac6a96ae89
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 ------------------------------------------------------------- */
13 #include <config.h>
15 #include <kaboutdata.h>
16 #include <kcmdlineargs.h>
17 #include <klocale.h>
18 #include <kdelibs_export.h>
20 #include "application.h"
21 #include "toplevel.h"
23 static KCmdLineOptions knoptions[] =
25 { "c", 0, 0 },
26 { "clipboard", I18N_NOOP("Define X11-clipboard content (selected text)"), 0 },
27 { "+[word/phrase]", I18N_NOOP("Lookup the given word/phrase"), 0 },
28 KCmdLineLastOption
32 extern "C" KDE_EXPORT int kdemain(int argc, char* argv[])
34 KAboutData aboutData("kdict",
35 I18N_NOOP("Dictionary"),
36 KDICT_VERSION,
37 I18N_NOOP("The KDE Dictionary Client"),
38 KAboutData:: License_Artistic,
39 "Copyright (c) 1999-2001, Christian Gebauer\nCopyright (c) 1998, Matthias Hoelzer",
41 0);
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())
51 return 0;
53 Application app;
55 return app.exec();