[vhffs-dev] [1404] All this crap seems necessary to show a simple Dialog box...

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1404
Author:   beuss
Date:     2009-05-24 14:08:01 +0200 (Sun, 24 May 2009)

Log Message:
-----------
All this crap seems necessary to show a simple Dialog box... Anyway, it should be useful

Added Paths:
-----------
    branches/vhffs-design/vhffs-panel/js/dijit/Dialog.js
    branches/vhffs-design/vhffs-panel/js/dijit/DialogUnderlay.js
    branches/vhffs-design/vhffs-panel/js/dijit/TooltipDialog.js
    branches/vhffs-design/vhffs-panel/js/dijit/_DialogMixin.js
    branches/vhffs-design/vhffs-panel/js/dijit/form/_FormMixin.js
    branches/vhffs-design/vhffs-panel/js/dijit/layout/
    branches/vhffs-design/vhffs-panel/js/dijit/layout/ContentPane.js
    branches/vhffs-design/vhffs-panel/js/dijit/nls/
    branches/vhffs-design/vhffs-panel/js/dijit/nls/common.js
    branches/vhffs-design/vhffs-panel/js/dijit/nls/loading.js
    branches/vhffs-design/vhffs-panel/js/dojo/dnd/
    branches/vhffs-design/vhffs-panel/js/dojo/dnd/Moveable.js
    branches/vhffs-design/vhffs-panel/js/dojo/dnd/Mover.js
    branches/vhffs-design/vhffs-panel/js/dojo/dnd/TimedMoveable.js
    branches/vhffs-design/vhffs-panel/js/dojo/dnd/autoscroll.js
    branches/vhffs-design/vhffs-panel/js/dojo/dnd/common.js
    branches/vhffs-design/vhffs-panel/js/dojo/dnd/move.js
    branches/vhffs-design/vhffs-panel/js/dojo/fx/
    branches/vhffs-design/vhffs-panel/js/dojo/fx/Toggler.js
    branches/vhffs-design/vhffs-panel/js/dojo/fx.js
    branches/vhffs-design/vhffs-panel/js/dojo/html.js


Added: branches/vhffs-design/vhffs-panel/js/dijit/Dialog.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/Dialog.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/Dialog.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,211 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dijit.Dialog"]){
+dojo._hasResource["dijit.Dialog"]=true;
+dojo.provide("dijit.Dialog");
+dojo.require("dojo.dnd.move");
+dojo.require("dojo.dnd.TimedMoveable");
+dojo.require("dojo.fx");
+dojo.require("dijit._Widget");
+dojo.require("dijit._Templated");
+dojo.require("dijit.form._FormMixin");
+dojo.require("dijit._DialogMixin");
+dojo.require("dijit.DialogUnderlay");
+dojo.require("dijit.layout.ContentPane");
+dojo.requireLocalization("dijit","common",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
+dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n",attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,_fixSizes:true,postMixInProperties:function(){
+var _1=dojo.i18n.getLocalization("dijit","common");
+dojo.mixin(this,_1);
+this.inherited(arguments);
+},postCreate:function(){
+dojo.style(this.domNode,{visibility:"hidden",position:"absolute",display:"",top:"-9999px"});
+dojo.body().appendChild(this.domNode);
+this.inherited(arguments);
+this.connect(this,"onExecute","hide");
+this.connect(this,"onCancel","hide");
+this._modalconnects=[];
+},onLoad:function(){
+this._position();
+this.inherited(arguments);
+},_endDrag:function(e){
+if(e&&e.node&&e.node===this.domNode){
+var vp=dijit.getViewport();
+var p=e._leftTop||dojo.coords(e.node,true);
+this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};
+}
+},_setup:function(){
+var _5=this.domNode;
+if(this.titleBar&&this.draggable){
+this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(_5,{handle:this.titleBar}):new dojo.dnd.Moveable(_5,{handle:this.titleBar,timeout:0});
+dojo.subscribe("/dnd/move/stop",this,"_endDrag");
+}else{
+dojo.addClass(_5,"dijitDialogFixed");
+}
+var _6={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
+return s+"_underlay";
+}).join(" ")};
+var _8=dijit._underlay;
+if(!_8){
+_8=dijit._underlay=new dijit.DialogUnderlay(_6);
+}
+this._fadeIn=dojo.fadeIn({node:_5,duration:this.duration,beforeBegin:function(){
+_8.attr(_6);
+_8.show();
+},onEnd:dojo.hitch(this,function(){
+if(this.autofocus){
+this._getFocusItems(this.domNode);
+dijit.focus(this._firstFocusItem);
+}
+})});
+this._fadeOut=dojo.fadeOut({node:_5,duration:this.duration,onEnd:function(){
+_5.style.visibility="hidden";
+_5.style.top="-9999px";
+dijit._underlay.hide();
+}});
+},uninitialize:function(){
+var _9=false;
+if(this._fadeIn&&this._fadeIn.status()=="playing"){
+_9=true;
+this._fadeIn.stop();
+}
+if(this._fadeOut&&this._fadeOut.status()=="playing"){
+_9=true;
+this._fadeOut.stop();
+}
+if(this.open||_9){
+dijit._underlay.hide();
+}
+if(this._moveable){
+this._moveable.destroy();
+}
+},_size:function(){
+var mb=dojo.marginBox(this.domNode);
+var _b=dijit.getViewport();
+if(mb.w>=_b.w||mb.h>=_b.h){
+dojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_b.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_b.h*0.75))+"px",overflow:"auto",position:"relative"});
+}
+},_position:function(){
+if(!dojo.hasClass(dojo.body(),"dojoMove")){
+var _c=this.domNode;
+var _d=dijit.getViewport();
+var p=this._relativePosition;
+var mb=p?null:dojo.marginBox(_c);
+dojo.style(_c,{left:Math.floor(_d.l+(p?p.l:(_d.w-mb.w)/2))+"px",top:Math.floor(_d.t+(p?p.t:(_d.h-mb.h)/2))+"px"});
+}
+},_onKey:function(evt){
+if(evt.charOrCode){
+var dk=dojo.keys;
+var _12=evt.target;
+if(evt.charOrCode===dk.TAB){
+this._getFocusItems(this.domNode);
+}
+var _13=(this._firstFocusItem==this._lastFocusItem);
+if(_12==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){
+if(!_13){
+dijit.focus(this._lastFocusItem);
+}
+dojo.stopEvent(evt);
+}else{
+if(_12==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){
+if(!_13){
+dijit.focus(this._firstFocusItem);
+}
+dojo.stopEvent(evt);
+}else{
+while(_12){
+if(_12==this.domNode){
+if(evt.charOrCode==dk.ESCAPE){
+this.onCancel();
+}else{
+return;
+}
+}
+_12=_12.parentNode;
+}
+if(evt.charOrCode!==dk.TAB){
+dojo.stopEvent(evt);
+}else{
+if(!dojo.isOpera){
+try{
+this._firstFocusItem.focus();
+}
+catch(e){
+}
+}
+}
+}
+}
+}
+},show:function(){
+if(this.open){
+return;
+}
+if(!this._alreadyInitialized){
+this._setup();
+this._alreadyInitialized=true;
+}
+if(this._fadeOut.status()=="playing"){
+this._fadeOut.stop();
+}
+this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
+this._modalconnects.push(dojo.connect(window,"onresize",this,function(){
+var _14=dijit.getViewport();
+if(!this._oldViewport||_14.h!=this._oldViewport.h||_14.w!=this._oldViewport.w){
+this.layout();
+this._oldViewport=_14;
+}
+}));
+this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
+dojo.style(this.domNode,{opacity:0,visibility:""});
+if(this._fixSizes){
+dojo.style(this.containerNode,{width:"auto",height:"auto"});
+}
+this.open=true;
+this._onShow();
+this._size();
+this._position();
+this._fadeIn.play();
+this._savedFocus=dijit.getFocus(this);
+},hide:function(){
+if(!this._alreadyInitialized){
+return;
+}
+if(this._fadeIn.status()=="playing"){
+this._fadeIn.stop();
+}
+this._fadeOut.play();
+if(this._scrollConnected){
+this._scrollConnected=false;
+}
+dojo.forEach(this._modalconnects,dojo.disconnect);
+this._modalconnects=[];
+if(this.refocus){
+this.connect(this._fadeOut,"onEnd",dojo.hitch(dijit,"focus",this._savedFocus));
+}
+if(this._relativePosition){
+delete this._relativePosition;
+}
+this.open=false;
+},layout:function(){
+if(this.domNode.style.visibility!="hidden"){
+dijit._underlay.layout();
+this._position();
+}
+},destroy:function(){
+dojo.forEach(this._modalconnects,dojo.disconnect);
+if(this.refocus&&this.open){
+setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);
+}
+this.inherited(arguments);
+},_onCloseEnter:function(){
+dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
+},_onCloseLeave:function(){
+dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
+}});
+dojo.require("dijit.TooltipDialog");
+}

