diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kdict/main.cpp | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdict/main.cpp')
-rw-r--r-- | kdict/main.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/kdict/main.cpp b/kdict/main.cpp new file mode 100644 index 00000000..235f9048 --- /dev/null +++ b/kdict/main.cpp @@ -0,0 +1,56 @@ +/* ------------------------------------------------------------- + + main.cpp (part of The KDE Dictionary Client) + + Copyright (C) 2000-2001 Christian Gebauer <gebauer@kde.org> + (C) by Matthias H�zer 1998 + + This file is distributed under the Artistic License. + See LICENSE for details. + + ------------------------------------------------------------- */ + +#include <config.h> + +#include <kaboutdata.h> +#include <kcmdlineargs.h> +#include <klocale.h> +#include <kdelibs_export.h> + +#include "application.h" +#include "toplevel.h" + +static KCmdLineOptions knoptions[] = +{ + { "c", 0, 0 }, + { "clipboard", I18N_NOOP("Define X11-clipboard content (selected text)"), 0 }, + { "+[word/phrase]", I18N_NOOP("Lookup the given word/phrase"), 0 }, + KCmdLineLastOption +}; + + +extern "C" KDE_EXPORT int kdemain(int argc, char* argv[]) +{ + KAboutData aboutData("kdict", + I18N_NOOP("Dictionary"), + KDICT_VERSION, + I18N_NOOP("The KDE Dictionary Client"), + KAboutData:: License_Artistic, + "Copyright (c) 1999-2001, Christian Gebauer\nCopyright (c) 1998, Matthias Hoelzer", + 0, + 0); + + aboutData.addAuthor("Christian Gebauer",I18N_NOOP("Maintainer"),"gebauer@kde.org"); + aboutData.addAuthor("Matthias Hoelzer",I18N_NOOP("Original Author"),"hoelzer@kde.org"); + + KCmdLineArgs::init( argc, argv, &aboutData ); + KCmdLineArgs::addCmdLineOptions( knoptions ); + KUniqueApplication::addCmdLineOptions(); + + if (!Application::start()) + return 0; + + Application app; + + return app.exec(); +} |