Enlightenment CVS committal

Author  : xcomputerman
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/data/themes/default


Modified Files:
        default.edc 


Log Message:
Support for session selection in default theme. Probably needs more work.


===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/data/themes/default/default.edc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- default.edc 31 Oct 2003 04:08:17 -0000      1.10
+++ default.edc 22 Dec 2003 20:42:57 -0000      1.11
@@ -158,6 +158,14 @@
    image, "e118.png" LOSSY 95;
    image, "e119.png" LOSSY 95;
    image, "e120.png" LOSSY 95;
+   image, "menu_bottom_center.png"             LOSSY 80;
+   image, "menu_bottom_left.png"               LOSSY 80;
+   image, "menu_bottom_right.png"              LOSSY 80;
+   image, "menu_top_center.png"                LOSSY 80;
+   image, "menu_top_left.png"          LOSSY 80;
+   image, "menu_top_right.png"         LOSSY 80;
+   image, "menu.png"           LOSSY 80;
+
 }
 
 collections {
@@ -1327,165 +1335,435 @@
               }
            }
         }
-/*      
-        part
-          {
-             name, "EntranceSession";
-             type,     TEXT;
-             mouse_events, 1;
-             effect, SOFT_SHADOW;
-             description
+           part
+           {
+               name, "EntranceSessionListClip";
+               type, RECT;
+               mouse_events, 1;
+               description
                {
-                  state, "default" 0.0;
-                  visible, 0;
-                  rel1
-                    {
-                       relative, 1.0 0.5;
-                       offset, 5 -20;
-                    }
-                  rel2
-                    {
-                       relative, 1.0 0.5;
-                       offset, 400 20;
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.5;
+                       offset, 0 0;
+                       to, "background";
                    }
-                   color, 100 100 100 192;
-                   color3, 227 227 227 192;
-                   text
+                   rel2
                    {
-                       text, "Default";
-                       font, "Vera";
-                       size, 20;
-                       fit,  0 0;
-                       align, 0.0 0.0;
+                       relative, 0.0 0.5;
+                       offset, 0 0;
+                       to, "background";
                    }
+                   color, 255 255 255 0;
                }
                description
                {
-                   state, "SessionEnlightenment" 0.0;
-                   visible, 0;
+                   state, "opening" 0.0;
+                   visible, 1;
                    rel1
                    {
-                       relative, 1.0 0.5;
-                       offset, 5 -20;
+                       relative, 0.0 0.5;
+                       offset, 20 -40;
+                       to, "background";
                    }
                    rel2
                    {
-                       relative, 1.0 0.5;
-                       offset, 400 20;
+                       relative, 0.0 0.5;
+                       offset, 240 40;
+                       to, "background";
                    }
-                   color, 100 100 100 192;
-                   color3, 227 227 227 192;
-                   text
+                   color, 255 255 255 32;
+               }
+               description
+               {
+                   state, "visible" 0.0;
+                   visible, 1;
+                   rel1
                    {
-                       text, "Enlightenment";
-                       font, "orbit";
-                       size, 20;
-                       fit,  0 0;
-                       align, 0.0 0.0;
+                       relative, 0.0 0.5;
+                       offset, 20 -230;
+                       to, "background";
                    }
+                   rel2
+                   {
+                       relative, 0.0 0.5;
+                       offset, 200 230;
+                       to, "background";
+                   }
+                   color, 255 255 255 255;
                }
+           }
+           part
+           {
+               name, "EntranceSessionMenuTopLeft";
+               type,   IMAGE;
+               mouse_events, 0;
+               clip_to, "EntranceSessionListClip";
                description
                {
-                   state, "SessionGnome" 0.0;
-                   visible, 0;
+                   state, "default" 0.0;
+                   visible, 1;
                    rel1
                    {
-                       relative, 1.0 0.5;
-                       offset, 5 -20;
+                       relative, 0.0 0.0;
+                       offset, 0 0;
+                       to, "EntranceSessionListClip";
                    }
                    rel2
                    {
-                       relative, 1.0 0.5;
-                       offset, 400 20;
+                       relative, 0.0 0.0;
+                       offset, 5 20;
+                       to, "EntranceSessionListClip";
                    }
-                   color, 100 100 100 192;
-                   color3, 227 227 227 192;
-                   text
+                   image
                    {
-                       text, "Gnome";
-                       font, "Vera";
-                       size, 20;
-                       fit,  0 0;
-                       align, 0.0 0.5;
+                       normal, "menu_top_left.png";
                    }
                }
+           }
+           part
+           {
+               name, "EntranceSessionMenuTopRight";
+               type,   IMAGE;
+               mouse_events, 0;
+               clip_to, "EntranceSessionListClip";
                description
                {
-                   state, "SessionKDE" 0.0;
-                   visible, 0;
+                   state, "default" 0.0;
+                   visible, 1;
                    rel1
                    {
-                       relative, 1.0 0.5;
-                       offset, 5 -20;
+                       relative, 1.0 0.0;
+                       offset, -5 0;
+                       to, "EntranceSessionListClip";
                    }
                    rel2
                    {
-                       relative, 1.0 0.5;
-                       offset, 400 20;
+                       relative, 1.0 0.0;
+                       offset, 0 20;
+                       to, "EntranceSessionListClip";
                    }
-                   color, 100 100 100 192;
-                   color3, 227 227 227 192;
-                   text
+                   image
                    {
-                       text, "KDE";
-                       font, "Vera";
-                       size, 20;
-                       fit,  0 0;
-                       align, 0.0 0.5;
+                       normal, "menu_top_right.png";
                    }
                }
+           }
+           part
+           {
+               name, "EntranceSessionMenuTopCenter";
+               type,   IMAGE;
+               mouse_events, 0;
+               clip_to, "EntranceSessionListClip";
                description
                {
-                   state, "SessionBlackbox" 0.0;
-                   visible, 0;
+                   state, "default" 0.0;
+                   visible, 1;
                    rel1
                    {
-                       relative, 1.0 0.5;
-                       offset, 5 -20;
+                       relative, 0.0 0.0;
+                       offset, 5 0;
+                       to, "EntranceSessionListClip";
                    }
                    rel2
                    {
-                       relative, 1.0 0.5;
-                       offset, 400 20;
+                       relative, 1.0 0.0;
+                       offset, -5 20;
+                       to, "EntranceSessionListClip";
+                   }
+                   image
+                   {
+                       normal, "menu_top_center.png";
+                   }
+               }
+           }
+           part
+           {
+               name, "EntranceSessionMenuTitle";
+               type, TEXT;
+               mouse_events, 1;
+               effect, SHADOW;
+               clip_to, "EntranceSessionListClip";
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 1.0 0.0;
+                       offset, 2 2;
+                       to_x, "EntranceSessionMenuTopLeft";
+                       to_y, "EntranceSessionMenuTopCenter";
+                   }
+                   rel2
+                   {
+                       relative, 0.0 1.0;
+                       offset, -2 -2;
+                       to_x, "EntranceSessionMenuTopRight";
+                       to_y, "EntranceSessionMenuTopCenter";
                    }
-                   color, 100 100 100 192;
-                   color3, 227 227 227 192;
+                   color, 255 255 255 160;
+                   color3, 0 0 0 80;
                    text
                    {
-                       text, "Blackbox";
+                       text, "Select a Session";
                        font, "Vera";
-                       size, 20;
-                       fit,  0 0;
-                       align, 0.0 0.5;
+                       size, 12;
+                       align, 0.5 0.5;
+                       fit, 0 0;
                    }
                }
+           }
+           part
+           {
+               name, "EntranceSessionMenuBottomCenter";
+               type,   IMAGE;
+               mouse_events, 0;
+               clip_to, "EntranceSessionListClip";
                description
                {
-                   state, "SessionFailsafe" 0.0;
-                   visible, 0;
+                   state, "default" 0.0;
+                   visible, 1;
                    rel1
                    {
-                       relative, 1.0 0.5;
+                       relative, 0.0 1.0;
                        offset, 5 -20;
+                       to, "EntranceSessionListClip";
                    }
                    rel2
                    {
-                       relative, 1.0 0.5;
-                       offset, 400 20;
+                       relative, 1.0 1.0;
+                       offset, -5 0;
+                       to, "EntranceSessionListClip";
                    }
-                   color, 100 100 100 192;
-                   color3, 227 227 227 192;
-                   text
+                   image
                    {
-                       text, "Failsafe";
-                       font, "Vera";
-                       size, 20;
-                       fit,  0 0;
-                       align, 0.0 0.5;
+                       normal, "menu_bottom_center.png";
+                   }
+               }
+           }
+           part
+           {
+               name, "EntranceSessionMenuBottomLeft";
+               type,   IMAGE;
+               mouse_events, 0;
+               clip_to, "EntranceSessionListClip";
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 1.0;
+                       offset, 0 -20;
+                       to, "EntranceSessionListClip";
+                   }
+                   rel2
+                   {
+                       relative, 0.0 1.0;
+                       offset, 5 0;
+                       to, "EntranceSessionListClip";
+                   }
+                   image
+                   {
+                       normal, "menu_bottom_left.png";
+                   }
+               }
+           }
+           part
+           {
+               name, "EntranceSessionMenuBottomRight";
+               type,   IMAGE;
+               mouse_events, 0;
+               clip_to, "EntranceSessionListClip";
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 1.0 1.0;
+                       offset, -5 -20;
+                       to, "EntranceSessionListClip";
+                   }
+                   rel2
+                   {
+                       relative, 1.0 1.0;
+                       offset, 0 0;
+                       to, "EntranceSessionListClip";
+                   }
+                   image
+                   {
+                       normal, "menu_bottom_right.png";
+                   }
+               }
+           }
+           part
+           {
+               name, "EntranceSessionMenu";
+               type,   RECT;
+               mouse_events, 0;
+               clip_to, "EntranceSessionListClip";
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.0;
+                       offset, 1 20;
+                       to, "EntranceSessionListClip";
+                   }
+                   rel2
+                   {
+                       relative, 1.0 1.0;
+                       offset, -1 -20;
+                       to, "EntranceSessionListClip";
+                   }
+                   color, 255 255 255 64;
+               }
+           }
+           part
+           {
+               name, "EntranceSessionList";
+               type,   RECT;
+               mouse_events, 1;
+               clip_to, "EntranceSessionListClip";
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.0;
+                       offset, 5 5;
+                       to, "EntranceSessionMenu";
+                   }
+                   rel2
+                   {
+                       relative, 1.0 1.0;
+                       offset, -5 -5;
+                       to, "EntranceSessionMenu";
+                   }
+                   color, 255 255 255 0;
+               }
+           }
+           part
+           {
+               name, "EntranceSessionClip";
+               type,   RECT;
+               mouse_events, 0;
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 1.0;
+                       offset, 25 -53;
+                       to, "background";
+                   }
+                   rel2
+                   {
+                       relative, 0.0 1.0;
+                       offset, 200 -5;
+                       to, "background";
+                   }
+                   color, 255 255 255 255;
+               }
+           }
+           part
+           {
+               name, "EntranceSession";
+               type,   RECT;
+               mouse_events, 0;
+               clip_to, "EntranceSessionClip";
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.0;
+                       offset, 0 0;
+                       to, "EntranceSessionClip";
+                   }
+                   rel2
+                   {
+                       relative, 1.0 1.0;
+                       offset, 0 0;
+                       to, "EntranceSessionClip";
+                   }
+                   color, 255 255 255 0;
+               }
+           }
+           part
+           {
+               name, "EntranceSessionMouseArea";
+               type,   RECT;
+               mouse_events, 1;
+               clip_to, "EntranceSessionClip";
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.0;
+                       offset, 0 0;
+                       to, "EntranceSessionClip";
+                   }
+                   rel2
+                   {
+                       relative, 1.0 1.0;
+                       offset, 0 0;
+                       to, "EntranceSessionClip";
+                   }
+                   color, 255 255 255 0;
+               }
+           }
+           part
+           {
+               name, "EntranceSessionListMouseArea";
+               type,   RECT;
+               mouse_events, 1;
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.0;
+                       offset, 0 0;
+                   }
+                   rel2
+                   {
+                       relative, 0.0 0.0;
+                       offset, 0 0;
                    }
+                   color, 255 255 255 0;
+               }
+               description
+               {
+                   state, "visible" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.0;
+                       offset, 0 0;
+                       to, "EntranceSessionClip";
+                   }
+                   rel2
+                   {
+                       relative, 1.0 1.0;
+                       offset, 0 0;
+                       to, "EntranceSessionClip";
+                   }
+                   color, 255 255 255 0;
                }
            }
-*/      
       }
       programs {
         
@@ -1681,7 +1959,127 @@
            source,     "";
            action,     SIGNAL_EMIT "EntranceUserAuthSuccessDone" "";
         }
