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

List:       koffice
Subject:    Re: Canossa and embedding
From:       Reginald Stadlbauer <reggie () troll ! no>
Date:       1999-10-17 19:27:02
[Download RAW message or body]

On Sun, 17 Oct 1999, Simon Hausmann wrote:
>On Sun, 17 Oct 1999, Reginald Stadlbauer wrote:
>
>> Hi!
>> As I have now ported KPresenter and KWord to Canossa, here are a few notes on
>> Canossa:
>> 
>> - When activating an embedded part, the GUI state (positions of toolbars, which
>> toolbars are shows/hidden, states of toggle actions, values of select actions,
>> etc.) should be saved and restored when the root part gets activated again. Or
>> if this is too compilcated, at least make a saveGUIState() and
>> restoreGUIState() methodes which can be overloaded so that it is a bit easier
>> to save/restore the GUI state for the application.
>
>You could re-implement viewActivateEvent() and check (via the event) if
>the view gets activated or deactivated and depending on that save/restore 
>the toolbar positions.
>
>In order to access a toolbar, simply use Shell::viewToolBar( name ),
>whereas name is the name specified as attribute in the XML GUI
>description.
>
>The menubar should be accessible via KTMainWindow itself (as the shell is
>derived from KTMainWindow) .
>
>(the shell itself is accessible via View::shell() , but I suppose you
>alread knew that ;-)

A know already all that stuff - I played now long enough with it :-)) I just
meant we should make it easier to save/restore the GUI, since more or less
every app needs that.

-- 
Reggie

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

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