Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer]

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


hald at icandy

Oct 21, 2009, 5:05 AM

Post #1 of 21 (1046 views)
Permalink
Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer]

Hi,

Nathan Anderson wrote:
> What physical hardware buttons do exist? Maybe we can tie onto one
> of those to exit out of full screen mode in apps. Anybody know the
> keyboard constants are to these hardware buttons -- we should put them in a
> wiki article -- this is something that I could think that several programs
> would need. Games that are running full screen, Remote Desktop, a picture
> viewer.

The available HW buttons are: +/- keys, Power key, Take-a-photo key and
the lock key. Then there´s of course the keyboard with even more keys ;)

They key constants for the +/- keys are the same as on Diablo. But
before you can use them you first have to unmap the default action,
which is sound volume up/down.

I think the camera button works differently, don´t know how, but the
load applet is using it for taking a screenshot.

Anyways, I don´t think any of the hardware buttons is well suited to
toggle fullscreen mode. Instead I would go with a keyboard shortcut
and/or the transparent overlay button that the browser is using.

I don´t think there is already a widely used keyboard shortcut. Some
wiki document suggests Ctrl+f but this is often used to open the find
bar. If we could standardize/recommend something for all community apps
it would be nice. Suggestions welcome :)

About the transparent overlay button: There is some code available
here[1] which was probably ripped out of the browser code. Unfortunately
they also removed the transparency and the fade in/out effects[2]. I
think it shouldn't be to difficult to add these again, though. I really
would like to do this, but I don´t think my time will permit it anytime
soon. Maybe someone else wants to give it a try?

Cheers!
Conny


[1] https://garage.maemo.org/svn/maemoexamples/trunk/maemopad/src/
[2] It´s still usable without those effects, just doesn´t look that nice.
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


tuomas at kulve

Oct 21, 2009, 5:11 AM

Post #2 of 21 (1007 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

Cornelius Hald wrote:
> Hi,
>
> Nathan Anderson wrote:
>> What physical hardware buttons do exist? Maybe we can tie onto one
>> of those to exit out of full screen mode in apps. Anybody know the
>> keyboard constants are to these hardware buttons -- we should put them in a
>> wiki article -- this is something that I could think that several programs
>> would need. Games that are running full screen, Remote Desktop, a picture
>> viewer.
>
> The available HW buttons are: +/- keys, Power key, Take-a-photo key and
> the lock key. Then there´s of course the keyboard with even more keys ;)

The quake3 uses promixity sensor as a fire button. Hover a finger close
to the sensor (or just tap it) and it will fire.

Just pointing out that the device can use something weird instead of the
traditional hardware keys ;)

--
Tuomas


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 21, 2009, 5:18 AM

Post #3 of 21 (1008 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

2009/10/21 Tuomas Kulve <tuomas [at] kulve>:
> Cornelius Hald wrote:
>> Hi,
>>
>> Nathan Anderson wrote:
>>> What physical hardware buttons do exist?  Maybe we can tie onto one
>>> of those to exit out of full screen mode in apps.    Anybody know the
>>> keyboard constants are to these hardware buttons -- we should put them in a
>>> wiki article -- this is something that I could think that several programs
>>> would need.  Games that are running full screen, Remote Desktop, a picture
>>> viewer.
>>
>> The available HW buttons are: +/- keys, Power key, Take-a-photo key and
>> the lock key. Then there´s of course the keyboard with even more keys ;)
>
> The quake3 uses promixity sensor as a fire button. Hover a finger close
> to the sensor (or just tap it) and it will fire.
>
> Just pointing out that the device can use something weird instead of the
> traditional hardware keys ;)
>
>

But it's not always a good idea, I think.
People suggested Xournal should use this very same trick (the
proximity sensor) to enable the panning.

A sensor is a sensor, not a modifier.
But yes, strictly speaking one can "force adapt" hardware features to
do stuff it was not designed to do.

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


philipp.zabel at gmail

Oct 21, 2009, 6:17 AM

