• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
kkeyserver_x11.cpp
1 /*
2  Copyright (C) 2001 Ellis Whitehead <ellis@kde.org>
3 
4  Win32 port:
5  Copyright (C) 2004 Jaroslaw Staniek <js@iidea.pl>
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 #include <config.h>
24 
25 #include <tqnamespace.h>
26 #include <tqwindowdefs.h>
27 
28 #if defined(Q_WS_X11) || defined(Q_WS_WIN) || defined(Q_WS_MACX) // Only compile this module if we're compiling for X11, mac or win32
29 
30 #include "kkeyserver_x11.h"
31 #include "kkeynative.h"
32 #include "tdeshortcut.h"
33 
34 #include <tdeconfig.h>
35 #include <kdebug.h>
36 #include <tdeglobal.h>
37 #include <tdelocale.h>
38 
39 #ifdef Q_WS_X11
40 # define XK_MISCELLANY
41 # define XK_XKB_KEYS
42 # include <X11/X.h>
43 # include <X11/Xlib.h>
44 # include <X11/Xutil.h>
45 # include <X11/XKBlib.h>
46 # include <X11/keysymdef.h>
47 # define X11_ONLY(arg) arg, //allows to omit an argument
48 #else
49 # include <kckey.h>
50 # define X11_ONLY(arg)
51 # define XK_ISO_Left_Tab Qt::Key_Backtab
52 # define XK_BackSpace Qt::Key_Backspace
53 # define XK_Sys_Req Qt::Key_SysReq
54 # define XK_Caps_Lock Qt::Key_CapsLock
55 # define XK_Num_Lock Qt::Key_NumLock
56 # define XK_Scroll_Lock Qt::Key_ScrollLock
57 # define XK_Prior Qt::Key_Prior
58 # define XK_Next Qt::Key_Next
59 #endif
60 
61 namespace KKeyServer
62 {
63 
64 //---------------------------------------------------------------------
65 // Data Structures
66 //---------------------------------------------------------------------
67 
68 struct Mod
69 {
70  int m_mod;
71 };
72 
73 //---------------------------------------------------------------------
74 // Array Structures
75 //---------------------------------------------------------------------
76 
77 struct ModInfo
78 {
79  KKey::ModFlag mod;
80  int modQt;
81 #ifdef Q_WS_X11
82  uint modX;
83 #endif
84  const char* psName;
85  TQString sLabel;
86 };
87 
88 struct SymVariation
89 {
90  uint sym, symVariation;
91  bool bActive;
92 };
93 
94 struct SymName
95 {
96  uint sym;
97  const char* psName;
98 };
99 
100 struct TransKey {
101  int keySymQt;
102  uint keySymX;
103 };
104 
105 //---------------------------------------------------------------------
106 // Arrays
107 //---------------------------------------------------------------------
108 
109 static ModInfo g_rgModInfo[KKey::MOD_FLAG_COUNT] =
110 {
111  { KKey::SHIFT, Qt::SHIFT, X11_ONLY(ShiftMask) I18N_NOOP("Shift"), TQString() },
112  { KKey::CTRL, Qt::CTRL, X11_ONLY(ControlMask) I18N_NOOP("Ctrl"), TQString() },
113  { KKey::ALT, Qt::ALT, X11_ONLY(Mod1Mask) I18N_NOOP("Alt"), TQString() },
114  { KKey::WIN, KKey::QtWIN, X11_ONLY(Mod4Mask) I18N_NOOP("Win"), TQString() }
115 };
116 
117 // Special Names List
118 static const SymName g_rgSymNames[] = {
119  { XK_ISO_Left_Tab, "Backtab" },
120  { XK_BackSpace, I18N_NOOP("Backspace") },
121  { XK_Sys_Req, I18N_NOOP("SysReq") },
122  { XK_Caps_Lock, I18N_NOOP("CapsLock") },
123  { XK_Num_Lock, I18N_NOOP("NumLock") },
124  { XK_Scroll_Lock, I18N_NOOP("ScrollLock") },
125  { XK_Prior, I18N_NOOP("PageUp") },
126  { XK_Next, I18N_NOOP("PageDown") },
127 #ifdef sun
128  { XK_F11, I18N_NOOP("Stop") },
129  { XK_F12, I18N_NOOP("Again") },
130  { XK_F13, I18N_NOOP("Props") },
131  { XK_F14, I18N_NOOP("Undo") },
132  { XK_F15, I18N_NOOP("Front") },
133  { XK_F16, I18N_NOOP("Copy") },
134  { XK_F17, I18N_NOOP("Open") },
135  { XK_F18, I18N_NOOP("Paste") },
136  { XK_F19, I18N_NOOP("Find") },
137  { XK_F20, I18N_NOOP("Cut") },
138  { XK_F22, I18N_NOOP("Print") },
139 #endif
140  { 0, 0 }
141 };
142 
143 #ifdef Q_WS_X11
144 static SymVariation g_rgSymVariation[] =
145 {
146  { '/', XK_KP_Divide, false },
147  { '*', XK_KP_Multiply, false },
148  { '-', XK_KP_Subtract, false },
149  { '+', XK_KP_Add, false },
150  { XK_Return, XK_KP_Enter, false },
151  { 0, 0, false }
152 };
153 
154 // TODO: Add Mac key names list: Key_Backspace => "Delete", Key_Delete => "Del"
155 
156 // These are the X equivalents to the Qt keycodes 0x1000 - 0x1026
157 static const TransKey g_rgQtToSymX[] =
158 {
159  { Qt::Key_Escape, XK_Escape },
160  { Qt::Key_Tab, XK_Tab },
161  { Qt::Key_Backtab, XK_ISO_Left_Tab },
162  { Qt::Key_Backspace, XK_BackSpace },
163  { Qt::Key_Return, XK_Return },
164  { Qt::Key_Enter, XK_KP_Enter },
165  { Qt::Key_Insert, XK_Insert },
166  { Qt::Key_Delete, XK_Delete },
167  { Qt::Key_Pause, XK_Pause },
168 #ifdef sun
169  { Qt::Key_Print, XK_F22 },
170 #else
171  { Qt::Key_Print, XK_Print },
172 #endif
173  { Qt::Key_SysReq, XK_Sys_Req },
174  { Qt::Key_Home, XK_Home },
175  { Qt::Key_End, XK_End },
176  { Qt::Key_Left, XK_Left },
177  { Qt::Key_Up, XK_Up },
178  { Qt::Key_Right, XK_Right },
179  { Qt::Key_Down, XK_Down },
180  { TQt::Key_Prior, XK_Prior },
181  { TQt::Key_Next, XK_Next },
182  //{ Qt::Key_Shift, 0 },
183  //{ Qt::Key_Control, 0 },
184  //{ Qt::Key_Meta, 0 },
185  //{ Qt::Key_Alt, 0 },
186  { Qt::Key_CapsLock, XK_Caps_Lock },
187  { Qt::Key_NumLock, XK_Num_Lock },
188  { Qt::Key_ScrollLock, XK_Scroll_Lock },
189  { Qt::Key_F1, XK_F1 },
190  { Qt::Key_F2, XK_F2 },
191  { Qt::Key_F3, XK_F3 },
192  { Qt::Key_F4, XK_F4 },
193  { Qt::Key_F5, XK_F5 },
194  { Qt::Key_F6, XK_F6 },
195  { Qt::Key_F7, XK_F7 },
196  { Qt::Key_F8, XK_F8 },
197  { Qt::Key_F9, XK_F9 },
198  { Qt::Key_F10, XK_F10 },
199  { Qt::Key_F11, XK_F11 },
200  { Qt::Key_F12, XK_F12 },
201  { Qt::Key_F13, XK_F13 },
202  { Qt::Key_F14, XK_F14 },
203  { Qt::Key_F15, XK_F15 },
204  { Qt::Key_F16, XK_F16 },
205  { Qt::Key_F17, XK_F17 },
206  { Qt::Key_F18, XK_F18 },
207  { Qt::Key_F19, XK_F19 },
208  { Qt::Key_F20, XK_F20 },
209  { Qt::Key_F21, XK_F21 },
210  { Qt::Key_F22, XK_F22 },
211  { Qt::Key_F23, XK_F23 },
212  { Qt::Key_F24, XK_F24 },
213  { Qt::Key_F25, XK_F25 },
214  { Qt::Key_F26, XK_F26 },
215  { Qt::Key_F27, XK_F27 },
216  { Qt::Key_F28, XK_F28 },
217  { Qt::Key_F29, XK_F29 },
218  { Qt::Key_F30, XK_F30 },
219  { Qt::Key_F31, XK_F31 },
220  { Qt::Key_F32, XK_F32 },
221  { Qt::Key_F33, XK_F33 },
222  { Qt::Key_F34, XK_F34 },
223  { Qt::Key_F35, XK_F35 },
224  { Qt::Key_Super_L, XK_Super_L },
225  { Qt::Key_Super_R, XK_Super_R },
226  { Qt::Key_Menu, XK_Menu },
227  { Qt::Key_Hyper_L, XK_Hyper_L },
228  { Qt::Key_Hyper_R, XK_Hyper_R },
229  { Qt::Key_Help, XK_Help },
230  //{ Qt::Key_Direction_L, XK_Direction_L }, These keys don't exist in X11
231  //{ Qt::Key_Direction_R, XK_Direction_R },
232 
233  { '/', XK_KP_Divide },
234  { '*', XK_KP_Multiply },
235  { '-', XK_KP_Subtract },
236  { '+', XK_KP_Add },
237  { Qt::Key_Return, XK_KP_Enter }
238 #if TQT_VERSION >= 0x030100
239 
240 // the next lines are taken from XFree > 4.0 (X11/XF86keysyms.h), defining some special
241 // multimedia keys. They are included here as not every system has them.
242 #define XF86XK_Standby 0x1008FF10
243 #define XF86XK_AudioLowerVolume 0x1008FF11
244 #define XF86XK_AudioMute 0x1008FF12
245 #define XF86XK_AudioRaiseVolume 0x1008FF13
246 #define XF86XK_AudioPlay 0x1008FF14
247 #define XF86XK_AudioStop 0x1008FF15
248 #define XF86XK_AudioPrev 0x1008FF16
249 #define XF86XK_AudioNext 0x1008FF17
250 #define XF86XK_HomePage 0x1008FF18
251 #define XF86XK_Calculator 0x1008FF1D
252 #define XF86XK_Mail 0x1008FF19
253 #define XF86XK_Start 0x1008FF1A
254 #define XF86XK_Search 0x1008FF1B
255 #define XF86XK_AudioRecord 0x1008FF1C
256 #define XF86XK_Back 0x1008FF26
257 #define XF86XK_Forward 0x1008FF27
258 #define XF86XK_Stop 0x1008FF28
259 #define XF86XK_Refresh 0x1008FF29
260 #define XF86XK_Favorites 0x1008FF30
261 #define XF86XK_AudioPause 0x1008FF31
262 #define XF86XK_AudioMedia 0x1008FF32
263 #define XF86XK_MyComputer 0x1008FF33
264 #define XF86XK_OpenURL 0x1008FF38
265 #define XF86XK_Launch0 0x1008FF40
266 #define XF86XK_Launch1 0x1008FF41
267 #define XF86XK_Launch2 0x1008FF42
268 #define XF86XK_Launch3 0x1008FF43
269 #define XF86XK_Launch4 0x1008FF44
270 #define XF86XK_Launch5 0x1008FF45
271 #define XF86XK_Launch6 0x1008FF46
272 #define XF86XK_Launch7 0x1008FF47
273 #define XF86XK_Launch8 0x1008FF48
274 #define XF86XK_Launch9 0x1008FF49
275 #define XF86XK_LaunchA 0x1008FF4A
276 #define XF86XK_LaunchB 0x1008FF4B
277 #define XF86XK_LaunchC 0x1008FF4C
278 #define XF86XK_LaunchD 0x1008FF4D
279 #define XF86XK_LaunchE 0x1008FF4E
280 #define XF86XK_LaunchF 0x1008FF4F
281 // end of XF86keysyms.h
282  ,
283  { Qt::Key_Standby, XF86XK_Standby },
284  { Qt::Key_VolumeDown, XF86XK_AudioLowerVolume },
285  { Qt::Key_VolumeMute, XF86XK_AudioMute },
286  { Qt::Key_VolumeUp, XF86XK_AudioRaiseVolume },
287  { Qt::Key_MediaPlay, XF86XK_AudioPlay },
288  { Qt::Key_MediaStop, XF86XK_AudioStop },
289  { TQt::Key_MediaPrev, XF86XK_AudioPrev },
290  { Qt::Key_MediaNext, XF86XK_AudioNext },
291  { Qt::Key_HomePage, XF86XK_HomePage },
292  { Qt::Key_LaunchMail, XF86XK_Mail },
293  { Qt::Key_Search, XF86XK_Search },
294  { Qt::Key_MediaRecord, XF86XK_AudioRecord },
295  { Qt::Key_LaunchMedia, XF86XK_AudioMedia },
296  { Qt::Key_Launch1, XF86XK_Calculator },
297  { Qt::Key_Back, XF86XK_Back },
298  { Qt::Key_Forward, XF86XK_Forward },
299  { Qt::Key_Stop, XF86XK_Stop },
300  { Qt::Key_Refresh, XF86XK_Refresh },
301  { Qt::Key_Favorites, XF86XK_Favorites },
302  { Qt::Key_Launch0, XF86XK_MyComputer },
303  { Qt::Key_OpenUrl, XF86XK_OpenURL },
304  { Qt::Key_Launch2, XF86XK_Launch0 },
305  { Qt::Key_Launch3, XF86XK_Launch1 },
306  { Qt::Key_Launch4, XF86XK_Launch2 },
307  { Qt::Key_Launch5, XF86XK_Launch3 },
308  { Qt::Key_Launch6, XF86XK_Launch4 },
309  { Qt::Key_Launch7, XF86XK_Launch5 },
310  { Qt::Key_Launch8, XF86XK_Launch6 },
311  { Qt::Key_Launch9, XF86XK_Launch7 },
312  { Qt::Key_LaunchA, XF86XK_Launch8 },
313  { Qt::Key_LaunchB, XF86XK_Launch9 },
314  { Qt::Key_LaunchC, XF86XK_LaunchA },
315  { Qt::Key_LaunchD, XF86XK_LaunchB },
316  { Qt::Key_LaunchE, XF86XK_LaunchC },
317  { Qt::Key_LaunchF, XF86XK_LaunchD },
318 #endif
319 };
320 #endif //Q_WS_X11
321 
322 //---------------------------------------------------------------------
323 // Initialization
324 //---------------------------------------------------------------------
325 static bool g_bInitializedMods, g_bInitializedVariations, g_bInitializedKKeyLabels;
326 static bool g_bMacLabels;
327 #ifdef Q_WS_X11
328 static uint g_modXNumLock, g_modXScrollLock, g_modXModeSwitch;
329 
330 bool initializeMods()
331 {
332  XModifierKeymap* xmk = XGetModifierMapping( tqt_xdisplay() );
333 
334  g_rgModInfo[3].modX = g_modXNumLock = g_modXScrollLock = g_modXModeSwitch = 0;
335 
336  int min_keycode, max_keycode;
337  int keysyms_per_keycode = 0;
338  XDisplayKeycodes( tqt_xdisplay(), &min_keycode, &max_keycode );
339  XFree( XGetKeyboardMapping( tqt_xdisplay(), min_keycode, 1, &keysyms_per_keycode ));
340  // Qt assumes that Alt is always Mod1Mask, so start at Mod2Mask.
341  for( int i = Mod2MapIndex; i < 8; i++ ) {
342  uint mask = (1 << i);
343  uint keySymX = NoSymbol;
344  // This used to be only XkbKeycodeToKeysym( ... , 0, 0 ), but that fails with XFree4.3.99
345  // and X.org R6.7 , where for some reason only ( ... , 0, 1 ) works. I have absolutely no
346  // idea what the problem is, but searching all posibilities until something valid is
347  // found fixes the problem.
348  for( int j = 0; j < xmk->max_keypermod && keySymX == NoSymbol; ++j )
349  for( int k = 0; k < keysyms_per_keycode && keySymX == NoSymbol; ++k )
350  keySymX = XkbKeycodeToKeysym( tqt_xdisplay(), xmk->modifiermap[xmk->max_keypermod * i + j], 0, k );
351  switch( keySymX ) {
352  case XK_Num_Lock: g_modXNumLock = mask; break; // Normally Mod2Mask
353  case XK_Super_L:
354  case XK_Super_R: g_rgModInfo[3].modX = mask; break; // Win key, Normally Mod4Mask
355  case XK_Meta_L:
356  case XK_Meta_R: if( !g_rgModInfo[3].modX ) g_rgModInfo[3].modX = mask; break; // Win alternate
357  case XK_Scroll_Lock: g_modXScrollLock = mask; break; // Normally Mod5Mask
358  case XK_Mode_switch: g_modXModeSwitch = mask; break;
359  }
360  }
361 
362  XFreeModifiermap( xmk );
363 
364  //TDEConfigGroupSaver cgs( TDEGlobal::config(), "Keyboard" );
365  // read in mod that win should be attached to
366 
367  g_bInitializedMods = true;
368 
369  kdDebug(125) << "KKeyServer::initializeMods(): Win Mod = 0x" << TQString::number(g_rgModInfo[3].modX, 16) << endl;
370  return true;
371 }
372 
373 static void initializeVariations()
374 {
375  for( int i = 0; g_rgSymVariation[i].sym != 0; i++ )
376  g_rgSymVariation[i].bActive = (XKeysymToKeycode( tqt_xdisplay(), g_rgSymVariation[i].symVariation ) != 0);
377  g_bInitializedVariations = true;
378 }
379 #endif //Q_WS_X11
380 
381 static void intializeKKeyLabels()
382 {
383  TDEConfigGroupSaver cgs( TDEGlobal::config(), "Keyboard" );
384  g_rgModInfo[0].sLabel = TDEGlobal::config()->readEntry( "Label Shift", i18n(g_rgModInfo[0].psName) );
385  g_rgModInfo[1].sLabel = TDEGlobal::config()->readEntry( "Label Ctrl", i18n(g_rgModInfo[1].psName) );
386  g_rgModInfo[2].sLabel = TDEGlobal::config()->readEntry( "Label Alt", i18n(g_rgModInfo[2].psName) );
387  g_rgModInfo[3].sLabel = TDEGlobal::config()->readEntry( "Label Win", i18n(g_rgModInfo[3].psName) );
388  g_bMacLabels = (g_rgModInfo[2].sLabel == "Command");
389  g_bInitializedKKeyLabels = true;
390 }
391 
392 //---------------------------------------------------------------------
393 // class Mod
394 //---------------------------------------------------------------------
395 
396 /*void Mod::init( const TQString& s )
397 {
398 
399 }*/
400 
401 //---------------------------------------------------------------------
402 // class Sym
403 //---------------------------------------------------------------------
404 
405 bool Sym::initQt( int keyQt )
406 {
407  int symQt = keyQt & 0xffff;
408 
409  if( (keyQt & Qt::UNICODE_ACCEL) || symQt < 0x1000 ) {
410  m_sym = TQChar(symQt).lower().unicode();
411  return true;
412  }
413 
414 #ifdef Q_WS_WIN
415  m_sym = symQt;
416  return true;
417 #elif defined(Q_WS_X11)
418  for( uint i = 0; i < sizeof(g_rgQtToSymX)/sizeof(TransKey); i++ ) {
419  if( g_rgQtToSymX[i].keySymQt == symQt ) {
420  m_sym = g_rgQtToSymX[i].keySymX;
421  return true;
422  }
423  }
424 
425  m_sym = 0;
426  if( symQt != Qt::Key_Shift && symQt != Qt::Key_Control && symQt != Qt::Key_Alt &&
427  symQt != Qt::Key_Meta && symQt != Qt::Key_Direction_L && symQt != Qt::Key_Direction_R )
428  kdDebug(125) << "Sym::initQt( " << TQString::number(keyQt,16) << " ): failed to convert key." << endl;
429  return false;
430 #elif defined(Q_WS_MACX)
431  m_sym = symQt;
432  return true;
433 #endif
434 }
435 
436 bool Sym::init( const TQString& s )
437 {
438  // If it's a single character, get unicode value.
439  if( s.length() == 1 ) {
440  m_sym = s[0].lower().unicode();
441  return true;
442  }
443 
444  // Look up in special names list
445  for( int i = 0; g_rgSymNames[i].sym != 0; i++ ) {
446  if( tqstricmp( s.latin1(), g_rgSymNames[i].psName ) == 0 ) {
447  m_sym = g_rgSymNames[i].sym;
448  return true;
449  }
450  }
451 
452 #ifdef Q_WS_WIN
453  // search for name in KKeys array
454  for ( KKeys const *pKey = kde_KKEYS; pKey->code != 0xffff; pKey++) {
455  if( tqstricmp( s.latin1(), pKey->name ) == 0 ) {
456  m_sym = pKey->code;
457  return true;
458  }
459  }
460  m_sym = 0;
461 #elif defined(Q_WS_X11)
462  // search X list: 's' as is, all lower, first letter in caps
463  m_sym = XStringToKeysym( s.latin1() );
464  if( !m_sym ) {
465  m_sym = XStringToKeysym( s.lower().latin1() );
466  if( !m_sym ) {
467  TQString s2 = s;
468  s2[0] = s2[0].upper();
469  m_sym = XStringToKeysym( s2.latin1() );
470  }
471  }
472 #endif
473  return m_sym != 0;
474 }
475 
476 int Sym::qt() const
477 {
478  if( m_sym < 0x1000 ) {
479  if( m_sym >= 'a' && m_sym <= 'z' )
480  return TQChar(m_sym).upper();
481  return m_sym;
482  }
483 #ifdef Q_WS_WIN
484  if( m_sym < 0x3000 )
485  return m_sym;
486 #elif defined(Q_WS_X11)
487  if( m_sym < 0x3000 )
488  return m_sym | Qt::UNICODE_ACCEL;
489 
490  for( uint i = 0; i < sizeof(g_rgQtToSymX)/sizeof(TransKey); i++ )
491  if( g_rgQtToSymX[i].keySymX == m_sym )
492  return g_rgQtToSymX[i].keySymQt;
493 #endif
494  return TQt::Key_unknown;
495 }
496 
497 TQString Sym::toString( bool bUserSpace ) const
498 {
499  if( m_sym == 0 ) {
500  return TQString::null;
501  }
502 
503  // If it's a unicode character,
504 #ifdef Q_WS_WIN
505  else if( m_sym < 0x1000 ) {
506 #else
507  else if( m_sym < 0x3000 ) {
508 #endif
509  TQChar c = TQChar(m_sym).upper();
510  // Print all non-space characters directly when output is user-visible.
511  // Otherwise only print alphanumeric latin1 characters directly (A,B,C,1,2,3).
512  if( (c.latin1() && c.isLetterOrNumber())
513  || (bUserSpace && !c.isSpace()) ) {
514  return c;
515  }
516  }
517 
518  // Look up in special names list
519  for( int i = 0; g_rgSymNames[i].sym != 0; i++ ) {
520  if( m_sym == g_rgSymNames[i].sym ) {
521  return bUserSpace ? i18n(g_rgSymNames[i].psName) : TQString(g_rgSymNames[i].psName);
522  }
523  }
524 
525  TQString s;
526 #ifdef Q_WS_WIN
527  s = TQKeySequence( m_sym );
528 #elif defined(Q_WS_X11)
529  // Get X-name
530  s = XKeysymToString( m_sym );
531 #endif
532  capitalizeKeyname( s );
533  return bUserSpace ? i18n("TQAccel", s.latin1()) : s;
534 }
535 
536 TQString Sym::toStringInternal() const { return toString( false ); }
537 TQString Sym::toString() const { return toString( true ); }
538 
539 uint Sym::getModsRequired() const
540 {
541  uint mod = 0;
542 #ifdef Q_WS_X11
543  // FIXME: This might not be true on all keyboard layouts!
544  if( m_sym == XK_Sys_Req ) return KKey::ALT;
545  if( m_sym == XK_Break ) return KKey::CTRL;
546 
547  if( m_sym < 0x3000 ) {
548  TQChar c(m_sym);
549  if( c.isLetter() && c.lower() != c.upper() && m_sym == c.upper().unicode() )
550  return KKey::SHIFT;
551  }
552 
553  uchar code = XKeysymToKeycode( tqt_xdisplay(), m_sym );
554  if( code ) {
555  // need to check index 0 before the others, so that a null-mod
556  // can take precedence over the others, in case the modified
557  // key produces the same symbol.
558  if( m_sym == XkbKeycodeToKeysym( tqt_xdisplay(), code, 0, 0 ) )
559  ;
560  else if( m_sym == XkbKeycodeToKeysym( tqt_xdisplay(), code, 0, 1 ) )
561  mod = KKey::SHIFT;
562  else if( m_sym == XkbKeycodeToKeysym( tqt_xdisplay(), code, 0, 2 ) )
563  mod = KKeyServer::MODE_SWITCH;
564  else if( m_sym == XkbKeycodeToKeysym( tqt_xdisplay(), code, 0, 3 ) )
565  mod = KKey::SHIFT | KKeyServer::MODE_SWITCH;
566  }
567 #endif
568  return mod;
569 }
570 
571 uint Sym::getSymVariation() const
572 {
573 #ifdef Q_WS_X11
574  if( !g_bInitializedVariations )
575  initializeVariations();
576  for( int i = 0; g_rgSymVariation[i].sym != 0; i++ )
577  if( g_rgSymVariation[i].sym == m_sym && g_rgSymVariation[i].bActive )
578  return g_rgSymVariation[i].symVariation;
579 #endif
580  return 0;
581 }
582 
583 void Sym::capitalizeKeyname( TQString& s )
584 {
585  s[0] = s[0].upper();
586  int len = s.length();
587  if( s.endsWith( "left" ) ) s[len-4] = 'L';
588  else if( s.endsWith( "right" ) ) s[len-5] = 'R';
589  else if( s == "Sysreq" ) s[len-3] = 'R';
590 }
591 
592 //---------------------------------------------------------------------
593 // Public functions
594 //---------------------------------------------------------------------
595 
596 #ifdef Q_WS_X11
597 uint modX( KKey::ModFlag mod )
598 {
599  if( mod == KKey::WIN && !g_bInitializedMods )
600  initializeMods();
601 
602  for( uint i = 0; i < KKey::MOD_FLAG_COUNT; i++ ) {
603  if( g_rgModInfo[i].mod == mod )
604  return g_rgModInfo[i].modX;
605  }
606  return 0;
607 }
608 
609 bool keyboardHasWinKey() { if( !g_bInitializedMods ) { initializeMods(); } return g_rgModInfo[3].modX != 0; }
610 uint modXShift() { return ShiftMask; }
611 uint modXLock() { return LockMask; }
612 uint modXCtrl() { return ControlMask; }
613 uint modXAlt() { return Mod1Mask; }
614 uint modXNumLock() { if( !g_bInitializedMods ) { initializeMods(); } return g_modXNumLock; }
615 uint modXWin() { if( !g_bInitializedMods ) { initializeMods(); } return g_rgModInfo[3].modX; }
616 uint modXScrollLock() { if( !g_bInitializedMods ) { initializeMods(); } return g_modXScrollLock; }
617 uint modXModeSwitch() { if( !g_bInitializedMods ) { initializeMods(); } return g_modXModeSwitch; }
618 
619 uint accelModMaskX()
620 {
621  if( !g_bInitializedMods )
622  initializeMods();
623  return ShiftMask | ControlMask | Mod1Mask | g_rgModInfo[3].modX;
624 }
625 #endif //Q_WS_X11
626 
627 bool keyQtToSym( int keyQt, uint& keySym )
628 {
629  Sym sym;
630  if( sym.initQt( keyQt ) ) {
631  keySym = sym.m_sym;
632  return true;
633  } else
634  return false;
635 }
636 
637 bool keyQtToMod( int keyQt, uint& mod )
638 {
639  mod = 0;
640 
641  if( keyQt & Qt::SHIFT ) mod |= KKey::SHIFT;
642  if( keyQt & Qt::CTRL ) mod |= KKey::CTRL;
643  if( keyQt & Qt::ALT ) mod |= KKey::ALT;
644  if( keyQt & Qt::META ) mod |= KKey::WIN;
645 
646  return true;
647 }
648 
649 bool symToKeyQt( uint keySym, int& keyQt )
650 {
651  Sym sym( keySym );
652  keyQt = sym.qt();
653  return (keyQt != TQt::Key_unknown);
654 }
655 
656 bool modToModQt( uint mod, int& modQt )
657 {
658  modQt = 0;
659  for( int i = 0; i < KKey::MOD_FLAG_COUNT; i++ ) {
660  if( mod & g_rgModInfo[i].mod ) {
661  if( !g_rgModInfo[i].modQt ) {
662  modQt = 0;
663  return false;
664  }
665  modQt |= g_rgModInfo[i].modQt;
666  }
667  }
668  return true;
669 }
670 
671 #ifdef Q_WS_WIN
672 //wrapped
673 bool modXToModQt( uint modX, int& modQt )
674 {
675  return modToModQt( modX, modQt );
676 }
677 
678 TDECORE_EXPORT int qtButtonStateToMod( TQt::ButtonState s )
679 {
680  int modQt = 0;
681  if (s & Qt::ShiftButton) modQt |= KKey::SHIFT;
682  if (s & Qt::ControlButton) modQt |= KKey::CTRL;
683  if (s & Qt::AltButton) modQt |= KKey::ALT;
684  return modQt;
685 }
686 
687 bool keyboardHasWinKey() {
689  return true;
690 }
691 
692 #elif defined(Q_WS_MACX)
693 
694 bool modXToModQt(uint modX, int& modQt)
695 {
696  return modToModQt( modX, modQt );
697 }
698 
699 bool keyboardHasWinKey() {
701  return false;
702 }
703 
704 bool modXToMod( uint , uint& )
705 {
706  return false;
707 }
708 #elif defined(Q_WS_X11)
709 
710 bool modToModX( uint mod, uint& modX )
711 {
712  if( !g_bInitializedMods )
713  initializeMods();
714 
715  modX = 0;
716  for( int i = 0; i < KKey::MOD_FLAG_COUNT; i++ ) {
717  if( mod & g_rgModInfo[i].mod ) {
718  if( !g_rgModInfo[i].modX ) {
719  kdDebug(125) << "Invalid modifier flag." << endl;
720  modX = 0;
721  return false;
722  }
723  modX |= g_rgModInfo[i].modX;
724  }
725  }
726  // TODO: document 0x2000 flag
727  if( mod & 0x2000 )
728  modX |= 0x2000;
729  return true;
730 }
731 
732 bool modXToModQt( uint modX, int& modQt )
733 {
734  if( !g_bInitializedMods )
735  initializeMods();
736 
737  modQt = 0;
738  for( int i = 0; i < KKey::MOD_FLAG_COUNT; i++ ) {
739  if( modX & g_rgModInfo[i].modX ) {
740  if( !g_rgModInfo[i].modQt ) {
741  modQt = 0;
742  return false;
743  }
744  modQt |= g_rgModInfo[i].modQt;
745  }
746  }
747  return true;
748 }
749 
750 bool modXToMod( uint modX, uint& mod )
751 {
752  if( !g_bInitializedMods )
753  initializeMods();
754 
755  mod = 0;
756  for( int i = 0; i < KKey::MOD_FLAG_COUNT; i++ ) {
757  if( modX & g_rgModInfo[i].modX )
758  mod |= g_rgModInfo[i].mod;
759  }
760  return true;
761 }
762 
763 bool codeXToSym( uchar codeX, uint modX, uint& sym )
764 {
765  KeySym keySym;
766  XKeyPressedEvent event;
767 
768  event.type = KeyPress;
769  event.display = tqt_xdisplay();
770  event.state = modX;
771  event.keycode = codeX;
772 
773  char buffer[64];
774  XLookupString( &event, buffer, 63, &keySym, NULL );
775  sym = (uint) keySym;
776  return true;
777 }
778 #endif
779 
780 static TQString modToString( uint mod, bool bUserSpace )
781 {
782  if( bUserSpace && !g_bInitializedKKeyLabels )
783  intializeKKeyLabels();
784 
785  TQString s;
786  for( int i = KKey::MOD_FLAG_COUNT-1; i >= 0; i-- ) {
787  if( mod & g_rgModInfo[i].mod ) {
788  if( !s.isEmpty() )
789  s += '+';
790  s += (bUserSpace)
791  ? g_rgModInfo[i].sLabel
792  : TQString(g_rgModInfo[i].psName);
793  }
794  }
795  return s;
796 }
797 
798 TQString modToStringInternal( uint mod ) { return modToString( mod, false ); }
799 TQString modToStringUser( uint mod ) { return modToString( mod, true ); }
800 
801 uint stringUserToMod( const TQString& mod )
802 {
803  if( !g_bInitializedKKeyLabels )
804  intializeKKeyLabels();
805 
806  TQString s;
807  for( int i = KKey::MOD_FLAG_COUNT-1; i >= 0; i-- ) {
808  if( mod.lower() == g_rgModInfo[i].sLabel.lower())
809  return g_rgModInfo[i].mod;
810  }
811  return 0;
812 }
813 
814 /*void keySymModToKeyX( uint sym, uint mod, unsigned char *pKeyCodeX, uint *pKeySymX, uint *pKeyModX )
815 {
816 ...
817  uint keySymQt;
818  uint keySymX = 0;
819  unsigned char keyCodeX = 0;
820  uint keyModX = 0;
821 
822  const char *psKeySym = 0;
823 
824  if( !g_bInitialized )
825  Initialize();
826 
827  // Get code of just the primary key
828  keySymQt = keyCombQt & 0xffff;
829 
830  // If unicode value beneath 0x1000 (special Qt codes begin thereafter),
831  if( keySymQt < 0x1000 ) {
832  // For reasons unbeknownst to me, Qt converts 'a-z' to 'A-Z'.
833  // So convert it back to lowercase if SHIFT isn't held down.
834  if( keySymQt >= Qt::Key_A && keySymQt <= Qt::Key_Z && !(keyCombQt & Qt::SHIFT) )
835  keySymQt = tolower( keySymQt );
836  keySymX = keySymQt;
837  }
838  // Else, special key (e.g. Delete, F1, etc.)
839  else {
840  for( int i = 0; i < NB_KEYS; i++ ) {
841  if( keySymQt == (uint) KKEYS[i].code ) {
842  psKeySym = KKEYS[i].name;
843  //kdDebug(125) << " symbol found: \"" << psKeySym << "\"" << endl;
844  break;
845  }
846  }
847 
848  // Get X key symbol. Only works if Qt name is same as X name.
849  if( psKeySym ) {
850  TQString sKeySym = psKeySym;
851 
852  // Check for lower-case equalent first because most
853  // X11 names are all lower-case.
854  keySymX = XStringToKeysym( sKeySym.lower().ascii() );
855  if( keySymX == 0 )
856  keySymX = XStringToKeysym( psKeySym );
857  }
858 
859  if( keySymX == 0 )
860  keySymX = getSymXEquiv( keySymQt );
861  }
862 
863  if( keySymX != 0 ) {
864  // Get X keyboard code
865  keyCodeX = XKeysymToKeycode( tqt_xdisplay(), keySymX );
866  // Add ModeSwitch modifier bit, if necessary
867  keySymXMods( keySymX, 0, &keyModX );
868 
869  // Get X modifier flags
870  for( int i = 0; i < MOD_KEYS; i++ ) {
871  if( keyCombQt & g_aModKeys[i].keyModMaskQt ) {
872  if( g_aModKeys[i].keyModMaskX )
873  keyModX |= g_aModKeys[i].keyModMaskX;
874  // Qt key calls for a modifier which the current
875  // X modifier map doesn't support.
876  else {
877  keySymX = 0;
878  keyCodeX = 0;
879  keyModX = 0;
880  break;
881  }
882  }
883  }
884  }
885 
886  // Take care of complications:
887  // The following keys will not have been correctly interpreted,
888  // because their shifted values are not activated with the
889  // Shift key, but rather something else. They are also
890  // defined twice under different keycodes.
891  // keycode 111 & 92: Print Sys_Req -> Sys_Req = Alt+Print
892  // keycode 110 & 114: Pause Break -> Break = Ctrl+Pause
893  if( (keyCodeX == 92 || keyCodeX == 111) &&
894  XkbKeycodeToKeysym( tqt_xdisplay(), 92, 0, 0 ) == XK_Print &&
895  XkbKeycodeToKeysym( tqt_xdisplay(), 111, 0, 0 ) == XK_Print )
896  {
897  // If Alt is pressed, then we need keycode 92, keysym XK_Sys_Req
898  if( keyModX & keyModXAlt() ) {
899  keyCodeX = 92;
900  keySymX = XK_Sys_Req;
901  }
902  // Otherwise, keycode 111, keysym XK_Print
903  else {
904  keyCodeX = 111;
905  keySymX = XK_Print;
906  }
907  }
908  else if( (keyCodeX == 110 || keyCodeX == 114) &&
909  XkbKeycodeToKeysym( tqt_xdisplay(), 110, 0, 0 ) == XK_Pause &&
910  XkbKeycodeToKeysym( tqt_xdisplay(), 114, 0, 0 ) == XK_Pause )
911  {
912  if( keyModX & keyModXCtrl() ) {
913  keyCodeX = 114;
914  keySymX = XK_Break;
915  } else {
916  keyCodeX = 110;
917  keySymX = XK_Pause;
918  }
919  }
920 
921  if( pKeySymX ) *pKeySymX = keySymX;
922  if( pKeyCodeX ) *pKeyCodeX = keyCodeX;
923  if( pKeyModX ) *pKeyModX = keyModX;
924 }*/
925 
926 //---------------------------------------------------------------------
927 // Key
928 //---------------------------------------------------------------------
929 
930 bool Key::init( const KKey& key, bool bQt )
931 {
932  if( bQt ) {
933  m_code = CODE_FOR_QT;
934  m_sym = key.keyCodeQt();
935  } else {
936  KKeyNative keyNative( key );
937  *this = keyNative;
938  }
939  return true;
940 }
941 
942 KKey Key::key() const
943 {
944  if( m_code == CODE_FOR_QT )
945  return KKey( keyCodeQt() );
946  else {
947 #if defined(Q_WS_WIN) || defined(Q_WS_MACX)
948  return KKey();
949 #else
950  uint mod;
951  modXToMod( m_mod, mod );
952  return KKey( m_sym, mod );
953 #endif
954  }
955 }
956 
957 Key& Key::operator =( const KKeyNative& key )
958 {
959  m_code = key.code(); m_mod = key.mod(); m_sym = key.sym();
960  return *this;
961 }
962 
963 int Key::compare( const Key& b ) const
964 {
965  if( m_code == CODE_FOR_QT )
966  return m_sym - b.m_sym;
967  if( m_sym != b.m_sym ) return m_sym - b.m_sym;
968  if( m_mod != b.m_mod ) return m_mod - b.m_mod;
969  return m_code - b.m_code;
970 }
971 
972 //---------------------------------------------------------------------
973 // Variations
974 //---------------------------------------------------------------------
975 
976 // TODO: allow for sym to have variations, such as Plus => { Plus, KP_Add }
977 void Variations::init( const KKey& key, bool bQt )
978 {
979  if( key.isNull() ) {
980  m_nVariations = 0;
981  return;
982  }
983 
984  m_nVariations = 1;
985  m_rgkey[0] = KKeyNative(key);
986  uint symVar = Sym(key.sym()).getSymVariation();
987  if( symVar ) {
988  uint modReq = Sym(m_rgkey[0].sym()).getModsRequired();
989  uint modReqVar = Sym(symVar).getModsRequired();
990  // If 'key' doesn't require any mods that are inherent in
991  // the primary key but not required for the alternate,
992  if( (key.modFlags() & modReq) == (key.modFlags() & modReqVar) ) {
993  m_rgkey[1] = KKeyNative(KKey(symVar, key.modFlags()));
994  m_nVariations = 2;
995  }
996  }
997 
998  if( bQt ) {
999  uint nVariations = 0;
1000  for( uint i = 0; i < m_nVariations; i++ ) {
1001  int keyQt = KKeyNative( m_rgkey[i].code(), m_rgkey[i].mod(), m_rgkey[i].sym() ).keyCodeQt();
1002  if( keyQt ) {
1003  m_rgkey[nVariations++].setKeycodeQt( keyQt );
1004  }
1005  }
1006  m_nVariations = nVariations;
1007 
1008  // Two different native codes may produce a single
1009  // Qt code. Search for duplicates.
1010  for( uint i = 1; i < m_nVariations; i++ ) {
1011  for( uint j = 0; j < i; j++ ) {
1012  // If key is already present in list, then remove it.
1013  if( m_rgkey[i].keyCodeQt() == m_rgkey[j].keyCodeQt() ) {
1014  for( uint k = i; k < m_nVariations - 1; k++ ) {
1015  m_rgkey[k].setKeycodeQt( m_rgkey[k+1].keyCodeQt() );
1016  }
1017  m_nVariations--;
1018  i--;
1019  break;
1020  }
1021  }
1022  }
1023  }
1024 }
1025 
1026 } // end of namespace KKeyServer block
1027 
1028 // FIXME: This needs to be moved to tdeshortcut.cpp, and create a
1029 // KKeyServer::method which it will call.
1030 // Alt+SysReq => Alt+Print
1031 // Ctrl+Shift+Plus => Ctrl+Plus (en)
1032 // Ctrl+Shift+Equal => Ctrl+Plus
1033 // Ctrl+Pause => Ctrl+Break
1034 void KKey::simplify()
1035 {
1036 #ifdef Q_WS_X11
1037  if( m_sym == XK_Sys_Req ) {
1038  m_sym = XK_Print;
1039  m_mod |= ALT;
1040  } else if( m_sym == XK_ISO_Left_Tab ) {
1041  m_sym = XK_Tab;
1042  m_mod |= SHIFT;
1043  } else {
1044  // Shift+Equal => Shift+Plus (en)
1045  m_sym = KKeyNative(*this).sym();
1046  }
1047 
1048  // If this is a letter, don't remove any modifiers.
1049  if( m_sym < 0x3000 && TQChar(m_sym).isLetter() ) {
1050  m_sym = TQChar(m_sym).lower().unicode();
1051  }
1052 
1053  // Remove modifers from modifier list which are implicit in the symbol.
1054  // Ex. Shift+Plus => Plus (en)
1055  m_mod &= ~KKeyServer::Sym(m_sym).getModsRequired();
1056 #endif
1057 }
1058 
1059 #endif //Q_WS_X11 || Q_WS_WIN
1060 
KKey::ModFlag
ModFlag
Flags to represent the modifiers.
Definition: tdeshortcut.h:53
KNotifyClient::event
int event(const TQString &message, const TQString &text=TQString::null) KDE_DEPRECATED
Definition: knotifyclient.cpp:125
KKeyServer::codeXToSym
bool codeXToSym(uchar codeX, uint modX, uint &symX)
Converts a X11 key code and a mask of ORed X11 modifiers into a X11 symbol.
KKeyServer::Key::key
KKey key() const
Converts this Key to a KKey.
KKeyServer::Key::operator=
Key & operator=(const KKeyNative &key)
Initializes this key with a KKeyNative.
TDEConfigGroupSaver
Helper class to facilitate working with TDEConfig / KSimpleConfig groups.
Definition: tdeconfigbase.h:2082
KKeyServer::Sym::getModsRequired
uint getModsRequired() const
Returns the mods that are required for this symbol as ORed KKey::ModFlag&#39;s.
KKeyServer
A collection of functions for the conversion of key presses and their modifiers from the window syste...
Definition: kkeyserver_x11.h:34
KKeyServer::symToKeyQt
bool symToKeyQt(uint sym, int &keyQt)
Converts the given symbol to a Qt key code.
KKeyServer::modXNumLock
uint modXNumLock()
Returns the X11 NumLock modifier mask/flag.
KKeyServer::modXScrollLock
uint modXScrollLock()
Returns the X11 ScrollLock modifier mask/flag.
KKeyServer::modXAlt
uint modXAlt()
Returns the X11 Alt (Mod1) modifier mask/flag.
KKeyServer::modXModeSwitch
uint modXModeSwitch()
Returns the X11 Mode_switch modifier mask/flag.
KKeyServer::modXShift
uint modXShift()
Returns the X11 Shift modifier mask/flag.
KKeyServer::Sym::toString
TQString toString() const
Returns the string representation of the symbol.
KKey::isNull
bool isNull() const
Returns true if the key is null (after clear() or empty constructor).
Definition: tdeshortcut.cpp:149
KKeyServer::keyboardHasWinKey
bool keyboardHasWinKey()
Returns true if the current keyboard layout supports the Win key.
KKeyServer::Sym::init
bool init(const TQString &s)
Initializes the key with the given string description.
KKeyServer::keyQtToMod
bool keyQtToMod(int keyQt, uint &mod)
Extracts the modifiers from the given Qt key and converts them in a mask of ORed KKey::ModFlag modifi...
KKeyNative::keyCodeQt
int keyCodeQt() const
Returns the qt key code.
tdelocale.h
KKeyNative::mod
uint mod() const
The native modifier flags of the key.
KKeyServer::initializeMods
bool initializeMods()
TODO: please document.
KKeyNative::code
uint code() const
The native keycode of the key.
KKeyServer::modToModQt
bool modToModQt(uint mod, int &modQt)
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed Qt key code modifiers.
KKeyServer::modX
uint modX(KKey::ModFlag modFlag)
Returns the equivalent X modifier mask of the given modifier flag.
KKeyServer::modXToMod
bool modXToMod(uint modX, uint &mod)
Converts the mask of ORed X11 modifiers to a mask of ORed KKey::ModFlag modifiers.
KKeyServer::modXWin
uint modXWin()
Returns the X11 Win (Mod3) modifier mask/flag.
KKeyServer::Sym::qt
int qt() const
Returns the qt key code of the symbol.
KKeyServer::modXLock
uint modXLock()
Returns the X11 Lock modifier mask/flag.
KKeyServer::qtButtonStateToMod
int qtButtonStateToMod(TQ_ButtonState s)
Converts the Qt-compatible button state to x11 modifier.
KKeyServer::modToModX
bool modToModX(uint mod, uint &modX)
Converts the mask of ORed KKey::ModFlag modifiers to a mask of ORed X11 modifiers.
KKeyNative
Representation of a key in the format native of the windowing system (eg.
Definition: kkeynative.h:37
KKeyServer::Sym::initQt
bool initQt(int keyQt)
Initializes the symbol with the given Qt key code.
KKeyServer::Key::init
bool init(const KKey &key, bool bQt)
Initializes the key with a KKey.
KKeyServer::stringUserToMod
uint stringUserToMod(const TQString &mod)
Converts the modifier given as user-readable string to KKey::ModFlag modifier, or 0...
KKeyServer::modToStringUser
TQString modToStringUser(uint mod)
Converts the mask of ORed KKey::ModFlag modifiers to a user-readable string.
KKey
A KKey object represents a single key with possible modifiers (Shift, Ctrl, Alt, Win).
Definition: tdeshortcut.h:40
KKey::keyCodeQt
int keyCodeQt() const
Returns the qt key code.
Definition: tdeshortcut.cpp:162
KKeyServer::modXToModQt
bool modXToModQt(uint modX, int &modQt)
Converts the mask of ORed X11 modifiers to a mask of ORed Qt key code modifiers.
KKeyServer::modXCtrl
uint modXCtrl()
Returns the X11 Ctrl modifier mask/flag.
TDEGlobal::config
static TDEConfig * config()
Returns the general config object.
Definition: tdeglobal.cpp:65
endl
kndbgstream & endl(kndbgstream &s)
Does nothing.
Definition: kdebug.h:583
KKeyNative::sym
uint sym() const
The native symbol (KeySym) of the key.
TDEConfigBase::readEntry
TQString readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads the value of an entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:221
KKeyServer::Sym::getSymVariation
uint getSymVariation() const
TODO: please find out what this method does and document it.
KKeyServer::Key::compare
int compare(const Key &key) const
Compares this key with the given Key object.
KKeyServer::accelModMaskX
uint accelModMaskX()
Returns bitwise OR&#39;ed mask containing Shift, Ctrl, Alt, and Win (if available).
KKeyServer::keyQtToSym
bool keyQtToSym(int keyQt, uint &sym)
Extracts the symbol from the given Qt key and converts it to a symbol.

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.8.11
This website is maintained by Timothy Pearson.