-        
+        program
+         {
+               name, "SelectSession";
+               signal, "SessionSelected";
+               source, "";
+               action, STATE_SET "default" 0.0;
+               target, "EntranceSessionListClip";
+               target, "EntranceSessionListMouseArea";
+               transition, SINUSOIDAL 0.5;
+         }
+         program
+          {
+               name, "SelectSession";
+               signal, "SessionSelected";
+               source, "";
+               action, STATE_SET "default" 0.0;
+               target, "EntranceSessionListClip";
+               target, "EntranceSessionListMouseArea";
+               transition, SINUSOIDAL 0.5;
+          }
+                   program
+           {
+               name,  "ShowSessionChooser";
+               signal, "mouse,up,1";
+               source, "EntranceSessionMouseArea";
+               action, STATE_SET "opening" 0.0;
+               target, "EntranceSessionListClip";
+               transition, LINEAR 0.35;
+               after, "DisplaySessionChooser";
+           }
+           program
+           {
+               name,  "DisplaySessionChooser";
+               signal, "mouse,up,1";
+               source, "EntranceSessionMouseArea";
+               action, STATE_SET "visible" 0.0;
+               target, "EntranceSessionListClip";
+               target, "EntranceSessionListMouseArea";
+               transition, LINEAR 0.5;
+           }
       }
    }
