KDE/kdelibs/kdeui/widgets

Michael Jansen kde at michael-jansen.biz
Sat Jun 7 17:59:58 BST 2008


OK: I got something working. I will send a patch when finished.

On Saturday 07 June 2008 18:10:50 Michael Jansen wrote:
> Hi
>
> Ok. Started to work on it and got the same result as last time. There is no
> KStdAccel::ShortcutList anymore. For kde4porting
>
> <h4><a name="KShortcutsEditor">KShortcutsEditor</a> (was KKeyChooser)</h4>
> <ul>
> <li>Added new constructor parameter: ActionTypes types.  Allows you to
> filter the types of actions shown in the dialog.</li>
> <li>Removed all functions dealing with old classes KShortcutList,
> KGlobalAccel (kde3 version)</li>
> <li>Global shortcut conflict checking functions moved to KGlobalAccel.</li>
> <li>Standard shortcuts checking functions were removed.</li>
> </ul>
> <p>See also <a href="#KShortcutsDialog">KShortcutsDialog</a>.</p>
>
> You see KShortcutList was removed. Whoever did that change should have an
> idea how to achieve this functionality. So: Who did it?
>
> The questions.
>
> 1: How to get the list of standard shortcuts.
> 2. How to change them persistent?
>
> Mike
>
> On Tuesday 27 May 2008 16:30:29 David Faure wrote:
> > On Tuesday 27 May 2008, you wrote:
> > > > (*) where did the standard-shortcuts-config module go???
> > >
> > > It's lost. If somebody is able to explain to me how to do it, i will
> > > bring it back. I never have been able to find the code that was
> > > responsible for it.
> >
> > /d/kde/src/3/kdebase/kcontrol/keys>rgrep Standard
> > ./shortcuts.cpp:186:    m_pkcApplication = new KKeyChooser(
> > m_pListApplication, this, KKeyChooser::Standard, false );
> >
> > With context:
> >
> >         m_pListApplication = new KStdAccel::ShortcutList;
> >         m_pkcApplication = new KKeyChooser( m_pListApplication, this,
> > KKeyChooser::Standard, false ); m_pTab->addTab( m_pkcApplication,
> > i18n("App&lication Shortcuts") ); connect( m_pkcApplication,
> > SIGNAL(keyChange()), SLOT(slotKeyChange()) );
> >
> > (this is in $KDESVN/branches/KDE/3.5/kdebase/kcontrol/keys )
> >
> > In kde4, this code is mostly gone indeed, except for the few commented
> > out mentions of m_pkcApplication that remain in
> > kdebase/workspace/kcontrol/keys/shortcuts.cpp

-- 
Michael Jansen
Available for contract work ( Development / Configuration Management )
http://www.michael-jansen.biz




More information about the kde-core-devel mailing list