The future of KAction

Alexander Dymo adymo at mksat.net
Wed Nov 16 14:35:59 GMT 2005


On Wednesday 16 November 2005 12:01, Andras Mantia wrote:
> On Wednesday 16 November 2005 11:38, Christoph Cullmann wrote:
> > btw., other important thing: it needs to be possible to remove the
> > gui elements the plugin/part has added without deleting the
> > plugin/part in a sane way, like atm possible with unplugging the
> > xmlguiclient.

> Exactly. Actually I need a way to save and restore some gui elements
> (like actions only, or actions on a toolbar) without needing a full
> KPart. 
I think GuiEditor is exactly you're asking about. I can only guess what's
GuiEditor in Simon's interpretation, but I does not look like a KPart.
Therefore you can do whatever you want like:
editor.hide(); // ~ unplug
editor.removeAction(myAction);

Simon, am I right with that? Do my proposals above have any sense?

> Now I just save the xml file, load and create an xmlguiclient 
> and add to the factory. This functionality is needed in the future as
> well.
Hmm, that means that using the new approach you would need
to save the action configuration manually. Maybe xml was not
that bad ;) But anyway, it's easy to save the configuration manually.





More information about the kde-core-devel mailing list