Post #4 of 21 (1003 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Wed, Oct 21, 2009 at 2:05 PM, Cornelius Hald <hald [at] icandy> wrote:
> Hi,
>
> Nathan Anderson wrote:
>> What physical hardware buttons do exist?  Maybe we can tie onto one
>> of those to exit out of full screen mode in apps.    Anybody know the
>> keyboard constants are to these hardware buttons -- we should put them in a
>> wiki article -- this is something that I could think that several programs
>> would need.  Games that are running full screen, Remote Desktop, a picture
>> viewer.
>
> The available HW buttons are: +/- keys, Power key, Take-a-photo key and
> the lock key. Then there´s of course the keyboard with even more keys ;)
>
> They key constants for the +/- keys are the same as on Diablo. But
> before you can use them you first have to unmap the default action,
> which is sound volume up/down.
>
> I think the camera button works differently, don´t know how, but the
> load applet is using it for taking a screenshot.

This is interesting. I wonder if it would be a good idea to repurpose
this button to scan a barcode from some applications (say, shopping
list or media catalog).

cheers
Philipp
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


hald at icandy

Oct 21, 2009, 6:33 AM

Post #5 of 21 (1000 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

pHilipp Zabel wrote:
>> I think the camera button works differently, don´t know how, but the
>> load applet is using it for taking a screenshot.
>
> This is interesting. I wonder if it would be a good idea to repurpose
> this button to scan a barcode from some applications (say, shopping
> list or media catalog).

I think if you have an application which makes use of the camera, this
is exactly the button you want to use. Only thing I´m not sure about is
whether or not it is possible to deactivate the launching of the camera
app which happens if you push the button.

The button has to states. First, you press it a bit only, this activates
the autofocus if your´re in the camera app. Otherwise it just sends a
dbus message. Then you can press it down completely which takes a
picture if your´re inside the camera app or opens the camera app if it´s
not open yet.

Cheers!
Conny
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


henrik.hedberg at innologies

Oct 21, 2009, 6:50 AM

Post #6 of 21 (1008 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

Cornelius Hald wrote:

> I don´t think there is already a widely used keyboard shortcut.

The full screen toggling should be done with the touch screen, yes.

However, there are some shortcuts in the keyboard (of which I found
by accident):

CTRL-Backspace = Open the task switcher (can be used to somehow replace
the full screen button)

CTRL-Shift-X = Open a new terminal (which is very handy if the
hildon-desktop has jammed ;)

CTRL-Shift-P = Take a screenshot (which is saved in
${HOME}/MyDocs/.images/Screenshots)

BR,

Henrik

--
Henrik Hedberg - +358 (0)40 574 5087 - http://www.henrikhedberg.net/
Innologies - Innovative Technologies - http://www.innologies.fi/
Oulu, Finland - FI19934487, VAT reg. - http://www.innologies.com/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


trippin1 at gmail

Oct 21, 2009, 7:22 AM

Post #7 of 21 (1004 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

Worth nothing that it is actually hildon-desktop itself that defines
these shortcuts...

Best Regards,
Faheem

On Wed, Oct 21, 2009 at 2:50 PM, Henrik Hedberg
<henrik.hedberg [at] innologies> wrote:
> Cornelius Hald wrote:
>
>  > I don´t think there is already a widely used keyboard shortcut.
>
>    The full screen toggling should be done with the touch screen, yes.
>
>    However, there are some shortcuts in the keyboard (of which I found
> by accident):
>
> CTRL-Shift-X = Open a new terminal (which is very handy if the
> hildon-desktop has jammed ;)
>
>    BR,
>
>    Henrik
>
> --
>    Henrik Hedberg - +358 (0)40 574 5087 - http://www.henrikhedberg.net/
>    Innologies - Innovative Technologies - http://www.innologies.fi/
>    Oulu, Finland - FI19934487, VAT reg. - http://www.innologies.com/
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


donaggio at gmail

Oct 21, 2009, 8:13 AM

Post #8 of 21 (1001 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

If there's neither hardware button to toggle fullscreen mode nor a default
keyboard shortcut and the preferred method is via the touchscreen then a
specific widget should be included in hildon, just to avoid duplicating the
same code or, even worse, 'reinventing the wheel' for every app.

