You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kkbswitch/kkbswitch/main.cpp

67 lines
2.7 KiB

/***************************************************************************
main.cpp - description
-------------------
begin : Sun Jul 1 21:57:08 EEST 2001
copyright : (C) 2001 by Leonid Zeitlin
email : lz@europe.com
***************************************************************************/
/***************************************************************************
* *
* 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 <tdecmdlineargs.h>
#include <tdeaboutdata.h>
#include <tdelocale.h>
#include <stdlib.h>
//#include "kkbswitch.h"
#include "kbswitchapp.h"
static const char *description =
I18N_NOOP("Keyboard Switch");
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
static TDECmdLineOptions options[] =
{
{ 0, 0, 0 }
// INSERT YOUR COMMANDLINE OPTIONS HERE
};
//extern "C" int kdemain(int argc, char *argv[])
int main(int argc, char *argv[])
{
TDEAboutData aboutData( "kkbswitch", I18N_NOOP("Keyboard Switch"),
VERSION, description, TDEAboutData::License_GPL,
"(c) 2001-2005 Leonid Zeitlin", 0, 0, "lz@europe.com");
aboutData.addAuthor("Leonid Zeitlin", I18N_NOOP("Creator and maintainer"), "lz@europe.com");
aboutData.addCredit("Mikhail Senin", I18N_NOOP("Default group config and per-window groups"),
"m_senin@mail.ru");
aboutData.addCredit("Rashid N. Achilov", I18N_NOOP("FreeBSD port, feature suggestions"), "achilov@granch.ru");
aboutData.addCredit("Vadim Kriklivy (K&K Analitic)", I18N_NOOP("Feature suggestions, Ukrainian translation"),
"analitic@vinnitsa.com");
aboutData.addCredit("Sergey V Turchin", I18N_NOOP("Autostart patch"),"zerg@altlinux.org");
aboutData.addCredit("Stergios Dramis", I18N_NOOP("Greek translation"), "sdramis@egnatia.ee.auth.gr");
aboutData.addCredit("Michal Sulek", I18N_NOOP("Slovak translation"), "reloadshot@atlas.sk");
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
if (!KUniqueApplication::start()) // starting a second instance - just exit
exit(0);
KBSwitchApp a;
#ifdef HAVE_LIBXKLAVIER
//XklStartListen();
#endif
if (XKeyboard::self()->xkbAvailable())
return a.exec();
else return -1;
}