1
/***************************************************************************
4
begin : Sun Jul 1 21:57:08 EEST 2001
5
copyright : (C) 2001 by Leonid Zeitlin
7
***************************************************************************/
9
/***************************************************************************
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. *
16
***************************************************************************/
18
#include <kcmdlineargs.h>
19
#include <kaboutdata.h>
23
//#include "kkbswitch.h"
24
#include "kbswitchapp.h"
26
static const char *description =
27
I18N_NOOP("Keyboard Switch");
28
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
31
static KCmdLineOptions options[] =
34
// INSERT YOUR COMMANDLINE OPTIONS HERE
37
//extern "C" int kdemain(int argc, char *argv[])
38
int main(int argc, char *argv[])
41
KAboutData aboutData( "kkbswitch", I18N_NOOP("Keyboard Switch"),
42
VERSION, description, KAboutData::License_GPL,
43
"(c) 2001-2005 Leonid Zeitlin", 0, 0, "lz@europe.com");
44
aboutData.addAuthor("Leonid Zeitlin", I18N_NOOP("Creator and maintainer"), "lz@europe.com");
45
aboutData.addCredit("Mikhail Senin", I18N_NOOP("Default group config and per-window groups"),
47
aboutData.addCredit("Rashid N. Achilov", I18N_NOOP("FreeBSD port, feature suggestions"), "achilov@granch.ru");
48
aboutData.addCredit("Vadim Kriklivy (K&K Analitic)", I18N_NOOP("Feature suggestions, Ukrainian translation"),
49
"analitic@vinnitsa.com");
50
aboutData.addCredit("Sergey V Turchin", I18N_NOOP("Autostart patch"),"zerg@altlinux.org");
51
aboutData.addCredit("Stergios Dramis", I18N_NOOP("Greek translation"), "sdramis@egnatia.ee.auth.gr");
52
aboutData.addCredit("Michal Sulek", I18N_NOOP("Slovak translation"), "reloadshot@atlas.sk");
53
KCmdLineArgs::init( argc, argv, &aboutData );
54
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
56
if (!KUniqueApplication::start()) // starting a second instance - just exit
60
#ifdef HAVE_LIBXKLAVIER
63
if (XKeyboard::self()->xkbAvailable())