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

tdecore

  • tdecore
tdeaccelaction.cpp
1/*
2 Copyright (C) 1998 Mark Donohoe <donohoe@kde.org>
3 Copyright (C) 1997-2000 Nicolas Hadacek <hadacek@kde.org>
4 Copyright (C) 1998 Matthias Ettrich <ettrich@kde.org>
5 Copyright (c) 2001,2002 Ellis Whitehead <ellis@kde.org>
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 "tdeaccelaction.h"
24#include "tdeaccelbase.h" // for TDEAccelBase::slotRemoveAction() & emitSignal()
25
26#include <tqkeycode.h>
27
28#include <tdeconfig.h>
29#include "kckey.h"
30#include <kdebug.h>
31#include <tdeglobal.h>
32#include <kkeynative.h>
33#include <tdelocale.h>
34#include <tdeshortcutlist.h>
35
36//---------------------------------------------------------------------
37// TDEAccelAction
38//---------------------------------------------------------------------
39
40class TDEAccelActionPrivate
41{
42 public:
43 uint m_nConnections;
44};
45
46TDEAccelAction::TDEAccelAction()
47{
48 //kdDebug(125) << "TDEAccelAction(): this = " << this << endl;
49 d = new TDEAccelActionPrivate;
50 m_pObjSlot = 0;
51 m_psMethodSlot = 0;
52 m_bConfigurable = true;
53 m_bEnabled = true;
54 m_nIDAccel = 0;
55 d->m_nConnections = 0;
56}
57
58TDEAccelAction::TDEAccelAction( const TDEAccelAction& action )
59{
60 //kdDebug(125) << "TDEAccelAction( copy from \"" << action.m_sName << "\" ): this = " << this << endl;
61 d = new TDEAccelActionPrivate;
62 *this = action;
63}
64
65TDEAccelAction::TDEAccelAction( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis,
66 const TDEShortcut& cutDef3, const TDEShortcut& cutDef4,
67 const TQObject* pObjSlot, const char* psMethodSlot,
68 bool bConfigurable, bool bEnabled )
69{
70 //kdDebug(125) << "TDEAccelAction( \"" << sName << "\" ): this = " << this << endl;
71 d = new TDEAccelActionPrivate;
72 init( sName, sLabel, sWhatsThis,
73 cutDef3, cutDef4,
74 pObjSlot, psMethodSlot,
75 bConfigurable, bEnabled );
76}
77
78TDEAccelAction::~TDEAccelAction()
79{
80 //kdDebug(125) << "\t\t\tTDEAccelAction::~TDEAccelAction( \"" << m_sName << "\" ): this = " << this << endl;
81 delete d;
82}
83
84void TDEAccelAction::clear()
85{
86 m_cut.clear();
87 m_pObjSlot = 0;
88 m_psMethodSlot = 0;
89 m_bConfigurable = true;
90 m_bEnabled = true;
91 m_nIDAccel = 0;
92 d->m_nConnections = 0;
93}
94
95bool TDEAccelAction::init( const TQString& sName, const TQString& sLabel, const TQString& sWhatsThis,
96 const TDEShortcut& rgCutDefaults3, const TDEShortcut& rgCutDefaults4,
97 const TQObject* pObjSlot, const char* psMethodSlot,
98 bool bConfigurable, bool bEnabled )
99{
100 m_sName = sName;
101 m_sLabel = sLabel;
102 m_sWhatsThis = sWhatsThis;
103 m_cutDefault3 = rgCutDefaults3;
104 m_cutDefault4 = rgCutDefaults4;
105 m_pObjSlot = pObjSlot;
106 m_psMethodSlot = psMethodSlot;
107 m_bConfigurable = bConfigurable;
108 m_bEnabled = bEnabled;
109 m_nIDAccel = 0;
110 m_cut = shortcutDefault();
111 d->m_nConnections = 0;
112 if( !m_bEnabled )
113 kdDebug(125) << "TDEAccelAction::init( \"" << sName << "\" ): created with enabled = false" << endl;
114 return true;
115}
116
117TDEAccelAction& TDEAccelAction::operator =( const TDEAccelAction& action )
118{
119 m_sName = action.m_sName;
120 m_sLabel = action.m_sLabel;
121 m_sWhatsThis = action.m_sWhatsThis;
122 m_cutDefault3 = action.m_cutDefault3;
123 m_cutDefault4 = action.m_cutDefault4;
124 m_pObjSlot = action.m_pObjSlot;
125 m_psMethodSlot = action.m_psMethodSlot;
126 m_bConfigurable = action.m_bConfigurable;
127 m_bEnabled = action.m_bEnabled;
128 m_nIDAccel = action.m_nIDAccel;
129 m_cut = action.m_cut;
130 d->m_nConnections = action.d->m_nConnections;
131
132 return *this;
133}
134
135void TDEAccelAction::setName( const TQString& s )
136 { m_sName = s; }
137void TDEAccelAction::setLabel( const TQString& s )
138 { m_sLabel = s; }
139void TDEAccelAction::setWhatsThis( const TQString& s )
140 { m_sWhatsThis = s; }
141
142bool TDEAccelAction::setShortcut( const TDEShortcut& cut )
143{
144 m_cut = cut;
145 return true;
146}
147
148void TDEAccelAction::setSlot( const TQObject* pObjSlot, const char* psMethodSlot )
149{
150 m_pObjSlot = pObjSlot;
151 m_psMethodSlot = psMethodSlot;
152}
153
154void TDEAccelAction::setConfigurable( bool b )
155 { m_bConfigurable = b; }
156void TDEAccelAction::setEnabled( bool b )
157 { m_bEnabled = b; }
158
159TQString TDEAccelAction::toString() const
160 { return m_cut.toString(); }
161
162TQString TDEAccelAction::toStringInternal() const
163 { return m_cut.toStringInternal( &shortcutDefault() ); }
164
165bool TDEAccelAction::setKeySequence( uint i, const KKeySequence& seq )
166{
167 if( i < m_cut.count() ) {
168 m_cut.setSeq( i, seq );
169 return true;
170 } else if( i == m_cut.count() )
171 return m_cut.append( seq );
172 return false;
173}
174
175void TDEAccelAction::clearShortcut()
176{
177 m_cut.clear();
178}
179
180bool TDEAccelAction::contains( const KKeySequence& seq )
181{
182 return m_cut.contains( seq );
183 for( uint i = 0; i < m_cut.count(); i++ ) {
184 if( m_cut.seq(i) == seq )
185 return true;
186 }
187 return false;
188}
189
190const TDEShortcut& TDEAccelAction::shortcutDefault() const
191 { return (useFourModifierKeys()) ? m_cutDefault4 : m_cutDefault3; }
192bool TDEAccelAction::isConnected() const
193 { return d->m_nConnections; }
194void TDEAccelAction::incConnections()
195 { d->m_nConnections++; }
196void TDEAccelAction::decConnections()
197 { if( d->m_nConnections > 0 ) d->m_nConnections--; }
198
199// Indicate whether to default to the 3- or 4- modifier keyboard schemes
200int TDEAccelAction::g_bUseFourModifierKeys = -1;
201
202bool TDEAccelAction::useFourModifierKeys()
203{
204 if( TDEAccelAction::g_bUseFourModifierKeys == -1 ) {
205 // Read in whether to use 4 modifier keys
206 TDEConfigGroupSaver cgs( TDEGlobal::config(), "Keyboard" );
207 bool b = TDEGlobal::config()->readBoolEntry( "Use Four Modifier Keys", false );
208 TDEAccelAction::g_bUseFourModifierKeys = b && KKeyNative::keyboardHasWinKey();
209 }
210 return TDEAccelAction::g_bUseFourModifierKeys == 1;
211}
212
213void TDEAccelAction::useFourModifierKeys( bool b )
214{
215 if( TDEAccelAction::g_bUseFourModifierKeys != (int)b ) {
216 TDEAccelAction::g_bUseFourModifierKeys = b && KKeyNative::keyboardHasWinKey();
217 // If we're 'turning off' the meta key or, if we're turning it on,
218 // the keyboard must actually have a meta key.
219 if( b && !KKeyNative::keyboardHasWinKey() )
220 kdDebug(125) << "Tried to use four modifier keys on a keyboard layout without a Meta key.\n";
221 }
222 TDEConfigGroupSaver cgs( TDEGlobal::config(), "Keyboard" );
223 TDEGlobal::config()->writeEntry( "Use Four Modifier Keys", TDEAccelAction::g_bUseFourModifierKeys, true, true);
224
225 kdDebug(125) << "bUseFourModifierKeys = " << TDEAccelAction::g_bUseFourModifierKeys << endl;
226}
227
228//---------------------------------------------------------------------
229// TDEAccelActions
230//---------------------------------------------------------------------
231
232class TDEAccelActionsPrivate
233{
234 public:
235};
236
237TDEAccelActions::TDEAccelActions()
238{
239 kdDebug(125) << "TDEAccelActions(): this = " << this << endl;
240 initPrivate( 0 );
241}
242
243TDEAccelActions::TDEAccelActions( const TDEAccelActions& actions )
244{
245 kdDebug(125) << "TDEAccelActions( actions = " << &actions << " ): this = " << this << endl;
246 initPrivate( 0 );
247 init( actions );
248}
249
250TDEAccelActions::TDEAccelActions( TDEAccelBase* pTDEAccelBase )
251{
252 kdDebug(125) << "TDEAccelActions( TDEAccelBase = " << pTDEAccelBase << " ): this = " << this << endl;
253 initPrivate( pTDEAccelBase );
254}
255
256TDEAccelActions::~TDEAccelActions()
257{
258 //kdDebug(125) << "TDEAccelActions::~TDEAccelActions(): this = " << this << endl;
259 clear();
260 //delete d;
261}
262
263void TDEAccelActions::initPrivate( TDEAccelBase* pTDEAccelBase )
264{
265 m_pTDEAccelBase = pTDEAccelBase;
266 m_nSizeAllocated = m_nSize = 0;
267 m_prgActions = 0;
268 //d = new TDEAccelActionsPrivate;
269}
270
271void TDEAccelActions::clear()
272{
273 kdDebug(125) << "\tTDEAccelActions::clear()" << endl;
274 for( uint i = 0; i < m_nSize; i++ )
275 delete m_prgActions[i];
276 delete[] m_prgActions;
277
278 m_nSizeAllocated = m_nSize = 0;
279 m_prgActions = 0;
280}
281
282bool TDEAccelActions::init( const TDEAccelActions& actions )
283{
284 clear();
285 resize( actions.count() );
286 for( uint i = 0; i < m_nSize; i++ ) {
287 TDEAccelAction* pAction = actions.m_prgActions[i];
288 if( pAction )
289 m_prgActions[i] = new TDEAccelAction( *pAction );
290 else
291 m_prgActions[i] = 0;
292 }
293
294 return true;
295}
296
297bool TDEAccelActions::init( TDEConfigBase& config, const TQString& sGroup )
298{
299 kdDebug(125) << "TDEAccelActions::init( " << sGroup << " )" << endl;
300 TQMap<TQString, TQString> mapEntry = config.entryMap( sGroup );
301 resize( mapEntry.count() );
302
303 TQMap<TQString, TQString>::Iterator it( mapEntry.begin() );
304 for( uint i = 0; it != mapEntry.end(); ++it, i++ ) {
305 TQString sShortcuts = *it;
306 TDEShortcut cuts;
307
308 kdDebug(125) << it.key() << " = " << sShortcuts << endl;
309 if( !sShortcuts.isEmpty() && sShortcuts != "none" )
310 cuts.init( sShortcuts );
311
312 m_prgActions[i] = new TDEAccelAction( it.key(), it.key(), it.key(),
313 cuts, cuts,
314 0, 0, // pObjSlot, psMethodSlot,
315 true, false ); // bConfigurable, bEnabled
316 }
317
318 return true;
319}
320
321void TDEAccelActions::resize( uint nSize )
322{
323 if( nSize > m_nSizeAllocated ) {
324 uint nSizeAllocated = ((nSize/10) + 1) * 10;
325 TDEAccelAction** prgActions = new TDEAccelAction* [nSizeAllocated];
326
327 // Copy pointers over to new array
328 for( uint i = 0; i < m_nSizeAllocated; i++ )
329 prgActions[i] = m_prgActions[i];
330
331 // Null out new pointers
332 for( uint i = m_nSizeAllocated; i < nSizeAllocated; i++ )
333 prgActions[i] = 0;
334
335 delete[] m_prgActions;
336 m_prgActions = prgActions;
337 m_nSizeAllocated = nSizeAllocated;
338 }
339
340 m_nSize = nSize;
341}
342
343void TDEAccelActions::insertPtr( TDEAccelAction* pAction )
344{
345 resize( m_nSize + 1 );
346 m_prgActions[m_nSize-1] = pAction;
347}
348
349void TDEAccelActions::updateShortcuts( TDEAccelActions& actions2 )
350{
351 kdDebug(125) << "TDEAccelActions::updateShortcuts()" << endl;
352 bool bChanged = false;
353
354 for( uint i = 0; i < m_nSize; i++ ) {
355 TDEAccelAction* pAction = m_prgActions[i];
356 if( pAction && pAction->m_bConfigurable ) {
357 TDEAccelAction* pAction2 = actions2.actionPtr( pAction->m_sName );
358 if( pAction2 ) {
359 TQString sOld = pAction->m_cut.toStringInternal();
360 pAction->m_cut = pAction2->m_cut;
361 kdDebug(125) << "\t" << pAction->m_sName
362 << " found: " << sOld
363 << " => " << pAction2->m_cut.toStringInternal()
364 << " = " << pAction->m_cut.toStringInternal() << endl;
365 bChanged = true;
366 }
367 }
368 }
369
370 if( bChanged )
371 emitKeycodeChanged();
372}
373
374int TDEAccelActions::actionIndex( const TQString& sAction ) const
375{
376 for( uint i = 0; i < m_nSize; i++ ) {
377 if( m_prgActions[i] == 0 )
378 kdWarning(125) << "TDEAccelActions::actionPtr( " << sAction << " ): encountered null pointer at m_prgActions[" << i << "]" << endl;
379 else if( m_prgActions[i]->m_sName == sAction )
380 return (int) i;
381 }
382 return -1;
383}
384
385TDEAccelAction* TDEAccelActions::actionPtr( uint i )
386{
387 return m_prgActions[i];
388}
389
390const TDEAccelAction* TDEAccelActions::actionPtr( uint i ) const
391{
392 return m_prgActions[i];
393}
394
395TDEAccelAction* TDEAccelActions::actionPtr( const TQString& sAction )
396{
397 int i = actionIndex( sAction );
398 return (i >= 0) ? m_prgActions[i] : 0;
399}
400
401const TDEAccelAction* TDEAccelActions::actionPtr( const TQString& sAction ) const
402{
403 int i = actionIndex( sAction );
404 return (i >= 0) ? m_prgActions[i] : 0;
405}
406
407TDEAccelAction* TDEAccelActions::actionPtr( KKeySequence cut )
408{
409 for( uint i = 0; i < m_nSize; i++ ) {
410 if( m_prgActions[i] == 0 )
411 kdWarning(125) << "TDEAccelActions::actionPtr( " << cut.toStringInternal() << " ): encountered null pointer at m_prgActions[" << i << "]" << endl;
412 else if( m_prgActions[i]->contains( cut ) )
413 return m_prgActions[i];
414 }
415 return 0;
416}
417
418TDEAccelAction& TDEAccelActions::operator []( uint i )
419{
420 return *actionPtr( i );
421}
422
423const TDEAccelAction& TDEAccelActions::operator []( uint i ) const
424{
425 return *actionPtr( i );
426}
427
428TDEAccelAction* TDEAccelActions::insert( const TQString& sName, const TQString& sLabel )
429{
430 if( actionPtr( sName ) ) {
431 kdWarning(125) << "TDEAccelActions::insertLabel( " << sName << ", " << sLabel << " ): action with same name already present." << endl;
432 return 0;
433 }
434
435 TDEAccelAction* pAction = new TDEAccelAction;
436 pAction->m_sName = sName;
437 pAction->m_sLabel = sLabel;
438 pAction->m_bConfigurable = false;
439 pAction->m_bEnabled = false;
440
441 insertPtr( pAction );
442 return pAction;
443}
444
445TDEAccelAction* TDEAccelActions::insert( const TQString& sAction, const TQString& sLabel, const TQString& sWhatsThis,
446 const TDEShortcut& rgCutDefaults3, const TDEShortcut& rgCutDefaults4,
447 const TQObject* pObjSlot, const char* psMethodSlot,
448 bool bConfigurable, bool bEnabled )
449{
450 //kdDebug(125) << "TDEAccelActions::insert()2 begin" << endl;
451 if( actionPtr( sAction ) ) {
452 kdWarning(125) << "TDEAccelActions::insert( " << sAction << " ): action with same name already present." << endl;
453 return 0;
454 }
455
456 TDEAccelAction* pAction = new TDEAccelAction(
457 sAction, sLabel, sWhatsThis,
458 rgCutDefaults3, rgCutDefaults4,
459 pObjSlot, psMethodSlot,
460 bConfigurable, bEnabled );
461 insertPtr( pAction );
462
463 //kdDebug(125) << "TDEAccelActions::insert()2 end" << endl;
464 return pAction;
465}
466
467bool TDEAccelActions::remove( const TQString& sAction )
468{
469 kdDebug(125) << "TDEAccelActions::remove( \"" << sAction << "\" ): this = " << this << " m_pTDEAccelBase = " << m_pTDEAccelBase << endl;
470
471 int iAction = actionIndex( sAction );
472 if( iAction < 0 )
473 return false;
474
475 if( m_pTDEAccelBase )
476 m_pTDEAccelBase->slotRemoveAction( m_prgActions[iAction] );
477 delete m_prgActions[iAction];
478
479 for( uint i = iAction; i < m_nSize - 1; i++ )
480 m_prgActions[i] = m_prgActions[i+1];
481 m_nSize--;
482
483 return true;
484}
485
486bool TDEAccelActions::readActions( const TQString& sConfigGroup, TDEConfigBase* pConfig )
487{
488 TDEAccelShortcutList accelList(*this, false);
489 return accelList.readSettings( sConfigGroup, pConfig );
490}
491
492/*
493 1) TDEAccelAction = "Something"
494 1) KKeySequence = "Meta+X,Asterisk"
495 1) TDEAccelSequence = "Meta+X"
496 1) KKeySequence = Meta+X
497 2) TDEAccelSequence = "Asterisk"
498 1) KKeySequence = Shift+8 (English layout)
499 2) KKeySequence = Keypad_Asterisk
500 2) KKeySequence = "Alt+F2"
501 1) TDEAccelSequence = "Alt+F2"
502 1) KKeySequence = Alt+F2
503 -> "Something=Meta+X,Asterisk;Alt+F2"
504*/
505bool TDEAccelActions::writeActions( const TQString &sGroup, TDEConfigBase* pConfig,
506 bool bWriteAll, bool bGlobal ) const
507{
508 kdDebug(125) << "TDEAccelActions::writeActions( " << sGroup << ", " << pConfig << ", " << bWriteAll << ", " << bGlobal << " )" << endl;
509 if( !pConfig )
510 pConfig = TDEGlobal::config();
511 TDEConfigGroupSaver cs( pConfig, sGroup );
512
513 for( uint i = 0; i < m_nSize; i++ ) {
514 if( m_prgActions[i] == 0 ) {
515 kdWarning(125) << "TDEAccelActions::writeActions(): encountered null pointer at m_prgActions[" << i << "]" << endl;
516 continue;
517 }
518 const TDEAccelAction& action = *m_prgActions[i];
519
520 TQString s;
521 bool bConfigHasAction = !pConfig->readEntry( action.m_sName ).isEmpty();
522 bool bSameAsDefault = true;
523 bool bWriteAction = false;
524
525 if( action.m_bConfigurable ) {
526 s = action.toStringInternal();
527 bSameAsDefault = (action.m_cut == action.shortcutDefault());
528
529 //if( bWriteAll && s.isEmpty() )
530 if( s.isEmpty() )
531 s = "none";
532
533 // If we're using a global config or this setting
534 // differs from the default, then we want to write.
535 if( bWriteAll || !bSameAsDefault )
536 bWriteAction = true;
537
538 if( bWriteAction ) {
539 kdDebug(125) << "\twriting " << action.m_sName << " = " << s << endl;
540 // Is passing bGlobal irrelevant, since if it's true,
541 // then we're using the global config anyway? --ellis
542 pConfig->writeEntry( action.m_sName, s, true, bGlobal );
543 }
544 // Otherwise, this key is the same as default
545 // but exists in config file. Remove it.
546 else if( bConfigHasAction ) {
547 kdDebug(125) << "\tremoving " << action.m_sName << " because == default" << endl;
548 pConfig->deleteEntry( action.m_sName, bGlobal );
549 }
550
551 }
552 }
553
554 pConfig->sync();
555 return true;
556}
557
558void TDEAccelActions::emitKeycodeChanged()
559{
560 if( m_pTDEAccelBase )
561 m_pTDEAccelBase->emitSignal( TDEAccelBase::KEYCODE_CHANGED );
562}
563
564uint TDEAccelActions::count() const
565 { return m_nSize; }
KKeyNative::keyboardHasWinKey
static bool keyboardHasWinKey()
Checks whether the keyboard has a Win key.
KKeySequence
A KKeySequence object holds a sequence of up to 4 keys.
Definition: tdeshortcut.h:289
TDEAccelShortcutList
TDEShortcutList implementation to access TDEAccel and TDEGlobalAccel lists.
Definition: tdeshortcutlist.h:199
TDEAction::shortcutDefault
virtual const TDEShortcut & shortcutDefault() const
TDEConfigBase
KDE Configuration Management abstract base class.
Definition: tdeconfigbase.h:71
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
TDEConfigBase::readBoolEntry
bool readBoolEntry(const TQString &pKey, bool bDefault=false) const
Reads a boolean entry.
Definition: tdeconfigbase.cpp:748
TDEConfigBase::deleteEntry
void deleteEntry(const TQString &pKey, bool bNLS=false, bool bGlobal=false)
Deletes the entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:1204
TDEConfigBase::sync
virtual void sync()
Flushes all changes that currently reside only in memory back to disk / permanent storage.
Definition: tdeconfigbase.cpp:1738
TDEConfigBase::writeEntry
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
Writes a key/value pair.
Definition: tdeconfigbase.cpp:1044
TDEConfigBase::entryMap
virtual TQMap< TQString, TQString > entryMap(const TQString &group) const =0
Returns a map (tree) of entries for all entries in a particular group.
TDEConfigGroupSaver
Helper class to facilitate working with TDEConfig / KSimpleConfig groups.
Definition: tdeconfigbase.h:2083
TDEGlobal::config
static TDEConfig * config()
Returns the general config object.
Definition: tdeglobal.cpp:65
TDEShortcut
The TDEShortcut class is used to represent a keyboard shortcut to an action.
Definition: tdeshortcut.h:544
TDEShortcut::init
bool init(int keyQt)
Initializes the shortcut with the given Qt key code as the only key sequence.
Definition: tdeshortcut.cpp:421
TDEGlobal::kdWarning
kdbgstream kdWarning(int area=0)
Returns a warning stream.
Definition: kdebug.cpp:376
TDEGlobal::kdDebug
kdbgstream kdDebug(int area=0)
Returns a debug stream.
Definition: kdebug.cpp:371
TDEGlobal::endl
kdbgstream & endl(kdbgstream &s)
Prints an "\n".
Definition: kdebug.h:430
KStdAction::action
TDEAction * action(StdAction act_enum, const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0L)
KStdAction::cut
TDEAction * cut(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0)
KStdAction::clear
TDEAction * clear(const TQObject *recvr, const char *slot, TDEActionCollection *parent, const char *name=0)
TDEStdAccel::shortcutDefault
TDEShortcut shortcutDefault(StdAccel id)
Returns the hardcoded default shortcut for id.
Definition: tdestdaccel.cpp:202
tdelocale.h

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.9.4
This website is maintained by Timothy Pearson.