Added: branches/vhffs-design/vhffs-panel/js/dijit/DialogUnderlay.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/DialogUnderlay.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/DialogUnderlay.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,45 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dijit.DialogUnderlay"]){
+dojo._hasResource["dijit.DialogUnderlay"]=true;
+dojo.provide("dijit.DialogUnderlay");
+dojo.require("dijit._Widget");
+dojo.require("dijit._Templated");
+dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){
+dojo.attr(this.node,"id",id+"_underlay");
+},_setClassAttr:function(_2){
+this.node.className="dijitDialogUnderlay "+_2;
+},postCreate:function(){
+dojo.body().appendChild(this.domNode);
+this.bgIframe=new dijit.BackgroundIframe(this.domNode);
+},layout:function(){
+var is=this.node.style,os=this.domNode.style;
+os.display="none";
+var _5=dijit.getViewport();
+os.top=_5.t+"px";
+os.left=_5.l+"px";
+is.width=_5.w+"px";
+is.height=_5.h+"px";
+os.display="block";
+},show:function(){
+this.domNode.style.display="block";
+this.layout();
+if(this.bgIframe.iframe){
+this.bgIframe.iframe.style.display="block";
+}
+},hide:function(){
+this.domNode.style.display="none";
+if(this.bgIframe.iframe){
+this.bgIframe.iframe.style.display="none";
+}
+},uninitialize:function(){
+if(this.bgIframe){
+this.bgIframe.destroy();
+}
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dijit/TooltipDialog.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/TooltipDialog.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/TooltipDialog.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,64 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dijit.TooltipDialog"]){
+dojo._hasResource["dijit.TooltipDialog"]=true;
+dojo.provide("dijit.TooltipDialog");
+dojo.require("dijit.layout.ContentPane");
+dojo.require("dijit._Templated");
+dojo.require("dijit.form._FormMixin");
+dojo.require("dijit._DialogMixin");
+dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n",postCreate:function(){
+this.inherited(arguments);
+this.connect(this.containerNode,"onkeypress","_onKey");
+this.containerNode.title=this.title;
+},orient:function(_1,_2,_3){
+var c=this._currentOrientClass;
+if(c){
+dojo.removeClass(this.domNode,c);
+}
+c="dijitTooltipAB"+(_3.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_3.charAt(0)=="T"?"Below":"Above");
+dojo.addClass(this.domNode,c);
+this._currentOrientClass=c;
+},onOpen:function(_5){
+this.orient(this.domNode,_5.aroundCorner,_5.corner);
+this._onShow();
+if(this.autofocus){
+this._getFocusItems(this.containerNode);
+dijit.focus(this._firstFocusItem);
+}
+},_onKey:function(_6){
+var _7=_6.target;
+var dk=dojo.keys;
+if(_6.charOrCode===dk.TAB){
+this._getFocusItems(this.containerNode);
+}
+var _9=(this._firstFocusItem==this._lastFocusItem);
+if(_6.charOrCode==dk.ESCAPE){
+this.onCancel();
+dojo.stopEvent(_6);
+}else{
+if(_7==this._firstFocusItem&&_6.shiftKey&&_6.charOrCode===dk.TAB){
+if(!_9){
+dijit.focus(this._lastFocusItem);
+}
+dojo.stopEvent(_6);
+}else{
+if(_7==this._lastFocusItem&&_6.charOrCode===dk.TAB&&!_6.shiftKey){
+if(!_9){
+dijit.focus(this._firstFocusItem);
+}
+dojo.stopEvent(_6);
+}else{
+if(_6.charOrCode===dk.TAB){
+_6.stopPropagation();
+}
+}
+}
+}
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dijit/_DialogMixin.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/_DialogMixin.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/_DialogMixin.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,26 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dijit._DialogMixin"]){
+dojo._hasResource["dijit._DialogMixin"]=true;
+dojo.provide("dijit._DialogMixin");
+dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_1){
+},onCancel:function(){
+},onExecute:function(){
+},_onSubmit:function(){
+this.onExecute();
+this.execute(this.attr("value"));
+},_getFocusItems:function(_2){
+var _3=dijit._getTabNavigable(dojo.byId(_2));
+this._firstFocusItem=_3.lowest||_3.first||_2;
+this._lastFocusItem=_3.last||_3.highest||this._firstFocusItem;
+if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){
+dojo.attr(_2,"tabindex","0");
+this._firstFocusItem=_2;
+}
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dijit/form/_FormMixin.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/form/_FormMixin.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/form/_FormMixin.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,148 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dijit.form._FormMixin"]){
+dojo._hasResource["dijit.form._FormMixin"]=true;
+dojo.provide("dijit.form._FormMixin");
+dojo.declare("dijit.form._FormMixin",null,{reset:function(){
+dojo.forEach(this.getDescendants(),function(_1){
+if(_1.reset){
+_1.reset();
+}
+});
+},validate:function(){
+var _2=false;
+return dojo.every(dojo.map(this.getDescendants(),function(_3){
+_3._hasBeenBlurred=true;
+var _4=_3.disabled||!_3.validate||_3.validate();
+if(!_4&&!_2){
+dijit.scrollIntoView(_3.containerNode||_3.domNode);
+_3.focus();
+_2=true;
+}
+return _4;
+}),function(_5){
+return _5;
+});
+},setValues:function(_6){
+dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");
+return this.attr("value",_6);
+},_setValueAttr:function(_7){
+var _8={};
+dojo.forEach(this.getDescendants(),function(_9){
+if(!_9.name){
+return;
+}
+var _a=_8[_9.name]||(_8[_9.name]=[]);
+_a.push(_9);
+});
+for(var _b in _8){
+if(!_8.hasOwnProperty(_b)){
+continue;
+}
+var _c=_8[_b],_d=dojo.getObject(_b,false,_7);
+if(_d===undefined){
+continue;
+}
+if(!dojo.isArray(_d)){
+_d=[_d];
+}
+if(typeof _c[0].checked=="boolean"){
+dojo.forEach(_c,function(w,i){
+w.attr("value",dojo.indexOf(_d,w.value)!=-1);
+});
+}else{
+if(_c[0]._multiValue){
+_c[0].attr("value",_d);
+}else{
+dojo.forEach(_c,function(w,i){
+w.attr("value",_d[i]);
+});
+}
+}
+}
+},getValues:function(){
+dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");
+return this.attr("value");
+},_getValueAttr:function(){
+var obj={};
+dojo.forEach(this.getDescendants(),function(_13){
+var _14=_13.name;
+if(!_14||_13.disabled){
+return;
+}
+var _15=_13.attr("value");
+if(typeof _13.checked=="boolean"){
+if(/Radio/.test(_13.declaredClass)){
+if(_15!==false){
+dojo.setObject(_14,_15,obj);
+}else{
+_15=dojo.getObject(_14,false,obj);
+if(_15===undefined){
+dojo.setObject(_14,null,obj);
+}
+}
+}else{
+var ary=dojo.getObject(_14,false,obj);
+if(!ary){
+ary=[];
+dojo.setObject(_14,ary,obj);
+}
+if(_15!==false){
+ary.push(_15);
+}
+}
+}else{
+dojo.setObject(_14,_15,obj);
+}
+});
+return obj;
+},isValid:function(){
+this._invalidWidgets=dojo.filter(this.getDescendants(),function(_17){
+return !_17.disabled&&_17.isValid&&!_17.isValid();
+});
+return !this._invalidWidgets.length;
+},onValidStateChange:function(_18){
+},_widgetChange:function(_19){
+var _1a=this._lastValidState;
+if(!_19||this._lastValidState===undefined){
+_1a=this.isValid();
+if(this._lastValidState===undefined){
+this._lastValidState=_1a;
+}
+}else{
+if(_19.isValid){
+this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
+return (w!=_19);
+},this);
+if(!_19.isValid()&&!_19.attr("disabled")){
+this._invalidWidgets.push(_19);
+}
+_1a=(this._invalidWidgets.length===0);
+}
+}
+if(_1a!==this._lastValidState){
+this._lastValidState=_1a;
+this.onValidStateChange(_1a);
+}
+},connectChildren:function(){
+dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
+var _1c=this;
+var _1d=this._changeConnections=[];
+dojo.forEach(dojo.filter(this.getDescendants(),function(_1e){
+return _1e.validate;
+}),function(_1f){
+_1d.push(_1c.connect(_1f,"validate",dojo.hitch(_1c,"_widgetChange",_1f)));
+_1d.push(_1c.connect(_1f,"_setDisabledAttr",dojo.hitch(_1c,"_widgetChange",_1f)));
+});
+this._widgetChange(null);
+},startup:function(){
+this.inherited(arguments);
+this._changeConnections=[];
+this.connectChildren();
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dijit/layout/ContentPane.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/layout/ContentPane.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/layout/ContentPane.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,256 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dijit.layout.ContentPane"]){
+dojo._hasResource["dijit.layout.ContentPane"]=true;
+dojo.provide("dijit.layout.ContentPane");
+dojo.require("dijit._Widget");
+dojo.require("dijit._Contained");
+dojo.require("dijit.layout._LayoutWidget");
+dojo.require("dojo.parser");
+dojo.require("dojo.string");
+dojo.require("dojo.html");
+dojo.requireLocalization("dijit","loading",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
+dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,postMixInProperties:function(){
+this.inherited(arguments);
+var _1=dojo.i18n.getLocalization("dijit","loading",this.lang);
+this.loadingMessage=dojo.string.substitute(this.loadingMessage,_1);
+this.errorMessage=dojo.string.substitute(this.errorMessage,_1);
+if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){
+this.isLoaded=true;
+}
+},buildRendering:function(){
+this.inherited(arguments);
+if(!this.containerNode){
+this.containerNode=this.domNode;
+}
+},postCreate:function(){
+this.domNode.title="";
+if(!dojo.attr(this.domNode,"role")){
+dijit.setWaiRole(this.domNode,"group");
+}
+dojo.addClass(this.domNode,this.baseClass);
+},startup:function(){
+if(this._started){
+return;
+}
+if(this.isLoaded){
+dojo.forEach(this.getChildren(),function(_2){
+_2.startup();
+});
+if(this.doLayout){
+this._checkIfSingleChild();
+}
+if(!this._singleChild||!dijit._Contained.prototype.getParent.call(this)){
+this._scheduleLayout();
+}
+}
+this._loadCheck();
+this.inherited(arguments);
+},_checkIfSingleChild:function(){
+var _3=dojo.query(">",this.containerNode),_4=_3.filter(function(_5){
+return dojo.hasAttr(_5,"dojoType")||dojo.hasAttr(_5,"widgetId");
+}),_6=dojo.filter(_4.map(dijit.byNode),function(_7){
+return _7&&_7.domNode&&_7.resize;
+});
+if(_3.length==_4.length&&_6.length==1){
+this._singleChild=_6[0];
+}else{
+delete this._singleChild;
+}
+},setHref:function(_8){
+dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");
+return this.attr("href",_8);
+},_setHrefAttr:function(_9){
+this.cancel();
+this.href=_9;
+if(this._created&&(this.preload||this._isShown())){
+return this.refresh();
+}else{
+this._hrefChanged=true;
+}
+},setContent:function(_a){
+dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");
+this.attr("content",_a);
+},_setContentAttr:function(_b){
+this.href="";
+this.cancel();
+this._setContent(_b||"");
+this._isDownloaded=false;
+},_getContentAttr:function(){
+return this.containerNode.innerHTML;
+},cancel:function(){
+if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
+this._xhrDfd.cancel();
+}
+delete this._xhrDfd;
+},uninitialize:function(){
+if(this._beingDestroyed){
+this.cancel();
+}
+},destroyRecursive:function(_c){
+if(this._beingDestroyed){
+return;
+}
+this._beingDestroyed=true;
+this.inherited(arguments);
+},resize:function(_d){
+dojo.marginBox(this.domNode,_d);
+var _e=this.containerNode,mb=dojo.mixin(dojo.marginBox(_e),_d||{});
+var cb=(this._contentBox=dijit.layout.marginBox2contentBox(_e,mb));
+if(this._singleChild&&this._singleChild.resize){
+this._singleChild.resize({w:cb.w,h:cb.h});
+}
+},_isShown:function(){
+if("open" in this){
+return this.open;
+}else{
+var _11=this.domNode;
+return (_11.style.display!="none")&&(_11.style.visibility!="hidden")&&!dojo.hasClass(_11,"dijitHidden");
+}
+},_onShow:function(){
+if(this._needLayout){
+this._layoutChildren();
+}
+this._loadCheck();
+if(this.onShow){
+this.onShow();
+}
+},_loadCheck:function(){
+if((this.href&&!this._xhrDfd)&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)&&(this.preload||this._isShown())){
+delete this._hrefChanged;
+this.refresh();
+}
+},refresh:function(){
+this.cancel();
+this._setContent(this.onDownloadStart(),true);
+var _12=this;
+var _13={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
+if(dojo.isObject(this.ioArgs)){
+dojo.mixin(_13,this.ioArgs);
+}
+var _14=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_13));
+_14.addCallback(function(_15){
+try{
+_12._isDownloaded=true;
+_12._setContent(_15,false);
+_12.onDownloadEnd();
+}
+catch(err){
+_12._onError("Content",err);
+}
+delete _12._xhrDfd;
+return _15;
+});
+_14.addErrback(function(err){
+if(!_14.canceled){
+_12._onError("Download",err);
+}
+delete _12._xhrDfd;
+return err;
+});
+},_onLoadHandler:function(_17){
+this.isLoaded=true;
+try{
+this.onLoad(_17);
+}
+catch(e){
+console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);
+}
+},_onUnloadHandler:function(){
+this.isLoaded=false;
+try{
+this.onUnload();
+}
+catch(e){
+console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);
+}
+},destroyDescendants:function(){
+if(this.isLoaded){
+this._onUnloadHandler();
+}
+var _18=this._contentSetter;
+dojo.forEach(this.getChildren(),function(_19){
+if(_19.destroyRecursive){
+_19.destroyRecursive();
+}
+});
+if(_18){
+dojo.forEach(_18.parseResults,function(_1a){
+if(_1a.destroyRecursive&&_1a.domNode&&_1a.domNode.parentNode==dojo.body()){
+_1a.destroyRecursive();
+}
+});
+delete _18.parseResults;
+}
+dojo.html._emptyNode(this.containerNode);
+},_setContent:function(_1b,_1c){
+this.destroyDescendants();
+delete this._singleChild;
+var _1d=this._contentSetter;
+if(!(_1d&&_1d instanceof dojo.html._ContentSetter)){
+_1d=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
+var _1f=this.onContentError(e);
+try{
+this.containerNode.innerHTML=_1f;
+}
+catch(e){
+console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
+}
+})});
+}
+var _20=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
+dojo.mixin(_1d,_20);
+_1d.set((dojo.isObject(_1b)&&_1b.domNode)?_1b.domNode:_1b);
+delete this._contentSetterParams;
+if(!_1c){
+dojo.forEach(this.getChildren(),function(_21){
+_21.startup();
+});
+if(this.doLayout){
+this._checkIfSingleChild();
+}
+this._scheduleLayout();
+this._onLoadHandler(_1b);
+}
+},_onError:function(_22,err,_24){
+var _25=this["on"+_22+"Error"].call(this,err);
+if(_24){
+console.error(_24,err);
+}else{
+if(_25){
+this._setContent(_25,true);
+}
+}
+},_scheduleLayout:function(){
+if(this._isShown()){
+this._layoutChildren();
+}else{
+this._needLayout=true;
+}
+},_layoutChildren:function(){
+if(this._singleChild&&this._singleChild.resize){
+var cb=this._contentBox||dojo.contentBox(this.containerNode);
+this._singleChild.resize({w:cb.w,h:cb.h});
+}else{
+dojo.forEach(this.getChildren(),function(_27){
+if(_27.resize){
+_27.resize();
+}
+});
+}
+delete this._needLayout;
+},onLoad:function(_28){
+},onUnload:function(){
+},onDownloadStart:function(){
+return this.loadingMessage;
+},onContentError:function(_29){
+},onDownloadError:function(_2a){
+return this.errorMessage;
+},onDownloadEnd:function(){
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dijit/nls/common.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/nls/common.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/nls/common.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1 @@
+({"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"})
\ No newline at end of file

Added: branches/vhffs-design/vhffs-panel/js/dijit/nls/loading.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dijit/nls/loading.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dijit/nls/loading.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1 @@
+({"loadingState":"Loading...","errorState":"Sorry, an error occurred"})
\ No newline at end of file

Added: branches/vhffs-design/vhffs-panel/js/dojo/dnd/Moveable.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/dnd/Moveable.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/dnd/Moveable.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,77 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.dnd.Moveable"]){
+dojo._hasResource["dojo.dnd.Moveable"]=true;
+dojo.provide("dojo.dnd.Moveable");
+dojo.require("dojo.dnd.Mover");
+dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_1,_2){
+this.node=dojo.byId(_1);
+if(!_2){
+_2={};
+}
+this.handle=_2.handle?dojo.byId(_2.handle):null;
+if(!this.handle){
+this.handle=this.node;
+}
+this.delay=_2.delay>0?_2.delay:0;
+this.skip=_2.skip;
+this.mover=_2.mover?_2.mover:dojo.dnd.Mover;
+this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
+},markupFactory:function(_3,_4){
+return new dojo.dnd.Moveable(_4,_3);
+},destroy:function(){
+dojo.forEach(this.events,dojo.disconnect);
+this.events=this.node=this.handle=null;
+},onMouseDown:function(e){
+if(this.skip&&dojo.dnd.isFormElement(e)){
+return;
+}
+if(this.delay){
+this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));
+this._lastX=e.pageX;
+this._lastY=e.pageY;
+}else{
+this.onDragDetected(e);
+}
+dojo.stopEvent(e);
+},onMouseMove:function(e){
+if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){
+this.onMouseUp(e);
+this.onDragDetected(e);
+}
+dojo.stopEvent(e);
+},onMouseUp:function(e){
+for(var i=0;i<2;++i){
+dojo.disconnect(this.events.pop());
+}
+dojo.stopEvent(e);
+},onSelectStart:function(e){
+if(!this.skip||!dojo.dnd.isFormElement(e)){
+dojo.stopEvent(e);
+}
+},onDragDetected:function(e){
+new this.mover(this.node,e,this);
+},onMoveStart:function(_b){
+dojo.publish("/dnd/move/start",[_b]);
+dojo.addClass(dojo.body(),"dojoMove");
+dojo.addClass(this.node,"dojoMoveItem");
+},onMoveStop:function(_c){
+dojo.publish("/dnd/move/stop",[_c]);
+dojo.removeClass(dojo.body(),"dojoMove");
+dojo.removeClass(this.node,"dojoMoveItem");
+},onFirstMove:function(_d){
+},onMove:function(_e,_f){
+this.onMoving(_e,_f);
+var s=_e.node.style;
+s.left=_f.l+"px";
+s.top=_f.t+"px";
+this.onMoved(_e,_f);
+},onMoving:function(_11,_12){
+},onMoved:function(_13,_14){
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/dnd/Mover.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/dnd/Mover.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/dnd/Mover.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,65 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.dnd.Mover"]){
+dojo._hasResource["dojo.dnd.Mover"]=true;
+dojo.provide("dojo.dnd.Mover");
+dojo.require("dojo.dnd.common");
+dojo.require("dojo.dnd.autoscroll");
+dojo.declare("dojo.dnd.Mover",null,{constructor:function(_1,e,_3){
+this.node=dojo.byId(_1);
+this.marginBox={l:e.pageX,t:e.pageY};
+this.mouseButton=e.button;
+var h=this.host=_3,d=_1.ownerDocument,_6=dojo.connect(d,"onmousemove",this,"onFirstMove");
+this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_6];
+if(h&&h.onMoveStart){
+h.onMoveStart(this);
+}
+},onMouseMove:function(e){
+dojo.dnd.autoScroll(e);
+var m=this.marginBox;
+this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
+dojo.stopEvent(e);
+},onMouseUp:function(e){
+if(dojo.isWebKit&&dojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
+this.destroy();
+}
+dojo.stopEvent(e);
+},onFirstMove:function(){
+var s=this.node.style,l,t,h=this.host;
+switch(s.position){
+case "relative":
+case "absolute":
+l=Math.round(parseFloat(s.left));
+t=Math.round(parseFloat(s.top));
+break;
+default:
+s.position="absolute";
+var m=dojo.marginBox(this.node);
+var b=dojo.doc.body;
+var bs=dojo.getComputedStyle(b);
+var bm=dojo._getMarginBox(b,bs);
+var bc=dojo._getContentBox(b,bs);
+l=m.l-(bc.l-bm.l);
+t=m.t-(bc.t-bm.t);
+break;
+}
+this.marginBox.l=l-this.marginBox.l;
+this.marginBox.t=t-this.marginBox.t;
+if(h&&h.onFirstMove){
+h.onFirstMove(this);
+}
+dojo.disconnect(this.events.pop());
+},destroy:function(){
+dojo.forEach(this.events,dojo.disconnect);
+var h=this.host;
+if(h&&h.onMoveStop){
+h.onMoveStop(this);
+}
+this.events=this.node=this.host=null;
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/dnd/TimedMoveable.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/dnd/TimedMoveable.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/dnd/TimedMoveable.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,40 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
+dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
+dojo.provide("dojo.dnd.TimedMoveable");
+dojo.require("dojo.dnd.Moveable");
+(function(){
+var _1=dojo.dnd.Moveable.prototype.onMove;
+dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_2,_3){
+if(!_3){
+_3={};
+}
+if(_3.timeout&&typeof _3.timeout=="number"&&_3.timeout>=0){
+this.timeout=_3.timeout;
+}
+},markupFactory:function(_4,_5){
+return new dojo.dnd.TimedMoveable(_5,_4);
+},onMoveStop:function(_6){
+if(_6._timer){
+clearTimeout(_6._timer);
+_1.call(this,_6,_6._leftTop);
+}
+dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
+},onMove:function(_7,_8){
+_7._leftTop=_8;
+if(!_7._timer){
+var _t=this;
+_7._timer=setTimeout(function(){
+_7._timer=null;
+_1.call(_t,_7,_7._leftTop);
+},this.timeout);
+}
+}});
+})();
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/dnd/autoscroll.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/dnd/autoscroll.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/dnd/autoscroll.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,99 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.dnd.autoscroll"]){
+dojo._hasResource["dojo.dnd.autoscroll"]=true;
+dojo.provide("dojo.dnd.autoscroll");
+dojo.dnd.getViewport=function(){
+var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
+if(dojo.isMozilla){
+return {w:dd.clientWidth,h:w.innerHeight};
+}else{
+if(!dojo.isOpera&&w.innerWidth){
+return {w:w.innerWidth,h:w.innerHeight};
+}else{
+if(!dojo.isOpera&&dd&&dd.clientWidth){
+return {w:dd.clientWidth,h:dd.clientHeight};
+}else{
+if(b.clientWidth){
+return {w:b.clientWidth,h:b.clientHeight};
+}
+}
+}
+}
+return null;
+};
+dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
+dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
+dojo.dnd.V_AUTOSCROLL_VALUE=16;
+dojo.dnd.H_AUTOSCROLL_VALUE=16;
+dojo.dnd.autoScroll=function(e){
+var v=dojo.dnd.getViewport(),dx=0,dy=0;
+if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
+dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
+}else{
+if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
+dx=dojo.dnd.H_AUTOSCROLL_VALUE;
+}
+}
+if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
+dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
+}else{
+if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
+dy=dojo.dnd.V_AUTOSCROLL_VALUE;
+}
+}
+window.scrollBy(dx,dy);
+};
+dojo.dnd._validNodes={"div":1,"p":1,"td":1};
+dojo.dnd._validOverflow={"auto":1,"scroll":1};
+dojo.dnd.autoScrollNodes=function(e){
+for(var n=e.target;n;){
+if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
+var s=dojo.getComputedStyle(n);
+if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
+var b=dojo._getContentBox(n,s),t=dojo._abs(n,true);
+var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
+if(dojo.isWebKit||dojo.isOpera){
+rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
+}
+if(rx>0&&rx<b.w){
+if(rx<w){
+dx=-w;
+}else{
+if(rx>b.w-w){
+dx=w;
+}
+}
+}
+if(ry>0&&ry<b.h){
+if(ry<h){
+dy=-h;
+}else{
+if(ry>b.h-h){
+dy=h;
+}
+}
+}
+var _14=n.scrollLeft,_15=n.scrollTop;
+n.scrollLeft=n.scrollLeft+dx;
+n.scrollTop=n.scrollTop+dy;
+if(_14!=n.scrollLeft||_15!=n.scrollTop){
+return;
+}
+}
+}
+try{
+n=n.parentNode;
+}
+catch(x){
+n=null;
+}
+}
+dojo.dnd.autoScroll(e);
+};
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/dnd/common.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/dnd/common.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/dnd/common.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,38 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.dnd.common"]){
+dojo._hasResource["dojo.dnd.common"]=true;
+dojo.provide("dojo.dnd.common");
+dojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;
+dojo.dnd._copyKey=dojo.dnd._isMac?"metaKey":"ctrlKey";
+dojo.dnd.getCopyKeyState=function(e){
+return e[dojo.dnd._copyKey];
+};
+dojo.dnd._uniqueId=0;
+dojo.dnd.getUniqueId=function(){
+var id;
+do{
+id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
+}while(dojo.byId(id));
+return id;
+};
+dojo.dnd._empty={};
+dojo.dnd.isFormElement=function(e){
+var t=e.target;
+if(t.nodeType==3){
+t=t.parentNode;
+}
+return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
+};
+dojo.dnd._lmb=dojo.isIE?1:0;
+dojo.dnd._isLmbPressed=dojo.isIE?function(e){
+return e.button&1;
+}:function(e){
+return e.button===0;
+};
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/dnd/move.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/dnd/move.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/dnd/move.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,125 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.dnd.move"]){
+dojo._hasResource["dojo.dnd.move"]=true;
+dojo.provide("dojo.dnd.move");
+dojo.require("dojo.dnd.Mover");
+dojo.require("dojo.dnd.Moveable");
+dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){
+},within:false,markupFactory:function(_1,_2){
+return new dojo.dnd.move.constrainedMoveable(_2,_1);
+},constructor:function(_3,_4){
+if(!_4){
+_4={};
+}
+this.constraints=_4.constraints;
+this.within=_4.within;
+},onFirstMove:function(_5){
+var c=this.constraintBox=this.constraints.call(this,_5);
+c.r=c.l+c.w;
+c.b=c.t+c.h;
+if(this.within){
+var mb=dojo.marginBox(_5.node);
+c.r-=mb.w;
+c.b-=mb.h;
+}
+},onMove:function(_8,_9){
+var c=this.constraintBox,s=_8.node.style;
+s.left=(_9.l<c.l?c.l:c.r<_9.l?c.r:_9.l)+"px";
+s.top=(_9.t<c.t?c.t:c.b<_9.t?c.b:_9.t)+"px";
+}});
+dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_c,_d){
+return new dojo.dnd.move.boxConstrainedMoveable(_d,_c);
+},constructor:function(_e,_f){
+var box=_f&&_f.box;
+this.constraints=function(){
+return box;
+};
+}});
+dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_11,_12){
+return new dojo.dnd.move.parentConstrainedMoveable(_12,_11);
+},constructor:function(_13,_14){
+var _15=_14&&_14.area;
+this.constraints=function(){
+var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
+if(_15=="margin"){
+return mb;
+}
+var t=dojo._getMarginExtents(n,s);
+mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
+if(_15=="border"){
+return mb;
+}
+t=dojo._getBorderExtents(n,s);
+mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
+if(_15=="padding"){
+return mb;
+}
+t=dojo._getPadExtents(n,s);
+mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
+return mb;
+};
+}});
+dojo.dnd.move.constrainedMover=function(fun,_1b){
+dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
+var _1c=function(_1d,e,_1f){
+dojo.dnd.Mover.call(this,_1d,e,_1f);
+};
+dojo.extend(_1c,dojo.dnd.Mover.prototype);
+dojo.extend(_1c,{onMouseMove:function(e){
+dojo.dnd.autoScroll(e);
+var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;
+l=l<c.l?c.l:c.r<l?c.r:l;
+t=t<c.t?c.t:c.b<t?c.b:t;
+this.host.onMove(this,{l:l,t:t});
+},onFirstMove:function(){
+dojo.dnd.Mover.prototype.onFirstMove.call(this);
+var c=this.constraintBox=fun.call(this);
+c.r=c.l+c.w;
+c.b=c.t+c.h;
+if(_1b){
+var mb=dojo.marginBox(this.node);
+c.r-=mb.w;
+c.b-=mb.h;
+}
+}});
+return _1c;
+};
+dojo.dnd.move.boxConstrainedMover=function(box,_28){
+dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
+return dojo.dnd.move.constrainedMover(function(){
+return box;
+},_28);
+};
+dojo.dnd.move.parentConstrainedMover=function(_29,_2a){
+dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");
+var fun=function(){
+var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
+if(_29=="margin"){
+return mb;
+}
+var t=dojo._getMarginExtents(n,s);
+mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
+if(_29=="border"){
+return mb;
+}
+t=dojo._getBorderExtents(n,s);
+mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
+if(_29=="padding"){
+return mb;
+}
+t=dojo._getPadExtents(n,s);
+mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
+return mb;
+};
+return dojo.dnd.move.constrainedMover(fun,_2a);
+};
+dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
+dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
+dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/fx/Toggler.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/fx/Toggler.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/fx/Toggler.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,30 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.fx.Toggler"]){
+dojo._hasResource["dojo.fx.Toggler"]=true;
+dojo.provide("dojo.fx.Toggler");
+dojo.declare("dojo.fx.Toggler",null,{constructor:function(_1){
+var _t=this;
+dojo.mixin(_t,_1);
+_t.node=_1.node;
+_t._showArgs=dojo.mixin({},_1);
+_t._showArgs.node=_t.node;
+_t._showArgs.duration=_t.showDuration;
+_t.showAnim=_t.showFunc(_t._showArgs);
+_t._hideArgs=dojo.mixin({},_1);
+_t._hideArgs.node=_t.node;
+_t._hideArgs.duration=_t.hideDuration;
+_t.hideAnim=_t.hideFunc(_t._hideArgs);
+dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));
+dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));
+},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_3){
+return this.showAnim.play(_3||0);
+},hide:function(_4){
+return this.hideAnim.play(_4||0);
+}});
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/fx.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/fx.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/fx.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,253 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.fx"]){
+dojo._hasResource["dojo.fx"]=true;
+dojo.provide("dojo.fx");
+dojo.require("dojo.fx.Toggler");
+(function(){
+var d=dojo,_2={_fire:function(_3,_4){
+if(this[_3]){
+this[_3].apply(this,_4||[]);
+}
+return this;
+}};
+var _5=function(_6){
+this._index=-1;
+this._animations=_6||[];
+this._current=this._onAnimateCtx=this._onEndCtx=null;
+this.duration=0;
+d.forEach(this._animations,function(a){
+this.duration+=a.duration;
+if(a.delay){
+this.duration+=a.delay;
+}
+},this);
+};
+d.extend(_5,{_onAnimate:function(){
+this._fire("onAnimate",arguments);
+},_onEnd:function(){
+d.disconnect(this._onAnimateCtx);
+d.disconnect(this._onEndCtx);
+this._onAnimateCtx=this._onEndCtx=null;
+if(this._index+1==this._animations.length){
+this._fire("onEnd");
+}else{
+this._current=this._animations[++this._index];
+this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
+this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
+this._current.play(0,true);
+}
+},play:function(_8,_9){
+if(!this._current){
+this._current=this._animations[this._index=0];
+}
+if(!_9&&this._current.status()=="playing"){
+return this;
+}
+var _a=d.connect(this._current,"beforeBegin",this,function(){
+this._fire("beforeBegin");
+}),_b=d.connect(this._current,"onBegin",this,function(_c){
+this._fire("onBegin",arguments);
+}),_d=d.connect(this._current,"onPlay",this,function(_e){
+this._fire("onPlay",arguments);
+d.disconnect(_a);
+d.disconnect(_b);
+d.disconnect(_d);
+});
+if(this._onAnimateCtx){
+d.disconnect(this._onAnimateCtx);
+}
+this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
+if(this._onEndCtx){
+d.disconnect(this._onEndCtx);
+}
+this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
+this._current.play.apply(this._current,arguments);
+return this;
+},pause:function(){
+if(this._current){
+var e=d.connect(this._current,"onPause",this,function(arg){
+this._fire("onPause",arguments);
+d.disconnect(e);
+});
+this._current.pause();
+}
+return this;
+},gotoPercent:function(_11,_12){
+this.pause();
+var _13=this.duration*_11;
+this._current=null;
+d.some(this._animations,function(a){
+if(a.duration<=_13){
+this._current=a;
+return true;
+}
+_13-=a.duration;
+return false;
+});
+if(this._current){
+this._current.gotoPercent(_13/this._current.duration,_12);
+}
+return this;
+},stop:function(_15){
+if(this._current){
+if(_15){
+for(;this._index+1<this._animations.length;++this._index){
+this._animations[this._index].stop(true);
+}
+this._current=this._animations[this._index];
+}
+var e=d.connect(this._current,"onStop",this,function(arg){
+this._fire("onStop",arguments);
+d.disconnect(e);
+});
+this._current.stop();
+}
+return this;
+},status:function(){
+return this._current?this._current.status():"stopped";
+},destroy:function(){
+if(this._onAnimateCtx){
+d.disconnect(this._onAnimateCtx);
+}
+if(this._onEndCtx){
+d.disconnect(this._onEndCtx);
+}
+}});
+d.extend(_5,_2);
+dojo.fx.chain=function(_18){
+return new _5(_18);
+};
+var _19=function(_1a){
+this._animations=_1a||[];
+this._connects=[];
+this._finished=0;
+this.duration=0;
+d.forEach(_1a,function(a){
+var _1c=a.duration;
+if(a.delay){
+_1c+=a.delay;
+}
+if(this.duration<_1c){
+this.duration=_1c;
+}
+this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
+},this);
+this._pseudoAnimation=new d._Animation({curve:[0,1],duration:this.duration});
+var _1d=this;
+d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){
+_1d._connects.push(d.connect(_1d._pseudoAnimation,evt,function(){
+_1d._fire(evt,arguments);
+}));
+});
+};
+d.extend(_19,{_doAction:function(_1f,_20){
+d.forEach(this._animations,function(a){
+a[_1f].apply(a,_20);
+});
+return this;
+},_onEnd:function(){
+if(++this._finished==this._animations.length){
+this._fire("onEnd");
+}
+},_call:function(_22,_23){
+var t=this._pseudoAnimation;
+t[_22].apply(t,_23);
+},play:function(_25,_26){
+this._finished=0;
+this._doAction("play",arguments);
+this._call("play",arguments);
+return this;
+},pause:function(){
+this._doAction("pause",arguments);
+this._call("pause",arguments);
+return this;
+},gotoPercent:function(_27,_28){
+var ms=this.duration*_27;
+d.forEach(this._animations,function(a){
+a.gotoPercent(a.duration<ms?1:(ms/a.duration),_28);
+});
+this._call("gotoPercent",arguments);
+return this;
+},stop:function(_2b){
+this._doAction("stop",arguments);
+this._call("stop",arguments);
+return this;
+},status:function(){
+return this._pseudoAnimation.status();
+},destroy:function(){
+d.forEach(this._connects,dojo.disconnect);
+}});
+d.extend(_19,_2);
+dojo.fx.combine=function(_2c){
+return new _19(_2c);
+};
+dojo.fx.wipeIn=function(_2d){
+_2d.node=d.byId(_2d.node);
+var _2e=_2d.node,s=_2e.style,o;
+var _31=d.animateProperty(d.mixin({properties:{height:{start:function(){
+o=s.overflow;
+s.overflow="hidden";
+if(s.visibility=="hidden"||s.display=="none"){
+s.height="1px";
+s.display="";
+s.visibility="";
+return 1;
+}else{
+var _32=d.style(_2e,"height");
+return Math.max(_32,1);
+}
+},end:function(){
+return _2e.scrollHeight;
+}}}},_2d));
+d.connect(_31,"onEnd",function(){
+s.height="auto";
+s.overflow=o;
+});
+return _31;
+};
+dojo.fx.wipeOut=function(_33){
+var _34=_33.node=d.byId(_33.node),s=_34.style,o;
+var _37=d.animateProperty(d.mixin({properties:{height:{end:1}}},_33));
+d.connect(_37,"beforeBegin",function(){
+o=s.overflow;
+s.overflow="hidden";
+s.display="";
+});
+d.connect(_37,"onEnd",function(){
+s.overflow=o;
+s.height="auto";
+s.display="none";
+});
+return _37;
+};
+dojo.fx.slideTo=function(_38){
+var _39=_38.node=d.byId(_38.node),top=null,_3b=null;
+var _3c=(function(n){
+return function(){
+var cs=d.getComputedStyle(n);
+var pos=cs.position;
+top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
+_3b=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
+if(pos!="absolute"&&pos!="relative"){
+var ret=d.coords(n,true);
+top=ret.y;
+_3b=ret.x;
+n.style.position="absolute";
+n.style.top=top+"px";
+n.style.left=_3b+"px";
+}
+};
+})(_39);
+_3c();
+var _41=d.animateProperty(d.mixin({properties:{top:_38.top||0,left:_38.left||0}},_38));
+d.connect(_41,"beforeBegin",_41,_3c);
+return _41;
+};
+})();
+}

Added: branches/vhffs-design/vhffs-panel/js/dojo/html.js
===================================================================
--- branches/vhffs-design/vhffs-panel/js/dojo/html.js	                        (rev 0)
+++ branches/vhffs-design/vhffs-panel/js/dojo/html.js	2009-05-24 12:08:01 UTC (rev 1404)
@@ -0,0 +1,177 @@
+/*
+	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
+	Available via Academic Free License >= 2.1 OR the modified BSD license.
+	see: http://dojotoolkit.org/license for details
+*/
+
+
+if(!dojo._hasResource["dojo.html"]){
+dojo._hasResource["dojo.html"]=true;
+dojo.provide("dojo.html");
+dojo.require("dojo.parser");
+(function(){
+var _1=0;
+dojo.html._secureForInnerHtml=function(_2){
+return _2.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
+};
+dojo.html._emptyNode=dojo.empty;
+dojo.html._setNodeContent=function(_3,_4,_5){
+if(_5){
+dojo.html._emptyNode(_3);
+}
+if(typeof _4=="string"){
+var _6="",_7="",_8=0,_9=_3.nodeName.toLowerCase();
+switch(_9){
+case "tr":
+_6="<tr>";
+_7="</tr>";
+_8+=1;
+case "tbody":
+case "thead":
+_6="<tbody>"+_6;
+_7+="</tbody>";
+_8+=1;
+case "table":
+_6="<table>"+_6;
+_7+="</table>";
+_8+=1;
+break;
+}
+if(_8){
+var n=_3.ownerDocument.createElement("div");
+n.innerHTML=_6+_4+_7;
+do{
+n=n.firstChild;
+}while(--_8);
+dojo.forEach(n.childNodes,function(n){
+_3.appendChild(n.cloneNode(true));
+});
+}else{
+_3.innerHTML=_4;
+}
+}else{
+if(_4.nodeType){
+_3.appendChild(_4);
+}else{
+dojo.forEach(_4,function(n){
+_3.appendChild(n.cloneNode(true));
+});
+}
+}
+return _3;
+};
+dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_d,_e){
+dojo.mixin(this,_d||{});
+_e=this.node=dojo.byId(this.node||_e);
+if(!this.id){
+this.id=["Setter",(_e)?_e.id||_e.tagName:"",_1++].join("_");
+}
+if(!(this.node||_e)){
+new Error(this.declaredClass+": no node provided to "+this.id);
+}
+},set:function(_f,_10){
+if(undefined!==_f){
+this.content=_f;
+}
+if(_10){
+this._mixin(_10);
+}
+this.onBegin();
+this.setContent();
+this.onEnd();
+return this.node;
+},setContent:function(){
+var _11=this.node;
+if(!_11){
+console.error("setContent given no node");
+}
+try{
+_11=dojo.html._setNodeContent(_11,this.content);
+}
+catch(e){
+var _12=this.onContentError(e);
+try{
+_11.innerHTML=_12;
+}
+catch(e){
+console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
+}
+}
+this.node=_11;
+},empty:function(){
+if(this.parseResults&&this.parseResults.length){
+dojo.forEach(this.parseResults,function(w){
+if(w.destroy){
+w.destroy();
+}
+});
+delete this.parseResults;
+}
+dojo.html._emptyNode(this.node);
+},onBegin:function(){
+var _14=this.content;
+if(dojo.isString(_14)){
+if(this.cleanContent){
+_14=dojo.html._secureForInnerHtml(_14);
+}
+if(this.extractContent){
+var _15=_14.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
+if(_15){
+_14=_15[1];
+}
+}
+}
+this.empty();
+this.content=_14;
+return this.node;
+},onEnd:function(){
+if(this.parseContent){
+this._parse();
+}
+return this.node;
+},tearDown:function(){
+delete this.parseResults;
+delete this.node;
+delete this.content;
+},onContentError:function(err){
+return "Error occured setting content: "+err;
+},_mixin:function(_17){
+var _18={},key;
+for(key in _17){
+if(key in _18){
+continue;
+}
+this[key]=_17[key];
+}
+},_parse:function(){
+var _1a=this.node;
+try{
+this.parseResults=dojo.parser.parse(_1a,true);
+}
+catch(e){
+this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
+}
+},_onError:function(_1b,err,_1d){
+var _1e=this["on"+_1b+"Error"].call(this,err);
+if(_1d){
+console.error(_1d,err);
+}else{
+if(_1e){
+dojo.html._setNodeContent(this.node,_1e,true);
+}
+}
+}});
+dojo.html.set=function(_1f,_20,_21){
+if(undefined==_20){
+console.warn("dojo.html.set: no cont argument provided, using empty string");
+_20="";
+}
+if(!_21){
+return dojo.html._setNodeContent(_1f,_20,true);
+}else{
+var op=new dojo.html._ContentSetter(dojo.mixin(_21,{content:_20,node:_1f}));
+return op.set();
+}
+};
+})();
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/