The toolbar is not the same widget ?

2009/10/15 Enlightenment SVN <no-re...@enlightenment.org>

> Log:
>  Work on a new panel widget. Still not complete yet, but it's started :)
>
>
> Author:       devilhorns
> Date:         2009-10-15 13:34:11 -0700 (Thu, 15 Oct 2009)
> New Revision: 43100
>
> Modified:
>  trunk/TMP/st/elementary/data/themes/default.edc
> trunk/TMP/st/elementary/src/bin/Makefile.am
> trunk/TMP/st/elementary/src/bin/test.c trunk/TMP/st/elementary/src/lib/
> Elementary.h.in trunk/TMP/st/elementary/src/lib/Makefile.am
> trunk/TMP/st/elementary/src/lib/elm_notify.c
>
> Modified: trunk/TMP/st/elementary/data/themes/default.edc
> ===================================================================
> --- trunk/TMP/st/elementary/data/themes/default.edc     2009-10-15 19:33:28
> UTC (rev 43099)
> +++ trunk/TMP/st/elementary/data/themes/default.edc     2009-10-15 20:34:11
> UTC (rev 43100)
> @@ -16748,4 +16748,103 @@
>          }
>       }
>    }
> +
>
> +/////////////////////////////////////////////////////////////////////////////
> +// PANEL
>
> +////////////////////////////////////////////////////////////////////////////
> +group
> +{
> +   name: "elm/panel/base/default";
> +   images
> +     {
> +        image: "bt_dis_base.png" COMP;
> +     }
> +   parts
> +     {
> +        part
> +          {
> +             name: "base";
> +             type: IMAGE;
> +             mouse_events: 0;
> +             description
> +               {
> +                  state: "default" 0.0;
> +                  color: 255 255 255 0;
> +                  image
> +                    {
> +                       normal: "bt_dis_base.png";
> +                       border: 4 4 4 4;
> +                    }
> +               }
> +             description
> +               {
> +                  state: "visible" 0.0;
> +                  inherit: "default" 0.0;
> +                  color: 255 255 255 255;
> +               }
> +          }
> +        part
> +          {
> +             name: "elm.swallow.content";
> +             type: SWALLOW;
> +             description
> +               {
> +                  state: "default" 0.0;
> +                  rel2.offset: -48 -1;
> +               }
> +          }
> +        part
> +          {
> +             name: "elm.swallow.arrow";
> +             type: SWALLOW;
> +             description
> +               {
> +                  state: "default" 0.0;
> +                  aspect: 1.0 1.0;
> +                  aspect_preference: HORIZONTAL;
> +                  rel1
> +                    {
> +                       relative: 1.0 0.0;
> +                       to_x: "elm.swallow.content";
> +                    }
> +                  rel2.offset: -2 -1;
> +               }
> +          }
> +     }
> +   programs
> +     {
> +        program
> +          {
> +             name: "show";
> +             signal: "elm,action,show";
> +             source: "elm";
> +             action: STATE_SET "visible" 0.0;
> +             target: "base";
> +          }
> +        program
> +          {
> +             name: "show2";
> +             signal: "show";
> +             action: STATE_SET "default" 0.0;
> +             target: "base";
> +             after: "show3";
> +          }
> +        program
> +          {
> +             name: "show3";
> +             action: STATE_SET "visible" 0.0;
> +             target: "base";
> +             transition: LINEAR 0.5;
> +          }
> +        program
> +          {
> +             name: "hide";
> +             signal: "elm,action,hide";
> +             source: "elm";
> +             action: STATE_SET "default" 0.0;
> +             target: "base";
> +          }
> +     }
>  }
> +
> +}
>
> Modified: trunk/TMP/st/elementary/src/bin/Makefile.am
> ===================================================================
> --- trunk/TMP/st/elementary/src/bin/Makefile.am 2009-10-15 19:33:28 UTC
> (rev 43099)
> +++ trunk/TMP/st/elementary/src/bin/Makefile.am 2009-10-15 20:34:11 UTC
> (rev 43100)
> @@ -63,7 +63,8 @@
>  test_icon_desktops.c \
>  test_notify.c \
>  test_slideshow.c \
> -test_menu.c
> +test_menu.c \
> +test_panel.c
>
>  elementary_test_LDADD = $(top_builddir)/src/lib/libelementary.la
>  elementary_test_LDFLAGS =
>
> Modified: trunk/TMP/st/elementary/src/bin/test.c
> ===================================================================
> --- trunk/TMP/st/elementary/src/bin/test.c      2009-10-15 19:33:28 UTC
> (rev 43099)
> +++ trunk/TMP/st/elementary/src/bin/test.c      2009-10-15 20:34:11 UTC
> (rev 43100)
> @@ -52,6 +52,7 @@
>  void test_notify(void *data, Evas_Object *obj, void *event_info);
>  void test_slideshow(void *data, Evas_Object *obj, void *event_info);
>  void test_menu(void *data, Evas_Object *obj, void *event_info);
> +void test_panel(void *data, Evas_Object *obj, void *event_info);
>
>
>  static void
> @@ -187,9 +188,8 @@
>    elm_list_item_append(li, "Notify", NULL, NULL, test_notify, NULL);
>    elm_list_item_append(li, "Slideshow", NULL, NULL, test_slideshow, NULL);
>    elm_list_item_append(li, "Menu", NULL, NULL, test_menu, NULL);
> +   elm_list_item_append(li, "Panel", NULL, NULL, test_panel, NULL);
>
> -
> -
>    elm_list_go(li);
>
>    /* set an initial window size */
>
> Modified: trunk/TMP/st/elementary/src/lib/Elementary.h.in
> ===================================================================
> --- trunk/TMP/st/elementary/src/lib/Elementary.h.in     2009-10-15
> 19:33:28 UTC (rev 43099)
> +++ trunk/TMP/st/elementary/src/lib/Elementary.h.in     2009-10-15
> 20:34:11 UTC (rev 43100)
> @@ -973,6 +973,18 @@
>     * "scroll,drag,stop" - dragging the contents around has stopped
>     */
>
> +   typedef enum _Elm_Panel_Orient
> +     {
> +        ELM_PANEL_ORIENT_TOP,
> +        ELM_PANEL_ORIENT_BOTTOM,
> +        ELM_PANEL_ORIENT_LEFT,
> +        ELM_PANEL_ORIENT_RIGHT,
> +     } Elm_Panel_Orient;
> +     EAPI Evas_Object *elm_panel_add(Evas_Object *parent);
> +     EAPI void         elm_panel_orient_set(Evas_Object *obj,
> Elm_Panel_Orient orient);
> +     EAPI void         elm_panel_timeout_set(Evas_Object *obj, int
> timeout);
> +     EAPI void         elm_panel_content_set(Evas_Object *obj, Evas_Object
> *content);
> +
>  #ifdef __cplusplus
>  }
>  #endif
>
> Modified: trunk/TMP/st/elementary/src/lib/Makefile.am
> ===================================================================
> --- trunk/TMP/st/elementary/src/lib/Makefile.am 2009-10-15 19:33:28 UTC
> (rev 43099)
> +++ trunk/TMP/st/elementary/src/lib/Makefile.am 2009-10-15 20:34:11 UTC
> (rev 43100)
> @@ -65,6 +65,7 @@
>  elm_notify.c \
>  elm_slideshow.c \
>  elm_menu.c \
> +elm_panel.c \
>  \
>  elc_notepad.c \
>  elc_anchorview.c \
>
> Modified: trunk/TMP/st/elementary/src/lib/elm_notify.c
> ===================================================================
> --- trunk/TMP/st/elementary/src/lib/elm_notify.c        2009-10-15 19:33:28
> UTC (rev 43099)
> +++ trunk/TMP/st/elementary/src/lib/elm_notify.c        2009-10-15 20:34:11
> UTC (rev 43100)
> @@ -65,7 +65,8 @@
>  static void
>  _changed_size_hints(void *data, Evas *e, Evas_Object *obj, void
> *event_info)
>  {
> -   Widget_Data *wd = elm_widget_data_get(data);
> +//   Widget_Data *wd = elm_widget_data_get(data);
> +
>    _sizing_eval(data);
>  }
>
> @@ -165,7 +166,7 @@
>        ecore_timer_del(wd->timer);
>        wd->timer = NULL;
>      }
> -   if (wd->timeout>0)
> +   if (wd->timeout > 0)
>      wd->timer = ecore_timer_add(wd->timeout, _timer_cb, obj);
>  }
>
> @@ -322,7 +323,7 @@
>
>    if (wd->timer) ecore_timer_del(wd->timer);
>    wd->timer = NULL;
> -   if (wd->timeout>0)
> +   if (wd->timeout > 0)
>      wd->timer = ecore_timer_add(wd->timeout, _timer_cb, obj);
>  }
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>



-- 
Regards.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to