Re: More about the feature list

Carles Pina i Estany <[email protected]> Fri, 21 Mar 2008 22:07:14 +0100
Newsgroups gmane.comp.kde.gwenview
Message-ID <[email protected]>
Hi Aurélien,

On Mar/17/2008, Aurélien Gâteau wrote:

> > Some weeks ago I tried to add the "-s" switch (open in slideshow mode,
> > and a parameter for the seconds) and -f (full screen).
> > I think that I was not using the correct aproach. Aurelien, could you
> > tell me in 5 lines how would you do it? I had problems because I was
> > calling the toggleFullScreen or toggleSlideshow from some "random"
> > places where I was guessing that everything was load (in src/main.cpp?
> > or src/gwenview.cpp, don't know now). But I didn't like... 
> 
> I would not call the toggle* methods directly: it's better to trigger 
> the associated actions with code like mFullScreenAction->trigger(). This 
> way you make sure the "checked" property of the action is correct.
> 
> I just gave it a try and was able to start Gwenview in fullscreen mode 
> by adding this line (and a few #includes) in main.cpp:
> 
>    window->actionCollection()->action("fullscreen")->trigger();
> 
> Just after window->show()
> 
> Slideshow may be a bit more difficult, I haven't investigated yet.

thanks for the suggestions. I will try in that way. I missed this email
during the week :-)

-- 
Carles Pina i Estany		GPG id: 0x8CBDAE64
	http://pinux.info	Manresa - Barcelona

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/