Revision: 4454
          http://vexi.svn.sourceforge.net/vexi/?rev=4454&view=rev
Author:   clrg
Date:     2012-11-12 14:43:21 +0000 (Mon, 12 Nov 2012)
Log Message:
-----------


Added Paths:
-----------
    trunk/org.vexi-vapp.tempo/.project
    trunk/org.vexi-vapp.tempo/.vexipath
    trunk/org.vexi-vapp.tempo/build.xml
    trunk/org.vexi-vapp.tempo/src_main/
    trunk/org.vexi-vapp.tempo/src_main/org/
    trunk/org.vexi-vapp.tempo/src_main/org/vexi/
    trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/
    trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Main.t
    trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Open.t
    trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Properties.t
    trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Templates.t

Added: trunk/org.vexi-vapp.tempo/.project
===================================================================
--- trunk/org.vexi-vapp.tempo/.project                          (rev 0)
+++ trunk/org.vexi-vapp.tempo/.project  2012-11-12 14:43:21 UTC (rev 4454)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.vexi-vapp.tempo</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.vexi.vexidev.vexiBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.vexi.vexidev.vexiNature</nature>
+       </natures>
+</projectDescription>


Property changes on: trunk/org.vexi-vapp.tempo/.project
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/org.vexi-vapp.tempo/.vexipath
===================================================================
--- trunk/org.vexi-vapp.tempo/.vexipath                         (rev 0)
+++ trunk/org.vexi-vapp.tempo/.vexipath 2012-11-12 14:43:21 UTC (rev 4454)
@@ -0,0 +1,20 @@
+<project-path>
+   <main>
+      <sources>
+         <source-dir path="src_main"/>
+      </sources>
+      <dependencies>
+         <path-entry type="project" name="org.vexi-vexi.widgets"/>
+         <path-entry type="project" name="org.vexi-vexi.theme.glass"/>
+         <path-entry type="project" name="org.vexi-vexi.icons"/>
+      </dependencies>
+   </main>
+   <test>
+      <sources/>
+      <dependencies/>
+   </test>
+   <poke>
+      <sources/>
+      <dependencies/>
+   </poke>
+</project-path>
\ No newline at end of file

Added: trunk/org.vexi-vapp.tempo/build.xml
===================================================================
--- trunk/org.vexi-vapp.tempo/build.xml                         (rev 0)
+++ trunk/org.vexi-vapp.tempo/build.xml 2012-11-12 14:43:21 UTC (rev 4454)
@@ -0,0 +1,6 @@
+<project default="eclipse_setup">
+
+       <property name="ebuild.home" location="../_ebuild"/>
+    <import file="${ebuild.home}/interface/workspace.ent"/>
+
+</project>
\ No newline at end of file


Property changes on: trunk/org.vexi-vapp.tempo/build.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Main.t
===================================================================
--- trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Main.t                    
        (rev 0)