Maybe it's a candidate for inclusion in Hildon Extras [1] -hint hint- ?

For now I'll stick with a keyboard shortcut, maybe CTRL-Shift-F would do.

Luca Donaggio

[1] https://garage.maemo.org/projects/hildon-extras/


On Wed, Oct 21, 2009 at 3:50 PM, Henrik Hedberg <
henrik.hedberg [at] innologies> wrote:

> Cornelius Hald wrote:
>
> > I don´t think there is already a widely used keyboard shortcut.
>
> The full screen toggling should be done with the touch screen, yes.
>
> However, there are some shortcuts in the keyboard (of which I found
> by accident):
>
> CTRL-Backspace = Open the task switcher (can be used to somehow replace
> the full screen button)
>
> CTRL-Shift-X = Open a new terminal (which is very handy if the
> hildon-desktop has jammed ;)
>
> CTRL-Shift-P = Take a screenshot (which is saved in
> ${HOME}/MyDocs/.images/Screenshots)
>
> BR,
>
> Henrik
>
> --
> Henrik Hedberg - +358 (0)40 574 5087 - http://www.henrikhedberg.net/
> Innologies - Innovative Technologies - http://www.innologies.fi/
> Oulu, Finland - FI19934487, VAT reg. - http://www.innologies.com/
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>


kimmo.hamalainen at nokia

Oct 21, 2009, 8:44 AM

Post #9 of 21 (1001 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Wed, 2009-10-21 at 17:13 +0200, ext Luca Donaggio wrote:
> If there's neither hardware button to toggle fullscreen mode nor a
> default keyboard shortcut and the preferred method is via the
> touchscreen then a specific widget should be included in hildon, just
> to avoid duplicating the same code or, even worse, 'reinventing the
> wheel' for every app.
>
> Maybe it's a candidate for inclusion in Hildon Extras [1] -hint
> hint- ?
>
> For now I'll stick with a keyboard shortcut, maybe CTRL-Shift-F would
> do.

You could listen for this key combination in the HildonWindow, so that
the HildonWindow that has input focus would handle changing the
fullscreenness (i.e. send the right ClientMessage). That way it wouldn't
need to be global shortcut with all the complications.

-Kimmo

>
> Luca Donaggio
>
> [1] https://garage.maemo.org/projects/hildon-extras/
>
>
> On Wed, Oct 21, 2009 at 3:50 PM, Henrik Hedberg
> <henrik.hedberg [at] innologies> wrote:
> Cornelius Hald wrote:
>
> > I don´t think there is already a widely used keyboard
> shortcut.
>
>
> The full screen toggling should be done with the touch
> screen, yes.
>
> However, there are some shortcuts in the keyboard (of which
> I found
> by accident):
>
> CTRL-Backspace = Open the task switcher (can be used to
> somehow replace
> the full screen button)
>
> CTRL-Shift-X = Open a new terminal (which is very handy if the
> hildon-desktop has jammed ;)
>
> CTRL-Shift-P = Take a screenshot (which is saved in
> ${HOME}/MyDocs/.images/Screenshots)
>
> BR,
>
> Henrik
>
> --
> Henrik Hedberg - +358 (0)40 574 5087 -
> http://www.henrikhedberg.net/
> Innologies - Innovative Technologies -
> http://www.innologies.fi/
> Oulu, Finland - FI19934487, VAT reg. -
> http://www.innologies.com/
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


hald at icandy

Oct 22, 2009, 2:48 PM

Post #10 of 21 (966 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Wed, 2009-10-21 at 17:13 +0200, Luca Donaggio wrote:
> If there's neither hardware button to toggle fullscreen mode nor a
> default keyboard shortcut and the preferred method is via the
> touchscreen then a specific widget should be included in hildon, just
> to avoid duplicating the same code or, even worse, 'reinventing the
> wheel' for every app.
>
> Maybe it's a candidate for inclusion in Hildon Extras [1] -hint
> hint- ?

It's not yet perfect, but I think I'll get it soon into Hildon Extras.
The usage is as easy as calling "he_fancy_name_new(window);[1]" it will
take care of the rest alone.