+    group
+    {
+       name, "Session";
+       parts
+       {
+           part
+           {
+               name, "EntranceSessionIcon";
+               type, RECT;
+               mouse_events, 1;
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 0.0 0.0;
+                       offset, 2 2;
+                   }
+                   rel2
+                   {
+                       relative, 0.0 0.0;
+                       offset, 34 34;
+                   }
+                   color, 255 255 255 0;
+               }
+           }
+           part
+           {
+               name, "EntranceSessionTitle";
+               type, TEXT;
+               mouse_events, 1;
+               effect, SHADOW;
+               description
+               {
+                   state, "default" 0.0;
+                   visible, 1;
+                   rel1
+                   {
+                       relative, 1.0 0.5;
+                       offset, 2 -17;
+                       to, "EntranceSessionIcon";
+                   }
+                   rel2
+                   {
+                       relative, 1.0 0.5;
+                       offset, 110 17;
+                       to, "EntranceSessionIcon";
+                   }
+                   color, 255 255 255 160;
+                   color3, 0 0 0 210;
+                   text
+                   {
+                       text, "Doesn't Matter";
+                       font, "Vera";
+                       size, 13;
+                       align, 0.0 0.5;
+                       fit, 0 0;
+                   }
+               }
+           }
+       }
+       programs
+       {
+           program
+           {
+               name, "SessionTitleClicked";
+               signal, "mouse,clicked,1";
+               source, "EntranceSessionTitle";
+               action, SIGNAL_EMIT "SessionSelected" "";
+           }
+           program
+           {
+               name, "SessionIconClicked";
+               signal, "mouse,clicked,1";
+               source, "EntranceSessionIcon";
+               action, SIGNAL_EMIT "SessionSelected" "";
+           }
+       }
+    }
 }
+




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to