Dear Gustavo

2012년 5월 23일 수요일에 Gustavo Sverzut Barbieri님이 작성:

> Hi,
>
> what's the use case in setting a maximum number of items manually?
>

If we want to expand the size of items as window size, we will use
ELM_TOOLBAR_SHRINK_EXPAND mode.
At that time, if the items are more than what we want to show, we should
limit the number of visible items.
So I limited by using maximum number.
If I want to show 5 items among the 12 items regardless of window size, is
there any other method?


> To me this seems like a hack. It should be defined based on the available
> space. Otherwise you'll get horrible user interfaces by changing screen
> resolution, or even screen orientation in mobile devices.
>

In current toolbar, there are more item. If the more item is clicked, the
menu widget is shown the below of toolbar.
It is shown not available space, too.
I think the location of more panel is not a problem. If there are some ugly
user interface by changing resolution, I'll fix it.

Thanks for your advice and if there is any alternative, please explain it.

Regards,
--
Jaehwan Kim.


>
> Then please explain why it's needed, or remove such api.
>
> Regards,
> -- Gustavo
>
> On Tue, May 22, 2012 at 2:18 AM, Enlightenment SVN <
> [email protected]> wrote:
>
> > Log:
> > Toolbar: Add the more panel feature in toolbar. When it is the
> > ELM_TOOLBAR_SHRINK_EXPAND mode and the max item is set, the items over
> max
> > number are located in more panel.
> >  The APIs are added for this feature.(elm_toolbar_more_item_get,
> > elm_toolbar_items_max_set/get)
> >
> >
> > Author:       jaehwan
> > Date:         2012-05-21 22:18:12 -0700 (Mon, 21 May 2012)
> > New Revision: 71297
> > Trac:         http://trac.enlightenment.org/e/changeset/71297
> >
> > Modified:
> >  trunk/elementary/ChangeLog
> > trunk/elementary/data/themes/widgets/toolbar.edc
> > trunk/elementary/src/bin/test_toolbar.c
> > trunk/elementary/src/lib/elm_toolbar.c
> > trunk/elementary/src/lib/elm_toolbar.h
> >
> > Modified: trunk/elementary/ChangeLog
> > ===================================================================
> > --- trunk/elementary/ChangeLog  2012-05-22 04:55:49 UTC (rev 71296)
> > +++ trunk/elementary/ChangeLog  2012-05-22 05:18:12 UTC (rev 71297)
> > @@ -77,3 +77,9 @@
> >
> >        * Fix fileselector selection done bug and pass the right string.
> >
> > +2012-05-22  Jaehwan Kim
> > +
> > +       * Toolbar: Add the more panel feature in toolbar.
> > +        When it is the ELM_TOOLBAR_SHRINK_EXPAND mode and the max item
> is
> > set,
> > +        the items over max number are located in more panel.
> > +        The APIs are added for this feature.(elm_toolbar_more_item_get,
> > elm_toolbar_items_max_set/get)
> >
> > Modified: trunk/elementary/data/themes/widgets/toolbar.edc
> > ===================================================================
> > --- trunk/elementary/data/themes/widgets/toolbar.edc    2012-05-22
> > 04:55:49 UTC (rev 71296)
> > +++ trunk/elementary/data/themes/widgets/toolbar.edc    2012-05-22
> > 05:18:12 UTC (rev 71297)
> > @@ -131,6 +131,175 @@
> >    }
> >  }
> >
> > +group { name: "elm/toolbar/more/default";
> > +   images {
> > +      image: "toolbar_separator_h.png" COMP;
> > +   }
> > +   parts {
> > +      part { name: "base";
> > +         mouse_events: 1;
> > +         description { state: "default" 0.0;
> > +            rel1.relative: 0.0 0.0;
> > +            rel2.relative: 1.0 0.0;
> > +            image {
> > +               normal: "bt_dis_base.png";
> > +               border: 4 4 4 4;
> > +            }
> > +            image.middle: SOLID;
> > +         }
> > +         description { state: "open" 0.0;
> > +            inherit: "default" 0.0;
> > +            rel2.relative: 1.0 1.0;
> > +         }
> > +         description { state: "open2" 0.0;
> > +            inherit: "default" 0.0;
> > +            rel2.relative: 1.0 2.0;
> > +         }
> > +      }
> > +      part { name: "clipper";
> > +         type: RECT;
> > +         mouse_events: 0;
> > +         description {
> > +            state: "default" 0.0;
> > +            fixed: 1 1;
> > +            rel1 {
> > +               to: "base";
> > +            }
> > +            rel2 {
> > +               to: "base";
> > + --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: [email protected] <javascript:;>
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected] <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to