I'll be back soon with some questions about transparency, composition
and signal emission, but first I have to sleep :)

http://zwong.de/wp-content/uploads/2009/10/transparent_overlay.png

Good Night!
Conny


[1] The name is not yet decided, so suggestions are welcome.


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


donaggio at gmail

Oct 23, 2009, 2:27 AM

Post #11 of 21 (954 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Thu, Oct 22, 2009 at 11:48 PM, Cornelius Hald <hald [at] icandy> wrote:

> On Wed, 2009-10-21 at 17:13 +0200, Luca Donaggio wrote:
> > If there's neither hardware button to toggle fullscreen mode nor a
> > default keyboard shortcut and the preferred method is via the
> > touchscreen then a specific widget should be included in hildon, just
> > to avoid duplicating the same code or, even worse, 'reinventing the
> > wheel' for every app.
> >
> > Maybe it's a candidate for inclusion in Hildon Extras [1] -hint
> > hint- ?
>
> It's not yet perfect, but I think I'll get it soon into Hildon Extras.
> The usage is as easy as calling "he_fancy_name_new(window);[1]" it will
> take care of the rest alone.
>
> I'll be back soon with some questions about transparency, composition
> and signal emission, but first I have to sleep :)
>
> http://zwong.de/wp-content/uploads/2009/10/transparent_overlay.png
>
> Good Night!
> Conny
>
>
> [1] The name is not yet decided, so suggestions are welcome.
>
>
>
Great Conny!

I'm no goot at finding names, but what about he_fullscreen_toggle_overlay?

Luca Donaggio


hald at icandy

Oct 23, 2009, 2:44 AM

Post #12 of 21 (960 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, 2009-10-23 at 11:27 +0200, Luca Donaggio wrote:

> I'm no goot at finding names, but what about
> he_fullscreen_toggle_overlay?

It's a good fit I think. Something shorter would be nice, though.

I was thinking about the following names, but they have problems too:

- HeFullscreenButton sounds like it is a very big button
- HeFullscreenOverlay sounds like a very big overlay

Originally I wanted to call it HeFullscreenManager, but I now removed
all the 'manager' functionality, so I can't really call it 'manager'
anymore ;)

Other suggestions?

Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


andrew at bleb

Oct 23, 2009, 2:53 AM

Post #13 of 21 (957 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, Oct 23, 2009 at 10:44, Cornelius Hald <hald [at] icandy> wrote:
> On Fri, 2009-10-23 at 11:27 +0200, Luca Donaggio wrote:
>
>> I'm no goot at finding names, but what about
>> he_fullscreen_toggle_overlay?
>
> It's a good fit I think. Something shorter would be nice, though.
>
> I was thinking about the following names, but they have problems too:
>
> - HeFullscreenButton sounds like it is a very big button
> - HeFullscreenOverlay sounds like a very big overlay

HeUnmaximiseButton (since another mechanism is used to *go*
fullscreen, isn't it)?

HTH,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb | http://www.bleb.org/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 23, 2009, 2:55 AM

Post #14 of 21 (953 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

2009/10/23 Cornelius Hald <hald [at] icandy>:
> On Fri, 2009-10-23 at 11:27 +0200, Luca Donaggio wrote:
>
>> I'm no goot at finding names, but what about
>> he_fullscreen_toggle_overlay?
>
> It's a good fit I think. Something shorter would be nice, though.
>
> I was thinking about the following names, but they have problems too:
>
> - HeFullscreenButton sounds like it is a very big button
> - HeFullscreenOverlay sounds like a very big overlay
>
> Originally I wanted to call it HeFullscreenManager, but I now removed
> all the 'manager' functionality, so I can't really call it 'manager'
> anymore ;)
>
> Other suggestions?
>
> Conny
>

HeFullscreenToggle ?

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


hald at icandy

Oct 23, 2009, 4:00 AM

Post #15 of 21 (956 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, 2009-10-23 at 10:55 +0100, Aniello Del Sorbo wrote:
> HeFullscreenToggle ?

