File: xkbsel-kde.cpp

package info (click to toggle)
xkbsel 0.12-8
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,568 kB
  • ctags: 844
  • sloc: sh: 6,829; ansic: 5,760; cpp: 432; makefile: 332; lex: 284; sed: 93
file content (49 lines) | stat: -rw-r--r-- 659 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* $Id: xkbsel-kde.cpp,v 1.2 1999/07/24 19:52:57 stano Exp $ 

   KDE keyboard selection - main program

   (C) 1999 Stanislav Meduna <stano@eunet.sk>
*/


#include <kapp.h>
#include <kwm.h>
#include <qtooltip.h>

#include <selind-kde.h>

#include <config.h>
#include <xkbselx.h>

#include <libintl.h>

#define _(s) gettext(s)



int main(int argc, char **argv)
{
	KApplication app(argc, argv, "xkbsel-kde");

	SelInd selInd;

	int r;

	/* Read the config */
	r = read_config();
	if (r < 0)
		exit(1);

	textdomain(PACKAGE);

	app.setMainWidget(&selInd);

	selInd.constructAll();

	KWM::setDockWindow(selInd.winId());

	selInd.show();

	return app.exec();
}