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

List:       kde-core-devel
Subject:    Re: The future of KAction
From:       Alexander Dymo <adymo () mksat ! net>
Date:       2005-11-16 14:35:59
Message-ID: 200511161635.59222.adymo () mksat ! net
[Download RAW message or body]

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.

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

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