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

Mailing List Archive: Maemo: Developers

Simple dialogs and static multiined text in Fremantle UI

 

 

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


lists at harbaum

Nov 5, 2009, 5:35 AM

Post #1 of 10 (227 views)
Permalink
Simple dialogs and static multiined text in Fremantle UI

Hi,

one of the reason why people think that gpxview is not fremanle'ized at all
is that two widget i commonly use look ugly under fremantle:

- When having to display a text of arbitary length i use a hildontextview which
i set to non-editable. The downside: The result is black letters in white ground
which doesn't match the fremantle style at all.

Question: What is the preferred way to display a few lines of static formatted
text under fremantle?

- I am using the gtk_message_dialog quite often for all kinds of user
notifications. The problem is that text is often truncated in an ugly way
and that the entire text is selected by default (making it appear black
on blue background. I have been told that this is due to fremantle
being unable to properly display text+icons. If i remove any icon, i
end up with a text which isn't truncated but still "selected".

Question: What is the fremantle way of displaying simple dialog
boxes to e.g. display error messages or confirm an action?

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


Fred at Lefevere-Laoide

Nov 5, 2009, 5:38 AM

Post #2 of 10 (220 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

HildonNote ?

Le 05/11/2009 14:35, Till Harbaum a écrit :
> Hi,
>
> one of the reason why people think that gpxview is not fremanle'ized at all
> is that two widget i commonly use look ugly under fremantle:
>
> - When having to display a text of arbitary length i use a hildontextview which
> i set to non-editable. The downside: The result is black letters in white ground
> which doesn't match the fremantle style at all.
>
> Question: What is the preferred way to display a few lines of static formatted
> text under fremantle?
>
> - I am using the gtk_message_dialog quite often for all kinds of user
> notifications. The problem is that text is often truncated in an ugly way
> and that the entire text is selected by default (making it appear black
> on blue background. I have been told that this is due to fremantle
> being unable to properly display text+icons. If i remove any icon, i
> end up with a text which isn't truncated but still "selected".
>
> Question: What is the fremantle way of displaying simple dialog
> boxes to e.g. display error messages or confirm an action?
>
> Till
> _______________________________________________
> maemo-developers mailing list
> maemo-developers[at]maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

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


csaavedra at igalia

Nov 5, 2009, 5:52 AM

Post #3 of 10 (221 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

El jue, 05-11-2009 a las 14:35 +0100, Till Harbaum escribió:
>
>
> Question: What is the preferred way to display a few lines of static
> formatted text under fremantle?

GtkLabel? Depends on how much you want to format your text of course,
but you can use markup with it. I'd suggest keeping it simple. If you
want to give it a lot of formatting then you probably are on your own..

> Question: What is the fremantle way of displaying simple dialog
> boxes to e.g. display error messages or confirm an action?

hildon_note_new_conformation() for confirmation dialogs.

For errors, depending on the severity you might want to use a hildon
banner or an information note. Have a look at the UI specs, they are
published somewhere in Forum Nokia.

Claudio


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


lists at harbaum

Nov 6, 2009, 11:21 AM

Post #4 of 10 (195 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

HildonNote is ugly as it doesn't match the fremantle cancel behaviour.
It actually displays the "cancel" button and cannot be cancelled by clicking
outside of it.

Till

Am Donnerstag 05 November 2009 schrieb Fred Lefévère-Laoide:
> HildonNote ?
>
> Le 05/11/2009 14:35, Till Harbaum a écrit :
> > Hi,
> >
> > one of the reason why people think that gpxview is not fremanle'ized at all
> > is that two widget i commonly use look ugly under fremantle:
> >
> > - When having to display a text of arbitary length i use a hildontextview which
> > i set to non-editable. The downside: The result is black letters in white ground
> > which doesn't match the fremantle style at all.
> >
> > Question: What is the preferred way to display a few lines of static formatted
> > text under fremantle?
> >
> > - I am using the gtk_message_dialog quite often for all kinds of user
> > notifications. The problem is that text is often truncated in an ugly way
> > and that the entire text is selected by default (making it appear black
> > on blue background. I have been told that this is due to fremantle
> > being unable to properly display text+icons. If i remove any icon, i
> > end up with a text which isn't truncated but still "selected".
> >
> > Question: What is the fremantle way of displaying simple dialog
> > boxes to e.g. display error messages or confirm an action?
> >
> > Till
> > _______________________________________________
> > maemo-developers mailing list
> > maemo-developers[at]maemo.org
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>
>

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


agarcia at igalia

Nov 6, 2009, 11:38 AM

Post #5 of 10 (195 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

On Fri, Nov 06, 2009 at 08:21:54PM +0100, Till Harbaum / Lists wrote:

> HildonNote is ugly as it doesn't match the fremantle cancel
> behaviour. It actually displays the "cancel" button and cannot be
> cancelled by clicking outside of it.

The confirmation note is designed for questions that are important
enough to make sure that the user doesn't say "no" by accidentally
clicking outside.

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


hald at icandy

Nov 6, 2009, 11:38 AM

Post #6 of 10 (195 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

On Fri, 2009-11-06 at 20:21 +0100, Till Harbaum / Lists wrote:
> HildonNote is ugly as it doesn't match the fremantle cancel behaviour.
> It actually displays the "cancel" button and cannot be cancelled by clicking
> outside of it.

If I remember correctly you can create a (normal) GtkDialog, put a
GtkLabel into the content area and set the label to word wrap. It should
look like HildonNote but can be canceled by clicking outside.

Conny


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


agarcia at igalia

Nov 6, 2009, 12:07 PM

Post #7 of 10 (196 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

On Fri, Nov 06, 2009 at 09:09:09PM +0100, Till Harbaum / Lists wrote:

> Argh ... so we are back to my initial question: How does one
> properly display a simple message box in fremantle. Something with
> "cancel", "do this" and "do that".

Try a standard GtkDialog with a label inside.

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


lists at harbaum

Nov 6, 2009, 12:09 PM

Post #8 of 10 (195 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

Hi,

Am Freitag 06 November 2009 schrieb Alberto Garcia:
> On Fri, Nov 06, 2009 at 08:21:54PM +0100, Till Harbaum / Lists wrote:
>
> > HildonNote is ugly as it doesn't match the fremantle cancel
> > behaviour. It actually displays the "cancel" button and cannot be
> > cancelled by clicking outside of it.
>
> The confirmation note is designed for questions that are important
> enough to make sure that the user doesn't say "no" by accidentally
> clicking outside.

Argh ... so we are back to my initial question: How does one properly
display a simple message box in fremantle. Something with "cancel",
"do this" and "do that".

So far we have:
- gtkmessagebox which looks ugly since it selects the text by default
in fremantle making it look "inverted"
- hildonnote which looks ugly since it doesn't cope with the cancel
button

Any alternatives?

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


lists at harbaum

Nov 6, 2009, 12:19 PM

Post #9 of 10 (195 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

Hi,

Am i the only one who thinks that this is a step backwards?
These are things that used to be provided by gtk and with fremantle
i have to do this myself? Why?

Why don't the gtkmessagebox's work? Why can't hildonnote handle
cancel buttons like the rest of the system?

Till

Am Freitag 06 November 2009 schrieb Alberto Garcia:
> On Fri, Nov 06, 2009 at 09:09:09PM +0100, Till Harbaum / Lists wrote:
>
> > Argh ... so we are back to my initial question: How does one
> > properly display a simple message box in fremantle. Something with
> > "cancel", "do this" and "do that".
>
> Try a standard GtkDialog with a label inside.
>
> Berto
> _______________________________________________
> maemo-developers mailing list
> maemo-developers[at]maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>

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


agarcia at igalia

Nov 6, 2009, 12:44 PM

Post #10 of 10 (193 views)
Permalink
Re: Simple dialogs and static multiined text in Fremantle UI [In reply to]

On Fri, Nov 06, 2009 at 09:19:57PM +0100, Till Harbaum / Lists wrote:

> Why don't the gtkmessagebox's work?

Hmm... I've just checked, and it looks like a bug to me. I can try to
have a deeper look next week.

> Why can't hildonnote handle cancel buttons like the rest of the
> system?

HildonNote was explicitly designed to behave like that. See the Hildon
2.2 Widget UI Specification, page 37:

http://www.forum.nokia.com/Tools_Docs_and_Code/Documentation/Latest.xhtml

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

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.