[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: The future of KAction
From:       Hamish Rodda <rodda () kde ! org>
Date:       2005-11-20 4:49:28
Message-ID: 200511201549.29779.rodda () kde ! org
[Download RAW message or body]


On Sunday 20 November 2005 01:10, Richard Moore wrote:
> One thing I would like to see from a new KAction is that it be a bit
> smarter. Currently for example we have a fileOpen action - almost every
> application connects this to a slot which pops up a file dialog, checks the
> output then calls a load function. The fileOpen action itself could handle
> the dialog. The saving of this approach is even greater for fileSave where
> the action can handle backups, check for overwriting etc. The approach has
> further advantages for automation, as it is possible to code the action to
> allow the filename to be specified externally, eliminating the need for the
> automation engine to deal with the file dialog at all.

This is already possible with KAction from KDE 3, it's just that nobody has 
created "KFileOpenAction".

Also, it will be just as easy to do with KAction inheriting from QAction in 
KDE 4, should the change be accepted.

Cheers,
Hamish.

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic