From: Charles du Jeu Date: Fri, 7 Nov 2008 07:42:52 +0000 (+0000) Subject: Stable version X-Git-Tag: argeo-slc-2.1.7~2440 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=d755075f09a9a3bd068ddd8c47f5b059530162bb;p=gpl%2Fargeo-slc.git Stable version git-svn-id: https://svn.argeo.org/slc/trunk@1795 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-pdf.png b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-pdf.png new file mode 100644 index 000000000..27faad6fc Binary files /dev/null and b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-pdf.png differ diff --git a/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xls.png b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xls.png new file mode 100644 index 000000000..126f1c878 Binary files /dev/null and b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xls.png differ diff --git a/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xml.png b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xml.png new file mode 100644 index 000000000..bc00f51a1 Binary files /dev/null and b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xml.png differ diff --git a/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xsl.png b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xsl.png new file mode 100644 index 000000000..a4acb09cb Binary files /dev/null and b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/mime-xsl.png differ diff --git a/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/process-stop.png b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/process-stop.png new file mode 100644 index 000000000..fe3aba281 Binary files /dev/null and b/org.argeo.slc.webapp/src/main/webapp/build/resource/slc/process-stop.png differ diff --git a/org.argeo.slc.webapp/src/main/webapp/build/script/org.argeo.slc.web-0.js b/org.argeo.slc.webapp/src/main/webapp/build/script/org.argeo.slc.web-0.js index 7f95a6914..fca7bccf4 100644 --- a/org.argeo.slc.webapp/src/main/webapp/build/script/org.argeo.slc.web-0.js +++ b/org.argeo.slc.webapp/src/main/webapp/build/script/org.argeo.slc.web-0.js @@ -14892,23 +14892,23 @@ event:d}}}); b="test", c="Test", d="Help", -f="execute", -g="File", -h="", -j="resource/slc/edit-delete.png", -k="resultViewXml.xslt", -l="resultView.pdf", -m='center', -n="../", -o="org.argeo.slc.web.event.CommandsManager", -p="resultView.xls", -q="resource/slc/help-about.png", -r="Control+o", -s="Close", -t="both", -u='100%', -v="pdf", -w="resource/slc/help-contents.png", +f="File", +g="", +h="execute", +j="resultViewXml.xslt", +k="resultView.pdf", +l="changeMenu", +m="../", +n="org.argeo.slc.web.event.CommandsManager", +o="resultView.xls", +p="About...", +q="Control+o", +r="Close", +s="both", +t='100%', +u="pdf", +v="resource/slc/help-contents.png", +w="resource/slc/process-stop.png", x="@commandid", y="Show Text", z="resultView.xslt", @@ -14918,9 +14918,9 @@ C="Download as...", D="Load Tests", E="Control+l", F="Control+c", -G='param[@name="uuid"]', -H="SLC is a product from Argeo.", -I="xls", +G="SLC is a product from Argeo.", +H="xls", +I="Show Icons", J='south', K="About SLC", L="Delete", @@ -14929,7 +14929,7 @@ N="resource/slc/go-down.png", O="Control+s", P="Control+h", Q="Open", -R="About...", +R=".png", S="resource/slc/view-refresh.png", T="icon", U="Stop", @@ -14939,61 +14939,63 @@ X="changeValue", Y="resource/slc/edit-copy.png", ba="Quit", bb='report[@type="applet"]', -bc="Toggle Console", -bd="label", -be="@icon", -bf="changeMenu", +bc='param[@name="uuid"]', +bd="Toggle Console", +be="label", +bf="resource/slc/mime-", bg="resource/slc/document-open.png", -bh="Show Icons", -bi="Control+d", -bj="Show Both", -bk="?uuid="; -qx.Class.define(o, +bh="resource/slc/help-about.png", +bi='center', +bj="Control+d", +bk="Show Both", +bl="?uuid=", +bm="resource/slc/edit-delete.png"; +qx.Class.define(n, {extend:qx.core.Object, -construct:function(bl){arguments.callee.base.call(this); -this.application=bl; +construct:function(bn){arguments.callee.base.call(this); +this.application=bn; }, properties:{definitions:{init:{"loadtestlist":{label:D, icon:S, shortcut:E, enabled:true, -menu:g, +menu:f, toolbar:a, -callback:function(bm){this.loadTable(W); +callback:function(bo){this.loadTable(W); }, command:null}, "stop":{label:U, -icon:j, +icon:w, shortcut:O, enabled:false, menu:null, toolbar:a, -callback:function(bm){}, +callback:function(bo){}, command:null}, "quit":{label:ba, icon:V, shortcut:M, enabled:true, -menu:g, +menu:f, toolbar:false, -callback:function(bm){}, +callback:function(bo){}, command:null}, "opentest":{label:Q, icon:bg, -shortcut:r, +shortcut:q, enabled:false, menu:c, toolbar:b, -callback:function(bm){var bn=this.getSelectionForView(a).getNodes(); -this.createTestApplet(bn[0]); +callback:function(bo){var bp=this.getSelectionForView(a).getNodes(); +this.createTestApplet(bp[0]); }, -selectionChange:function(bo, -bn){if(bo!=a)return; +selectionChange:function(bq, +bp){if(bq!=a)return; this.setEnabled(false); -if(bn==null||!bn.length)return; -var bp=org.argeo.slc.web.util.Element.selectSingleNode(bn[0], +if(bp==null||!bp.length)return; +var br=org.argeo.slc.web.util.Element.selectSingleNode(bp[0], bb); -if(bp!=null&&qx.dom.Node.getText(bp)!=h){this.setEnabled(true); +if(br!=null&&qx.dom.Node.getText(br)!=g){this.setEnabled(true); }}, command:null}, "download":{label:C, @@ -15002,45 +15004,45 @@ shortcut:null, enabled:false, menu:c, toolbar:b, -callback:function(bm){}, +callback:function(bo){}, command:null, submenu:{}, -submenuCallback:function(bq){var bn=this.getSelectionForView(a).getNodes(); -var br=qx.xml.Element.getSingleNodeText(bn[0], -G); -var bs={xsl:z, -xml:k, -xls:p, -pdf:l}; -var bt=n+bs[bq]+bk+br; -if(bq==I||bq==v){document.location.href=bt; -}else{var bu=window.open(bt); -}}, -selectionChange:function(bo, -bn){if(bo!=a)return; +submenuCallback:function(bs){var bp=this.getSelectionForView(a).getNodes(); +var bt=qx.xml.Element.getSingleNodeText(bp[0], +bc); +var bu={xsl:z, +xml:j, +xls:o, +pdf:k}; +var bv=m+bu[bs]+bl+bt; +if(bs==H||bs==u){document.location.href=bv; +}else{var bw=window.open(bv); +}}, +selectionChange:function(bq, +bp){if(bq!=a)return; this.clearMenus(); this.setEnabled(false); -if(bn==null)return; -var bv=qx.xml.Element.selectNodes(bn[0], +if(bp==null)return; +var bx=qx.xml.Element.selectNodes(bp[0], A); -if(bv==null||!bv.length)return; -for(var bw=0;bw0){var bn=bF.getNodes(); -} -for(var bB in bA){var bC=bA[bB]; -if(!bC.selectionChange)continue; -var bG=qx.lang.Function.bind(bC.selectionChange, -bC.command); -bG(bF.getViewId(), -bn); +bE.command=bF; +if(bE.menu){if(!this.menus[bE.menu])this.menus[bE.menu]=[]; +this.menus[bE.menu].push(bF); +} +if(bE.toolbar){if(!this.toolbars[bE.toolbar])this.toolbars[bE.toolbar]=[]; +this.toolbars[bE.toolbar].push(bF); +}}this.setDefinitions(bC); +}, +refreshCommands:function(bH){var bC=this.getDefinitions(); +var bp=null; +if(bH.getCount()>0){var bp=bH.getNodes(); +} +for(var bD in bC){var bE=bC[bD]; +if(!bE.selectionChange)continue; +var bI=qx.lang.Function.bind(bE.selectionChange, +bE.command); +bI(bH.getViewId(), +bp); }}, -createMenuButtons:function(bH){for(var bB in this.menus){var bE=new qx.ui.menu.Menu(); -var bI=new qx.ui.menubar.Button(bB, +createMenuButtons:function(bJ){for(var bD in this.menus){var bG=new qx.ui.menu.Menu(); +var bK=new qx.ui.menubar.Button(bD, null, -bE); -for(var bw=0;bw