Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_moveresize.c e_winlist.c e_winlist.h 


Log Message:


writign stuff

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_moveresize.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_moveresize.c      7 May 2005 16:22:29 -0000       1.10
+++ e_moveresize.c      7 Jun 2005 13:53:27 -0000       1.11
@@ -16,6 +16,8 @@
 
    if (_disp_pop) e_object_del(E_OBJECT(_disp_pop));
    _disp_pop = e_popup_new(zone, 0, 0, 1, 1);
+   if (!_disp_pop) return;
+   e_popup_layer_set(_disp_pop, 255);
    _obj = edje_object_add(_disp_pop->evas);
    e_theme_edje_object_set(_obj, "base/theme/borders",
                           "widgets/border/default/resize");
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_winlist.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_winlist.c 7 Jun 2005 13:05:18 -0000       1.1
+++ e_winlist.c 7 Jun 2005 13:53:27 -0000       1.2
@@ -6,6 +6,7 @@
 /* local subsystem functions */
 
 /* local subsystem globals */
+static E_Popup *winlist = NULL;
 
 /* externally accessible functions */
 int
@@ -17,6 +18,7 @@
 int
 e_winlist_shutdown(void)
 {
+   e_winlist_hide();
    return 1;
 }
 
@@ -30,3 +32,62 @@
  * 1 - 9, 0 = select window 1 - 9, 10
  * local subsystem functions
  */
+
+void
+e_winlist_show(E_Zone *zone)
+{
+   int x, y, w, h;
+   Evas_Object *o;
+   
+   if (winlist) return;
+
+   /* FIXME: should be config */
+   w = zone->w / 2;
+   if (w > 400) w = 400;
+   h = zone->h / 2;
+   if (h > 800) h = 800;
+   else if (h < 400) h = 400;
+   
+   winlist = e_popup_new(zone, x, y, w, h); 
+   if (!winlist) return;
+   e_popup_layer_set(winlist, 255);
+   o = edje_object_add(winlist->evas);
+   /* FIXME: need theme stuff */
+   e_theme_edje_object_set(o, "base/theme/winlist",
+                          "widgets/winlist/main");
+   evas_object_move(o, 0, 0);
+   evas_object_resize(o, w, h);
+   evas_object_show(o);
+   e_popup_edje_bg_object_set(winlist, o);
+   /* FIXME: bg obj needs to be stored */
+   /* FIXME: create and swallow box */
+   /* FIXME: fill box with current clients */
+   /* FIXME: configure list with current focused window */
+   /* FIXME: grab mouse and keyboard */
+   
+   e_popup_show(winlist);
+}
+
+void
+e_winlist_hide(void)
+{
+   if (!winlist) return;
+   e_popup_hide(winlist);
+   e_object_del(E_OBJECT(winlist));
+   winlist = NULL;
+}
+
+void
+e_winlist_next(void)
+{
+}
+
+void
+e_winlist_prev(void)
+{
+}
+
+void
+e_winlist_modifiers_set(int mod)
+{
+}
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_winlist.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_winlist.h 7 Jun 2005 13:05:18 -0000       1.1
+++ e_winlist.h 7 Jun 2005 13:53:27 -0000       1.2
@@ -10,7 +10,7 @@
 EAPI int e_winlist_init(void);
 EAPI int e_winlist_shutdown(void);
 
-EAPI void e_winlist_show(void);
+EAPI void e_winlist_show(E_Zone *zone);
 EAPI void e_winlist_hide(void);
 EAPI void e_winlist_next(void);
 EAPI void e_winlist_prev(void);




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to