I like that one. Andrew is of course right, that it doesn't really
toggle, it just allows to go from fullscreen to not-fullscreen. It's
difficult to put this into words and I think 'Fullscreen' should somehow
be part of the name.

So for now 'HeFullscreenToggle' is the winner. Thanks Aniello :)

Now if only someone could help me with those emission hooks...
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anidel at gmail

Oct 23, 2009, 4:07 AM

Post #16 of 21 (952 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

2009/10/23 Cornelius Hald <hald [at] icandy>:
> On Fri, 2009-10-23 at 10:55 +0100, Aniello Del Sorbo wrote:
>> HeFullscreenToggle ?
>
> I like that one. Andrew is of course right, that it doesn't really
> toggle, it just allows to go from fullscreen to not-fullscreen. It's
> difficult to put this into words and I think 'Fullscreen' should somehow
> be part of the name.
>
> So for now 'HeFullscreenToggle' is the winner. Thanks Aniello :)
>
> Now if only someone could help me with those emission hooks...
> Conny
>

Why is that not a toggle?

Can it also bring from non fullscreen to fullscreen?
Simply NOT fade away when in not fullscreen mode... may be passing
that flag via parameter?

HeFullscreenToggle -> whatever other param, <FADE_OUT> | <NO_FADE_OUT>