+++ trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Main.t    2012-11-12 
14:43:21 UTC (rev 4454)
@@ -0,0 +1,31 @@
+<!-- Copyright 2012 - see COPYING for details [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui"
+      xmlns:tempo="org.vexi.tempo"
+      xmlns:util="vexi.util"
+      xmlns="vexi.widget">
+    
+    <surface>
+        <bevel form="down" fill="white" orient="vertical" margin="10">
+            <toolbar>
+                <link id="refresh" icon="reload" text="Reload" />
+            </toolbar>
+            <scrollpane align="top" autohide="true" padding="5">
+                <ui:box id="templates" vshrink="true">
+                    <tempo:Templates />
+                </ui:box>
+                <ui:box />
+            </scrollpane>
+        </bevel>
+        <tempo:Properties />
+        
+        $refresh.action ++= function(v) {
+            cascade = v;
+            $templates.clear();
+            $templates[0] = new tempo.Templates();
+        }
+        
+        vexi.ui.frame = thisbox;
+        
+    </surface>
+</vexi>

Added: trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Open.t
===================================================================
--- trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Open.t                    
        (rev 0)
+++ trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Open.t    2012-11-12 
14:43:21 UTC (rev 4454)
@@ -0,0 +1,33 @@
+<!-- Copyright 2012 - see COPYING for details [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui" xmlns:util="vexi.util" xmlns="vexi.widget">
+    <ui:box />
+        
+    const themestr = "org.vexi.theme.glass";
+//    const themestr = vexi.params["tempo.theme"];
+        
+    static.open = function(template, init) {
+        vexi.thread = function() {
+            const newVexi = util.virtualize..cloneVexi();
+            
+            // set theme
+            // FIXME neither work
+//            newVexi.params ++= function() { return { "theme" : themestr }; };
+//            newVexi.params["theme"] = themestr;
+            // FIXME workaround
+            newVexi..org.vexi.lib.role.surface..theme = themestr;
+            
+            // create surface 
+            var surface = new newVexi..vexi.theme.surface();
+            init.applyToSurface(surface);
+            
+            // FIXME hardcoded template dir
+            var instance = new (newVexi..vexi.widget[template])();
+            init.applyToInstance(instance);
+            
+            surface[0] = instance;
+            vexi.ui.frame = surface;
+        }
+    }
+    
+</vexi>

Added: trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Properties.t
===================================================================
--- trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Properties.t              
                (rev 0)
+++ trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Properties.t      
2012-11-12 14:43:21 UTC (rev 4454)
@@ -0,0 +1,106 @@
+<!-- Copyright 2012 - see COPYING for details [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui" xmlns:util="vexi.util" xmlns="vexi.widget">
+    <bevel form="down" orient="vertical" margin="10 0 10 10">
+        <toolbar>
+            <ui:box />
+            <ui:box hshrink="true" text="Profiles" />
+            <option id="profile" hshrink="true">
+                <item text="bevel" />
+                <item text="button" />
+            </option>
+            <ui:box />
+        </toolbar>
+        <scrollpane autohide="true" orient="vertical" padding="5">
+            <ui:box vshrink="true">
+                <ui:box align="right" width="100" text="Surface fill" />
+                <textfield id="sfill" />
+            </ui:box>
+            <ui:box vshrink="true">
+                <ui:box align="right" width="100" text="Fill" />
+                <textfield id="fill" />
+            </ui:box>
+            <ui:box vshrink="true">
+                <ui:box align="right" width="100" text="Text" />
+                <textfield id="text" />
+            </ui:box>
+            <separator vshrink="true" />
+            <ui:box vshrink="true">
+                <ui:box align="right" width="100" text="Orient" />
+                <radio id="horient" text="Horizontal" selected="true" />
+                <radio id="vorient" text="Vertical" />
+                $vorient.group = $horient.group;
+                <ui:box />
+            </ui:box>
+            <ui:box vshrink="true">
+                <ui:box align="right" width="100" text="Shrink" />
+                <check id="hshrink" text="hshrink" />
+                <check id="vshrink" text="vshrink" />
+                <ui:box />
+            </ui:box>
+            <ui:box vshrink="true">
+                <ui:box align="right" width="100" text="Dimensions" />
+                <numfield id="width" shadowtext="width" />
+                <numfield id="height" shadowtext="height" />
+                <ui:box />
+            </ui:box>
+            <separator vshrink="true" />
+            <ui:box vshrink="true">
+                <ui:box align="right" width="100" text="Property" />
+                <textfield id="prop" shadowtext="property" />
+                <textfield id="value" shadowtext="value" />
+                <ui:box />
+            </ui:box>
+            <ui:box />
+        </scrollpane>
+        
+        const init = {};
+        
+        init.applyToSurface = function(surface) {
+            surface.fill = $sfill.text;
+        }
+        
+        init.applyToInstance = function(instance) {
+            instance.fill = $fill.text;
+            instance.text = $text.text;
+            instance.width = $width.value;
+            instance.height = $height.value;
+            instance.hshrink = $hshrink.selected;
+            instance.vshrink = $vshrink.selected;
+            instance.orient = $horient.selected ? "horizontal" : "vertical";
+            instance[$prop.text] = $value.text;
+        }
+        
+        surface ++= function(v) {
+            cascade = v;
+            if (v) { v.init = init; }
+        }
+        
+        $profile.value ++= function(v) {
+            cascade = v;
+            var p = static.profiles[v];
+            if (p) {
+                 $fill.text = p.fill;
+                 $text.text = p.text;
+                 $width.value = p.width;
+                 $height.value = p.height;
+                 $hshrink.selected = p.hshrink;
+                 $vshrink.selected = p.vshrink;
+                 $horient.selected = p.orient == "horizontal";
+                 $prop.text = p.prop;
+                 $value.text = p.value;
+            }
+        }
+        
+    </bevel>
+    
+    static.profiles = {
+        bevel : {
+            width:50, height:20, text:"Bevel", hshrink:true, vshrink:true, 
prop:"form", value:"down"
+        },
+        button : {
+            text:"Button", hshrink:true, vshrink:true
+        }
+    };
+    
+</vexi>

Added: trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Templates.t
===================================================================
--- trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Templates.t               
                (rev 0)
+++ trunk/org.vexi-vapp.tempo/src_main/org/vexi/tempo/Templates.t       
2012-11-12 14:43:21 UTC (rev 4454)
@@ -0,0 +1,23 @@
+<!-- Copyright 2012 - see COPYING for details [LGPL] -->
+
+<vexi xmlns:ui="vexi://ui"
+      xmlns:tempo="org.vexi.tempo"
+      xmlns="vexi.widget">
+    
+    <tree text="org.vexi.theme.glass" vshrink="true">
+        <link text="bevel" />
+        <link text="button" />
+        
+        const invokeOpen = function(v) {
+            cascade = v;
+            vexi.thread = function() {
+                tempo.Open..open(trapee.text, surface.init);
+            }
+        }
+        
+        for (var k,link in thisbox) {
+            link.action ++= invokeOpen;
+        }
+        
+    </tree>
+</vexi>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to