KeyBindings & Friends in KDE 4.0
ben at meyerhome.net
Sat May 22 04:14:01 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Most applications have a one line function in them as follows:
* Bring up the key configuration dialog.
What if we made this a virtual function in KMainWindow? Then for the majority
of applications they would only have to do:
KStdAction::keyBindings(this, SLOT(configureKeys()), actionCollection());
But they could still overload the function and do their own thing.
Same with configuring the toolbars...
KStdAction::configureToolbars(this, SLOT(configuretoolbars() ),
Or even go one step further when createGUI is called if a toolbar is created
the configure and show actions are automaticly added and handled same with
Also what about turning setAutoSaveSettings() on by default rather then
having every single application have to call it (and some forgetting to)?
I am just thinking about things that almost every application re-implements on
their own even though it could be handled in one place giving the user a more
common experience across KDE.
If this sounds like a good idea I'll add it to the kdelibs TODO list for KDE4.
- -Benjamin Meyer
Public Key: http://www.csh.rit.edu/~benjamin/public_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the kde-core-devel