So, if I use it in my toolbar (where I'll leave empty space), it'll
look like a button in un-fullscreen mode with NO_FADE_OUT param.
If I use it in my un-fullscreen app with no toolbar, I still can use
it to toggle fullscreen.

--
anidel
Sent from London, Eng, United Kingdom
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


hald at icandy

Oct 23, 2009, 4:20 AM

Post #17 of 21 (945 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, 2009-10-23 at 12:07 +0100, Aniello Del Sorbo wrote:
> Why is that not a toggle?

Because I didn't make it a toggle :D

> Can it also bring from non fullscreen to fullscreen?
> Simply NOT fade away when in not fullscreen mode... may be passing
> that flag via parameter?
>
> HeFullscreenToggle -> whatever other param, <FADE_OUT> | <NO_FADE_OUT>
>
> So, if I use it in my toolbar (where I'll leave empty space), it'll
> look like a button in un-fullscreen mode with NO_FADE_OUT param.
> If I use it in my un-fullscreen app with no toolbar, I still can use
> it to toggle fullscreen.

That would be of course possible and once the code is in hildon extras
you can of course contribute to it.
I decided against it, simply because I personally don't need it. In
Conboy you activate the fullscreen mode using the menu or a keyboard
shortcut.
If you want a button on the toolbar, why not just add the button and add
gtk_window_fullscreen() as callback. That's almost a one liner + you get
the correct behavior of this button, e.g. spacing between other buttons,
colorful highlight while pressing etc...

Cheers!
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


philipp.zabel at gmail

Oct 23, 2009, 5:19 AM

Post #18 of 21 (949 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, Oct 23, 2009 at 1:00 PM, Cornelius Hald <hald [at] icandy> wrote:
> On Fri, 2009-10-23 at 10:55 +0100, Aniello Del Sorbo wrote:
>> HeFullscreenToggle ?
>
> I like that one. Andrew is of course right, that it doesn't really
> toggle, it just allows to go from fullscreen to not-fullscreen. It's
> difficult to put this into words and I think 'Fullscreen' should somehow
> be part of the name.
>
> So for now 'HeFullscreenToggle' is the winner. Thanks Aniello :)

Maybe use that name for a convenience ToggleButton derived widget that
one can add to the toolbar?
It could automatically take care of generating the transparent overlay
in fullscreen mode.

regards
Philipp
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


marius at pov

Oct 23, 2009, 6:31 AM

Post #19 of 21 (948 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, Oct 23, 2009 at 11:44:33AM +0200, Cornelius Hald wrote:
> On Fri, 2009-10-23 at 11:27 +0200, Luca Donaggio wrote:
>
> > I'm no goot at finding names, but what about
> > he_fullscreen_toggle_overlay?
>
> It's a good fit I think. Something shorter would be nice, though.
>
> I was thinking about the following names, but they have problems too:
>
> - HeFullscreenButton sounds like it is a very big button
> - HeFullscreenOverlay sounds like a very big overlay

How does it work, Gtk-wise? Is it a widget you add somewhere into your
widget tree? If so, where?

HeFullscreenOverlay sounds like a GtkBin subclass that contains your
main content area and draws the overlay in the corner when the app is
fullscreened.

HeFloatingFullscreenButton is too long, I suppose.

Marius Gedminas
--
After having done some test using hi-tech istruments (moving my mouse
during a kernel build) [...]
-- Davide Libenzi on lkml
Attachments: signature.asc (0.18 KB)


hald at icandy

Oct 23, 2009, 8:19 AM

Post #20 of 21 (940 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, 2009-10-23 at 16:31 +0300, Marius Gedminas wrote:
> On Fri, Oct 23, 2009 at 11:44:33AM +0200, Cornelius Hald wrote:
> > On Fri, 2009-10-23 at 11:27 +0200, Luca Donaggio wrote:
> >
> > > I'm no goot at finding names, but what about
> > > he_fullscreen_toggle_overlay?
> >
> > It's a good fit I think. Something shorter would be nice, though.
> >
> > I was thinking about the following names, but they have problems too:
> >
> > - HeFullscreenButton sounds like it is a very big button
> > - HeFullscreenOverlay sounds like a very big overlay
>
> How does it work, Gtk-wise? Is it a widget you add somewhere into your
> widget tree? If so, where?

Somewhere, where you have access to your window object you do the
following:

he_fullscreen_toggle_new (GTK_WINDOW(win));

The HeFullscreenToggle attaches itself to the window and listens for
"window state changed" events. If the window changes its state to
fullscreen, the HeFullscreenToggle displays itself. If the state of the
window changes back to unfullscreen, the HeFullscreenToggle hides itself
again.

While the window is in fullscreen state. The HeFullscreenToggle also
listens to all "button press" events. So always if you touch the display
it is displayed. After 5 seconds of inactivity its hidden again. Just
like in the browser.

Once you click on the overlay button the parent window is set to
unfullscreen.

This of course means that your application still has to implement the
logic how and when it will switch to fullscreen. I think it's the right
way to go, because different applications have different needs. We'll
see if others find it usefull.

The code still needs cleaning, naming and testing before I put it in HE.
But if you're curious it's currently here:
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/conboy/src/fullscreenmanager.c?revision=466&root=conboy&view=markup

> HeFullscreenOverlay sounds like a GtkBin subclass that contains your
> main content area and draws the overlay in the corner when the app is
> fullscreened.
>
> HeFloatingFullscreenButton is too long, I suppose.

Yea, it's a bit difficult to describe it in one word ;)

Cheers!
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


hald at icandy

Oct 23, 2009, 8:21 AM

Post #21 of 21 (940 views)
Permalink
Re: Fremantle fullscreen mode [was Re: Call for testers with N900 for vncviewer] [In reply to]

On Fri, 2009-10-23 at 14:19 +0200, pHilipp Zabel wrote:
> On Fri, Oct 23, 2009 at 1:00 PM, Cornelius Hald <hald [at] icandy> wrote:
> > On Fri, 2009-10-23 at 10:55 +0100, Aniello Del Sorbo wrote:
> >> HeFullscreenToggle ?
> >
> > I like that one. Andrew is of course right, that it doesn't really
> > toggle, it just allows to go from fullscreen to not-fullscreen. It's
> > difficult to put this into words and I think 'Fullscreen' should somehow
> > be part of the name.
> >
> > So for now 'HeFullscreenToggle' is the winner. Thanks Aniello :)
>
> Maybe use that name for a convenience ToggleButton derived widget that
> one can add to the toolbar?
> It could automatically take care of generating the transparent overlay
> in fullscreen mode.

I could use that name for a convenience ToggleButton, unfortunately
there is no such button ;) Of course, if someone wants to implement
that, drop me a line and we'll figure out the names.

I still have to test and clean my code before it will go to HE, so there
is still some time regarding the name :)

Cheers!
Conny


_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.