[Kstars-devel] Full screen mode

Pablo de Vicente p.devicente at wanadoo.es
Sun Feb 15 08:39:49 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El Sábado, 14 de Febrero de 2004 23:37, Heiko Evermann escribió:
> Hi everyone,
>
> Recently we talked about a full screen mode for kstars. So I had a look
> at other programs that implement a full screen mode.
>
> I have found:
> 1) konqueror
> 2) kdeedu/kig
>
> For KIG this is implemented in kig_view.cpp as:
> <code>
> void KigView::toggleFullScreen()
> {
>   mrealwidget->setFullScreen( ! mrealwidget->isFullScreen() );
>   if ( mrealwidget->isFullScreen() )
>     topLevelWidget()->showFullScreen();
>   else
>     topLevelWidget()->showNormal();
> }
> </code>
>
> topLevelWidget is inherited from QT and should work for all
> QWidgets.Then a top level QWidget knows how to switch to full screen
> mode. (See http://doc.trolltech.com/3.3/qwidget.html and look for void
> QWidget::showFullScreen)
>
> So I just gave it a quick try and mapped it to the tip of the day:
>
> //Help Menu
> void KStars::slotTipOfDay() {
>     topLevelWidget()->showFullScreen();
>     //KTipDialog::showTip("kstars/tips", true);
> }
>
> This seemed to work fine. So we would need:
> * a boolean flag, whether full screen mode is on, so that we can toggle it
> * a menu item plus its mapping.
>
> A quick grep shows
> kig_part.cpp:  a = KStdAction::fullScreen( m_widget, SLOT(
> toggleFullScreen() ), actionCollection(), 0 );
> kig_part.cpp:    m_widget, SLOT( toggleFullScreen() ),
>
> that we even have a standard action for this (konquerer and kig use the
> same symbol), so it would not even break strings in KDE_3_2_BRANCH.
>
> How do we go on from here? Shall I implement the full screen mode or is
> anyone else working on some central files anyway? It seems to be a
> question of just a few lines of code.

Hello Heiko,

  Having a full screen mode is a nice feature, and it is included in the TODO 
list, so I suppose everybody will agree on implementing it. I would say you 
can go ahead. I only ask for a key shortcut to enable/disable the full screen 
mode. 

regards,

Pablo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFALyJPSItUpHl6kJERArhkAJ4lChQVO/JtTtY0QWbySDK2LWq5AgCgihaE
Ou3I0pVlgNYjy5DwPZD58h4=
=AQtF
-----END PGP SIGNATURE-----


More information about the Kstars-devel mailing list