(function(){var a="[Class ",
b="toString",
c="qx.Bootstrap",
d="]",
e="Class",
f=".";
qx={Bootstrap:{genericToString:function(){return a+this.classname+d;
},
createNamespace:function(g,
h){var j=g.split(f);
var k=window;
var l=j[0];
for(var m=0,
n=j.length-1;m<n;m++,
l=j[m]){if(!k[l]){k=k[l]={};
}else{k=k[l];
}}k[l]=h;
return l;
},
define:function(g,
o){if(!o){var o={statics:{}};
}var p;
var q=null;
if(o.members){p=o.construct||new Function;
var r=o.statics;
for(var s in r){p[s]=r[s];
}q=p.prototype;
var t=o.members;
for(var s in t){q[s]=t[s];
}}else{p=o.statics||{};
}var u=this.createNamespace(g,
p);
p.name=p.classname=g;
p.basename=u;
p.$$type=e;
if(!p.hasOwnProperty(b)){p.toString=this.genericToString;
}if(o.defer){o.defer(p,
q);
}qx.Bootstrap.$$registry[g]=o.statics;
}}};
qx.Bootstrap.define(c,
{statics:{LOADSTART:new Date,
createNamespace:qx.Bootstrap.createNamespace,
define:qx.Bootstrap.define,
genericToString:qx.Bootstrap.genericToString,
getByName:function(g){return this.$$registry[g];
},
$$registry:{}}});
})();
(function(){var a="qx.allowUrlSettings",
b="&",
c="qx.core.Setting",
d="qx.allowUrlVariants",
e="qxsetting",
f=":",
g=".";
qx.Bootstrap.define(c,
{statics:{__a:{},
define:function(h,
j){if(j===undefined){throw new Error('Default value of setting "'+h+'" must be defined!');
}
if(!this.__a[h]){this.__a[h]={};
}else if(this.__a[h].defaultValue!==undefined){throw new Error('Setting "'+h+'" is already defined!');
}this.__a[h].defaultValue=j;
},
get:function(h){var k=this.__a[h];
if(k===undefined){throw new Error('Setting "'+h+'" is not defined.');
}
if(k.value!==undefined){return k.value;
}return k.defaultValue;
},
__b:function(){if(window.qxsettings){for(var h in qxsettings){if((h.split(g)).length<2){throw new Error('Malformed settings key "'+h+'". Must be following the schema "namespace.key".');
}
if(!this.__a[h]){this.__a[h]={};
}this.__a[h].value=qxsettings[h];
}window.qxsettings=undefined;
try{delete window.qxsettings;
}catch(ex){}this.__c();
}},
__c:function(){if(this.get(a)!=true){return;
}var l=document.location.search.slice(1).split(b);
for(var m=0;m<l.length;m++){var n=l[m].split(f);
if(n.length!=3||n[0]!=e){continue;
}var h=n[1];
if(!this.__a[h]){this.__a[h]={};
}this.__a[h].value=decodeURIComponent(n[2]);
}}},
defer:function(o){o.define(a,
false);
o.define(d,
false);
o.__b();
}});
})();
(function(){var a="gecko",
b="1.9.0.0",
c="function",
d="[^\\.0-9]",
e="525.26",
f="mshtml",
g="AppleWebKit/",
h="unknown",
i="9.6.0",
j="Gecko",
k="7.0",
l="opera",
m="webkit",
n="0.0.0",
o=".",
p="qx.bom.client.Engine";
qx.Bootstrap.define(p,
{statics:{NAME:"",
FULLVERSION:"0.0.0",
VERSION:0.0,
OPERA:false,
WEBKIT:false,
GECKO:false,
MSHTML:false,
UNKNOWN_ENGINE:false,
UNKNOWN_VERSION:false,
__d:function(){var q=h;
var r=n;
var s=navigator.userAgent;
var t=false;
var u=false;
if(window.opera){q=l;
this.OPERA=true;
if(/Opera[\s\/]([0-9\.]*)/.test(s)){r=RegExp.$1.substring(0,
3)+o+RegExp.$1.substring(3);
}else{u=true;
r=i;
}}else if(navigator.userAgent.indexOf(g)!=-1){q=m;
this.WEBKIT=true;
if(/AppleWebKit\/([^ ]+)/.test(s)){r=RegExp.$1;
var v=RegExp(d).exec(r);
if(v){r=r.slice(0,
v.index);
}}else{u=true;
r=e;
}}else if(window.controllers&&navigator.product===j){q=a;
this.GECKO=true;
if(/rv\:([^\);]+)(\)|;)/.test(s)){r=RegExp.$1;
}else{u=true;
r=b;
}}else if(navigator.cpuClass&&/MSIE\s+([^\);]+)(\)|;)/.test(s)){q=f;
r=RegExp.$1;
if(r>=8&&document.documentMode<8){r=k;
}this.MSHTML=true;
}else{var w=window.qxFail;
if(w&&typeof w===c){var q=w();
if(q.NAME&&q.FULLVERSION){q=q.NAME;
this[q.toUpperCase()]=true;
r=q.FULLVERSION;
}}else{t=true;
u=true;
r=b;
q=a;
this.GECKO=true;
alert("Unsupported client: "+s+"! Assumed gecko version 1.9.0.0 (Firefox 3.0).");
}}this.UNKNOWN_ENGINE=t;
this.UNKNOWN_VERSION=u;
this.NAME=q;
this.FULLVERSION=r;
this.VERSION=parseFloat(r);
}},
defer:function(x){x.__d();
}});
})();
(function(){var a="on",
b="off",
c="|",
d="default",
e="object",
f="&",
g="qx.aspects",
h="$",
j="qx.allowUrlVariants",
k="qx.debug",
m="qx.client",
n="qx.dynlocale",
o="webkit",
p="qxvariant",
q="opera",
r=":",
s="qx.core.Variant",
t="mshtml",
u="gecko";
qx.Bootstrap.define(s,
{statics:{__e:{},
__f:{},
compilerIsSet:function(){return true;
},
define:function(w,
x,
y){{};
if(!this.__e[w]){this.__e[w]={};
}else{}this.__e[w].allowedValues=x;
this.__e[w].defaultValue=y;
},
get:function(w){var z=this.__e[w];
{};
if(z.value!==undefined){return z.value;
}return z.defaultValue;
},
__g:function(){if(window.qxvariants){for(var w in qxvariants){{};
if(!this.__e[w]){this.__e[w]={};
}this.__e[w].value=qxvariants[w];
}window.qxvariants=undefined;
try{delete window.qxvariants;
}catch(ex){}this.__h(this.__e);
}},
__h:function(){if(qx.core.Setting.get(j)!=true){return;
}var A=document.location.search.slice(1).split(f);
for(var B=0;B<A.length;B++){var C=A[B].split(r);
if(C.length!=3||C[0]!=p){continue;
}var w=C[1];
if(!this.__e[w]){this.__e[w]={};
}this.__e[w].value=decodeURIComponent(C[2]);
}},
select:function(w,
D){{};
for(var C in D){if(this.isSet(w,
C)){return D[C];
}}
if(D[d]!==undefined){return D[d];
}{};
},
isSet:function(w,
E){var F=w+h+E;
if(this.__f[F]!==undefined){return this.__f[F];
}var G=false;
if(E.indexOf(c)<0){G=this.get(w)===E;
}else{var H=E.split(c);
for(var B=0,
I=H.length;B<I;B++){if(this.get(w)===H[B]){G=true;
break;
}}}this.__f[F]=G;
return G;
},
__i:function(J){return typeof J===e&&J!==null&&J instanceof Array;
},
__j:function(J){return typeof J===e&&J!==null&&!(J instanceof Array);
},
__k:function(K,
L){for(var B=0,
I=K.length;B<I;B++){if(K[B]==L){return true;
}}return false;
}},
defer:function(M){M.define(m,
[u,
t,
q,
o],
qx.bom.client.Engine.NAME);
M.define(k,
[a,
b],
a);
M.define(g,
[a,
b],
b);
M.define(n,
[a,
b],
a);
M.__g();
}});
})();
(function(){var b='"',
c="valueOf",
d="toLocaleString",
e="isPrototypeOf",
f="",
g="toString",
h="qx.client",
j="qx.lang.Object",
k='\", "',
m="hasOwnProperty";
﻿;
qx.Bootstrap.define(j,
{statics:{empty:function(n){for(var o in n){if(n.hasOwnProperty(o)){delete n[o];
}}},
isEmpty:function(n){for(var o in n){return false;
}return true;
},
hasMinLength:function(n,
p){var q=0;
for(var o in n){if((++q)>=p){return true;
}}return false;
},
getLength:function(n){var q=0;
for(var o in n){q++;
}return q;
},
_shadowedKeys:[e,
m,
d,
g,
c],
getKeys:qx.core.Variant.select(h,
{"mshtml":function(n){var r=[];
for(var o in n){r.push(o);
}for(var s=0,
t=this._shadowedKeys,
u=t.length;s<u;s++){if(n.hasOwnProperty(t[s])){r.push(t[s]);
}}return r;
},
"default":function(n){var r=[];
for(var o in n){r.push(o);
}return r;
}}),
getKeysAsString:function(n){var v=qx.lang.Object.getKeys(n);
if(v.length==0){return f;
}return b+v.join(k)+b;
},
getValues:function(n){var r=[];
for(var o in n){r.push(n[o]);
}return r;
},
mergeWith:function(w,
x,
y){if(y===undefined){y=true;
}
for(var o in x){if(y||w[o]===undefined){w[o]=x[o];
}}return w;
},
carefullyMergeWith:function(w,
x){return qx.lang.Object.mergeWith(w,
x,
false);
},
merge:function(w,
z){var A=arguments.length;
for(var s=1;s<A;s++){qx.lang.Object.mergeWith(w,
arguments[s]);
}return w;
},
copy:function(x){var B={};
for(var o in x){B[o]=x[o];
}return B;
},
invert:function(n){var C={};
for(var o in n){C[n[o].toString()]=o;
}return C;
},
getKeyFromValue:function(D,
E){for(var o in D){if(D.hasOwnProperty(o)&&D[o]===E){return o;
}}return null;
},
contains:function(D,
E){return this.getKeyFromValue(D,
E)!==null;
},
select:function(o,
n){return n[o];
},
fromArray:function(F){var D={};
for(var s=0,
u=F.length;s<u;s++){{};
D[F[s].toString()]=true;
}return D;
}}});
})();
(function(){var a="qx.core.Aspect",
b="before",
c="*",
d="static";
qx.Bootstrap.define(a,
{statics:{__l:[],
wrap:function(e,
f,
g){var h=[];
var j=[];
var k=this.__l;
var l;
for(var m=0;m<k.length;m++){l=k[m];
if((l.type==null||g==l.type||l.type==c)&&(l.name==null||e.match(l.name))){l.pos==-1?h.push(l.fcn):j.push(l.fcn);
}}
if(h.length===0&&j.length===0){return f;
}var n=function(){for(var m=0;m<h.length;m++){h[m].call(this,
e,
f,
g,
arguments);
}var o=f.apply(this,
arguments);
for(var m=0;m<j.length;m++){j[m].call(this,
e,
f,
g,
arguments,
o);
}return o;
};
if(g!==d){n.self=f.self;
n.base=f.base;
}f.wrapper=n;
n.original=f;
return n;
},
addAdvice:function(f,
p,
g,
q){this.__l.push({fcn:f,
pos:p===b?-1:1,
type:g,
name:q});
}}});
})();
(function(){var b="qx.aspects",
c="on",
d=".",
e="static",
f="[Class ",
g="]",
h="toString",
j="member",
k="$$init_",
m="destructor",
n="extend",
o="Class",
p="off",
q="qx.Class",
r="qx.event.type.Data";
qx.Bootstrap.define(q,
{statics:{define:function(s,
t){if(!t){var t={};
}if(t.include&&!(t.include instanceof Array)){t.include=[t.include];
}if(t.implement&&!(t.implement instanceof Array)){t.implement=[t.implement];
}if(!t.hasOwnProperty(n)&&!t.type){t.type=e;
}{};
var u=this.__q(s,
t.type,
t.extend,
t.statics,
t.construct,
t.destruct);
if(t.extend){if(t.properties){this.__s(u,
t.properties,
true);
}if(t.members){this.__u(u,
t.members,
true,
true,
false);
}if(t.events){this.__r(u,
t.events,
true);
}if(t.include){for(var v=0,
w=t.include.length;v<w;v++){this.__x(u,
t.include[v],
false);
}}}if(t.settings){for(var x in t.settings){qx.core.Setting.define(x,
t.settings[x]);
}}if(t.variants){for(var x in t.variants){qx.core.Variant.define(x,
t.variants[x].allowedValues,
t.variants[x].defaultValue);
}}if(t.implement){for(var v=0,
w=t.implement.length;v<w;v++){this.__w(u,
t.implement[v]);
}}{};
if(t.defer){t.defer.self=u;
t.defer(u,
u.prototype,
{add:function(s,
t){var y={};
y[s]=t;
qx.Class.__s(u,
y,
true);
}});
}},
isDefined:function(s){return this.getByName(s)!==undefined;
},
getTotalNumber:function(){return qx.lang.Object.getLength(this.$$registry);
},
getByName:function(s){return this.$$registry[s];
},
include:function(u,
z){{};
qx.Class.__x(u,
z,
false);
},
patch:function(u,
z){{};
qx.Class.__x(u,
z,
true);
},
isSubClassOf:function(u,
A){if(!u){return false;
}
if(u==A){return true;
}
if(u.prototype instanceof A){return true;
}return false;
},
getPropertyDefinition:function(u,
s){while(u){if(u.$$properties&&u.$$properties[s]){return u.$$properties[s];
}u=u.superclass;
}return null;
},
getProperties:function(u){var B=[];
while(u){if(u.$$properties){B.push.apply(B,
qx.lang.Object.getKeys(u.$$properties));
}u=u.superclass;
}return B;
},
getByProperty:function(u,
s){while(u){if(u.$$properties&&u.$$properties[s]){return u;
}u=u.superclass;
}return null;
},
hasProperty:function(u,
s){return !!this.getPropertyDefinition(u,
s);
},
getEventType:function(u,
s){var u=u.constructor;
while(u.superclass){if(u.$$events&&u.$$events[s]!==undefined){return u.$$events[s];
}u=u.superclass;
}return null;
},
supportsEvent:function(u,
s){return !!this.getEventType(u,
s);
},
hasOwnMixin:function(u,
z){return u.$$includes&&u.$$includes.indexOf(z)!==-1;
},
getByMixin:function(u,
z){var B,
v,
w;
while(u){if(u.$$includes){B=u.$$flatIncludes;
for(v=0,
w=B.length;v<w;v++){if(B[v]===z){return u;
}}}u=u.superclass;
}return null;
},
getMixins:function(u){var B=[];
while(u){if(u.$$includes){B.push.apply(B,
u.$$flatIncludes);
}u=u.superclass;
}return B;
},
hasMixin:function(u,
z){return !!this.getByMixin(u,
z);
},
hasOwnInterface:function(u,
C){return u.$$implements&&u.$$implements.indexOf(C)!==-1;
},
getByInterface:function(u,
C){var B,
v,
w;
while(u){if(u.$$implements){B=u.$$flatImplements;
for(v=0,
w=B.length;v<w;v++){if(B[v]===C){return u;
}}}u=u.superclass;
}return null;
},
getInterfaces:function(u){var B=[];
while(u){if(u.$$implements){B.push.apply(B,
u.$$flatImplements);
}u=u.superclass;
}return B;
},
hasInterface:function(u,
C){return !!this.getByInterface(u,
C);
},
implementsInterface:function(D,
C){var u=D.constructor;
if(this.hasInterface(u,
C)){return true;
}
try{qx.Interface.assertObject(D,
C);
return true;
}catch(ex){}
try{qx.Interface.assert(u,
C,
false);
return true;
}catch(ex){}return false;
},
getInstance:function(){if(!this.$$instance){this.$$allowconstruct=true;
this.$$instance=new this;
delete this.$$allowconstruct;
}return this.$$instance;
},
genericToString:function(){return f+this.classname+g;
},
$$registry:qx.Bootstrap.$$registry,
__m:null,
__n:null,
__o:function(){},
__p:function(){},
__q:function(s,
E,
F,
G,
H,
I){var u;
if(!F&&qx.core.Variant.isSet(b,
p)){u=G||{};
}else{u={};
if(F){if(!H){H=this.__y();
}u=this.__A(H,
s,
E);
}if(G){var x;
for(var v=0,
J=qx.lang.Object.getKeys(G),
w=J.length;v<w;v++){x=J[v];
if(qx.core.Variant.isSet(b,
c)){var K=G[x];
if(K instanceof Function){K=qx.core.Aspect.wrap(s+d+x,
K,
e);
}u[x]=K;
}else{u[x]=G[x];
}}}}var L=qx.Bootstrap.createNamespace(s,
u,
false);
u.name=u.classname=s;
u.basename=L;
u.$$type=o;
if(E){u.$$classtype=E;
}if(!u.hasOwnProperty(h)){u.toString=this.genericToString;
}
if(F){var M=F.prototype;
var N=this.__z();
N.prototype=M;
var O=new N;
u.prototype=O;
O.name=O.classname=s;
O.basename=L;
H.base=u.superclass=F;
H.self=u.constructor=O.constructor=u;
if(I){if(qx.core.Variant.isSet(b,
c)){I=qx.core.Aspect.wrap(s,
I,
m);
}u.$$destructor=I;
}}this.$$registry[s]=u;
return u;
},
__r:function(u,
P,
Q){var x,
x;
if(u.$$events){for(var x in P){u.$$events[x]=P[x];
}}else{u.$$events=P;
}},
__s:function(u,
y,
Q){var t;
if(Q===undefined){Q=false;
}var R=!!u.$$propertiesAttached;
for(var s in y){t=y[s];
{};
t.name=s;
if(!t.refine){if(u.$$properties===undefined){u.$$properties={};
}u.$$properties[s]=t;
}if(t.init!==undefined){u.prototype[k+s]=t.init;
}if(t.event!==undefined){var S={};
S[t.event]=r;
this.__r(u,
S,
Q);
}if(t.inheritable){qx.core.Property.$$inheritable[s]=true;
}if(R){qx.core.Property.attachMethods(u,
s,
t);
}}},
__t:null,
__u:function(u,
T,
Q,
U,
V){var O=u.prototype;
var x,
W;
for(var v=0,
J=qx.lang.Object.getKeys(T),
w=J.length;v<w;v++){x=J[v];
W=T[x];
{};
if(U!==false&&W instanceof Function&&W.$$type==null){if(V==true){W=this.__v(W,
O[x]);
}else{if(O[x]){W.base=O[x];
}W.self=u;
}
if(qx.core.Variant.isSet(b,
c)){W=qx.core.Aspect.wrap(u.classname+d+x,
W,
j);
}}O[x]=W;
}},
__v:function(W,
U){if(U){return function(){var X=W.base;
W.base=U;
var Y=W.apply(this,
arguments);
W.base=X;
return Y;
};
}else{return W;
}},
__w:function(u,
C){{};
var B=qx.Interface.flatten([C]);
if(u.$$implements){u.$$implements.push(C);
u.$$flatImplements.push.apply(u.$$flatImplements,
B);
}else{u.$$implements=[C];
u.$$flatImplements=B;
}},
__x:function(u,
z,
Q){{};
if(this.hasMixin(u,
z)){qx.log.Logger.warn('Mixin "'+z.name+'" is already included into Class "'+u.classname+'" by class: '+this.getByMixin(u,
z).classname+'!');
return;
}var B=qx.Mixin.flatten([z]);
var ba;
for(var v=0,
w=B.length;v<w;v++){ba=B[v];
if(ba.$$events){this.__r(u,
ba.$$events,
Q);
}if(ba.$$properties){this.__s(u,
ba.$$properties,
Q);
}if(ba.$$members){this.__u(u,
ba.$$members,
Q,
Q,
Q);
}}if(u.$$includes){u.$$includes.push(z);
u.$$flatIncludes.push.apply(u.$$flatIncludes,
B);
}else{u.$$includes=[z];
u.$$flatIncludes=B;
}},
__y:function(){function bb(){arguments.callee.base.apply(this,
arguments);
}return bb;
},
__z:function(){return function(){};
},
__A:function(H,
s,
E){var bc=function(){var u=arguments.callee.constructor;
{};
if(!u.$$propertiesAttached){qx.core.Property.attach(u);
}var Y=u.$$original.apply(this,
arguments);
if(u.$$includes){var bd=u.$$flatIncludes;
for(var v=0,
w=bd.length;v<w;v++){if(bd[v].$$constructor){bd[v].$$constructor.apply(this,
arguments);
}}}if(this.classname===s.classname){this.$$initialized=true;
}return Y;
};
if(qx.core.Variant.isSet("qx.aspects",
"on")){var be=qx.core.Aspect.wrap(s,
bc,
"constructor");
bc.$$original=H;
bc.constructor=be;
bc=be;
}if(E==="singleton"){bc.getInstance=this.getInstance;
}bc.$$original=H;
H.wrapper=bc;
return bc;
}},
defer:function(G){if(qx.core.Variant.isSet(b,
c)){for(var bf in qx.Bootstrap.$$registry){var G=qx.Bootstrap.$$registry[bf];
for(var x in G){if(G[x] instanceof Function){G[x]=qx.core.Aspect.wrap(bf+d+x,
G[x],
e);
}}}}}});
})();
(function(){var b="]",
c="Theme",
d="[Theme ",
e="qx.Theme";
qx.Class.define(e,
{statics:{define:function(f,
g){if(!g){var g={};
}
if(g.include&&!(g.include instanceof Array)){g.include=[g.include];
}{};
var h={$$type:c,
name:f,
title:g.title,
toString:this.genericToString};
if(g.extend){h.supertheme=g.extend;
}if(g.resource){h.resource=g.resource;
}else if(g.extend&&g.extend.resource){h.resource=g.extend.resource;
}h.basename=qx.Bootstrap.createNamespace(f,
h);
this.__C(h,
g);
this.$$registry[f]=h;
if(g.include){for(var j=0,
k=g.include,
m=k.length;j<m;j++){this.include(h,
k[j]);
}}},
getAll:function(){return this.$$registry;
},
getByName:function(f){return this.$$registry[f];
},
isDefined:function(f){return this.getByName(f)!==undefined;
},
getTotalNumber:function(){return qx.lang.Object.getLength(this.$$registry);
},
genericToString:function(){return d+this.name+b;
},
__B:function(g){for(var j=0,
n=this.__D,
m=n.length;j<m;j++){if(g[n[j]]){return n[j];
}}},
__C:function(h,
g){var o=this.__B(g);
if(g.extend&&!o){o=g.extend.type;
}h.type=o||"other";
if(!o){return;
}var p=function(){};
if(g.extend){p.prototype=new g.extend.$$clazz;
}var q=p.prototype;
var r=g[o];
for(var s in r){q[s]=r[s];
if(q[s].base){{};
q[s].base=g.extend;
}}h.$$clazz=p;
h[o]=new p;
},
$$registry:{},
__D:["colors",
"borders",
"decorations",
"fonts",
"icons",
"widgets",
"appearances",
"meta"],
__E:null,
__F:null,
__G:function(){},
patch:function(h,
t){var o=this.__B(t);
if(o!==this.__B(h)){throw new Error("The mixins '"+h.name+"' are not compatible '"+t.name+"'!");
}var r=t[o];
var q=h[o];
for(var u in r){q[u]=r[u];
}},
include:function(h,
t){var o=t.type;
if(o!==h.type){throw new Error("The mixins '"+h.name+"' are not compatible '"+t.name+"'!");
}var r=t[o];
var q=h[o];
for(var u in r){if(q[u]!==undefined){throw new Error("It is not allowed to overwrite the key '"+u+"' of theme '"+h.name+"' by mixin theme '"+t.name+"'.");
}q[u]=r[u];
}}}});
})();
(function(){var a="white",
b="black",
c="#3E6CA8",
d="#EBE9ED",
e="#A7A6AA",
f="#EEE",
g="#F3F0F5",
h="gray",
i="#888888",
j="#3E5B97",
k="#FFFFE1",
l="#F3F8FD",
m="#808080",
n="#F4F4F4",
o="#CCCCCC",
p="#DBEAF9",
q="#BCCEE5",
r="#A5BDDE",
s="#7CA0CF",
t="#F6F5F7",
u="qx.theme.classic.Color",
v="#F9F8E9",
w="#DCDFE4",
x="#FAFBFE",
y="#AAAAAA",
z="#85878C";
qx.Theme.define(u,
{colors:{"background":d,
"background-light":g,
"background-focused":l,
"background-focused-inner":p,
"background-disabled":n,
"background-selected":c,
"background-field":a,
"background-pane":x,
"border-lead":i,
"border-light":a,
"border-light-shadow":w,
"border-dark-shadow":e,
"border-dark":z,
"border-focused-light":q,
"border-focused-light-shadow":r,
"border-focused-dark-shadow":s,
"border-focused-dark":c,
"border-separator":m,
"text":b,
"text-disabled":e,
"text-selected":a,
"text-focused":j,
"tooltip":k,
"tooltip-text":b,
"button":d,
"button-hovered":t,
"button-abandoned":v,
"button-checked":g,
"window-active-caption-text":[255,
255,
255],
"window-inactive-caption-text":[255,
255,
255],
"window-active-caption":[51,
94,
168],
"window-inactive-caption":[111,
161,
217],
"date-chooser":a,
"date-chooser-title":[116,
116,
116],
"date-chooser-selected":[52,
52,
52],
"effect":[254,
200,
60],
"table-pane":a,
"table-header":[242,
242,
242],
"table-header-border":[214,
213,
217],
"table-header-cell":[235,
234,
219],
"table-header-cell-hover":[255,
255,
255],
"table-focus-indicator":[179,
217,
255],
"table-row-background-focused-selected":[90,
138,
211],
"table-row-background-focused":[221,
238,
255],
"table-row-background-selected":[51,
94,
168],
"table-row-background-even":[250,
248,
243],
"table-row-background-odd":[255,
255,
255],
"table-row-selected":[255,
255,
255],
"table-row":[0,
0,
0],
"table-row-line":f,
"table-column-line":f,
"progressive-table-header":y,
"progressive-table-row-background-even":[250,
248,
243],
"progressive-table-row-background-odd":[255,
255,
255],
"progressive-progressbar-background":h,
"progressive-progressbar-indicator-done":o,
"progressive-progressbar-indicator-undone":a,
"progressive-progressbar-percent-background":h,
"progressive-progressbar-percent-text":a}});
})();
(function(){var b=';',
c='computed=this.',
d='=value;',
e='this.',
f='if(this.',
g='!==undefined)',
h='delete this.',
j="set",
k="setThemed",
m='}',
n="setRuntime",
o='else if(this.',
p="init",
q='return this.',
r="string",
s="boolean",
t="resetThemed",
u='!==undefined){',
v='=true;',
w="resetRuntime",
x="reset",
y="refresh",
z='old=this.',
A='else ',
B='old=computed=this.',
C=' of an instance of ',
D='if(old===computed)return value;',
E='if(old===undefined)old=null;',
F='(value);',
G=' is not (yet) ready!");',
H='===value)return value;',
I='return init;',
J='var init=this.',
K="Error in property ",
L='var a=this._getChildren();if(a)for(var i=0,l=a.length;i<l;i++){',
M='.validate.call(this, value);',
N='else{',
O=" in method ",
P='=computed;',
Q='(backup);',
R='if(computed===inherit){',
S="inherit",
T='if(value===undefined)prop.error(this,2,"',
U='var computed, old=this.',
V='else if(computed===undefined)',
W="': ",
X=" of class ",
Y='===undefined)return;',
ba="')){",
bb='else this.',
bc='value=this.',
bd='","',
be='if(init==qx.core.Property.$$inherit)init=null;',
bf='var inherit=prop.$$inherit;',
bg='var computed, old;',
bh='computed=undefined;delete this.',
bi='",value);',
bj='computed=value;',
bk=';}',
bl='){',
bm='if(computed===undefined||computed===inherit){',
bn='!==inherit){',
bo='(computed, old, "',
bp='return value;',
bq='if(init==qx.core.Property.$$inherit)throw new Error("Inheritable property ',
br="if(reg.hasListener(this, '",
bs=')a[i].',
bt='.$$properties.',
bu="var reg=qx.event.Registration;",
bv='return null;',
bw='");',
bx='var pa=this.getLayoutParent();if(pa)computed=pa.',
by='!==undefined&&',
bz="', qx.event.type.Data, [computed, old]",
bA='var backup=computed;',
bB='}else{',
bC="object",
bD='if(computed===undefined)computed=null;',
bE='if(a[i].',
bF='throw new Error("Property ',
bG=")}",
bH='var prop=qx.core.Property;',
bI=" with incoming value '",
bJ='if(computed===undefined||computed==inherit)computed=null;',
bK='if((computed===undefined||computed===inherit)&&',
bL="reg.fireEvent(this, '",
bM="qx.core.Property";
qx.Class.define(bM,
{statics:{__H:{"Boolean":'qx.core.Assert.assertBoolean(value, msg) || true',
"String":'qx.core.Assert.assertString(value, msg) || true',
"Number":'qx.core.Assert.assertNumber(value, msg) || true',
"Integer":'qx.core.Assert.assertInteger(value, msg) || true',
"PositiveNumber":'qx.core.Assert.assertPositiveNumber(value, msg) || true',
"PositiveInteger":'qx.core.Assert.assertPositiveInteger(value, msg) || true',
"Error":'qx.core.Assert.assertInstance(value, Error, msg) || true',
"RegExp":'qx.core.Assert.assertInstance(value, RegExp, msg) || true',
"Object":'qx.core.Assert.assertObject(value, msg) || true',
"Array":'qx.core.Assert.assertArray(value, msg) || true',
"Map":'qx.core.Assert.assertMap(value, msg) || true',
"Function":'qx.core.Assert.assertFunction(value, msg) || true',
"Date":'qx.core.Assert.assertInstance(value, Date, msg) || true',
"Node":'value !== null && value.nodeType !== undefined',
"Element":'value !== null && value.nodeType === 1 && value.attributes',
"Document":'value !== null && value.nodeType === 9 && value.documentElement',
"Window":'value !== null && value.document',
"Event":'value !== null && value.type !== undefined',
"Class":'value !== null && value.$$type === "Class"',
"Mixin":'value !== null && value.$$type === "Mixin"',
"Interface":'value !== null && value.$$type === "Interface"',
"Theme":'value !== null && value.$$type === "Theme"',
"Color":'(typeof value === "string" || value instanceof String) && qx.util.ColorUtil.isValidPropertyValue(value)',
"Decorator":'value !== null && qx.theme.manager.Decoration.getInstance().isValidPropertyValue(value)',
"Font":'value !== null && qx.theme.manager.Font.getInstance().isDynamic(value)'},
__I:{"Object":true,
"Array":true,
"Map":true,
"Function":true,
"Date":true,
"Node":true,
"Element":true,
"Document":true,
"Window":true,
"Event":true,
"Class":true,
"Mixin":true,
"Interface":true,
"Theme":true,
"Font":true,
"Decorator":true},
$$inherit:S,
$$store:{runtime:{},
user:{},
theme:{},
inherit:{},
init:{},
useinit:{}},
$$method:{get:{},
set:{},
reset:{},
init:{},
refresh:{},
setRuntime:{},
resetRuntime:{},
setThemed:{},
resetThemed:{}},
$$allowedKeys:{name:r,
dispose:s,
inheritable:s,
nullable:s,
themeable:s,
refine:s,
init:null,
apply:r,
event:r,
check:null,
transform:r,
deferredInit:s,
validate:null},
$$allowedGroupKeys:{name:r,
group:bC,
mode:r,
themeable:s},
$$inheritable:{},
refresh:function(bN){var bO=bN.getLayoutParent();
if(bO){var bP=bN.constructor;
var bQ=this.$$store.inherit;
var bR=this.$$store.init;
var bS=this.$$method.refresh;
var bT;
var bU;
{};
while(bP){bT=bP.$$properties;
if(bT){for(var bV in this.$$inheritable){if(bT[bV]&&bN[bS[bV]]){bU=bO[bQ[bV]];
if(bU===undefined){bU=bO[bR[bV]];
}{};
bN[bS[bV]](bU);
}}}bP=bP.superclass;
}}},
attach:function(bP){var bT=bP.$$properties;
if(bT){for(var bV in bT){this.attachMethods(bP,
bV,
bT[bV]);
}}bP.$$propertiesAttached=true;
},
attachMethods:function(bP,
bV,
bW){bW.group?this.__J(bP,
bW,
bV):this.__K(bP,
bW,
bV);
},
__J:function(bP,
bW,
bV){var bX=qx.lang.String.firstUp(bV);
var bY=bP.prototype;
var ca=bW.themeable===true;
{};
var cb=[];
var cc=[];
if(ca){var cd=[];
var ce=[];
}var cf="var a=arguments[0] instanceof Array?arguments[0]:arguments;";
cb.push(cf);
if(ca){cd.push(cf);
}
if(bW.mode=="shorthand"){var cg="a=qx.lang.Array.fromShortHand(qx.lang.Array.fromArguments(a));";
cb.push(cg);
if(ca){cd.push(cg);
}}
for(var ch=0,
ci=bW.group,
cj=ci.length;ch<cj;ch++){{};
cb.push("this.",
this.$$method.set[ci[ch]],
"(a[",
ch,
"]);");
cc.push("this.",
this.$$method.reset[ci[ch]],
"();");
if(ca){{};
cd.push("this.",
this.$$method.setThemed[ci[ch]],
"(a[",
ch,
"]);");
ce.push("this.",
this.$$method.resetThemed[ci[ch]],
"();");
}}this.$$method.set[bV]="set"+bX;
bY[this.$$method.set[bV]]=new Function(cb.join(""));
this.$$method.reset[bV]="reset"+bX;
bY[this.$$method.reset[bV]]=new Function(cc.join(""));
if(ca){this.$$method.setThemed[bV]="setThemed"+bX;
bY[this.$$method.setThemed[bV]]=new Function(cd.join(""));
this.$$method.resetThemed[bV]="resetThemed"+bX;
bY[this.$$method.resetThemed[bV]]=new Function(ce.join(""));
}},
__K:function(bP,
bW,
bV){var bX=qx.lang.String.firstUp(bV);
var bY=bP.prototype;
{};
if(bW.dispose===undefined&&typeof bW.check==="string"){bW.dispose=this.__I[bW.check]||qx.Class.isDefined(bW.check)||qx.Interface.isDefined(bW.check);
}var ck=this.$$method;
var cl=this.$$store;
cl.runtime[bV]="$$runtime_"+bV;
cl.user[bV]="$$user_"+bV;
cl.theme[bV]="$$theme_"+bV;
cl.init[bV]="$$init_"+bV;
cl.inherit[bV]="$$inherit_"+bV;
cl.useinit[bV]="$$useinit_"+bV;
ck.get[bV]="get"+bX;
bY[ck.get[bV]]=function(){return qx.core.Property.executeOptimizedGetter(this,
bP,
bV,
"get");
};
ck.set[bV]="set"+bX;
bY[ck.set[bV]]=function(bU){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"set",
arguments);
};
ck.reset[bV]="reset"+bX;
bY[ck.reset[bV]]=function(){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"reset");
};
if(bW.inheritable||bW.apply||bW.event||bW.deferredInit){ck.init[bV]="init"+bX;
bY[ck.init[bV]]=function(bU){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"init",
arguments);
};
}
if(bW.inheritable){ck.refresh[bV]="refresh"+bX;
bY[ck.refresh[bV]]=function(bU){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"refresh",
arguments);
};
}ck.setRuntime[bV]="setRuntime"+bX;
bY[ck.setRuntime[bV]]=function(bU){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"setRuntime",
arguments);
};
ck.resetRuntime[bV]="resetRuntime"+bX;
bY[ck.resetRuntime[bV]]=function(){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"resetRuntime");
};
if(bW.themeable){ck.setThemed[bV]="setThemed"+bX;
bY[ck.setThemed[bV]]=function(bU){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"setThemed",
arguments);
};
ck.resetThemed[bV]="resetThemed"+bX;
bY[ck.resetThemed[bV]]=function(){return qx.core.Property.executeOptimizedSetter(this,
bP,
bV,
"resetThemed");
};
}
if(bW.check==="Boolean"){bY["toggle"+bX]=new Function("return this."+ck.set[bV]+"(!this."+ck.get[bV]+"())");
bY["is"+bX]=new Function("return this."+ck.get[bV]+"()");
}},
__L:{0:'Could not change or apply init value after constructing phase!',
1:'Requires exactly one argument!',
2:'Undefined value is not allowed!',
3:'Does not allow any arguments!',
4:'Null value is not allowed!',
5:'Is invalid!'},
error:function(cm,
cn,
co,
cp,
bU){var cq=cm.constructor.classname;
var cr=K+co+X+cq+O+this.$$method[cp][co]+bI+bU+W;
throw new Error(cr+(this.__L[cn]||"Unknown reason: "+cn));
},
__M:function(cs,
bY,
bV,
cp,
ct,
cu){var cl=this.$$method[cp][bV];
{bY[cl]=new Function("value",
ct.join(""));
};
if(qx.core.Variant.isSet("qx.aspects",
"on")){bY[cl]=qx.core.Aspect.wrap(cs.classname+"."+cl,
bY[cl],
"property");
}if(cu===undefined){return cs[cl]();
}else{return cs[cl](cu[0]);
}},
executeOptimizedGetter:function(cs,
bP,
bV,
cp){var bW=bP.$$properties[bV];
var bY=bP.prototype;
var ct=[];
var cl=this.$$store;
ct.push(f,
cl.runtime[bV],
g);
ct.push(q,
cl.runtime[bV],
b);
if(bW.inheritable){ct.push(o,
cl.inherit[bV],
g);
ct.push(q,
cl.inherit[bV],
b);
ct.push(A);
}ct.push(f,
cl.user[bV],
g);
ct.push(q,
cl.user[bV],
b);
if(bW.themeable){ct.push(o,
cl.theme[bV],
g);
ct.push(q,
cl.theme[bV],
b);
}
if(bW.deferredInit&&bW.init===undefined){ct.push(o,
cl.init[bV],
g);
ct.push(q,
cl.init[bV],
b);
}ct.push(A);
if(bW.init!==undefined){if(bW.inheritable){ct.push(J,
cl.init[bV],
b);
if(bW.nullable){ct.push(be);
}else if(bW.init!==undefined){ct.push(q,
cl.init[bV],
b);
}else{ct.push(bq,
bV,
C,
bP.classname,
G);
}ct.push(I);
}else{ct.push(q,
cl.init[bV],
b);
}}else if(bW.inheritable||bW.nullable){ct.push(bv);
}else{ct.push(bF,
bV,
C,
bP.classname,
G);
}return this.__M(cs,
bY,
bV,
cp,
ct);
},
executeOptimizedSetter:function(cs,
bP,
bV,
cp,
cu){var bW=bP.$$properties[bV];
var bY=bP.prototype;
var ct=[];
var cv=cp===j||cp===k||cp===n||(cp===p&&bW.init===undefined);
var cw=cp===x||cp===t||cp===w;
var cx=bW.apply||bW.event||bW.inheritable;
if(cp===n||cp===w){var cl=this.$$store.runtime[bV];
}else if(cp===k||cp===t){var cl=this.$$store.theme[bV];
}else if(cp===p){var cl=this.$$store.init[bV];
}else{var cl=this.$$store.user[bV];
}{if(!bW.nullable||bW.check||bW.inheritable){ct.push(bH);
}if(cp===j){ct.push(T,
bV,
bd,
cp,
bi);
}};
if(cv){if(bW.transform){ct.push(bc,
bW.transform,
F);
}if(bW.validate){if(typeof bW.validate===r){ct.push(e,
bW.validate,
F);
}else if(bW.validate instanceof Function){ct.push(bP.classname,
bt,
bV);
ct.push(M);
}}}if(cx){if(cv){ct.push(f,
cl,
H);
}else if(cw){ct.push(f,
cl,
Y);
}}if(bW.inheritable){ct.push(bf);
}{};
if(!cx){if(cp===n){ct.push(e,
this.$$store.runtime[bV],
d);
}else if(cp===w){ct.push(f,
this.$$store.runtime[bV],
g);
ct.push(h,
this.$$store.runtime[bV],
b);
}else if(cp===j){ct.push(e,
this.$$store.user[bV],
d);
}else if(cp===x){ct.push(f,
this.$$store.user[bV],
g);
ct.push(h,
this.$$store.user[bV],
b);
}else if(cp===k){ct.push(e,
this.$$store.theme[bV],
d);
}else if(cp===t){ct.push(f,
this.$$store.theme[bV],
g);
ct.push(h,
this.$$store.theme[bV],
b);
}else if(cp===p&&cv){ct.push(e,
this.$$store.init[bV],
d);
}}else{if(bW.inheritable){ct.push(U,
this.$$store.inherit[bV],
b);
}else{ct.push(bg);
}ct.push(f,
this.$$store.runtime[bV],
u);
if(cp===n){ct.push(c,
this.$$store.runtime[bV],
d);
}else if(cp===w){ct.push(h,
this.$$store.runtime[bV],
b);
ct.push(f,
this.$$store.user[bV],
g);
ct.push(c,
this.$$store.user[bV],
b);
ct.push(o,
this.$$store.theme[bV],
g);
ct.push(c,
this.$$store.theme[bV],
b);
ct.push(o,
this.$$store.init[bV],
u);
ct.push(c,
this.$$store.init[bV],
b);
ct.push(e,
this.$$store.useinit[bV],
v);
ct.push(m);
}else{ct.push(B,
this.$$store.runtime[bV],
b);
if(cp===j){ct.push(e,
this.$$store.user[bV],
d);
}else if(cp===x){ct.push(h,
this.$$store.user[bV],
b);
}else if(cp===k){ct.push(e,
this.$$store.theme[bV],
d);
}else if(cp===t){ct.push(h,
this.$$store.theme[bV],
b);
}else if(cp===p&&cv){ct.push(e,
this.$$store.init[bV],
d);
}}ct.push(m);
ct.push(o,
this.$$store.user[bV],
u);
if(cp===j){if(!bW.inheritable){ct.push(z,
this.$$store.user[bV],
b);
}ct.push(c,
this.$$store.user[bV],
d);
}else if(cp===x){if(!bW.inheritable){ct.push(z,
this.$$store.user[bV],
b);
}ct.push(h,
this.$$store.user[bV],
b);
ct.push(f,
this.$$store.runtime[bV],
g);
ct.push(c,
this.$$store.runtime[bV],
b);
ct.push(f,
this.$$store.theme[bV],
g);
ct.push(c,
this.$$store.theme[bV],
b);
ct.push(o,
this.$$store.init[bV],
u);
ct.push(c,
this.$$store.init[bV],
b);
ct.push(e,
this.$$store.useinit[bV],
v);
ct.push(m);
}else{if(cp===n){ct.push(c,
this.$$store.runtime[bV],
d);
}else if(bW.inheritable){ct.push(c,
this.$$store.user[bV],
b);
}else{ct.push(B,
this.$$store.user[bV],
b);
}if(cp===k){ct.push(e,
this.$$store.theme[bV],
d);
}else if(cp===t){ct.push(h,
this.$$store.theme[bV],
b);
}else if(cp===p&&cv){ct.push(e,
this.$$store.init[bV],
d);
}}ct.push(m);
if(bW.themeable){ct.push(o,
this.$$store.theme[bV],
u);
if(!bW.inheritable){ct.push(z,
this.$$store.theme[bV],
b);
}
if(cp===n){ct.push(c,
this.$$store.runtime[bV],
d);
}else if(cp===j){ct.push(c,
this.$$store.user[bV],
d);
}else if(cp===k){ct.push(c,
this.$$store.theme[bV],
d);
}else if(cp===t){ct.push(h,
this.$$store.theme[bV],
b);
ct.push(f,
this.$$store.init[bV],
u);
ct.push(c,
this.$$store.init[bV],
b);
ct.push(e,
this.$$store.useinit[bV],
v);
ct.push(m);
}else if(cp===p){if(cv){ct.push(e,
this.$$store.init[bV],
d);
}ct.push(c,
this.$$store.theme[bV],
b);
}else if(cp===y){ct.push(c,
this.$$store.theme[bV],
b);
}ct.push(m);
}ct.push(o,
this.$$store.useinit[bV],
bl);
if(!bW.inheritable){ct.push(z,
this.$$store.init[bV],
b);
}
if(cp===p){if(cv){ct.push(c,
this.$$store.init[bV],
d);
}else{ct.push(c,
this.$$store.init[bV],
b);
}}else if(cp===j||cp===n||cp===k||cp===y){ct.push(h,
this.$$store.useinit[bV],
b);
if(cp===n){ct.push(c,
this.$$store.runtime[bV],
d);
}else if(cp===j){ct.push(c,
this.$$store.user[bV],
d);
}else if(cp===k){ct.push(c,
this.$$store.theme[bV],
d);
}else if(cp===y){ct.push(c,
this.$$store.init[bV],
b);
}}ct.push(m);
if(cp===j||cp===n||cp===k||cp===p){ct.push(N);
if(cp===n){ct.push(c,
this.$$store.runtime[bV],
d);
}else if(cp===j){ct.push(c,
this.$$store.user[bV],
d);
}else if(cp===k){ct.push(c,
this.$$store.theme[bV],
d);
}else if(cp===p){if(cv){ct.push(c,
this.$$store.init[bV],
d);
}else{ct.push(c,
this.$$store.init[bV],
b);
}ct.push(e,
this.$$store.useinit[bV],
v);
}ct.push(m);
}}
if(bW.inheritable){ct.push(bm);
if(cp===y){ct.push(bj);
}else{ct.push(bx,
this.$$store.inherit[bV],
b);
}ct.push(bK);
ct.push(e,
this.$$store.init[bV],
by);
ct.push(e,
this.$$store.init[bV],
bn);
ct.push(c,
this.$$store.init[bV],
b);
ct.push(e,
this.$$store.useinit[bV],
v);
ct.push(bB);
ct.push(h,
this.$$store.useinit[bV],
bk);
ct.push(m);
ct.push(D);
ct.push(R);
ct.push(bh,
this.$$store.inherit[bV],
b);
ct.push(m);
ct.push(V);
ct.push(h,
this.$$store.inherit[bV],
b);
ct.push(bb,
this.$$store.inherit[bV],
P);
ct.push(bA);
ct.push(E);
ct.push(bJ);
}else if(cx){if(cp!==j&&cp!==n&&cp!==k){ct.push(bD);
}ct.push(D);
ct.push(E);
}if(cx){if(bW.apply){ct.push(e,
bW.apply,
bo,
bV,
bw);
}if(bW.event){ct.push(bu,
br,
bW.event,
ba,
bL,
bW.event,
bz,
bG);
}if(bW.inheritable&&bY._getChildren){ct.push(L);
ct.push(bE,
this.$$method.refresh[bV],
bs,
this.$$method.refresh[bV],
Q);
ct.push(m);
}}if(cv){ct.push(bp);
}return this.__M(cs,
bY,
bV,
cp,
ct,
cu);
}},
settings:{"qx.propertyDebugLevel":0}});
})();
(function(){var c="qx.core.ObjectRegistry";
qx.Bootstrap.define(c,
{statics:{inShutDown:false,
__N:{},
__O:0,
__P:[],
register:function(d){var e=this.__N;
if(!e){return;
}var f=d.$$hash;
if(f==null){var g=this.__P;
if(g.length>0){f=g.pop();
}else{f=(this.__O++).toString(36);
}d.$$hash=f;
}{};
e[f]=d;
},
unregister:function(d){var f=d.$$hash;
if(f==null){return;
}var e=this.__N;
if(e&&e[f]){delete e[f];
this.__P.push(f);
}},
toHashCode:function(d){{};
var f=d.$$hash;
if(f!=null){return f;
}var g=this.__P;
if(g.length>0){f=g.pop();
}else{f=(this.__O++).toString(36);
}return d.$$hash=f;
},
fromHashCode:function(f){return this.__N[f]||null;
},
shutdown:function(){this.inShutDown=true;
var e=this.__N;
var h=[];
for(var f in e){h.push(f);
}h.sort(function(j,
k){return parseInt(k,
36)-parseInt(j,
36);
});
var d,
m=0,
n=h.length;
while(true){try{for(;m<n;m++){f=h[m];
d=e[f];
if(d&&d.dispose){d.dispose();
}}}catch(ex){qx.log.Logger.error(this,
"Could not dispose object "+d.toString()+": "+ex);
if(m!==0){continue;
}}break;
}qx.log.Logger.debug(this,
"Disposed "+n+" objects");
delete this.__N;
},
getRegistry:function(){return this.__N;
}}});
})();
(function(){var a="qx.Mixin",
b="]",
c="Mixin",
d="[Mixin ";
qx.Class.define(a,
{statics:{define:function(e,
f){if(f){if(f.include&&!(f.include instanceof Array)){f.include=[f.include];
}{};
var g=f.statics?f.statics:{};
for(var h in g){if(g[h] instanceof Function){g[h].$$mixin=g;
}}if(f.construct){g.$$constructor=f.construct;
}
if(f.include){g.$$includes=f.include;
}
if(f.properties){g.$$properties=f.properties;
}
if(f.members){g.$$members=f.members;
}
for(var h in g.$$members){if(g.$$members[h] instanceof Function){g.$$members[h].$$mixin=g;
}}
if(f.events){g.$$events=f.events;
}
if(f.destruct){g.$$destructor=f.destruct;
}}else{var g={};
}g.$$type=c;
g.name=e;
g.toString=this.genericToString;
g.basename=qx.Bootstrap.createNamespace(e,
g);
this.$$registry[e]=g;
return g;
},
checkCompatibility:function(j){var k=this.flatten(j);
var m=k.length;
if(m<2){return true;
}var n={};
var o={};
var p={};
var g;
for(var q=0;q<m;q++){g=k[q];
for(var h in g.events){if(p[h]){throw new Error('Conflict between mixin "'+g.name+'" and "'+p[h]+'" in member "'+h+'"!');
}p[h]=g.name;
}
for(var h in g.properties){if(n[h]){throw new Error('Conflict between mixin "'+g.name+'" and "'+n[h]+'" in property "'+h+'"!');
}n[h]=g.name;
}
for(var h in g.members){if(o[h]){throw new Error('Conflict between mixin "'+g.name+'" and "'+o[h]+'" in member "'+h+'"!');
}o[h]=g.name;
}}return true;
},
isCompatible:function(g,
r){var k=qx.Class.getMixins(r);
k.push(g);
return qx.Mixin.checkCompatibility(k);
},
getByName:function(e){return this.$$registry[e];
},
isDefined:function(e){return this.getByName(e)!==undefined;
},
getTotalNumber:function(){return qx.lang.Object.getLength(this.$$registry);
},
flatten:function(j){if(!j){return [];
}var k=j.concat();
for(var q=0,
s=j.length;q<s;q++){if(j[q].$$includes){k.push.apply(k,
this.flatten(j[q].$$includes));
}}return k;
},
genericToString:function(){return d+this.name+b;
},
$$registry:{},
__Q:null,
__R:function(){}}});
})();
(function(){var a="qx.data.MBinding";
qx.Mixin.define(a,
{members:{bind:function(b,
c,
d,
e){return qx.data.SingleValueBinding.bind(this,
b,
c,
d,
e);
},
bindObject:function(f,
b,
d,
e){return qx.data.SingleValueBinding.bind(f,
b,
this,
d,
e);
},
bindEvent:function(g,
c,
d,
e){return qx.data.SingleValueBinding.bindEventToProperty(this,
g,
c,
d,
e);
},
removeBinding:function(h){qx.data.SingleValueBinding.removeBindingFromObject(this,
h);
},
removeAllBindings:function(){qx.data.SingleValueBinding.removeAllBindingsForObject(this);
},
getBindings:function(){return qx.data.SingleValueBinding.getAllBindingsForObject(this);
}}});
})();
(function(){var a="qx.client",
b="on",
c="qx.bom.Event",
d="mousedown",
f="mouseover";
qx.Bootstrap.define(c,
{statics:{addNativeListener:qx.core.Variant.select(a,
{"mshtml":function(g,
h,
i){g.attachEvent(b+h,
i);
},
"default":function(g,
h,
i){g.addEventListener(h,
i,
false);
}}),
removeNativeListener:qx.core.Variant.select(a,
{"mshtml":function(g,
h,
i){g.detachEvent(b+h,
i);
},
"default":function(g,
h,
i){g.removeEventListener(h,
i,
false);
}}),
getTarget:function(j){return j.target||j.srcElement;
},
getRelatedTarget:qx.core.Variant.select(a,
{"mshtml":function(j){if(j.type===f){return j.fromEvent;
}else{return j.toElement;
}},
"default":function(j){return j.relatedTarget;
}}),
preventDefault:qx.core.Variant.select(a,
{"gecko":function(j){if(qx.bom.client.Engine.VERSION>=1.9&&j.type==d&&j.button==2){return;
}j.preventDefault();
try{j.keyCode=0;
}catch(ex){}},
"mshtml":function(j){try{j.keyCode=0;
}catch(ex){}j.returnValue=false;
},
"default":function(j){j.preventDefault();
}}),
stopPropagation:function(j){if(j.stopPropagation){j.stopPropagation();
}j.cancelBubble=true;
}}});
})();
(function(){var a="|bubble",
b="|capture",
c="_",
d="unload",
e="UNKNOWN_",
f="DOM_",
g="capture",
h="WIN_",
j='|',
k="qx.event.Manager",
m="QX_";
qx.Bootstrap.define(k,
{construct:function(n){this.__S=n;
this.__T=qx.lang.Function.bind(this.dispose,
this);
qx.bom.Event.addNativeListener(n,
d,
this.__T);
this.__U={};
this.__V={};
this.__W={};
this.__X={};
},
members:{dispose:function(){qx.bom.Event.removeNativeListener(this.__S,
d,
this.__T);
qx.event.Registration.removeManager(this);
this.__U=this.__S=this.__V=this.__W=this.__T=this.__X=null;
},
getWindow:function(){return this.__S;
},
getHandler:function(o){var p=this.__V[o.classname];
if(p){return p;
}return this.__V[o.classname]=new o(this);
},
getDispatcher:function(o){var q=this.__W[o.classname];
if(q){return q;
}return this.__W[o.classname]=new o(this);
},
getListeners:function(r,
s,
t){var u=qx.core.ObjectRegistry.toHashCode(r);
var v=this.__U[u];
if(!v){return null;
}var w=s+(t?b:a);
var x=v[w];
return x?x.concat():null;
},
hasListener:function(r,
s,
t){{};
var u=qx.core.ObjectRegistry.toHashCode(r);
var v=this.__U[u];
if(!v){return false;
}var w=s+(t?b:a);
var x=v[w];
if(!x){return false;
}return x.length>0;
},
importListeners:function(r,
y){{};
var u=qx.core.ObjectRegistry.toHashCode(r);
var v=this.__U[u]={};
for(var z in y){var A=y[z];
var w=A.type+(A.capture?b:a);
var x=v[w];
if(!x){x=v[w]=[];
this.__Y(r,
A.type,
A.capture);
}x.push({handler:A.listener,
context:A.self});
}},
addListener:function(r,
s,
B,
C,
t){var D;
var u=qx.core.ObjectRegistry.toHashCode(r);
var v=this.__U[u];
if(!v){v=this.__U[u]={};
}var w=s+(t?b:a);
var x=v[w];
if(!x){x=v[w]=[];
}if(x.length===0){this.__Y(r,
s,
t);
}var E={handler:B,
context:C};
x.push(E);
return [x,
E,
s,
t];
},
findHandler:function(r,
s){var F;
var G=false;
var H=false;
var I=false;
if(r.nodeType===1){G=true;
F=f+r.tagName.toLowerCase()+c+s;
}else if(r==this.__S){H=true;
F=h+s;
}else if(r.classname){I=true;
F=m+r.classname+c+s;
}else{F=e+r+c+s;
}var J=this.__X;
if(J[F]){return J[F];
}var K=qx.event.Registration.getHandlers();
var L;
for(var M=0,
N=K.length;M<N;M++){var o=K[M];
var O=o.SUPPORTED_TYPES;
if(O&&!O[s]){continue;
}var P=qx.event.IEventHandler;
var Q=o.TARGET_CHECK;
if(Q){if(Q===P.TARGET_DOMNODE&&!G){continue;
}else if(Q===P.TARGET_WINDOW&&!H){continue;
}else if(Q===P.TARGET_OBJECT&&!I){continue;
}}L=this.getHandler(K[M]);
if(o.IGNORE_CAN_HANDLE||L.canHandleEvent(r,
s)){J[F]=L;
return L;
}}return null;
},
__Y:function(r,
s,
t){var p=this.findHandler(r,
s);
if(p){p.registerEvent(r,
s,
t);
return;
}{};
},
removeListener:function(r,
s,
B,
C,
t){var D;
var u=qx.core.ObjectRegistry.toHashCode(r);
var v=this.__U[u];
if(!v){return false;
}var w=s+(t?b:a);
var x=v[w];
if(!x){return false;
}
for(var M=0,
N=x.length;M<N;M++){var E=x[M];
if(E.handler===B&&E.context===C){qx.lang.Array.removeAt(x,
M);
if(x.length==0){this.__ba(r,
s,
t);
}return true;
}}return false;
},
removeListenerById:function(r,
R){var x=R[0];
var E=R[1];
var s=R[2];
var t=R[3];
qx.lang.Array.remove(x,
E);
if(x.length==0){this.__ba(r,
s,
t);
}},
removeAllListeners:function(r){var u=qx.core.ObjectRegistry.toHashCode(r);
var v=this.__U[u];
if(!v){return false;
}var S,
s,
t;
for(var w in v){if(v[w].length>0){S=w.split(j);
s=S[0];
t=S[1]===g;
this.__ba(r,
s,
t);
}}delete this.__U[u];
return true;
},
__ba:function(r,
s,
t){var p=this.findHandler(r,
s);
if(p){p.unregisterEvent(r,
s,
t);
return;
}{};
},
dispatchEvent:function(r,
T){var D;
var s=T.getType();
if(!T.getBubbles()&&!this.hasListener(r,
s)){qx.event.Pool.getInstance().poolObject(T);
return true;
}
if(!T.getTarget()){T.setTarget(r);
}var K=qx.event.Registration.getDispatchers();
var L;
var U=false;
for(var M=0,
N=K.length;M<N;M++){L=this.getDispatcher(K[M]);
if(L.canDispatchEvent(r,
T,
s)){L.dispatchEvent(r,
T,
s);
U=true;
break;
}}
if(!U){qx.log.Logger.error(this,
"No dispatcher can handle event of type "+s+" on "+r);
return true;
}var V=T.getDefaultPrevented();
qx.event.Pool.getInstance().poolObject(T);
return !V;
}}});
})();
(function(){var b="qx.dom.Node",
c="qx.client",
d="",
e="object";
qx.Class.define(b,
{statics:{ELEMENT:1,
ATTRIBUTE:2,
TEXT:3,
CDATA_SECTION:4,
ENTITY_REFERENCE:5,
ENTITY:6,
PROCESSING_INSTRUCTION:7,
COMMENT:8,
DOCUMENT:9,
DOCUMENT_TYPE:10,
DOCUMENT_FRAGMENT:11,
NOTATION:12,
getDocument:function(f){if(this.isDocument(f)){return f;
}return f.ownerDocument||f.document||null;
},
getWindow:qx.core.Variant.select(c,
{"mshtml":function(f){return this.getDocument(f).parentWindow;
},
"default":function(f){return this.getDocument(f).defaultView;
}}),
getDocumentElement:function(f){return this.getDocument(f).documentElement;
},
getBodyElement:function(f){return this.getDocument(f).body;
},
isElement:function(f){return !!(f&&f.nodeType===qx.dom.Node.ELEMENT);
},
isDocument:function(f){return !!(f&&f.nodeType===qx.dom.Node.DOCUMENT);
},
isText:function(f){return !!(f&&f.nodeType===qx.dom.Node.TEXT);
},
isWindow:function(g){return !!(typeof g===e&&g&&g.Array);
},
getText:function(f){if(!f||!f.nodeType){return null;
}
switch(f.nodeType){case 1:var h,
j=[],
k=f.childNodes,
l=k.length;
for(h=0;h<l;h++){j[h]=this.getText(k[h]);
}return j.join(d);
case 2:return f.nodeValue;
break;
case 3:return f.nodeValue;
break;
}return null;
}}});
})();
(function(){var b="qx.lang.Array",
c="qx.client",
d="mshtml";
﻿;
qx.Bootstrap.define(b,
{statics:{fromArguments:function(e,
f){return Array.prototype.slice.call(e,
f||0);
},
fromCollection:function(g){if(qx.core.Variant.isSet(c,
d)){if(g.item){var h=[];
for(var j=0,
k=g.length;j<k;j++){h[j]=g[j];
}return h;
}}return Array.prototype.slice.call(g,
0);
},
fromShortHand:function(m){var n=m.length;
var o=qx.lang.Array.copy(m);
switch(n){case 1:o[1]=o[2]=o[3]=o[0];
break;
case 2:o[2]=o[0];
case 3:o[3]=o[1];
}return o;
},
copy:function(h){return h.concat();
},
clone:function(h){return h.concat();
},
getLast:function(h){return h[h.length-1];
},
getFirst:function(h){return h[0];
},
insertAt:function(h,
p,
j){h.splice(j,
0,
p);
return h;
},
insertBefore:function(h,
p,
q){var j=h.indexOf(q);
if(j==-1){h.push(p);
}else{h.splice(j,
0,
p);
}return h;
},
insertAfter:function(h,
p,
q){var j=h.indexOf(q);
if(j==-1||j==(h.length-1)){h.push(p);
}else{h.splice(j+1,
0,
p);
}return h;
},
removeAt:function(h,
j){return h.splice(j,
1)[0];
},
removeAll:function(h){return h.length=0;
},
append:function(h,
r){{};
Array.prototype.push.apply(h,
r);
return h;
},
remove:function(h,
p){var j=h.indexOf(p);
if(j!=-1){h.splice(j,
1);
return p;
}},
contains:function(h,
p){return h.indexOf(p)!==-1;
},
equals:function(s,
t){var u=s.length;
if(u!==t.length){return false;
}
for(var j=0;j<u;j++){if(s[j]!==t[j]){return false;
}}return true;
},
sum:function(h){var o=0;
for(var j=0,
k=h.length;j<k;j++){o+=h[j];
}return o;
},
max:function(h){{};
var j,
n=h.length,
o=h[0];
for(j=1;j<n;j++){if(h[j]>o){o=h[j];
}}return o===undefined?null:o;
},
min:function(h){{};
var j,
n=h.length,
o=h[0];
for(j=1;j<n;j++){if(h[j]<o){o=h[j];
}}return o===undefined?null:o;
}}});
})();
(function(){var a=":",
b=":constructor",
c='anonymous',
d="anonymous: ",
e="qx.lang.Function",
f=":constructor wrapper";
qx.Bootstrap.define(e,
{statics:{getCaller:function(g){return g.caller?g.caller.callee:g.callee.caller;
},
getName:function(h){if(h.$$original){return h.classname+f;
}
if(h.wrapper){return h.wrapper.classname+b;
}
if(h.classname){return h.classname+b;
}
if(h.$$mixin){for(var i in h.$$mixin.$$members){if(h.$$mixin.$$members[i]==h){return h.$$mixin.name+a+i;
}}for(var i in h.$$mixin){if(h.$$mixin[i]==h){return h.$$mixin.name+a+i;
}}}
if(h.self){var j=h.self.constructor;
if(j){for(var i in j.prototype){if(j.prototype[i]==h){return j.classname+a+i;
}}for(var i in j){if(j[i]==h){return j.classname+a+i;
}}}}var k=h.toString().match(/(function\s*\w*\(.*?\))/);
if(k&&k.length>=1&&k[1]){return k[1];
}var k=h.toString().match(/(function\s*\(.*?\))/);
if(k&&k.length>=1&&k[1]){return d+k[1];
}return c;
},
globalEval:function(l){if(window.execScript){return window.execScript(l);
}else{return eval.call(window,
l);
}},
returnTrue:function(){return true;
},
returnFalse:function(){return false;
},
returnNull:function(){return null;
},
returnThis:function(){return this;
},
returnZero:function(){return 0;
},
create:function(m,
n){{};
if(!n){return m;
}if(!(n.self||n.args||n.delay!=null||n.periodical!=null||n.attempt)){return m;
}return function(o){var g=qx.lang.Array.fromArguments(arguments);
if(n.args){g=n.args.concat(g);
}
if(n.delay||n.periodical){var p=function(){return m.apply(n.self||this,
g);
};
if(n.delay){return setTimeout(p,
n.delay);
}
if(n.periodical){return setInterval(p,
n.periodical);
}}else if(n.attempt){var q=false;
try{q=m.apply(n.self||this,
g);
}catch(ex){}return q;
}else{return m.apply(n.self||this,
g);
}};
},
bind:function(m,
r,
s){return this.create(m,
{self:r,
args:s!==undefined?qx.lang.Array.fromArguments(arguments,
2):null});
},
curry:function(m,
s){return this.create(m,
{args:s!==undefined?qx.lang.Array.fromArguments(arguments,
1):null});
},
listener:function(m,
r,
s){if(s===undefined){return function(o){return m.call(r||this,
o||window.event);
};
}else{var t=qx.lang.Array.fromArguments(arguments,
2);
return function(o){var g=[o||window.event];
g.push.apply(g,
t);
m.apply(r||this,
g);
};
}},
attempt:function(m,
r,
s){return this.create(m,
{self:r,
attempt:true,
args:s!==undefined?qx.lang.Array.fromArguments(arguments,
2):null})();
},
delay:function(m,
u,
r,
s){return this.create(m,
{delay:u,
self:r,
args:s!==undefined?qx.lang.Array.fromArguments(arguments,
3):null})();
},
periodical:function(m,
v,
r,
s){return this.create(m,
{periodical:v,
self:r,
args:s!==undefined?qx.lang.Array.fromArguments(arguments,
3):null})();
}}});
})();
(function(){var c="qx.event.Registration";
qx.Bootstrap.define(c,
{statics:{__bb:{},
getManager:function(d){if(qx.dom.Node.isWindow(d)){var e=d;
}else if(qx.dom.Node.isElement(d)){var e=qx.dom.Node.getWindow(d);
}else{var e=window;
}var f=qx.core.ObjectRegistry.toHashCode(e);
var g=this.__bb[f];
if(!g){g=new qx.event.Manager(e);
this.__bb[f]=g;
}return g;
},
removeManager:function(h){var f=qx.core.ObjectRegistry.toHashCode(h.getWindow());
delete this.__bb[f];
},
addListener:function(d,
i,
j,
k,
l){return this.getManager(d).addListener(d,
i,
j,
k,
l);
},
removeListener:function(d,
i,
j,
k,
l){this.getManager(d).removeListener(d,
i,
j,
k,
l);
},
removeListenerById:function(d,
f){this.getManager(d).removeListenerById(d,
f);
},
removeAllListeners:function(d){this.getManager(d).removeAllListeners(d);
},
hasListener:function(d,
i,
l){return this.getManager(d).hasListener(d,
i,
l);
},
createEvent:function(i,
m,
n){{};
if(m==null){m=qx.event.type.Event;
}var o=qx.event.Pool.getInstance().getObject(m);
if(!o){return;
}n?o.init.apply(o,
n):o.init();
if(i){o.setType(i);
}return o;
},
dispatchEvent:function(d,
p){return this.getManager(d).dispatchEvent(d,
p);
},
fireEvent:function(d,
i,
m,
n){var q;
var r=this.createEvent(i,
m||null,
n);
return this.getManager(d).dispatchEvent(d,
r);
},
fireNonBubblingEvent:function(d,
i,
m,
n){{};
var h=this.getManager(d);
if(!h.hasListener(d,
i,
false)){return true;
}var r=this.createEvent(i,
m||null,
n);
return h.dispatchEvent(d,
r);
},
PRIORITY_FIRST:-32000,
PRIORITY_NORMAL:0,
PRIORITY_LAST:32000,
__bc:[],
addHandler:function(s){{};
this.__bc.push(s);
this.__bc.sort(function(t,
u){return t.PRIORITY-u.PRIORITY;
});
},
getHandlers:function(){return this.__bc;
},
__bd:[],
addDispatcher:function(v,
w){{};
this.__bd.push(v);
this.__bd.sort(function(t,
u){return t.PRIORITY-u.PRIORITY;
});
},
getDispatchers:function(){return this.__bd;
}}});
})();
(function(){var a="node",
b="error",
c="...(+",
d="array",
e=")",
f="info",
g="instance",
h="string",
j="null",
k="class",
m="number",
n="stringify",
o="]",
p="unknown",
q="function",
r="boolean",
s="debug",
t="map",
u="undefined",
v="qx.log.Logger",
w=")}",
x="#",
y="warn",
z="document",
A="{...(",
B="[",
C="text[",
D="[...(",
E="\n",
F=")]",
G="object";
qx.Bootstrap.define(v,
{statics:{__be:50,
__bf:s,
setLevel:function(H){this.__bf=H;
},
getLevel:function(){return this.__bf;
},
setTreshold:function(H){this.__be=H;
},
getTreshold:function(){return this.__be;
},
__bg:{},
__bh:0,
register:function(I){if(I.$$id){return;
}var J=this.__bh++;
this.__bg[J]=I;
I.$$id=J;
var K=this.__bi;
for(var L=0,
M=K.length;L<M;L++){I.process(K[L]);
}},
unregister:function(I){var J=I.$$id;
if(J==null){return;
}delete this.__bg[J];
delete I.$$id;
},
debug:function(N,
O){this.__bk(s,
arguments);
},
info:function(N,
O){this.__bk(f,
arguments);
},
warn:function(N,
O){this.__bk(y,
arguments);
},
error:function(N,
O){this.__bk(b,
arguments);
},
trace:function(N){this.__bk(f,
[N,
qx.dev.StackTrace.getStackTrace().join(E)]);
},
deprecatedMethodWarning:function(P,
Q){var R,
S;
},
deprecatedClassWarning:function(T,
Q){var S;
},
clear:function(){this.__bi=[];
},
__bi:[],
__bj:{debug:0,
info:1,
warn:2,
error:3},
__bk:function(U,
V){var W=this.__bj;
if(W[U]<W[this.__bf]){return;
}var N=V.length<2?null:V[0];
var X=N?1:0;
var Y=[];
for(var L=X,
M=V.length;L<M;L++){Y.push(this.__bm(V[L],
true));
}var ba=new Date;
var bb={time:ba,
offset:ba-qx.Bootstrap.LOADSTART,
level:U,
items:Y};
if(N){if(N instanceof qx.core.Object){bb.object=N.$$hash;
}else if(N.$$type){bb.clazz=N;
}}var K=this.__bi;
K.push(bb);
if(K.length>(this.__be+10)){K.splice(this.__be,
K.length);
}var I=this.__bg;
for(var J in I){I[J].process(bb);
}},
__bl:function(H){if(H===undefined){return u;
}else if(H===null){return j;
}
if(H.$$type){return k;
}var bc=typeof H;
if(bc===q||bc==h||bc===m||bc===r){return bc;
}else if(bc===G){if(H.nodeType){return a;
}else if(H instanceof Error){return b;
}else if(H.classname){return g;
}else if(H instanceof Array){return d;
}else{return t;
}}
if(H.toString){return n;
}return p;
},
__bm:function(H,
bd){var bc=this.__bl(H);
var be=p;
switch(bc){case j:case u:be=bc;
break;
case h:case m:case r:be=H;
break;
case a:if(H.nodeType===9){be=z;
}else if(H.nodeType===3){be=C+H.nodeValue+o;
}else if(H.nodeType===1){be=H.nodeName.toLowerCase();
if(H.id){be+=x+H.id;
}}else{be=a;
}break;
case q:be=qx.lang.Function.getName(H)||bc;
break;
case g:be=H.basename+B+H.$$hash+o;
break;
case k:case n:case b:be=H.toString();
break;
case d:if(bd){be=[];
for(var L=0,
M=H.length;L<M;L++){if(be.length>20){be.push(c+(M-L)+e);
break;
}be.push(this.__bm(H[L],
false));
}}else{be=D+H.length+F;
}break;
case t:if(bd){var bf;
var bg=[];
for(var bh in H){bg.push(bh);
}bg.sort();
be=[];
for(var L=0,
M=bg.length;L<M;L++){if(be.length>20){be.push(c+(M-L)+e);
break;
}bh=bg[L];
bf=this.__bm(H[bh],
false);
bf.key=bh;
be.push(bf);
}}else{var bi=0;
for(var bh in H){bi++;
}be=A+bi+w;
}break;
}return {type:bc,
text:be};
}}});
})();
(function(){var a="qx.core.Object",
b="]",
c="[",
d="__bo",
f="string",
g="Object";
qx.Class.define(a,
{extend:Object,
include:[qx.data.MBinding],
construct:function(){qx.core.ObjectRegistry.register(this);
},
statics:{$$type:g},
members:{toHashCode:function(){return this.$$hash;
},
toString:function(){return this.classname+c+this.$$hash+b;
},
base:function(h,
j){if(arguments.length===1){return h.callee.base.call(this);
}else{return h.callee.base.apply(this,
Array.prototype.slice.call(arguments,
1));
}},
self:function(h){return h.callee.self;
},
clone:function(){var k=this.constructor;
var m=new k;
var n=qx.Class.getProperties(k);
var o=qx.core.Property.$$store.user;
var p=qx.core.Property.$$method.set;
var q;
for(var r=0,
s=n.length;r<s;r++){q=n[r];
if(this.hasOwnProperty(o[q])){m[p[q]](this[o[q]]);
}}return m;
},
serialize:function(){var k=this.constructor;
var n=qx.Class.getProperties(k);
var o=qx.core.Property.$$store.user;
var q,
t;
var u={classname:k.classname,
properties:{}};
for(var r=0,
s=n.length;r<s;r++){q=n[r];
if(this.hasOwnProperty(o[q])){t=this[o[q]];
if(t instanceof qx.core.Object){u.properties[q]={$$hash:t.$$hash};
}else{u.properties[q]=t;
}}}return u;
},
set:function(v,
t){var p=qx.core.Property.$$method.set;
if(typeof v===f){{};
return this[p[v]](t);
}else{for(var w in v){{};
this[p[w]](v[w]);
}return this;
}},
get:function(w){var x=qx.core.Property.$$method.get;
{};
return this[x[w]]();
},
reset:function(w){var y=qx.core.Property.$$method.reset;
{};
this[y[w]]();
},
__bn:qx.event.Registration,
addListener:function(z,
A,
B,
C){if(!this.$$disposed){return this.__bn.addListener(this,
z,
A,
B,
C);
}return null;
},
addListenerOnce:function(z,
A,
B,
C){var D=function(E){A.call(B||this,
E);
this.removeListenerById(F);
};
var F=this.addListener(z,
D,
this,
C);
return F;
},
removeListener:function(z,
A,
B,
C){if(!this.$$disposed){this.__bn.removeListener(this,
z,
A,
B,
C);
}},
removeListenerById:function(F){this.__bn.removeListenerById(this,
F);
},
hasListener:function(z,
C){return this.__bn.hasListener(this,
z,
C);
},
dispatchEvent:function(G){if(!this.$$disposed){return this.__bn.dispatchEvent(this,
G);
}return true;
},
fireEvent:function(z,
k,
h){if(!this.$$disposed){return this.__bn.fireEvent(this,
z,
k,
h);
}return true;
},
fireNonBubblingEvent:function(z,
k,
h){if(!this.$$disposed){return this.__bn.fireNonBubblingEvent(this,
z,
k,
h);
}return true;
},
fireDataEvent:function(z,
v,
H,
I){if(!this.$$disposed){return this.__bn.fireNonBubblingEvent(this,
z,
qx.event.type.Data,
[v,
H||null,
!!I]);
}return true;
},
__bo:null,
setUserData:function(J,
t){if(!this.__bo){this.__bo={};
}this.__bo[J]=t;
},
getUserData:function(J){if(!this.__bo){return null;
}return this.__bo[J];
},
__bp:qx.log.Logger,
debug:function(K){this.__bp.debug(this,
K);
},
info:function(K){this.__bp.info(this,
K);
},
warn:function(K){this.__bp.warn(this,
K);
},
error:function(K){this.__bp.error(this,
K);
},
trace:function(){this.__bp.trace(this);
},
isDisposed:function(){return this.$$disposed||false;
},
dispose:function(){if(this.$$disposed){return;
}this.$$disposed=true;
{};
var k=this.constructor;
var L;
while(k.superclass){if(k.$$destructor){k.$$destructor.call(this);
}if(k.$$includes){L=k.$$flatIncludes;
for(var r=0,
s=L.length;r<s;r++){if(L[r].$$destructor){L[r].$$destructor.call(this);
}}}k=k.superclass;
}var J,
t;
},
_disposeFields:function(M){qx.util.DisposeUtil.disposeFields(this,
arguments);
},
_disposeObjects:function(M){qx.util.DisposeUtil.disposeObjects(this,
arguments);
},
_disposeArray:function(N){qx.util.DisposeUtil.disposeArray(this,
N);
},
_disposeMap:function(N){qx.util.DisposeUtil.disposeMap(this,
N);
}},
settings:{"qx.disposerDebugLevel":0},
defer:function(O){{};
},
destruct:function(){qx.event.Registration.removeAllListeners(this);
qx.core.ObjectRegistry.unregister(this);
this._disposeFields(d);
var k=this.constructor;
var P;
var Q=qx.core.Property.$$store;
var R=Q.user;
var S=Q.theme;
var T=Q.inherit;
var U=Q.useinit;
var V=Q.init;
while(k){P=k.$$properties;
if(P){for(var q in P){if(P[q].dispose){this[R[q]]=this[S[q]]=this[T[q]]=this[U[q]]=this[V[q]]=undefined;
}}}k=k.superclass;
}}});
})();
(function(){var a="",
b="g",
c="0",
d='\\$1',
e="%",
f='-',
g="qx.lang.String",
h=' ',
j='\n',
k="undefined";
qx.Bootstrap.define(g,
{statics:{camelCase:function(l){return l.replace(/\-([a-z])/g,
function(m,
n){return n.toUpperCase();
});
},
hyphenate:function(l){return l.replace(/[A-Z]/g,
function(m){return (f+m.charAt(0).toLowerCase());
});
},
capitalize:function(l){return l.replace(/\b[a-z]/g,
function(m){return m.toUpperCase();
});
},
clean:function(l){return l.replace(/\s+/g,
h).trim();
},
trimLeft:function(l){return l.replace(/^\s+/,
a);
},
trimRight:function(l){return l.replace(/\s+$/,
a);
},
trim:function(l){return l.replace(/^\s+|\s+$/g,
a);
},
startsWith:function(o,
p){return o.substring(0,
p.length)===p;
},
endsWith:function(o,
p){return o.substring(o.length-p.length,
o.length)===p;
},
pad:function(l,
q,
r){if(typeof r===k){r=c;
}var s=a;
for(var t=l.length;t<q;t++){s+=r;
}return s+l;
},
firstUp:function(l){return l.charAt(0).toUpperCase()+l.substr(1);
},
firstLow:function(l){return l.charAt(0).toLowerCase()+l.substr(1);
},
contains:function(l,
u){return l.indexOf(u)!=-1;
},
format:function(v,
w){var l=v;
for(var t=0;t<w.length;t++){l=l.replace(new RegExp(e+(t+1),
b),
w[t]);
}return l;
},
escapeRegexpChars:function(l){return l.replace(/([.*+?^${}()|[\]\/\\])/g,
d);
},
toArray:function(l){return l.split(/\B|\b/g);
},
stripTags:function(l){return l.replace(/<\/?[^>]+>/gi,
a);
},
stripScripts:function(l,
x){var y=a;
var z=l.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,
function(){y+=arguments[1]+j;
return a;
});
if(x===true){qx.lang.Function.globalEval(y);
}return z;
}}});
})();
(function(){var a="function",
b="]",
c="Interface",
d="[Interface ",
e="qx.Interface";
qx.Class.define(e,
{statics:{define:function(f,
g){if(g){if(g.extend&&!(g.extend instanceof Array)){g.extend=[g.extend];
}{};
var h=g.statics?g.statics:{};
if(g.extend){h.$$extends=g.extend;
}
if(g.properties){h.$$properties=g.properties;
}
if(g.members){h.$$members=g.members;
}
if(g.events){h.$$events=g.events;
}}else{var h={};
}h.$$type=c;
h.name=f;
h.toString=this.genericToString;
h.basename=qx.Bootstrap.createNamespace(f,
h);
qx.Interface.$$registry[f]=h;
return h;
},
getByName:function(f){return this.$$registry[f];
},
isDefined:function(f){return this.getByName(f)!==undefined;
},
getTotalNumber:function(){return qx.lang.Object.getLength(this.$$registry);
},
flatten:function(j){if(!j){return [];
}var k=j.concat();
for(var m=0,
n=j.length;m<n;m++){if(j[m].$$extends){k.push.apply(k,
this.flatten(j[m].$$extends));
}}return k;
},
__bq:function(o,
p,
h,
q){var r=h.$$members;
if(r){for(var s in r){if(typeof r[s]===a){if(typeof o[s]===a){if(q===true&&!qx.Class.hasInterface(p,
h)){o[s]=this.__bt(h,
o[s],
s,
r[s]);
}}else{var t=s.match(/^(get|set|reset)(.*)$/);
if(!t||!qx.Class.hasProperty(p,
qx.lang.String.firstLow(t[2]))){throw new Error('Implementation of method "'+s+'" is missing in class "'+p.classname+'" required by interface "'+h.name+'"');
}}}else{if(typeof o[s]===undefined){if(typeof o[s]!==a){throw new Error('Implementation of member "'+s+'" is missing in class "'+p.classname+'" required by interface "'+h.name+'"');
}}}}}},
__br:function(p,
h){if(h.$$properties){for(var s in h.$$properties){if(!qx.Class.hasProperty(p,
s)){throw new Error('The property "'+s+'" is not supported by Class "'+p.classname+'"!');
}}}},
__bs:function(p,
h){if(h.$$events){for(var s in h.$$events){if(!qx.Class.supportsEvent(p,
s)){throw new Error('The event "'+s+'" is not supported by Class "'+p.classname+'"!');
}}}},
assertObject:function(o,
h){var p=o.constructor;
this.__bq(o,
p,
h,
false);
this.__br(p,
h);
this.__bs(p,
h);
var u=h.$$extends;
if(u){for(var m=0,
n=u.length;m<n;m++){this.assertObject(o,
u[m]);
}}},
assert:function(p,
h,
q){this.__bq(p.prototype,
p,
h,
q);
this.__br(p,
h);
this.__bs(p,
h);
var u=h.$$extends;
if(u){for(var m=0,
n=u.length;m<n;m++){this.assert(p,
u[m],
q);
}}},
genericToString:function(){return d+this.name+b;
},
$$registry:{},
__bt:function(){},
__bu:null,
__bv:function(){}}});
})();
(function(){var a="qx.ui.decoration.IDecorator";
qx.Interface.define(a,
{members:{init:function(b){},
resize:function(b,
c,
d){},
tint:function(b,
e){},
getMarkup:function(){},
getInsets:function(){}}});
})();
(function(){var a="_applyStyle",
b="repeat",
c="px",
d="scale",
e="solid",
f="Color",
g="double",
h="px ",
i="position:absolute;top:0;left:0;",
j="dotted",
k="__bx",
l="_applyWidth",
m="qx.ui.decoration.Uniform",
n="repeat-y",
o="String",
p="__bw",
q="",
r="PositiveInteger",
s="border:",
t="dashed",
u="no-repeat",
v=" ",
w="repeat-x",
x=";";
qx.Class.define(m,
{extend:qx.core.Object,
implement:[qx.ui.decoration.IDecorator],
construct:function(y,
z,
A){arguments.callee.base.call(this);
if(y!=null){this.setWidth(y);
}
if(z!=null){this.setStyle(z);
}
if(A!=null){this.setColor(A);
}},
properties:{width:{check:r,
init:0,
apply:l},
style:{nullable:true,
check:[e,
j,
t,
g],
init:e,
apply:a},
color:{nullable:true,
check:f,
apply:a},
backgroundImage:{check:o,
nullable:true,
apply:a},
backgroundRepeat:{check:[b,
w,
n,
u,
d],
init:b,
apply:a},
backgroundColor:{check:f,
nullable:true,
apply:a}},
members:{__bw:null,
__bx:null,
init:function(B){B.useMarkup(this.getMarkup());
},
getMarkup:function(){if(this.__bw){return this.__bw;
}var C=i;
var y=this.getWidth();
{};
var D=qx.theme.manager.Color.getInstance();
C+=s+y+h+this.getStyle()+v+D.resolve(this.getColor())+x;
var E=qx.ui.decoration.Util.generateBackgroundMarkup(this.getBackgroundImage(),
this.getBackgroundRepeat(),
0,
0,
C);
return this.__bw=E;
},
resize:function(B,
y,
F){var G=this.getBackgroundImage()&&this.getBackgroundRepeat()==d;
if(G||qx.bom.client.Feature.CONTENT_BOX){var H=this.getWidth()*2;
y-=H;
F-=H;
if(y<0){y=0;
}
if(F<0){F=0;
}}var I=B.getDomElement();
I.style.width=y+c;
I.style.height=F+c;
},
tint:function(B,
J){var D=qx.theme.manager.Color.getInstance();
var I=B.getDomElement();
if(J==null){J=this.getBackgroundColor();
}I.style.backgroundColor=D.resolve(J)||q;
},
getInsets:function(){if(this.__bx){return this.__bx;
}var y=this.getWidth();
this.__bx={top:y,
right:y,
bottom:y,
left:y};
return this.__bx;
},
_applyWidth:function(){{};
this.__bx=null;
},
_applyStyle:function(){{};
}},
destruct:function(){this._disposeFields(p,
k);
}});
})();
(function(){var a="_applyStyle",
b="solid",
c="Color",
d="double",
e="px ",
f="dotted",
g="_applyWidth",
h="dashed",
i="Number",
j=" ",
k=";",
l="shorthand",
m="repeat",
n="px",
o="widthTop",
p="scale",
q="styleRight",
r="styleBottom",
s="widthLeft",
t="widthBottom",
u="",
v="styleTop",
w="colorBottom",
x="styleLeft",
y="widthRight",
z="colorLeft",
A="colorRight",
B="colorTop",
C="border-left:",
D="position:absolute;top:0;left:0;",
E="__by",
F="__bz",
G="repeat-y",
H="String",
I="border-bottom:",
J="border-right:",
K="qx.ui.decoration.Single",
L="border-top:",
M="no-repeat",
N="repeat-x";
qx.Class.define(K,
{extend:qx.core.Object,
implement:[qx.ui.decoration.IDecorator],
construct:function(O,
P,
Q){arguments.callee.base.call(this);
if(O!=null){this.setWidth(O);
}
if(P!=null){this.setStyle(P);
}
if(Q!=null){this.setColor(Q);
}},
properties:{widthTop:{check:i,
init:0,
apply:g},
widthRight:{check:i,
init:0,
apply:g},
widthBottom:{check:i,
init:0,
apply:g},
widthLeft:{check:i,
init:0,
apply:g},
styleTop:{nullable:true,
check:[b,
f,
h,
d],
init:b,
apply:a},
styleRight:{nullable:true,
check:[b,
f,
h,
d],
init:b,
apply:a},
styleBottom:{nullable:true,
check:[b,
f,
h,
d],
init:b,
apply:a},
styleLeft:{nullable:true,
check:[b,
f,
h,
d],
init:b,
apply:a},
colorTop:{nullable:true,
check:c,
apply:a},
colorRight:{nullable:true,
check:c,
apply:a},
colorBottom:{nullable:true,
check:c,
apply:a},
colorLeft:{nullable:true,
check:c,
apply:a},
backgroundImage:{check:H,
nullable:true,
apply:a},
backgroundRepeat:{check:[m,
N,
G,
M,
p],
init:m,
apply:a},
backgroundColor:{check:c,
nullable:true,
apply:a},
left:{group:[s,
x,
z]},
right:{group:[y,
q,
A]},
top:{group:[o,
v,
B]},
bottom:{group:[t,
r,
w]},
width:{group:[o,
y,
t,
s],
mode:l},
style:{group:[v,
q,
r,
x],
mode:l},
color:{group:[B,
A,
w,
z],
mode:l}},
members:{__by:null,
__bz:null,
init:function(R){R.useMarkup(this.getMarkup());
},
getMarkup:function(R){if(this.__by){return this.__by;
}var S=qx.theme.manager.Color.getInstance();
var T=u;
var O=this.getWidthTop();
if(O>0){T+=L+O+e+this.getStyleTop()+j+S.resolve(this.getColorTop())+k;
}var O=this.getWidthRight();
if(O>0){T+=J+O+e+this.getStyleRight()+j+S.resolve(this.getColorRight())+k;
}var O=this.getWidthBottom();
if(O>0){T+=I+O+e+this.getStyleBottom()+j+S.resolve(this.getColorBottom())+k;
}var O=this.getWidthLeft();
if(O>0){T+=C+O+e+this.getStyleLeft()+j+S.resolve(this.getColorLeft())+k;
}{};
T+=D;
var U=qx.ui.decoration.Util.generateBackgroundMarkup(this.getBackgroundImage(),
this.getBackgroundRepeat(),
0,
0,
T);
return this.__by=U;
},
resize:function(R,
O,
V){var W=this.getBackgroundImage()&&this.getBackgroundRepeat()==p;
if(W||qx.bom.client.Feature.CONTENT_BOX){var X=this.getInsets();
O-=X.left+X.right;
V-=X.top+X.bottom;
if(O<0){O=0;
}
if(V<0){V=0;
}}var Y=R.getDomElement();
Y.style.width=O+n;
Y.style.height=V+n;
},
tint:function(R,
ba){var S=qx.theme.manager.Color.getInstance();
var Y=R.getDomElement();
if(ba==null){ba=this.getBackgroundColor();
}Y.style.backgroundColor=S.resolve(ba)||u;
},
getInsets:function(){if(this.__bz){return this.__bz;
}this.__bz={top:this.getWidthTop(),
right:this.getWidthRight(),
bottom:this.getWidthBottom(),
left:this.getWidthLeft()};
return this.__bz;
},
_applyWidth:function(){{};
this.__bz=null;
},
_applyStyle:function(){{};
}},
destruct:function(){this._disposeFields(E,
F);
}});
})();
(function(){var a="px ",
b=" ",
c=";",
d="Color",
e="Number",
f="border-left:",
g="px",
h="border-bottom:",
i="border-top:",
j="shorthand",
k="border-right:",
l="innerWidthRight",
m='<div style="position:absolute;top:0;left:0;',
n="innerColorBottom",
o='</div>',
p='',
q="scale",
r="innerColorRight",
s="innerColorTop",
t="innerColorLeft",
u="qx.ui.decoration.Double",
v="",
w="__bB",
x='">',
y="__bA",
z="innerWidthBottom",
A="innerWidthLeft",
B="innerWidthTop";
qx.Class.define(u,
{extend:qx.ui.decoration.Single,
construct:function(C,
D,
E,
F,
G){arguments.callee.base.call(this,
C,
D,
E,
F,
G);
if(F!=null){this.setInnerWidth(F);
}
if(G!=null){this.setInnerColor(G);
}},
properties:{innerWidthTop:{check:e,
init:0},
innerWidthRight:{check:e,
init:0},
innerWidthBottom:{check:e,
init:0},
innerWidthLeft:{check:e,
init:0},
innerWidth:{group:[B,
l,
z,
A],
mode:j},
innerColorTop:{nullable:true,
check:d},
innerColorRight:{nullable:true,
check:d},
innerColorBottom:{nullable:true,
check:d},
innerColorLeft:{nullable:true,
check:d},
innerColor:{group:[s,
r,
n,
t],
mode:j}},
members:{__bA:null,
__bB:null,
getMarkup:function(){if(this.__bA){return this.__bA;
}var H=qx.theme.manager.Color.getInstance();
var I=v;
var C=this.getInnerWidthTop();
if(C>0){I+=i+C+a+this.getStyleTop()+b+H.resolve(this.getInnerColorTop())+c;
}var C=this.getInnerWidthRight();
if(C>0){I+=k+C+a+this.getStyleRight()+b+H.resolve(this.getInnerColorRight())+c;
}var C=this.getInnerWidthBottom();
if(C>0){I+=h+C+a+this.getStyleBottom()+b+H.resolve(this.getInnerColorBottom())+c;
}var C=this.getInnerWidthLeft();
if(C>0){I+=f+C+a+this.getStyleLeft()+b+H.resolve(this.getInnerColorLeft())+c;
}{};
var J=qx.ui.decoration.Util.generateBackgroundMarkup(this.getBackgroundImage(),
this.getBackgroundRepeat(),
0,
0,
I);
var K=p;
var C=this.getWidthTop();
if(C>0){K+=i+C+a+this.getStyleTop()+b+H.resolve(this.getColorTop())+c;
}var C=this.getWidthRight();
if(C>0){K+=k+C+a+this.getStyleRight()+b+H.resolve(this.getColorRight())+c;
}var C=this.getWidthBottom();
if(C>0){K+=h+C+a+this.getStyleBottom()+b+H.resolve(this.getColorBottom())+c;
}var C=this.getWidthLeft();
if(C>0){K+=f+C+a+this.getStyleLeft()+b+H.resolve(this.getColorLeft())+c;
}{};
return this.__bA=m+K+x+J+o;
},
resize:function(L,
C,
M){var N=this.getBackgroundImage()&&this.getBackgroundRepeat()==q;
if(N||qx.bom.client.Feature.CONTENT_BOX){var O=this.getInsets();
var F=C-O.left-O.right;
var P=M-O.top-O.bottom;
}else{var F=C-this.getWidthLeft()-this.getWidthRight();
var P=M-this.getWidthTop()-this.getWidthBottom();
}if(F<0){F=0;
}
if(P<0){P=0;
}var Q=L.getDomElement();
Q.firstChild.style.width=F+g;
Q.firstChild.style.height=P+g;
},
getInsets:function(){if(this.__bB){return this.__bB;
}this.__bB={top:this.getWidthTop()+this.getInnerWidthTop(),
right:this.getWidthRight()+this.getInnerWidthRight(),
bottom:this.getWidthBottom()+this.getInnerWidthBottom(),
left:this.getWidthLeft()+this.getInnerWidthLeft()};
return this.__bB;
}},
destruct:function(){this._disposeFields(y,
w);
}});
})();
(function(){var a="px",
b="0px",
c="-1px",
d="_applyInsets",
e="Number",
f="no-repeat",
g="scale-x",
h="scale-y",
i="-tr",
j="-l",
k="insetTop",
l='</div>',
m="insetBottom",
n="__bF",
o="scale",
p="qx.client",
q="-br",
r="-t",
s="-tl",
t="-r",
u='<div style="position:absolute;top:0;left:0;overflow:hidden;font-size:0;line-height:0;">',
v="_applyBaseImage",
w="-b",
x="__bD",
y="shorthand",
z="String",
A="insetRight",
B="",
C="-bl",
D="__bC",
E="__bE",
F="-c",
G="mshtml",
H="insetLeft",
I="qx.ui.decoration.Grid";
qx.Class.define(I,
{extend:qx.core.Object,
implement:[qx.ui.decoration.IDecorator],
construct:function(J,
K){arguments.callee.base.call(this);
if(J!=null){this.setBaseImage(J);
}
if(K!=null){this.setInsets(K);
}},
properties:{baseImage:{check:z,
nullable:true,
apply:v},
insetLeft:{check:e,
init:0,
apply:d},
insetRight:{check:e,
init:0,
apply:d},
insetBottom:{check:e,
init:0,
apply:d},
insetTop:{check:e,
init:0,
apply:d},
insets:{group:[k,
A,
m,
H],
mode:y}},
members:{__bC:null,
__bD:null,
__bE:null,
__bF:null,
init:function(L){L.useMarkup(this.getMarkup());
},
getMarkup:function(){if(this.__bC){return this.__bC;
}var M=qx.bom.element.Decoration;
var N=this.__bE;
var O=this.__bF;
var P=[];
P.push(u);
P.push(M.create(N.tl,
f,
{top:0,
left:0}));
P.push(M.create(N.t,
g,
{top:0,
left:O.left+a}));
P.push(M.create(N.tr,
f,
{top:0,
right:0}));
P.push(M.create(N.bl,
f,
{bottom:0,
left:0}));
P.push(M.create(N.b,
g,
{bottom:0,
left:O.left+a}));
P.push(M.create(N.br,
f,
{bottom:0,
right:0}));
P.push(M.create(N.l,
h,
{top:O.top+a,
left:0}));
P.push(M.create(N.c,
o,
{top:O.top+a,
left:O.left+a}));
P.push(M.create(N.r,
h,
{top:O.top+a,
right:0}));
P.push(l);
return this.__bC=P.join(B);
},
resize:function(L,
Q,
R){var O=this.__bF;
var S=Q-O.left-O.right;
var T=R-O.top-O.bottom;
if(S<0){S=0;
}
if(T<0){T=0;
}var U=L.getDomElement();
U.style.width=Q+a;
U.style.height=R+a;
U.childNodes[1].style.width=S+a;
U.childNodes[4].style.width=S+a;
U.childNodes[7].style.width=S+a;
U.childNodes[6].style.height=T+a;
U.childNodes[7].style.height=T+a;
U.childNodes[8].style.height=T+a;
if(qx.core.Variant.isSet(p,
G)){if(qx.bom.client.Engine.VERSION<7||qx.bom.client.Feature.QUIRKS_MODE){if(Q%2==1){U.childNodes[2].style.marginRight=c;
U.childNodes[5].style.marginRight=c;
U.childNodes[8].style.marginRight=c;
}else{U.childNodes[2].style.marginRight=b;
U.childNodes[5].style.marginRight=b;
U.childNodes[8].style.marginRight=b;
}
if(R%2==1){U.childNodes[3].style.marginBottom=c;
U.childNodes[4].style.marginBottom=c;
U.childNodes[5].style.marginBottom=c;
}else{U.childNodes[3].style.marginBottom=b;
U.childNodes[4].style.marginBottom=b;
U.childNodes[5].style.marginBottom=b;
}}}},
tint:function(L,
V){},
getInsets:function(){if(this.__bD){return this.__bD;
}return this.__bD={left:this.getInsetLeft(),
right:this.getInsetRight(),
bottom:this.getInsetBottom(),
top:this.getInsetTop()};
},
_applyInsets:function(){{};
this.__bD=null;
},
_applyBaseImage:function(W,
X){{};
var Y=qx.util.ResourceManager;
if(W){var ba=qx.util.AliasManager.getInstance();
var bb=ba.resolve(W);
var bc=/(.*)(\.[a-z]+)$/.exec(bb);
var bd=bc[1];
var be=bc[2];
var N=this.__bE={tl:bd+s+be,
t:bd+r+be,
tr:bd+i+be,
bl:bd+C+be,
b:bd+w+be,
br:bd+q+be,
l:bd+j+be,
c:bd+F+be,
r:bd+t+be};
this.__bF={top:Y.getImageHeight(N.t),
bottom:Y.getImageHeight(N.b),
left:Y.getImageWidth(N.l),
right:Y.getImageWidth(N.r)};
}}},
destruct:function(){this._disposeFields(D,
x,
E,
n);
}});
})();
(function(){var a="border-dark-shadow",
b="border-light",
c="border-dark",
d="border-light-shadow",
e="solid",
f="gray",
g="border-focused-light",
h="border-focused-dark",
i="border-focused-light-shadow",
j="border-focused-dark-shadow",
k="table-header-border",
l="border-separator",
m="white",
n="dotted",
o="effect",
p="tooltip-text",
q="table-focus-indicator",
r="qx/decoration/Classic",
s="border-lead",
t="decoration/shadow/shadow-small.png",
u="qx.theme.classic.Decoration",
v="decoration/shadow/shadow.png";
qx.Theme.define(u,
{resource:r,
decorations:{"main":{decorator:qx.ui.decoration.Uniform,
style:{width:1,
color:c}},
"inset":{decorator:qx.ui.decoration.Double,
style:{width:1,
innerWidth:1,
color:[a,
b,
b,
a],
innerColor:[c,
d,
d,
c]}},
"outset":{decorator:qx.ui.decoration.Double,
style:{width:1,
innerWidth:1,
color:[d,
c,
c,
d],
innerColor:[b,
a,
a,
b]}},
"groove":{decorator:qx.ui.decoration.Double,
style:{width:1,
innerWidth:1,
color:[a,
b,
b,
a],
innerColor:[b,
a,
a,
b]}},
"ridge":{decorator:qx.ui.decoration.Double,
style:{width:1,
innerWidth:1,
color:[b,
a,
a,
b],
innerColor:[a,
b,
b,
a]}},
"inset-thin":{decorator:qx.ui.decoration.Single,
style:{width:1,
color:[a,
b,
b,
a]}},
"outset-thin":{decorator:qx.ui.decoration.Single,
style:{width:1,
color:[b,
a,
a,
b]}},
"focused-inset":{decorator:qx.ui.decoration.Double,
style:{width:1,
innerWidth:1,
color:[j,
g,
g,
j],
innerColor:[h,
i,
i,
h]}},
"focused-outset":{decorator:qx.ui.decoration.Double,
style:{width:1,
innerWidth:1,
color:[i,
h,
h,
i],
innerColor:[g,
j,
j,
g]}},
"separator-horizontal":{decorator:qx.ui.decoration.Single,
style:{widthLeft:1,
colorLeft:l}},
"separator-vertical":{decorator:qx.ui.decoration.Single,
style:{widthTop:1,
colorTop:l}},
"shadow":{decorator:qx.ui.decoration.Grid,
style:{baseImage:v,
insets:[4,
8,
8,
4]}},
"shadow-small":{decorator:qx.ui.decoration.Grid,
style:{baseImage:t,
insets:[0,
3,
3,
0]}},
"lead-item":{decorator:qx.ui.decoration.Uniform,
style:{width:1,
style:n,
color:s}},
"tooltip":{decorator:qx.ui.decoration.Uniform,
style:{width:1,
color:p}},
"toolbar-separator":{decorator:qx.ui.decoration.Single,
style:{widthLeft:1,
colorLeft:a}},
"toolbar-part-handle":{decorator:qx.ui.decoration.Single,
style:{width:1,
style:e,
colorTop:m,
colorLeft:m,
colorRight:a,
colorBottom:a}},
"menu-separator":{decorator:qx.ui.decoration.Single,
style:{widthTop:1,
widthBottom:1,
colorTop:c,
colorBottom:b}},
"datechooser-date-pane":{decorator:qx.ui.decoration.Single,
style:{widthTop:1,
colorTop:f,
style:e}},
"datechooser-weekday":{decorator:qx.ui.decoration.Single,
style:{widthBottom:1,
colorBottom:f,
style:e}},
"datechooser-week":{decorator:qx.ui.decoration.Single,
style:{widthRight:1,
colorRight:f,
style:e}},
"datechooser-week-header":{decorator:qx.ui.decoration.Single,
style:{widthBottom:1,
colorBottom:f,
widthRight:1,
colorRight:f,
style:e}},
"tabview-page-button-top":{decorator:qx.ui.decoration.Double,
style:{width:1,
color:[d,
c,
c,
d],
innerWidth:1,
innerColor:[b,
a,
a,
b],
widthBottom:0,
innerWidthBottom:0}},
"tabview-page-button-bottom":{decorator:qx.ui.decoration.Double,
style:{width:1,
color:[d,
c,
c,
d],
innerWidth:1,
innerColor:[b,
a,
a,
b],
widthTop:0,
innerWidthTop:0}},
"tabview-page-button-left":{decorator:qx.ui.decoration.Double,
style:{width:1,
color:[d,
c,
c,
d],
innerWidth:1,
innerColor:[b,
a,
a,
b],
widthRight:0,
innerWidthRight:0}},
"tabview-page-button-right":{decorator:qx.ui.decoration.Double,
style:{width:1,
color:[d,
c,
c,
d],
innerWidth:1,
innerColor:[b,
a,
a,
b],
widthLeft:0,
innerWidthLeft:0}},
"table-statusbar":{decorator:qx.ui.decoration.Single,
style:{widthTop:1,
colorTop:a,
styleTop:e}},
"table-scroller-header":{decorator:qx.ui.decoration.Single,
style:{widthBottom:1,
colorBottom:k,
styleBottom:e}},
"table-scroller-focus-indicator":{decorator:qx.ui.decoration.Single,
style:{width:2,
color:q,
style:e}},
"table-header-cell":{decorator:qx.ui.decoration.Single,
style:{widthRight:1,
colorRight:k,
styleRight:e}},
"table-header-cell-hovered":{decorator:qx.ui.decoration.Single,
style:{widthRight:1,
colorRight:k,
styleRight:e,
widthBottom:2,
colorBottom:o,
styleBottom:e}}}});
})();
(function(){var a="Liberation Sans",
b="Verdana",
c="Bitstream Vera Sans",
d="Lucida Grande",
e="Tahoma",
f="monospace",
g="qx.theme.classic.Font",
h="Courier New",
i="DejaVu Sans Mono";
qx.Theme.define(g,
{fonts:{"default":{size:11,
lineHeight:1.4,
family:[d,
e,
b,
c,
a]},
"bold":{size:11,
lineHeight:1.4,
family:[d,
e,
b,
c,
a],
bold:true},
"small":{size:10,
lineHeight:1.4,
family:[d,
e,
b,
c,
a]},
"monospace":{size:11,
lineHeight:1.4,
family:[i,
h,
f]}}});
})();
(function(){var a="button",
b="background",
c="widget",
d="inset-thin",
e="atom",
f="outset",
g="inset",
h="groupbox",
i="focused-inset",
j="middle",
k="menu-button",
l="spinner",
m="tooltip",
n="button-frame",
o="text-disabled",
p="checkbox",
q="text-selected",
r="toolbar-button",
s="popup",
t="textfield",
u="list",
v="button-hovered",
w="shadow-small",
x="scrollbar",
y="center",
z="datechooser/button",
A="decoration/arrows/down.gif",
B="main",
C="background-selected",
D="image",
E="date-chooser",
F="label",
G="date-chooser-title",
H="radiobutton",
I="default",
J="bold",
K="white",
L="combobox",
M="background-focused",
N="button-abandoned",
O="background-light",
P="background-field",
Q="outset-thin",
R="background-disabled",
S="scrollbar/button",
T="combobox/button",
U="table-header-cell",
V="decoration/arrows/right.gif",
W="decoration/arrows/down-small.gif",
X="icon/16/places/folder.png",
Y="tree-folder",
ba="icon/16/mimetypes/text-plain.png",
bb="right-top",
bc=".png",
bd="datechooser",
be="slidebar/button-backward",
bf="selectbox",
bg="slidebar/button-forward",
bh="treevirtual-folder",
bi="decoration/form/",
bj="decoration/tree/minus.gif",
bk="decoration/tree/plus.gif",
bl="decoration/arrows/left.gif",
bm="icon/16/places/folder-open.png",
bn="top",
bo="radiobutton-hovered",
bp="decoration/treevirtual/start_plus.gif",
bq="decoration/cursors/",
br="icon/16/actions/dialog-ok.png",
bs="slidebar",
bt="table-scroller-focus-indicator",
bu="move-frame",
bv="nodrop",
bw="tabview-page-button-left",
bx="decoration/arrows/up-small.gif",
by="move",
bz="radiobutton-checked-focused",
bA="qx.theme.classic.Appearance",
bB="decoration/menu/checkbox.gif",
bC="decoration/arrows/rewind.gif",
bD="table-scroller-header",
bE="radiobutton-disabled",
bF="table-pane",
bG="table-header-cell-hover",
bH="focused-outset",
bI="checkbox-hovered",
bJ="text",
bK="icon/16/actions/dialog-cancel.png",
bL="datechooser-date-pane",
bM="background-pane",
bN="decoration/treevirtual/cross_plus.gif",
bO="datechooser-week",
bP="icon/16/apps/office-calendar.png",
bQ="datechooser-weekday",
bR="table-header-border",
bS="decoration/treevirtual/end.gif",
bT="decoration/treevirtual/cross_minus.gif",
bU="window-active-caption-text",
bV="window-active-caption",
bW="icon",
bX="checkbox-checked-focused",
bY="toolbar-separator",
ca="groove",
cb="checkbox-pressed",
cc="decoration/window/restore.gif",
cd="decoration/menu/checkbox-invert.gif",
ce="scrollarea",
cf="window-inactive-caption-text",
cg="button-checked",
ch="up.gif",
ci="tabview-page-button-right",
cj="checkbox-disabled",
ck="tabview-page-button-top",
cl="tabview-page-button-bottom",
cm="decoration/menu/radiobutton.gif",
cn="decoration/arrows/",
co="decoration/table/descending.png",
cp="tooltip-text",
cq="checkbox-checked-hovered",
cr="left.gif",
cs="alias",
ct="checkbox-checked-disabled",
cu="decoration/arrows/right-invert.gif",
cv="radiobutton-checked-disabled",
cw="lead-item",
cx="checkbox-focused",
cy="border-dark",
cz="decoration/treevirtual/end_plus.gif",
cA="decoration/treevirtual/start_minus.gif",
cB="radiobutton-checked-hovered",
cC="decoration/window/minimize.gif",
cD="checkbox-checked",
cE="table-header-cell-hovered",
cF="down.gif",
cG="decoration/treevirtual/end_minus.gif",
cH="left",
cI="window-inactive-caption",
cJ="decoration/menu/radiobutton-invert.gif",
cK="slider",
cL="decoration/table/select-column-order.png",
cM="decoration/arrows/next.gif",
cN="decoration/treevirtual/only_minus.gif",
cO="datechooser-week-header",
cP="decoration/window/maximize.gif",
cQ="decoration/treevirtual/only_plus.gif",
cR="checkbox-checked-pressed",
cS="menu-separator",
cT="decoration/splitpane/knob-vertical.png",
cU=".gif",
cV="decoration/arrows/forward.gif",
cW="radiobutton-checked-pressed",
cX="table-statusbar",
cY="radiobutton-pressed",
da="copy",
db="radiobutton-focused",
dc="decoration/splitpane/knob-horizontal.png",
dd="right.gif",
de="radiobutton-checked",
df="decoration/treevirtual/cross.gif",
dg="decoration/table/ascending.png",
dh="decoration/treevirtual/line.gif",
di="table-header",
dj="date-chooser-selected",
dk="toolbar-part-handle",
dl="decoration/window/close.gif",
dm="icon/16/actions/view-refresh.png";
qx.Theme.define(bA,
{appearances:{"widget":{},
"label":{style:function(dn){return {textColor:dn.disabled?o:undefined};
}},
"image":{style:function(dn){return {opacity:!dn.replacement&&dn.disabled?0.3:undefined};
}},
"atom":{},
"atom/label":F,
"atom/icon":D,
"root":{style:function(dn){return {backgroundColor:b,
textColor:bJ,
font:I};
}},
"popup":{style:function(dn){return {decorator:B,
backgroundColor:bM,
shadow:w};
}},
"tooltip":{include:s,
style:function(dn){return {backgroundColor:m,
textColor:cp,
decorator:m,
shadow:w,
padding:[1,
3,
2,
3],
offset:[1,
1,
20,
1]};
}},
"tooltip/atom":e,
"iframe":{style:function(dn){return {backgroundColor:K,
decorator:g};
}},
"move-frame":{style:function(dn){return {decorator:B};
}},
"resize-frame":bu,
"dragdrop-cursor":{style:function(dn){var dp=bv;
if(dn.copy){dp=da;
}else if(dn.move){dp=by;
}else if(dn.alias){dp=cs;
}return {source:bq+dp+cU,
position:bb,
offset:[2,
16,
2,
6]};
}},
"button-frame":{alias:e,
style:function(dn){if(dn.pressed||dn.abandoned||dn.checked){var dq=!dn.inner&&dn.focused?i:g;
var dr=[4,
3,
2,
5];
}else{var dq=!dn.inner&&dn.focused?bH:f;
var dr=[3,
4];
}return {backgroundColor:dn.abandoned?N:dn.hovered?v:dn.checked?cg:a,
decorator:dq,
padding:dr};
}},
"button":{alias:n,
include:n,
style:function(dn){return {center:true};
}},
"splitbutton":{},
"splitbutton/button":a,
"splitbutton/arrow":{alias:a,
include:a,
style:function(dn){return {icon:A};
}},
"scrollarea/corner":{style:function(){return {backgroundColor:b};
}},
"scrollarea":c,
"scrollarea/pane":c,
"scrollarea/scrollbar-x":x,
"scrollarea/scrollbar-y":x,
"list":{alias:ce,
style:function(dn){return {decorator:dn.focused?i:g,
backgroundColor:dn.focused?M:K};
}},
"listitem":{alias:e,
style:function(dn){return {gap:4,
padding:dn.lead?[2,
4]:[3,
5],
backgroundColor:dn.selected?C:undefined,
textColor:dn.selected?q:undefined,
decorator:dn.lead?cw:undefined};
}},
"textfield":{style:function(dn){return {decorator:dn.focused?i:g,
padding:[2,
3],
textColor:dn.disabled?o:undefined,
backgroundColor:dn.disabled?R:dn.focused?M:P};
}},
"textarea":t,
"checkbox":{alias:e,
style:function(dn){var dp;
if(dn.checked&&dn.focused){dp=bX;
}else if(dn.checked&&dn.disabled){dp=ct;
}else if(dn.checked&&dn.pressed){dp=cR;
}else if(dn.checked&&dn.hovered){dp=cq;
}else if(dn.checked){dp=cD;
}else if(dn.disabled){dp=cj;
}else if(dn.focused){dp=cx;
}else if(dn.pressed){dp=cb;
}else if(dn.hovered){dp=bI;
}else{dp=p;
}return {icon:bi+dp+bc,
gap:6};
}},
"radiobutton":{alias:p,
include:p,
style:function(dn){var dp;
if(dn.checked&&dn.focused){dp=bz;
}else if(dn.checked&&dn.disabled){dp=cv;
}else if(dn.checked&&dn.pressed){dp=cW;
}else if(dn.checked&&dn.hovered){dp=cB;
}else if(dn.checked){dp=de;
}else if(dn.disabled){dp=bE;
}else if(dn.focused){dp=db;
}else if(dn.pressed){dp=cY;
}else if(dn.hovered){dp=bo;
}else{dp=H;
}return {icon:bi+dp+bc};
}},
"spinner":{style:function(dn){return {decorator:dn.focused?i:g,
textColor:dn.disabled?o:undefined};
}},
"spinner/textfield":{include:t,
style:function(dn){return {decorator:undefined,
padding:[2,
3]};
}},
"spinner/upbutton":{alias:a,
include:a,
style:function(dn){return {icon:bx,
padding:dn.pressed?[2,
2,
0,
4]:[1,
3,
1,
3],
backgroundColor:dn.hovered?v:a};
}},
"spinner/downbutton":{alias:a,
include:a,
style:function(dn){return {icon:W,
padding:dn.pressed?[2,
2,
0,
4]:[1,
3,
1,
3],
backgroundColor:dn.hovered?v:a};
}},
"datefield":L,
"datefield/button":{alias:T,
include:T,
style:function(dn){return {icon:bP,
padding:[0,
3],
backgroundColor:dn.disabled?R:dn.focused?M:P,
decorator:undefined};
}},
"datefield/list":{alias:bd,
include:bd,
style:function(dn){return {decorator:dn.focused?i:g};
}},
"groupbox":{style:function(dn){return {backgroundColor:b};
}},
"groupbox/legend":{alias:e,
style:function(dn){return {backgroundColor:b,
paddingRight:4,
paddingLeft:4,
marginRight:10,
marginLeft:10};
}},
"groupbox/frame":{style:function(dn){return {padding:[12,
9],
decorator:ca};
}},
"check-groupbox":h,
"check-groupbox/legend":{alias:p,
include:p,
style:function(dn){return {backgroundColor:b,
paddingRight:3,
paddingLeft:3,
marginRight:10,
marginLeft:10};
}},
"radio-groupbox":h,
"radio-groupbox/legend":{alias:H,
include:H,
style:function(dn){return {backgroundColor:b,
paddingRight:3,
paddingLeft:3,
marginRight:10,
marginLeft:10};
}},
"toolbar":{style:function(dn){return {backgroundColor:b};
}},
"toolbar/part":{},
"toolbar/part/container":{},
"toolbar/part/handle":{style:function(dn){return {decorator:dk,
backgroundColor:b,
padding:[0,
1],
margin:[3,
2],
allowGrowY:true};
}},
"toolbar-separator":{style:function(dn){return {margin:[3,
2],
decorator:bY};
}},
"toolbar-button":{alias:e,
style:function(dn){if(dn.pressed||dn.checked||dn.abandoned){var ds=d;
var dr=[3,
2,
1,
4];
}else if(dn.hovered){var ds=Q;
var dr=[2,
3];
}else{var ds=undefined;
var dr=[3,
4];
}return {cursor:I,
decorator:ds,
padding:dr,
backgroundColor:dn.abandoned?N:dn.checked?O:a};
}},
"toolbar-menubutton":{alias:r,
include:r,
style:function(dn){return {showArrow:true};
}},
"toolbar-menubutton/arrow":{alias:D,
include:D,
style:function(dn){return {source:W};
}},
"toolbar-splitbutton":{},
"toolbar-splitbutton/button":r,
"toolbar-splitbutton/arrow":{alias:r,
include:r,
style:function(dn){return {icon:A};
}},
"slidebar":{},
"slidebar/scrollpane":{},
"slidebar/content":{},
"slidebar/button-forward":{alias:a,
include:a,
style:function(dn){return {icon:cM};
}},
"slidebar/button-backward":{alias:a,
include:a,
style:function(dn){return {icon:bl};
}},
"tabview":{},
"tabview/bar":{alias:bs,
style:function(dn){var dt=0,
du=0,
dv=0,
dw=0;
if(dn.barTop){dv=-2;
}else if(dn.barBottom){dt=-2;
}else if(dn.barRight){dw=-2;
}else{du=-2;
}return {marginBottom:dv,
marginTop:dt,
marginLeft:dw,
marginRight:du};
}},
"tabview/bar/button-forward":{include:bg,
alias:bg,
style:function(dn){if(dn.barTop||dn.barBottom){return {marginTop:2,
marginBottom:2};
}else{return {marginLeft:2,
marginRight:2};
}}},
"tabview/bar/button-backward":{include:be,
alias:be,
style:function(dn){if(dn.barTop||dn.barBottom){return {marginTop:2,
marginBottom:2};
}else{return {marginLeft:2,
marginRight:2};
}}},
"tabview/pane":{style:function(dn){return {backgroundColor:b,
decorator:f,
padding:10};
}},
"tabview-page":{},
"tabview-page/button":{alias:a,
style:function(dn){var dq;
var dt=0,
du=0,
dv=0,
dw=0;
if(dn.barTop||dn.barBottom){var dx=2,
dy=2,
dz=6,
dA=6;
}else{var dx=6,
dy=6,
dz=6,
dA=6;
}
if(dn.barTop){dq=ck;
}else if(dn.barRight){dq=ci;
}else if(dn.barBottom){dq=cl;
}else{dq=bw;
}
if(dn.checked){if(dn.barTop||dn.barBottom){dz+=2;
dA+=2;
}else{dx+=2;
dy+=2;
}}else{if(dn.barTop||dn.barBottom){dv+=2;
dt+=2;
}else if(dn.barLeft||dn.barRight){du+=2;
dw+=2;
}}
if(dn.checked){if(!dn.firstTab){if(dn.barTop||dn.barBottom){dw=-4;
}else{dt=-4;
}}
if(!dn.lastTab){if(dn.barTop||dn.barBottom){du=-4;
}else{dv=-4;
}}}return {zIndex:dn.checked?10:5,
decorator:dq,
backgroundColor:b,
iconPosition:dn.barLeft||dn.barRight?bn:cH,
padding:[dx,
dA,
dy,
dz],
margin:[dt,
du,
dv,
dw]};
}},
"scrollbar":{},
"scrollbar/slider":{alias:cK,
style:function(dn){return {backgroundColor:O};
}},
"scrollbar/slider/knob":{include:n,
style:function(dn){return {height:14,
width:14,
minHeight:dn.horizontal?undefined:14,
minWidth:dn.horizontal?14:undefined};
}},
"scrollbar/button":{alias:a,
include:a,
style:function(dn){var dr;
if(dn.up||dn.down){if(dn.pressed||dn.abandoned||dn.checked){dr=[5,
2,
3,
4];
}else{dr=[4,
3];
}}else{if(dn.pressed||dn.abandoned||dn.checked){dr=[4,
3,
2,
5];
}else{dr=[3,
4];
}}var dp=cn;
if(dn.left){dp+=cr;
}else if(dn.right){dp+=dd;
}else if(dn.up){dp+=ch;
}else{dp+=cF;
}return {padding:dr,
icon:dp};
}},
"scrollbar/button-begin":S,
"scrollbar/button-end":S,
"slider":{style:function(dn){return {backgroundColor:O,
decorator:dn.focused?i:g};
}},
"slider/knob":{include:n,
style:function(dn){return {width:14,
height:14,
decorator:f};
}},
"tree-folder/open":{style:function(dn){return {source:dn.opened?bj:bk};
}},
"tree-folder":{style:function(dn){return {padding:[2,
3,
2,
0],
icon:dn.opened?bm:X};
}},
"tree-folder/icon":{style:function(dn){return {padding:[0,
4,
0,
0]};
}},
"tree-folder/label":{style:function(dn){return {padding:[1,
2],
backgroundColor:dn.selected?C:undefined,
textColor:dn.selected?q:undefined};
}},
"tree-file":{include:Y,
alias:Y,
style:function(dn){return {icon:ba};
}},
"tree":{include:u,
alias:u,
style:function(dn){return {contentPadding:[4,
4,
4,
4]};
}},
"treevirtual":{style:function(dn){return {decorator:B};
}},
"treevirtual-folder":{style:function(dn){return {icon:(dn.opened?bm:X)};
}},
"treevirtual-file":{include:bh,
alias:bh,
style:function(dn){return {icon:ba};
}},
"treevirtual-line":{style:function(dn){return {icon:dh};
}},
"treevirtual-contract":{style:function(dn){return {icon:bj};
}},
"treevirtual-expand":{style:function(dn){return {icon:bk};
}},
"treevirtual-only-contract":{style:function(dn){return {icon:cN};
}},
"treevirtual-only-expand":{style:function(dn){return {icon:cQ};
}},
"treevirtual-start-contract":{style:function(dn){return {icon:cA};
}},
"treevirtual-start-expand":{style:function(dn){return {icon:bp};
}},
"treevirtual-end-contract":{style:function(dn){return {icon:cG};
}},
"treevirtual-end-expand":{style:function(dn){return {icon:cz};
}},
"treevirtual-cross-contract":{style:function(dn){return {icon:bT};
}},
"treevirtual-cross-expand":{style:function(dn){return {icon:bN};
}},
"treevirtual-end":{style:function(dn){return {icon:bS};
}},
"treevirtual-cross":{style:function(dn){return {icon:df};
}},
"window":{style:function(dn){return {contentPadding:[10,
10,
10,
10],
backgroundColor:b,
decorator:dn.maximized?undefined:f,
shadow:w};
}},
"window/pane":{},
"window/captionbar":{style:function(dn){return {padding:1,
backgroundColor:dn.active?bV:cI,
textColor:dn.active?bU:cf};
}},
"window/icon":{style:function(dn){return {marginRight:4};
}},
"window/title":{style:function(dn){return {cursor:I,
font:J,
marginRight:20,
alignY:j};
}},
"window/minimize-button":{include:a,
alias:a,
style:function(dn){return {icon:cC,
padding:dn.pressed||dn.abandoned?[2,
1,
0,
3]:[1,
2]};
}},
"window/restore-button":{include:a,
alias:a,
style:function(dn){return {icon:cc,
padding:dn.pressed||dn.abandoned?[2,
1,
0,
3]:[1,
2]};
}},
"window/maximize-button":{include:a,
alias:a,
style:function(dn){return {icon:cP,
padding:dn.pressed||dn.abandoned?[2,
1,
0,
3]:[1,
2]};
}},
"window/close-button":{include:a,
alias:a,
style:function(dn){return {marginLeft:2,
icon:dl,
padding:dn.pressed||dn.abandoned?[2,
1,
0,
3]:[1,
2]};
}},
"window/statusbar":{style:function(dn){return {decorator:d,
padding:[2,
6]};
}},
"window/statusbar-text":F,
"resizer":{style:function(dn){return {decorator:f};
}},
"splitpane":{},
"splitpane/splitter":{style:function(dn){return {backgroundColor:b};
}},
"splitpane/splitter/knob":{style:function(dn){return {source:dn.horizontal?dc:cT,
padding:2};
}},
"splitpane/slider":{style:function(dn){return {backgroundColor:cy,
opacity:0.3};
}},
"selectbox":n,
"selectbox/atom":e,
"selectbox/popup":s,
"selectbox/list":u,
"selectbox/arrow":{style:function(dn){return {source:A,
paddingRight:4,
paddingLeft:5};
}},
"datechooser":{style:function(dn){return {decorator:f};
}},
"datechooser/navigation-bar":{style:function(dn){return {backgroundColor:E,
padding:[2,
10]};
}},
"datechooser/last-year-button-tooltip":m,
"datechooser/last-month-button-tooltip":m,
"datechooser/next-year-button-tooltip":m,
"datechooser/next-month-button-tooltip":m,
"datechooser/last-year-button":z,
"datechooser/last-month-button":z,
"datechooser/next-year-button":z,
"datechooser/next-month-button":z,
"datechooser/button/icon":{},
"datechooser/button":{style:function(dn){var dB={width:17,
show:bW};
if(dn.lastYear){dB.icon=bC;
}else if(dn.lastMonth){dB.icon=bl;
}else if(dn.nextYear){dB.icon=cV;
}else if(dn.nextMonth){dB.icon=V;
}
if(dn.pressed||dn.checked||dn.abandoned){dB.decorator=d;
}else if(dn.hovered){dB.decorator=Q;
}else{dB.decorator=undefined;
}
if(dn.pressed||dn.checked||dn.abandoned){dB.padding=[2,
0,
0,
2];
}else if(dn.hovered){dB.padding=1;
}else{dB.padding=2;
}return dB;
}},
"datechooser/month-year-label":{style:function(dn){return {font:J,
textAlign:y};
}},
"datechooser/date-pane":{style:function(dn){return {decorator:bL,
backgroundColor:E};
}},
"datechooser/weekday":{style:function(dn){return {decorator:bQ,
font:J,
textAlign:y,
textColor:dn.weekend?G:E,
backgroundColor:dn.weekend?E:G};
}},
"datechooser/day":{style:function(dn){return {textAlign:y,
decorator:dn.today?B:undefined,
textColor:dn.selected?q:dn.otherMonth?o:undefined,
backgroundColor:dn.selected?dj:undefined,
padding:[2,
4]};
}},
"datechooser/week":{style:function(dn){return {textAlign:y,
textColor:G,
padding:[2,
4],
decorator:dn.header?cO:bO};
}},
"combobox":{style:function(dn){return {decorator:dn.focused?i:g,
textColor:dn.disabled?o:undefined,
backgroundColor:P};
}},
"combobox/button":{alias:a,
include:a,
style:function(dn){return {icon:A,
backgroundColor:dn.hovered?v:a};
}},
"combobox/popup":s,
"combobox/list":u,
"combobox/textfield":{include:t,
style:function(dn){return {decorator:undefined,
padding:[2,
3]};
}},
"menu":{style:function(dn){var dB={backgroundColor:b,
shadow:w,
decorator:f,
spacingX:6,
spacingY:1,
iconColumnWidth:16,
arrowColumnWidth:4,
padding:1};
if(dn.submenu){dB.position=bb;
dB.offset=[-2,
-3];
}
if(dn.contextmenu){dB.offset=4;
}return dB;
}},
"menu-separator":{style:function(dn){return {height:0,
decorator:cS,
marginTop:4,
marginBottom:4,
marginLeft:2,
marginRight:2};
}},
"menu-button":{alias:e,
style:function(dn){return {backgroundColor:dn.selected?C:undefined,
textColor:dn.selected?q:undefined,
padding:[2,
6]};
}},
"menu-button/icon":{include:D,
style:function(dn){return {alignY:j};
}},
"menu-button/label":{include:F,
style:function(dn){return {alignY:j,
padding:1};
}},
"menu-button/shortcut":{include:F,
style:function(dn){return {alignY:j,
marginLeft:14,
padding:1};
}},
"menu-button/arrow":{style:function(dn){return {source:dn.selected?cu:V,
alignY:j};
}},
"menu-checkbox":{alias:k,
include:k,
style:function(dn){return {icon:!dn.checked?undefined:dn.selected?cd:bB};
}},
"menu-radiobutton":{alias:k,
include:k,
style:function(dn){return {icon:!dn.checked?undefined:dn.selected?cJ:cm};
}},
"menubar":{style:function(dn){return {backgroundColor:b,
decorator:f};
}},
"menubar-button":{alias:e,
style:function(dn){return {padding:[2,
6],
backgroundColor:dn.pressed||dn.hovered?C:undefined,
textColor:dn.pressed||dn.hovered?q:undefined};
}},
"colorselector":c,
"colorselector/control-bar":c,
"colorselector/visual-pane":h,
"colorselector/control-pane":c,
"colorselector/preset-grid":c,
"colorselector/colorbucket":{style:function(dn){return {decorator:d,
width:16,
height:16};
}},
"colorselector/preset-field-set":h,
"colorselector/input-field-set":h,
"colorselector/preview-field-set":h,
"colorselector/hex-field-composite":c,
"colorselector/hex-field":t,
"colorselector/rgb-spinner-composite":c,
"colorselector/rgb-spinner-red":l,
"colorselector/rgb-spinner-green":l,
"colorselector/rgb-spinner-blue":l,
"colorselector/hsb-spinner-composite":c,
"colorselector/hsb-spinner-hue":l,
"colorselector/hsb-spinner-saturation":l,
"colorselector/hsb-spinner-brightness":l,
"colorselector/preview-content-old":{style:function(dn){return {decorator:d,
width:50,
height:10};
}},
"colorselector/preview-content-new":{style:function(dn){return {decorator:d,
backgroundColor:K,
width:50,
height:10};
}},
"colorselector/hue-saturation-field":{style:function(dn){return {decorator:d,
margin:5};
}},
"colorselector/brightness-field":{style:function(dn){return {decorator:d,
margin:[5,
7]};
}},
"colorselector/hue-saturation-pane":c,
"colorselector/hue-saturation-handle":c,
"colorselector/brightness-pane":c,
"colorselector/brightness-handle":c,
"table":c,
"table/statusbar":{style:function(dn){return {decorator:cX,
paddingLeft:2,
paddingRight:2};
}},
"table/column-button":{alias:a,
style:function(dn){var ds,
dr;
if(dn.pressed||dn.checked||dn.abandoned){ds=d;
dr=[3,
2,
1,
4];
}else if(dn.hovered){ds=Q;
dr=[2,
3];
}else{ds=undefined;
dr=[3,
4];
}return {decorator:ds,
padding:dr,
backgroundColor:dn.abandoned?N:a,
icon:cL};
}},
"table-column-reset-button":{extend:k,
alias:k,
style:function(){return {icon:dm};
}},
"table-scroller/scrollbar-x":x,
"table-scroller/scrollbar-y":x,
"table-scroller":c,
"table-scroller/header":{style:function(dn){return {decorator:bD,
backgroundColor:di};
}},
"table-scroller/pane":{style:function(dn){return {backgroundColor:bF};
}},
"table-scroller/focus-indicator":{style:function(dn){return {decorator:bt};
}},
"table-scroller/resize-line":{style:function(dn){return {backgroundColor:bR,
width:3};
}},
"table-header-cell":{alias:e,
style:function(dn){return {paddingLeft:2,
paddingRight:2,
paddingBottom:dn.hovered?0:2,
decorator:dn.hovered?cE:U,
backgroundColor:dn.hovered?bG:U,
sortIcon:dn.sorted?(dn.sortedAscending?dg:co):undefined};
}},
"table-header-cell/sort-icon":{style:function(dn){return {alignY:j};
}},
"table-editor-textfield":{include:t,
style:function(dn){return {decorator:undefined,
padding:[2,
2]};
}},
"table-editor-selectbox":{include:bf,
alias:bf,
style:function(dn){return {padding:[0,
2]};
}},
"table-editor-combobox":{include:L,
alias:L,
style:function(dn){return {decorator:undefined};
}},
"colorpopup":{alias:s,
include:s,
style:function(dn){return {decorator:f,
padding:5,
backgroundColor:b};
}},
"colorpopup/field":{style:function(dn){return {decorator:d,
margin:2,
width:14,
height:14,
backgroundColor:b};
}},
"colorpopup/selector-button":a,
"colorpopup/auto-button":a,
"colorpopup/preview-pane":h,
"colorpopup/current-preview":{style:function(dC){return {height:20,
padding:4,
marginLeft:4,
decorator:d,
allowGrowX:true};
}},
"colorpopup/selected-preview":{style:function(dC){return {height:20,
padding:4,
marginRight:4,
decorator:d,
allowGrowX:true};
}},
"colorpopup/colorselector-okbutton":{alias:a,
include:a,
style:function(dn){return {icon:br};
}},
"colorpopup/colorselector-cancelbutton":{alias:a,
include:a,
style:function(dn){return {icon:bK};
}}}});
})();
(function(){var a="Oxygen",
b="qx.theme.icon.Oxygen",
c="qx/icon/Oxygen";
qx.Theme.define(b,
{title:a,
resource:c,
icons:{}});
})();
(function(){var a="Classic Windows",
b="qx.theme.Classic";
qx.Theme.define(b,
{title:a,
meta:{color:qx.theme.classic.Color,
decoration:qx.theme.classic.Decoration,
font:qx.theme.classic.Font,
appearance:qx.theme.classic.Appearance,
icon:qx.theme.icon.Oxygen}});
})();
(function(){var a='"',
b="qx.lang.Core",
c="\\\\",
d="\\\"",
e="[object Error]";
qx.Bootstrap.define(b);
if(!Error.prototype.toString||Error.prototype.toString()==e){Error.prototype.toString=function(){return this.message;
};
}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(f,
g){if(g==null){g=0;
}else if(g<0){g=Math.max(0,
this.length+g);
}
for(var h=g;h<this.length;h++){if(this[h]===f){return h;
}}return -1;
};
}
if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(f,
g){if(g==null){g=this.length-1;
}else if(g<0){g=Math.max(0,
this.length+g);
}
for(var h=g;h>=0;h--){if(this[h]===f){return h;
}}return -1;
};
}
if(!Array.prototype.forEach){Array.prototype.forEach=function(j,
k){var m=this.length;
for(var h=0;h<m;h++){j.call(k,
this[h],
h,
this);
}};
}
if(!Array.prototype.filter){Array.prototype.filter=function(j,
k){var m=this.length;
var n=[];
for(var h=0;h<m;h++){if(j.call(k,
this[h],
h,
this)){n.push(this[h]);
}}return n;
};
}
if(!Array.prototype.map){Array.prototype.map=function(j,
k){var m=this.length;
var n=[];
for(var h=0;h<m;h++){n.push(j.call(k,
this[h],
h,
this));
}return n;
};
}
if(!Array.prototype.some){Array.prototype.some=function(j,
k){var m=this.length;
for(var h=0;h<m;h++){if(j.call(k,
this[h],
h,
this)){return true;
}}return false;
};
}
if(!Array.prototype.every){Array.prototype.every=function(j,
k){var m=this.length;
for(var h=0;h<m;h++){if(!j.call(k,
this[h],
h,
this)){return false;
}}return true;
};
}if(!String.prototype.quote){String.prototype.quote=function(){return a+this.replace(/\\/g,
c).replace(/\"/g,
d)+a;
};
}})();
(function(){var a="indexOf",
b="lastIndexOf",
c="slice",
d="concat",
e="join",
f="toLocaleUpperCase",
g="shift",
h="substr",
j="filter",
k="unshift",
m="match",
n="quote",
o="qx.lang.Generics",
p="localeCompare",
q="sort",
r="some",
t="charAt",
u="split",
v="substring",
w="pop",
x="toUpperCase",
y="replace",
z="push",
A="charCodeAt",
B="every",
C="reverse",
D="search",
E="forEach",
F="map",
G="toLowerCase",
H="splice",
I="toLocaleLowerCase";
qx.Bootstrap.define(o,
{statics:{__bG:{"Array":[e,
C,
q,
z,
w,
g,
k,
H,
d,
c,
a,
b,
E,
F,
j,
r,
B],
"String":[n,
v,
G,
x,
t,
A,
a,
b,
I,
f,
p,
m,
D,
y,
u,
h,
d,
c]},
__bH:function(J,
K){return function(L){return J.prototype[K].apply(L,
Array.prototype.slice.call(arguments,
1));
};
},
__bI:function(){var M=qx.lang.Generics.__bG;
for(var N in M){var J=window[N];
var O=M[N];
for(var P=0,
Q=O.length;P<Q;P++){var K=O[P];
if(!J[K]){J[K]=qx.lang.Generics.__bH(J,
K);
}}}}},
defer:function(R){R.__bI();
}});
})();
(function(){var a=":",
b="qx.client",
c="anonymous",
d="...",
e="qx.dev.StackTrace",
f="",
g="\n",
h="/source/class/",
j=".";
qx.Class.define(e,
{statics:{getStackTrace:qx.core.Variant.select(b,
{"gecko":function(){try{throw new Error();
}catch(ex){var k=this.getStackTraceFromError(ex);
qx.lang.Array.removeAt(k,
0);
var l=this.getStackTraceFromCaller(arguments);
var m=l.length>k.length?l:k;
for(var n=0;n<Math.min(l.length,
k.length);n++){var o=l[n];
if(o.indexOf(c)>=0){continue;
}var p=o.split(a);
if(p.length!=2){continue;
}var q=p[0];
var r=p[1];
var s=k[n];
var t=s.split(a);
var u=t[0];
var v=t[1];
if(qx.Class.getByName(u)){var w=u;
}else{w=q;
}var x=w+a;
if(r){x+=r+a;
}x+=v;
m[n]=x;
}return m;
}},
"mshtml|webkit":function(){return this.getStackTraceFromCaller(arguments);
},
"opera":function(){var y;
try{y.bar();
}catch(ex){var m=this.getStackTraceFromError(ex);
qx.lang.Array.removeAt(m,
0);
return m;
}return [];
}}),
getStackTraceFromCaller:qx.core.Variant.select(b,
{"opera":function(z){return [];
},
"default":function(z){var m=[];
var A=qx.lang.Function.getCaller(z);
var B={};
while(A){var C=qx.lang.Function.getName(A);
m.push(C);
try{A=A.caller;
}catch(ex){break;
}
if(!A){break;
}var D=qx.core.ObjectRegistry.toHashCode(A);
if(B[D]){m.push(d);
break;
}B[D]=A;
}return m;
}}),
getStackTraceFromError:qx.core.Variant.select(b,
{"gecko":function(E){if(!E.stack){return [];
}var F=/@(.+):(\d+)$/gm;
var G;
var m=[];
while((G=F.exec(E.stack))!=null){var H=G[1];
var v=G[2];
var w=this.__bJ(H);
m.push(w+a+v);
}return m;
},
"webkit":function(E){if(E.sourceURL&&E.line){return [this.__bJ(E.sourceURL)+a+E.line];
}else{return [];
}},
"opera":function(E){if(E.message.indexOf("Backtrace:")<0){return [];
}var m=[];
var I=qx.lang.String.trim(E.message.split("Backtrace:")[1]);
var J=I.split(g);
for(var n=0;n<J.length;n++){var K=J[n].match(/\s*Line ([0-9]+) of.* (\S.*)/);
if(K&&K.length>=2){var v=K[1];
var L=this.__bJ(K[2]);
m.push(L+a+v);
}}return m;
},
"default":function(){return [];
}}),
__bJ:function(L){var M=h;
var N=L.indexOf(M);
var w=(N==-1)?L:L.substring(N+M.length).replace(/\//g,
j).replace(/\.js$/,
f);
return w;
}}});
})();
(function(){var a="qx.event.IEventHandler";
qx.Interface.define(a,
{statics:{TARGET_DOMNODE:1,
TARGET_WINDOW:2,
TARGET_OBJECT:3},
members:{canHandleEvent:function(b,
c){},
registerEvent:function(b,
c,
d){},
unregisterEvent:function(b,
c,
d){}}});
})();
(function(){var a="load",
b="unload",
c="ready",
d="shutdown",
f="qx.event.handler.Application",
g="_window";
qx.Class.define(f,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(h){arguments.callee.base.call(this);
this._window=h.getWindow();
this._initObserver();
qx.event.handler.Application.$$instance=this;
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{ready:1,
shutdown:1},
TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,
IGNORE_CAN_HANDLE:true,
ready:function(){var i=qx.event.handler.Application.$$instance;
if(i){i.__bK();
}}},
members:{canHandleEvent:function(j,
k){},
registerEvent:function(j,
k,
l){},
unregisterEvent:function(j,
k,
l){},
__bK:function(){if(!this.__bL){this.__bL=true;
qx.event.Registration.fireEvent(this._window,
c);
}},
_initObserver:function(){this._onNativeLoadWrapped=qx.lang.Function.bind(this._onNativeLoad,
this);
this._onNativeUnloadWrapped=qx.lang.Function.bind(this._onNativeUnload,
this);
qx.bom.Event.addNativeListener(this._window,
a,
this._onNativeLoadWrapped);
qx.bom.Event.addNativeListener(this._window,
b,
this._onNativeUnloadWrapped);
},
_stopObserver:function(){qx.bom.Event.removeNativeListener(this._window,
a,
this._onNativeLoadWrapped);
qx.bom.Event.removeNativeListener(this._window,
b,
this._onNativeUnloadWrapped);
this._onNativeLoadWrapped=null;
this._onNativeUnloadWrapped=null;
},
_onNativeLoad:function(m){if(!this._window.qxloader){this.__bK();
}},
_onNativeUnload:function(m){if(!this.__bM){this.__bM=true;
try{qx.event.Registration.fireEvent(this._window,
d);
}finally{qx.core.ObjectRegistry.shutdown();
}}}},
destruct:function(){this._stopObserver();
this._disposeFields(g);
},
defer:function(n){qx.event.Registration.addHandler(n);
}});
})();
(function(){var a="qx.util.ObjectPool",
b="Integer";
qx.Class.define(a,
{extend:qx.core.Object,
construct:function(c){arguments.callee.base.call(this);
this.__bN={};
if(c!==undefined){this.setSize(c);
}},
properties:{size:{check:b,
init:null,
nullable:true}},
members:{__bN:null,
getObject:function(d){if(this.$$disposed){return;
}
if(!d){throw new Error("Class needs to be defined!");
}var e=null;
var f=this.__bN[d.classname];
if(f){e=f.pop();
}
if(e){e.$$pooled=false;
}else{e=new d;
}return e;
},
poolObject:function(e){if(!this.__bN){return;
}var g=e.classname;
var f=this.__bN[g];
if(e.$$pooled){throw new Error("Object is already pooled: "+e);
}
if(!f){this.__bN[g]=f=[];
}var c=this.getSize()||Infinity;
if(f.length>c){this.warn("Cannot pool "+e+" because the pool is already full.");
e.dispose();
return;
}e.$$pooled=true;
f.push(e);
}},
destruct:function(){var f=this.__bN;
var g,
h,
j,
k;
for(g in f){h=f[g];
for(j=0,
k=h.length;j<k;j++){h[j].dispose();
}}delete this.__bN;
}});
})();
(function(){var a="singleton",
b="qx.event.Pool";
qx.Class.define(b,
{extend:qx.util.ObjectPool,
type:a,
construct:function(){arguments.callee.base.call(this,
30);
},
members:{__bO:{"qx.legacy.event.type.DragEvent":1,
"qx.legacy.event.type.MouseEvent":1,
"qx.legacy.event.type.KeyEvent":1},
poolObject:function(c){if(this.__bO[c.classname]){return;
}arguments.callee.base.call(this,
c);
}}});
})();
(function(){var a="_originalTarget",
b="_relatedTarget",
c="qx.event.type.Event",
d="_target",
e="_currentTarget";
qx.Class.define(c,
{extend:qx.core.Object,
statics:{CAPTURING_PHASE:1,
AT_TARGET:2,
BUBBLING_PHASE:3},
members:{init:function(f,
g){{};
this._type=null;
this._target=null;
this._currentTarget=null;
this._relatedTarget=null;
this._originalTarget=null;
this._stopPropagation=false;
this._preventDefault=false;
this._bubbles=!!f;
this._cancelable=!!g;
this._timeStamp=(new Date()).getTime();
this._eventPhase=null;
return this;
},
clone:function(h){if(h){var i=h;
}else{var i=qx.event.Pool.getInstance().getObject(this.constructor);
}i._type=this._type;
i._target=this._target;
i._currentTarget=this._currentTarget;
i._relatedTarget=this._relatedTarget;
i._originalTarget=this._originalTarget;
i._stopPropagation=this._stopPropagation;
i._bubbles=this._bubbles;
i._preventDefault=this._preventDefault;
i._cancelable=this._cancelable;
return i;
},
stopPropagation:function(){{};
this._stopPropagation=true;
},
getPropagationStopped:function(){return !!this._stopPropagation;
},
preventDefault:function(){{};
this._preventDefault=true;
},
getDefaultPrevented:function(){return !!this._preventDefault;
},
getType:function(){return this._type;
},
setType:function(j){this._type=j;
},
getEventPhase:function(){return this._eventPhase;
},
setEventPhase:function(k){this._eventPhase=k;
},
getTimeStamp:function(){return this._timeStamp;
},
getTarget:function(){return this._target;
},
setTarget:function(l){this._target=l;
},
getCurrentTarget:function(){return this._currentTarget||this._target;
},
setCurrentTarget:function(m){this._currentTarget=m;
},
getRelatedTarget:function(){return this._relatedTarget;
},
setRelatedTarget:function(n){this._relatedTarget=n;
},
getOriginalTarget:function(){return this._originalTarget;
},
setOriginalTarget:function(o){this._originalTarget=o;
},
getBubbles:function(){return this._bubbles;
},
setBubbles:function(p){this._bubbles=p;
},
isCancelable:function(){return this._cancelable;
},
setCancelable:function(g){this._cancelable=g;
}},
destruct:function(){this._disposeFields(d,
e,
b,
a);
}});
})();
(function(){var a="__bP",
b="Better use 'getData'",
c="__bQ",
d="Better use 'getOldData'",
e="qx.event.type.Data";
qx.Class.define(e,
{extend:qx.event.type.Event,
members:{init:function(f,
g,
h){arguments.callee.base.call(this,
false,
h);
this.__bP=f;
this.__bQ=g;
return this;
},
clone:function(i){var j=arguments.callee.base.call(this,
i);
j.__bP=this.__bP;
j.__bQ=this.__bQ;
return j;
},
getData:function(){return this.__bP;
},
getOldData:function(){return this.__bQ;
},
getValue:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
b);
return this.__bP;
},
getOldValue:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
d);
return this.__bQ;
}},
destruct:function(){this._disposeFields(a,
c);
}});
})();
(function(){var a="qx.event.IEventDispatcher";
qx.Interface.define(a,
{members:{canDispatchEvent:function(b,
c,
d){this.assertInstance(c,
qx.event.type.Event);
this.assertString(d);
},
dispatchEvent:function(b,
c,
d){this.assertInstance(c,
qx.event.type.Event);
this.assertString(d);
}}});
})();
(function(){var a="qx.event.dispatch.Direct";
qx.Class.define(a,
{extend:qx.core.Object,
implement:qx.event.IEventDispatcher,
construct:function(b){this._manager=b;
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_LAST},
members:{canDispatchEvent:function(c,
d,
e){return !d.getBubbles();
},
dispatchEvent:function(c,
d,
e){d.setEventPhase(qx.event.type.Event.AT_TARGET);
var f=this._manager.getListeners(c,
e,
false);
if(f){for(var g=0,
h=f.length;g<h;g++){var j=f[g].context||c;
f[g].handler.call(j,
d);
}}}},
defer:function(k){qx.event.Registration.addDispatcher(k);
}});
})();
(function(){var a="",
b="get",
c="Number",
d="last",
f="reset",
g="]",
h="String",
k="set",
l="deepBinding",
m="[",
n="' (",
o="Boolean",
p=").",
q=") to the object '",
r="item",
s="Integer",
t="qx.data.SingleValueBinding",
u="change",
v="PositiveNumber",
w="Binding from '",
x="PositiveInteger",
y="Binding does not exist!",
z="Date",
A=".";
qx.Class.define(t,
{statics:{DEBUG_ON:false,
__bR:{},
bind:function(B,
C,
D,
E,
F){var G=C.split(A);
var H=this.__bT(G);
var I=[];
var J=[];
var K=[];
var L=[];
var M=B;
for(var N=0;N<G.length;N++){if(H[N]!==a){L.push(u);
}else{L.push(this.__bY(M,
G[N]));
}I[N]=M;
var O=qx.lang.Function.bind(function(P,
Q){for(var R=P+1;R<G.length;R++){var M=I[R];
I[R]=null;
if(!M){continue;
}M.removeListenerById(K[R]);
}var M=I[P];
for(var R=P+1;R<G.length;R++){if(H[R-1]!==a){M=M[b+qx.lang.String.firstUp(G[R-1])](H[R-1]);
}else{M=M[b+qx.lang.String.firstUp(G[R-1])]();
}I[R]=M;
if(!M){D[f+qx.lang.String.firstUp(E)]();
break;
}if(R==G.length-1){if(M instanceof qx.data.Array){var S=H[R]===d?M.length-1:H[R];
var T=M.getItem(S);
this.__bS(T,
D,
E,
F);
K[R]=this.__bV(M,
L[R],
D,
E,
F,
H[R]);
}else{K[R]=this.__bU(M,
G[R],
D,
E,
F);
}}else{K[R]=M.addListener(L[R],
J[R]);
}}},
this,
N);
J.push(O);
if(N==G.length-1){if(H[N]!==a){var S=H[N]===d?M.length-1:H[N];
var T=M.getItem(S);
this.__bS(T,
D,
E,
F);
K[N]=this.__bV(M,
L[N],
D,
E,
F,
H[N]);
}else{K[N]=this.__bU(M,
G[N],
D,
E,
F);
}}else{K[N]=M.addListener(L[N],
O);
}if(H[N]!==a){M=M[b+qx.lang.String.firstUp(G[N])](H[N]);
}else{M=M[b+qx.lang.String.firstUp(G[N])]();
}
if(!M){break;
}}var U={type:l,
listenerIds:K,
sources:I};
this.__bW(U,
B,
C,
D,
E);
return U;
},
__bS:function(V,
D,
E,
F){V=this.__bX(V,
D,
E,
F);
if(V!=undefined){D[k+qx.lang.String.firstUp(E)](V);
}},
__bT:function(G){var H=[];
for(var N=0;N<G.length;N++){var W=G[N];
if(qx.lang.String.endsWith(W,
g)){var X=W.substring(W.indexOf(m)+1,
W.indexOf(g));
if(W.indexOf(g)!=W.length-1){throw new Error("Please use only one array at a time: "+W+" does not work.");
}
if(X!==d){if(X==a||isNaN(parseInt(X))){throw new Error("No number or 'last' value hast been given"+" in a array binding: "+W+" does not work.");
}}G[N]=W.substring(0,
W.indexOf(m));
H[N]=a;
H[N+1]=X;
G.splice(N+1,
0,
r);
N++;
}else{H[N]=a;
}}return H;
},
bindPropertyToProperty:function(B,
Y,
D,
E,
F){var U=this.__bU(B,
Y,
D,
E,
F);
this.__bW(U,
B,
Y,
D,
E);
return U;
},
__bU:function(B,
Y,
D,
E,
F){var ba=this.__bY(B,
Y);
var T=B[b+qx.lang.String.firstUp(Y)]();
this.__bS(T,
D,
E,
F);
return this.__bV(B,
ba,
D,
E,
F);
},
bindEventToProperty:function(B,
bb,
D,
E,
F){var U=this.__bV(B,
bb,
D,
E,
F);
this.__bW(U,
B,
bb,
D,
E);
return U;
},
__bV:function(B,
bb,
D,
E,
F,
X){var bc,
bd;
var be=function(X,
Q){if(X!==a){if(X===d){X=B.length-1;
}var bf=B.getItem(X);
if(bf==undefined){D[f+qx.lang.String.firstUp(E)]();
}var bg=Q.getData().start;
var bh=Q.getData().end;
if(X<bg||X>bh){return;
}}else{var bf=Q.getData();
}if(qx.data.SingleValueBinding.DEBUG_ON){qx.log.Logger.debug("Binding executed from "+B+" by "+bb+" to "+D+" ("+E+")");
qx.log.Logger.debug("Data before conversion: "+bf);
}if(F&&F.converter){bf=F.converter(bf);
}else{var bd=qx.Class.getPropertyDefinition(D.constructor,
E);
bf=qx.data.SingleValueBinding.__ca(bf,
bd.check);
}if(qx.data.SingleValueBinding.DEBUG_ON){qx.log.Logger.debug("Data after conversion: "+bf);
}try{if(bf!=undefined){D[k+qx.lang.String.firstUp(E)](bf);
}else{D[f+qx.lang.String.firstUp(E)]();
}if(F&&F.onSetOk){F.onSetOk(B,
D,
bf);
}}catch(Q){if(!(Q instanceof qx.core.ValidationError)){throw Q;
}
if(F&&F.onSetFail){F.onSetFail(Q);
}else{this.warn("Failed so set value "+bf+" on "+D+". Error message: "+Q);
}}};
if(!X){X=a;
}be=qx.lang.Function.bind(be,
B,
X);
var U=B.addListener(bb,
be);
return U;
},
__bW:function(U,
B,
bb,
D,
E){if(this.__bR[B.toHashCode()]===undefined){this.__bR[B.toHashCode()]=[];
}this.__bR[B.toHashCode()].push([U,
B,
bb,
D,
E]);
},
__bX:function(V,
D,
E,
F){if(F&&F.converter){return F.converter(V);
}else{var bd=qx.Class.getPropertyDefinition(D.constructor,
E);
{};
return this.__ca(V,
bd.check);
}},
__bY:function(B,
Y){var bd=qx.Class.getPropertyDefinition(B.constructor,
Y);
{};
return bd.event;
},
__ca:function(bf,
bi){var bj=Object.prototype.toString.call(bf).slice(8,
-1);
if((bj==c||bj==h)&&(bi==s||bi==x)){bf=parseInt(bf);
}if((bj==o||bj==c|| dataType==z)&&bi==h){bf=bf+a;
}if((bj==c||bj==h)&&(bi==c||bi==v)){bf=parseFloat(bf);
}return bf;
},
removeBindingFromObject:function(B,
U){if(U.type==l){for(var N=0;N<U.sources.length;N++){if(U.sources[N]){U.sources[N].removeListenerById(U.listenerIds[N]);
}}}else{B.removeListenerById(U);
}var bk=this.__bR[B.toHashCode()];
if(bk!=undefined){for(var N=0;N<bk.length;N++){if(bk[N][0]==U){qx.lang.Array.remove(bk,
bk[N]);
return;
}}}throw new Error("Binding could not be found!");
},
removeAllBindingsForObject:function(bl){{};
var bk=this.__bR[bl.toHashCode()];
for(var N=bk.length-1;N>=0;N--){this.removeBindingFromObject(bl,
bk[N][0]);
}},
getAllBindingsForObject:function(bl){if(this.__bR[bl.toHashCode()]===undefined){this.__bR[bl.toHashCode()]=[];
}return this.__bR[bl.toHashCode()];
},
removeAllBindings:function(){for(var bm in this.__bR){var bl=qx.core.ObjectRegistry.fromHashCode(bm);
this.removeAllBindingsForObject(bl);
}this.__bR={};
},
getAllBindings:function(){return this.__bR;
},
showBindingInLog:function(bl,
U){var bn;
for(var N=0;N<this.__bR[bl.toHashCode()].length;N++){if(this.__bR[bl.toHashCode()][N][0]==U){bn=this.__bR[bl.toHashCode()][N];
break;
}}
if(bn===undefined){var bo=y;
}else{var bo=w+bn[1]+n+bn[2]+q+bn[3]+n+bn[4]+p;
}qx.log.Logger.debug(bo);
},
showAllBindingsInLog:function(){for(var bm in this.__bR){var bl=qx.core.ObjectRegistry.fromHashCode(bm);
for(var N=0;N<this.__bR[bm].length;N++){this.showBindingInLog(bl,
this.__bR[bm][N][0]);
}}}}});
})();
(function(){var a="change",
b="add",
c="remove",
d="order",
e="qx.data.Array",
f="qx.event.type.Event",
g="number",
h="changeLength",
j="qx.event.type.Data";
qx.Class.define(e,
{extend:qx.core.Object,
construct:function(k){arguments.callee.base.call(this);
if(k==undefined){this.__cb=[];
}else if(arguments.length>1){this.__cb=[];
for(var l=0;l<arguments.length;l++){this.__cb.push(arguments[l]);
}}else if(typeof k==g){this.__cb=new Array(k);
}else if(k instanceof Array){this.__cb=qx.lang.Array.copy(k);
}else{this.__cb=[];
throw new Error("Type of the parameter not supported!");
}this.__cc();
},
events:{"change":j,
"changeLength":f},
members:{concat:function(m){var n=this.__cb.concat(m);
return new qx.data.Array(n);
},
join:function(o){return this.__cb.join(o);
},
pop:function(){var p=this.__cb.pop();
this.__cc();
this.fireDataEvent(a,
{start:this.length-1,
end:this.length-1,
type:c},
null);
return p;
},
push:function(q){for(var l=0;l<arguments.length;l++){this.__cb.push(arguments[l]);
this.__cc();
this.fireDataEvent(a,
{start:this.length-1,
end:this.length-1,
type:b},
null);
}return this.length;
},
reverse:function(){this.__cb.reverse();
this.fireDataEvent(a,
{start:0,
end:this.length-1,
type:d},
null);
},
shift:function(){var r=this.__cb.shift();
this.__cc();
this.fireDataEvent(a,
{start:0,
end:this.length-1,
type:c,
item:r},
null);
return r;
},
slice:function(s,
t){return new qx.data.Array(this.__cb.slice(s,
t));
},
splice:function(q){var u=arguments[0];
var v=arguments[1];
var w=new qx.data.Array();
if(arguments.length>=2){var x=v+u;
}else{var x=this.__cb.length;
}for(var l=u;l<x;l++){var p=this.__cb.splice(u,
1)[0];
w.push(p);
this.__cc();
this.fireDataEvent(a,
{start:u,
end:this.length-1,
type:c,
item:p},
null);
}if(arguments.length>2){for(var l=arguments.length-1;l>=2;l--){this.__cb.splice(u,
0,
arguments[l]);
this.__cc();
this.fireDataEvent(a,
{start:u,
end:this.length-1,
type:b,
item:arguments[l]},
null);
}}return w;
},
sort:function(y){this.__cb.sort.apply(this.__cb,
arguments);
this.fireDataEvent(a,
{start:0,
end:this.length-1,
type:d,
item:null},
null);
},
unshift:function(q){for(var l=arguments.length-1;l>=0;l--){this.__cb.unshift(arguments[l]);
this.__cc();
this.fireDataEvent(a,
{start:0,
end:this.length-1,
type:b,
item:arguments[l]},
null);
}return this.length;
},
getArray:function(){return this.__cb;
},
getItem:function(z){return this.__cb[z];
},
setItem:function(z,
p){this.__cb[z]=p;
if(this.length!=this.__cb.length){this.__cc();
}this.fireDataEvent(a,
{start:z,
end:z,
type:b,
item:p},
null);
},
indexOf:function(p){return this.__cb.indexOf(p);
},
toString:function(){return this.__cb.toString();
},
contains:function(p){return this.__cb.indexOf(p)!==-1;
},
__cc:function(){this.length=this.__cb.length;
this.fireEvent(h,
qx.event.type.Event);
}}});
})();
(function(){var a="",
b=": ",
c="qx.core.BaseError";
qx.Class.define(c,
{extend:Error,
construct:function(d,
e){Error.call(this,
e);
this.__cd=d||a;
this.__ce=e||a;
},
members:{__cd:null,
__ce:null,
getComment:function(){return this.__cd;
},
message:function(){return this.__ce;
},
toString:function(){return this.__cd+b+this.__ce;
}}});
})();
(function(){var a="qx.core.ValidationError";
qx.Class.define(a,
{extend:qx.core.BaseError});
})();
(function(){var a="qx.event.handler.Object";
qx.Class.define(a,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
statics:{PRIORITY:qx.event.Registration.PRIORITY_LAST,
SUPPORTED_TYPES:null,
TARGET_CHECK:qx.event.IEventHandler.TARGET_OBJECT,
IGNORE_CAN_HANDLE:false},
members:{canHandleEvent:function(b,
c){return qx.Class.supportsEvent(b.constructor,
c);
},
registerEvent:function(b,
c,
d){},
unregisterEvent:function(b,
c,
d){}},
defer:function(e){qx.event.Registration.addHandler(e);
}});
})();
(function(){var a="qx.util.DisposeUtil";
qx.Class.define(a,
{statics:{disposeFields:function(b,
c){var d;
for(var e=0,
f=c.length;e<f;e++){var d=c[e];
if(b[d]==null||!b.hasOwnProperty(d)){continue;
}b[d]=null;
}},
disposeObjects:function(b,
c){var d;
for(var e=0,
f=c.length;e<f;e++){d=c[e];
if(b[d]==null||!b.hasOwnProperty(d)){continue;
}
if(!qx.core.ObjectRegistry.inShutDown){if(b[d].dispose){b[d].dispose();
}else{throw new Error("Has no disposable object under key: "+d+"!");
}}b[d]=null;
}},
disposeArray:function(b,
g){var h=b[g];
if(!h){return;
}if(qx.core.ObjectRegistry.inShutDown){b[g]=null;
return;
}try{var j;
for(var e=h.length-1;e>=0;e--){j=h[e];
if(j){j.dispose();
}}}catch(ex){throw new Error("The array field: "+g+" of object: "+b+" has non disposable entries: "+ex);
}h.length=0;
b[g]=null;
},
disposeMap:function(b,
g){var h=b[g];
if(!h){return;
}if(qx.core.ObjectRegistry.inShutDown){b[g]=null;
return;
}try{for(var k in h){if(h.hasOwnProperty(k)){h[k].dispose();
}}}catch(ex){throw new Error("The map field: "+g+" of object: "+b+" has non disposable entries: "+ex);
}b[g]=null;
}}});
})();
(function(){var a="_dynamic",
b="qx.util.ValueManager",
c="abstract";
qx.Class.define(b,
{type:c,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this._dynamic={};
},
members:{_dynamic:null,
resolveDynamic:function(d){return this._dynamic[d];
},
isDynamic:function(d){return !!this._dynamic[d];
},
resolve:function(d){if(d&&this._dynamic[d]){return this._dynamic[d];
}return d;
},
_setDynamic:function(d){this._dynamic=d;
},
_getDynamic:function(){return this._dynamic;
}},
destruct:function(){this._disposeFields(a);
}});
})();
(function(){var a="_applyTheme",
b="qx.theme.manager.Color",
c="Theme",
d="changeTheme",
e="string",
f="singleton";
qx.Class.define(b,
{type:f,
extend:qx.util.ValueManager,
properties:{theme:{check:c,
nullable:true,
apply:a,
event:d}},
members:{_applyTheme:function(g){var h={};
if(g){var i=g.colors;
var j=qx.util.ColorUtil;
var k;
for(var l in i){k=i[l];
if(typeof k===e){if(!j.isCssString(k)){throw new Error("Could not parse color: "+k);
}}else if(k instanceof Array){k=j.rgbToRgbString(k);
}else{throw new Error("Could not parse color: "+k);
}h[l]=k;
}}this._setDynamic(h);
},
resolve:function(g){var m=this._dynamic;
var n=m[g];
if(n){return n;
}var o=this.getTheme();
if(o!==null&&o.colors[g]){return m[g]=o.colors[g];
}return g;
},
isDynamic:function(g){var m=this._dynamic;
if(g&&(m[g]!==undefined)){return true;
}var o=this.getTheme();
if(o!==null&&g&&(o.colors[g]!==undefined)){m[g]=o.colors[g];
return true;
}return false;
}}});
})();
(function(){var a=",",
c="rgb(",
d=")",
e="qx.theme.manager.Color",
h="qx.util.ColorUtil";
qx.Class.define(h,
{statics:{REGEXP:{hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex6:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
rgb:/^rgb\(\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*,\s*([0-9]{1,3}\.{0,1}[0-9]*)\s*\)$/},
SYSTEM:{activeborder:true,
activecaption:true,
appworkspace:true,
background:true,
buttonface:true,
buttonhighlight:true,
buttonshadow:true,
buttontext:true,
captiontext:true,
graytext:true,
highlight:true,
highlighttext:true,
inactiveborder:true,
inactivecaption:true,
inactivecaptiontext:true,
infobackground:true,
infotext:true,
menu:true,
menutext:true,
scrollbar:true,
threeddarkshadow:true,
threedface:true,
threedhighlight:true,
threedlightshadow:true,
threedshadow:true,
window:true,
windowframe:true,
windowtext:true},
NAMED:{black:[0,
0,
0],
silver:[192,
192,
192],
gray:[128,
128,
128],
white:[255,
255,
255],
maroon:[128,
0,
0],
red:[255,
0,
0],
purple:[128,
0,
128],
fuchsia:[255,
0,
255],
green:[0,
128,
0],
lime:[0,
255,
0],
olive:[128,
128,
0],
yellow:[255,
255,
0],
navy:[0,
0,
128],
blue:[0,
0,
255],
teal:[0,
128,
128],
aqua:[0,
255,
255],
transparent:[-1,
-1,
-1],
magenta:[255,
0,
255],
orange:[255,
165,
0],
brown:[165,
42,
42],
grey:[128,
128,
128]},
isNamedColor:function(j){return this.NAMED[j]!==undefined;
},
isSystemColor:function(j){return this.SYSTEM[j]!==undefined;
},
supportsThemes:function(){return qx.Class.isDefined(e);
},
isThemedColor:function(j){if(!this.supportsThemes()){return false;
}return qx.theme.manager.Color.getInstance().isDynamic(j);
},
stringToRgb:function(k){if(this.supportsThemes()&&this.isThemedColor(k)){var k=qx.theme.manager.Color.getInstance().resolveDynamic(k);
}
if(this.isNamedColor(k)){return this.NAMED[k];
}else if(this.isSystemColor(k)){throw new Error("Could not convert system colors to RGB: "+k);
}else if(this.isRgbString(k)){return this.__cf();
}else if(this.isHex3String(k)){return this.__cg();
}else if(this.isHex6String(k)){return this.__ch();
}throw new Error("Could not parse color: "+k);
},
cssStringToRgb:function(k){if(this.isNamedColor(k)){return this.NAMED[k];
}else if(this.isSystemColor(k)){throw new Error("Could not convert system colors to RGB: "+k);
}else if(this.isRgbString(k)){return this.__cf();
}else if(this.isHex3String(k)){return this.__cg();
}else if(this.isHex6String(k)){return this.__ch();
}throw new Error("Could not parse color: "+k);
},
stringToRgbString:function(k){return this.rgbToRgbString(this.stringToRgb(k));
},
rgbToRgbString:function(l){return c+l[0]+a+l[1]+a+l[2]+d;
},
rgbToHexString:function(l){return (qx.lang.String.pad(l[0].toString(16).toUpperCase(),
2)+qx.lang.String.pad(l[1].toString(16).toUpperCase(),
2)+qx.lang.String.pad(l[2].toString(16).toUpperCase(),
2));
},
isValidPropertyValue:function(k){return this.isThemedColor(k)||this.isNamedColor(k)||this.isHex3String(k)||this.isHex6String(k)||this.isRgbString(k);
},
isCssString:function(k){return this.isSystemColor(k)||this.isNamedColor(k)||this.isHex3String(k)||this.isHex6String(k)||this.isRgbString(k);
},
isHex3String:function(k){return this.REGEXP.hex3.test(k);
},
isHex6String:function(k){return this.REGEXP.hex6.test(k);
},
isRgbString:function(k){return this.REGEXP.rgb.test(k);
},
__cf:function(){var m=parseInt(RegExp.$1,
10);
var n=parseInt(RegExp.$2,
10);
var o=parseInt(RegExp.$3,
10);
return [m,
n,
o];
},
__cg:function(){var m=parseInt(RegExp.$1,
16)*17;
var n=parseInt(RegExp.$2,
16)*17;
var o=parseInt(RegExp.$3,
16)*17;
return [m,
n,
o];
},
__ch:function(){var m=(parseInt(RegExp.$1,
16)*16)+parseInt(RegExp.$2,
16);
var n=(parseInt(RegExp.$3,
16)*16)+parseInt(RegExp.$4,
16);
var o=(parseInt(RegExp.$5,
16)*16)+parseInt(RegExp.$6,
16);
return [m,
n,
o];
},
hex3StringToRgb:function(j){if(this.isHex3String(j)){return this.__cg(j);
}throw new Error("Invalid hex3 value: "+j);
},
hex6StringToRgb:function(j){if(this.isHex6String(j)){return this.__ch(j);
}throw new Error("Invalid hex6 value: "+j);
},
hexStringToRgb:function(j){if(this.isHex3String(j)){return this.__cg(j);
}
if(this.isHex6String(j)){return this.__ch(j);
}throw new Error("Invalid hex value: "+j);
},
rgbToHsb:function(l){var s,
u,
v;
var m=l[0];
var n=l[1];
var o=l[2];
var w=(m>n)?m:n;
if(o>w){w=o;
}var x=(m<n)?m:n;
if(o<x){x=o;
}v=w/255.0;
if(w!=0){u=(w-x)/w;
}else{u=0;
}
if(u==0){s=0;
}else{var y=(w-m)/(w-x);
var z=(w-n)/(w-x);
var A=(w-o)/(w-x);
if(m==w){s=A-z;
}else if(n==w){s=2.0+y-A;
}else{s=4.0+z-y;
}s=s/6.0;
if(s<0){s=s+1.0;
}}return [Math.round(s*360),
Math.round(u*100),
Math.round(v*100)];
},
hsbToRgb:function(B){var C,
D,
E,
F,
G;
var s=B[0]/360;
var u=B[1]/100;
var v=B[2]/100;
if(s>=1.0){s%=1.0;
}
if(u>1.0){u=1.0;
}
if(v>1.0){v=1.0;
}var H=Math.floor(255*v);
var l={};
if(u==0.0){l.red=l.green=l.blue=H;
}else{s*=6.0;
C=Math.floor(s);
D=s-C;
E=Math.floor(H*(1.0-u));
F=Math.floor(H*(1.0-(u*D)));
G=Math.floor(H*(1.0-(u*(1.0-D))));
switch(C){case 0:l.red=H;
l.green=G;
l.blue=E;
break;
case 1:l.red=F;
l.green=H;
l.blue=E;
break;
case 2:l.red=E;
l.green=H;
l.blue=G;
break;
case 3:l.red=E;
l.green=F;
l.blue=H;
break;
case 4:l.red=G;
l.green=E;
l.blue=H;
break;
case 5:l.red=H;
l.green=E;
l.blue=F;
break;
}}return l;
},
randomColor:function(){var I=Math.round(Math.random()*255);
var J=Math.round(Math.random()*255);
var K=Math.round(Math.random()*255);
return this.rgbToRgbString([I,
J,
K]);
}}});
})();
(function(){var c='<div style="',
d='"></div>',
e="mshtml",
f='"/>',
g="",
h='" style="vertical-align:top;',
i="scale",
j="qx.client",
k="qx.ui.decoration.Util",
l='<img src="',
m="overflow:hidden;";
qx.Class.define(k,
{statics:{insetsModified:function(n,
o){if(n==o){return false;
}
if(n==null||o==null){return true;
}var p=qx.theme.manager.Decoration.getInstance();
var q=p.resolve(n).getInsets();
var r=p.resolve(o).getInsets();
if(q.top!=r.top||q.right!=r.right||q.bottom!=r.bottom||q.left!=r.left){return true;
}return false;
},
generateBackgroundMarkup:function(s,
t,
u,
v,
w){if(s){var x=qx.util.AliasManager.getInstance().resolve(s);
if(t==i){var y=qx.util.ResourceManager.toUri(x);
return l+y+h+w+f;
}else{var z=qx.bom.element.Background.compile(x,
t,
u,
v);
return c+z+w+d;
}}else{if(w){if(qx.core.Variant.isSet(j,
e)){if(qx.bom.client.Engine.VERSION<7||qx.bom.client.Feature.QUIRKS_MODE){w+=m;
}}return c+w+d;
}else{return g;
}}}}});
})();
(function(){var a="decoration",
b="object",
c="_applyTheme",
d="__ci",
e="qx.theme.manager.Decoration",
f="Theme",
g="string",
h="singleton";
qx.Class.define(e,
{type:h,
extend:qx.core.Object,
properties:{theme:{check:f,
nullable:true,
apply:c}},
members:{__ci:null,
resolve:function(i){if(!i){return null;
}
if(typeof i===b){return i;
}var j=this.getTheme();
if(!j){return null;
}var j=this.getTheme();
if(!j){return null;
}var k=this.__ci;
if(!k){k=this.__ci={};
}var l=k[i];
if(l){return l;
}var m=j.decorations[i];
if(!m){return null;
}var n=m.decorator;
if(n==null){throw new Error("Missing definition of which decorator to use in entry: "+i+"!");
}return k[i]=(new n).set(m.style);
},
isValidPropertyValue:function(i){if(typeof i===g){return this.isDynamic(i);
}else if(typeof i===b){var n=i.constructor;
return qx.Class.hasInterface(n,
qx.ui.decoration.IDecorator);
}return false;
},
isDynamic:function(i){if(!i){return false;
}var j=this.getTheme();
if(!j){return false;
}return !!j.decorations[i];
},
_applyTheme:function(i){var o=qx.util.AliasManager.getInstance();
i?o.add(a,
i.resource):o.remove(a);
}},
destruct:function(){this._disposeMap(d);
}});
})();
(function(){var a="/",
b="__cj",
c="0",
d="qx/static",
e="http://",
f="https://",
g="file://",
h="qx.util.AliasManager",
i="singleton",
j=".",
k="static";
qx.Class.define(h,
{type:i,
extend:qx.util.ValueManager,
construct:function(){arguments.callee.base.call(this);
this.__cj={};
this.add(k,
d);
},
members:{__cj:null,
_preprocess:function(l){var m=this._getDynamic();
if(m[l]===false){return l;
}else if(m[l]===undefined){if(l.charAt(0)===a||l.charAt(0)===j||l.indexOf(e)===0||l.indexOf(f)===c||l.indexOf(g)===0){m[l]=false;
return l;
}var n=l.substring(0,
l.indexOf(a));
var o=this.__cj[n];
if(o!==undefined){m[l]=o+l.substring(n.length);
}}return l;
},
add:function(n,
p){this.__cj[n]=p;
var m=this._getDynamic();
var q={};
for(var r in m){if(r.substring(0,
r.indexOf(a))===n){m[r]=p+r.substring(n.length);
q[r]=true;
}}},
remove:function(n){delete this.__cj[n];
},
resolve:function(r){var s=this._getDynamic();
if(r!==null){r=this._preprocess(r);
}return s[r]||r;
}},
destruct:function(){this._disposeFields(b);
}});
})();
(function(){var a="/",
b="qx.util.ResourceManager",
c="string";
qx.Bootstrap.define(b,
{statics:{__ck:window.qxresources||{},
has:function(d){return !!this.__ck[d];
},
getData:function(d){return this.__ck[d]||null;
},
getImageWidth:function(d){var e=this.__ck[d];
return e?e[0]:null;
},
getImageHeight:function(d){var e=this.__ck[d];
return e?e[1]:null;
},
getImageFormat:function(d){var e=this.__ck[d];
return e?e[2]:null;
},
isClippedImage:function(d){var e=this.__ck[d];
return e&&e.length>4;
},
toUri:function(d){if(d==null){return d;
}var e=this.__ck[d];
if(!e){return d;
}
if(typeof e===c){var f=e;
}else{var f=e[3];
if(!f){return d;
}}return window.qxlibraries[f].resourceUri+a+d;
}}});
})();
(function(){var a="number",
b="qx.client",
c="/",
d="mshtml",
e="0",
f="",
g="px",
h=";",
i="background-image:url(",
j=");",
k="0 0",
l=")",
m="background-repeat:",
n="https:",
o=" ",
p="qx.bom.element.Background",
q="url(",
r="background-position:";
qx.Class.define(p,
{statics:{__cl:[i,
null,
j,
r,
null,
h,
m,
null,
h],
__cm:{backgroundImage:null,
backgroundPosition:null,
backgroundRepeat:null},
__cn:function(s,
t){var u=qx.bom.client.Engine;
if(u.GECKO&&u.VERSION<1.9&&s==t&&typeof s==a){t+=0.01;
}
if(s){var v=(typeof s==a)?s+g:s;
}else{v=e;
}
if(t){var w=(typeof t==a)?t+g:t;
}else{w=e;
}return v+o+w;
},
compile:function(x,
y,
s,
t){var z=this.__cn(s,
t);
var A=qx.util.ResourceManager.toUri(x);
if(qx.core.Variant.isSet(b,
d)){A=this.__co(A);
}var B=this.__cl;
B[1]=A;
B[4]=z;
B[7]=y;
return B.join(f);
},
getStyles:function(x,
y,
s,
t){if(!x){return this.__cm;
}var z=this.__cn(s,
t);
var A=qx.util.ResourceManager.toUri(x);
if(qx.core.Variant.isSet(b,
d)){A=this.__co(A);
}var C={backgroundImage:q+A+l};
if(z!=k){C.backgroundPosition=z;
}
if(y!=null){C.backgroundRepeat=y;
}return C;
},
set:function(D,
x,
y,
s,
t){var E=this.getStyles(x,
y,
s,
t);
for(var F in E){D.style[F]=E[F];
}},
__co:qx.core.Variant.select(b,
{"mshtml":function(G){var H=f;
if(window.location.protocol===n){if(G.match(/^\/\//)!=null){H=window.location.protocol;
}else if(G.match(/^\.\//)!=null){G=G.substring(G.indexOf(c));
H=document.URL.substring(0,
document.URL.lastIndexOf(c));
}else{H=window.location.href.substring(0,
window.location.href.lastIndexOf(c)+1);
}}return H+G;
},
"default":function(){}})}});
})();
(function(){var a="qx.bom.client.Feature";
qx.Bootstrap.define(a,
{statics:{STANDARD_MODE:false,
QUIRKS_MODE:false,
CONTENT_BOX:false,
BORDER_BOX:false,
SVG:false,
CANVAS:false,
VML:false,
XPATH:false,
__cp:function(){this.STANDARD_MODE=document.compatMode==="CSS1Compat";
this.QUIRKS_MODE=!this.STANDARD_MODE;
this.CONTENT_BOX=!qx.bom.client.Engine.MSHTML||this.STANDARD_MODE;
this.BORDER_BOX=!this.CONTENT_BOX;
this.SVG=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("org.w3c.dom.svg",
"1.0");
this.CANVAS=!!window.CanvasRenderingContext2D;
this.VML=qx.bom.client.Engine.MSHTML;
this.AIR=navigator.userAgent.indexOf("adobeair")!==-1;
this.GEARS=!!(window.google&&window.google.gears);
this.XPATH=!!document.evaluate;
}},
defer:function(b){b.__cp();
}});
})();
(function(){var a="px",
b="div",
c="img",
d="qx.client",
e="scale-x",
f="",
g="mshtml",
h="no-repeat",
i="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='",
j="scale-y",
k="repeat",
l=".png",
m="scale",
n="webkit",
o='<div style="',
p="repeat-y",
q='<img src="',
r="qx.bom.element.Decoration",
s="png",
t="', sizingMethod='scale')",
u="', sizingMethod='crop')",
v='"/>',
w='" style="',
x="none",
y="repeat-x",
z='"></div>',
A="absolute";
qx.Class.define(r,
{statics:{DEBUG:false,
__cq:qx.core.Variant.isSet(d,
g)&&qx.bom.client.Engine.VERSION<8,
__cr:qx.core.Variant.select(d,
{"mshtml":{"scale-x":true,
"scale-y":true,
"scale":true,
"no-repeat":true},
"default":null}),
__cs:{"scale-x":c,
"scale-y":c,
"scale":c,
"repeat":b,
"no-repeat":b,
"repeat-x":b,
"repeat-y":b},
update:function(B,
C,
D,
E){var F=this.getTagName(D,
C);
if(F!=B.tagName.toLowerCase()){throw new Error("Image modification not possible because elements could not be replaced at runtime anymore!");
}var G=this.getAttributes(C,
D,
E);
if(F===c){B.src=G.src;
}if(B.style.backgroundPosition!=f&&G.style.backgroundPosition===undefined){G.style.backgroundPosition=null;
}if(B.style.clip!=f&&G.style.clip===undefined){G.style.clip=null;
}var H=qx.bom.element.Style;
H.setStyles(B,
G.style);
},
create:function(C,
D,
E){var F=this.getTagName(D,
C);
var G=this.getAttributes(C,
D,
E);
var I=qx.bom.element.Style.compile(G.style);
if(F===c){return q+G.src+w+I+v;
}else{return o+I+z;
}},
getTagName:function(D,
C){if(qx.core.Variant.isSet(d,
g)){if(C&&this.__cq&&this.__cr[D]&&qx.lang.String.endsWith(C,
l)){return b;
}}return this.__cs[D];
},
getAttributes:function(C,
D,
E){var J=qx.util.ResourceManager;
var K=qx.io2.ImageLoader;
var L=qx.bom.element.Background;
if(!E){E={};
}
if(!E.position){E.position=A;
}
if(qx.core.Variant.isSet(d,
g)){E.fontSize=0;
E.lineHeight=0;
}else if(qx.core.Variant.isSet(d,
n)){E.WebkitUserDrag=x;
}var M=J.getImageWidth(C)||K.getWidth(C);
var N=J.getImageHeight(C)||K.getHeight(C);
var O=J.getImageFormat(C)||C.substr(C.length-3,
3).toLowerCase();
if(this.__cq&&this.__cr[D]&&O===s){if(E.width==null&&M!=null){E.width=M+a;
}
if(E.height==null&&N!=null){E.height=N+a;
}
if(D==h){E.filter=i+J.toUri(C)+u;
}else{E.filter=i+J.toUri(C)+t;
}E.backgroundImage=E.backgroundRepeat=f;
return {style:E};
}else{if(D===m){var P=J.toUri(C);
if(E.width==null&&M!=null){E.width=M+a;
}
if(E.height==null&&N!=null){E.height=N+a;
}return {src:P,
style:E};
}var Q=J.isClippedImage(C);
if(D===e||D===j){if(Q){if(D===e){var R=J.getData(C);
var S=J.getImageHeight(R[4]);
var P=J.toUri(R[4]);
E.clip={top:-R[6],
height:N};
E.height=S+a;
if(E.top!=null){E.top=(parseInt(E.top,
10)+R[6])+a;
}else if(E.bottom!=null){E.bottom=(parseInt(E.bottom,
10)+N-S-R[6])+a;
}return {src:P,
style:E};
}else{var R=J.getData(C);
var T=J.getImageWidth(R[4]);
var P=J.toUri(R[4]);
E.clip={left:-R[5],
width:M};
E.width=T+a;
if(E.left!=null){E.left=(parseInt(E.left,
10)+R[5])+a;
}else if(E.right!=null){E.right=(parseInt(E.right,
10)+M-T-R[5])+a;
}return {src:P,
style:E};
}}else{{};
if(D==e){E.height=N==null?null:N+a;
}else if(D==j){E.width=M==null?null:M+a;
}var P=J.toUri(C);
return {src:P,
style:E};
}}else{if(Q&&D!==k){var R=J.getData(C);
var U=L.getStyles(R[4],
D,
R[5],
R[6]);
for(var V in U){E[V]=U[V];
}
if(M!=null&&E.width==null&&(D==p||D===h)){E.width=M+a;
}
if(N!=null&&E.height==null&&(D==y||D===h)){E.height=N+a;
}return {style:E};
}else{{};
var U=L.getStyles(C,
D);
for(var V in U){E[V]=U[V];
}
if(M!=null&&E.width==null){E.width=M+a;
}
if(N!=null&&E.height==null){E.height=N+a;
}return {style:E};
}}}}}});
})();
(function(){var a="",
b="qx.client",
c="boxSizing",
d="cursor",
e="opacity",
f="clip",
g="overflowY",
h="overflowX",
i="appearance",
j="style",
k="px",
l="-webkit-appearance",
m="user-select",
n="userSelect",
o="styleFloat",
p="-webkit-user-select",
q="-moz-appearance",
r="pixelHeight",
s="MozAppearance",
t=":",
u="pixelTop",
v="pixelLeft",
w="text-overflow",
x="-moz-user-select",
y="MozUserSelect",
z="qx.bom.element.Style",
A="WebkitUserSelect",
B="-o-text-overflow",
C="pixelRight",
D="pixelWidth",
E="pixelBottom",
F=";",
G="cssFloat",
H="WebkitAppearance";
qx.Class.define(z,
{statics:{__ct:{styleNames:{"float":qx.core.Variant.select(b,
{"mshtml":o,
"default":G}),
"appearance":qx.core.Variant.select(b,
{"gecko":s,
"webkit":H,
"default":i}),
"userSelect":qx.core.Variant.select(b,
{"gecko":y,
"webkit":A,
"default":n})},
cssNames:{"appearance":qx.core.Variant.select(b,
{"gecko":q,
"webkit":l,
"default":i}),
"userSelect":qx.core.Variant.select(b,
{"gecko":x,
"webkit":p,
"default":m}),
"textOverflow":qx.core.Variant.select(b,
{"opera":B,
"default":w})},
mshtmlPixel:{width:D,
height:r,
left:v,
right:C,
top:u,
bottom:E},
special:{clip:1,
cursor:1,
opacity:1,
boxSizing:1,
overflowX:1,
overflowY:1}},
__cu:{},
compile:function(I){var J=[];
var K=this.__ct;
var L=K.special;
var M=K.cssNames;
var N=this.__cu;
var O=qx.lang.String;
var P,
Q,
R;
for(P in I){R=I[P];
if(R==null){continue;
}P=M[P]||P;
if(L[P]){switch(P){case f:J.push(qx.bom.element.Clip.compile(R));
break;
case d:J.push(qx.bom.element.Cursor.compile(R));
break;
case e:J.push(qx.bom.element.Opacity.compile(R));
break;
case c:J.push(qx.bom.element.BoxSizing.compile(R));
break;
case h:J.push(qx.bom.element.Overflow.compileX(R));
break;
case g:J.push(qx.bom.element.Overflow.compileY(R));
break;
}}else{Q=N[P];
if(!Q){Q=N[P]=O.hyphenate(P);
}J.push(Q,
t,
R,
F);
}}return J.join(a);
},
setCss:qx.core.Variant.select(b,
{"mshtml":function(S,
R){S.style.cssText=R;
},
"default":function(S,
R){S.setAttribute(j,
R);
}}),
getCss:qx.core.Variant.select(b,
{"mshtml":function(S){return S.style.cssText.toLowerCase();
},
"default":function(S){return S.getAttribute(j);
}}),
COMPUTED_MODE:1,
CASCADED_MODE:2,
LOCAL_MODE:3,
set:function(S,
P,
R,
T){{};
var K=this.__ct;
P=K.styleNames[P]||P;
if(T!==false&&K.special[P]){switch(P){case f:return qx.bom.element.Clip.set(S,
R);
case d:return qx.bom.element.Cursor.set(S,
R);
case e:return qx.bom.element.Opacity.set(S,
R);
case c:return qx.bom.element.BoxSizing.set(S,
R);
case h:return qx.bom.element.Overflow.setX(S,
R);
case g:return qx.bom.element.Overflow.setY(S,
R);
}}S.style[P]=R!==null?R:a;
},
setStyles:function(S,
U,
T){{};
for(var P in U){this.set(S,
P,
U[P],
T);
}},
reset:function(S,
P,
T){var K=this.__ct;
P=K.styleNames[P]||P;
if(T!==false&&K.special[P]){switch(P){case f:return qx.bom.element.Clip.reset(S);
case d:return qx.bom.element.Cursor.reset(S);
case e:return qx.bom.element.Opacity.reset(S);
case c:return qx.bom.element.BoxSizing.reset(S);
case h:return qx.bom.element.Overflow.resetX(S);
case g:return qx.bom.element.Overflow.resetY(S);
}}S.style[P]=a;
},
get:qx.core.Variant.select(b,
{"mshtml":function(S,
P,
V,
T){var K=this.__ct;
P=K.styleNames[P]||P;
if(T!==false&&K.special[P]){switch(P){case f:return qx.bom.element.Clip.get(S,
V);
case d:return qx.bom.element.Cursor.get(S,
V);
case e:return qx.bom.element.Opacity.get(S,
V);
case c:return qx.bom.element.BoxSizing.get(S,
V);
case h:return qx.bom.element.Overflow.getX(S,
V);
case g:return qx.bom.element.Overflow.getY(S,
V);
}}if(!S.currentStyle){return S.style[P]||a;
}switch(V){case this.LOCAL_MODE:return S.style[P]||a;
case this.CASCADED_MODE:return S.currentStyle[P]||a;
default:var W=S.currentStyle[P]||a;
if(/^-?[\.\d]+(px)?$/i.test(W)){return W;
}var X=K.mshtmlPixel[P];
if(X){var Y=S.style[P];
S.style[P]=W||0;
var R=S.style[X]+k;
S.style[P]=Y;
return R;
}if(/^-?[\.\d]+(em|pt|%)?$/i.test(W)){throw new Error("Untranslated computed property value: "+P+". Only pixel values work well across different clients.");
}return W;
}},
"default":function(S,
P,
V,
T){var K=this.__ct;
P=K.styleNames[P]||P;
if(T!==false&&K.special[P]){switch(P){case f:return qx.bom.element.Clip.get(S,
V);
case d:return qx.bom.element.Cursor.get(S,
V);
case e:return qx.bom.element.Opacity.get(S,
V);
case c:return qx.bom.element.BoxSizing.get(S,
V);
case h:return qx.bom.element.Overflow.getX(S,
V);
case g:return qx.bom.element.Overflow.getY(S,
V);
}}switch(V){case this.LOCAL_MODE:return S.style[P]||a;
case this.CASCADED_MODE:if(S.currentStyle){return S.currentStyle[P]||a;
}throw new Error("Cascaded styles are not supported in this browser!");
default:var ba=qx.dom.Node.getDocument(S);
var bb=ba.defaultView.getComputedStyle(S,
null);
return bb?bb[P]:a;
}}})}});
})();
(function(){var a="auto",
b="px",
c=",",
d="clip:auto;",
e="rect(",
f=");",
g="",
h=")",
i="qx.bom.element.Clip",
j="string",
k="rect(auto)",
l="clip:rect(",
m="clip",
n="rect(auto,auto,auto,auto)";
qx.Class.define(i,
{statics:{compile:function(o){if(!o){return d;
}var p=o.left;
var q=o.top;
var r=o.width;
var s=o.height;
var t,
u;
if(p==null){t=(r==null?a:r+b);
p=a;
}else{t=(r==null?a:p+r+b);
p=p+b;
}
if(q==null){u=(s==null?a:s+b);
q=a;
}else{u=(s==null?a:q+s+b);
q=q+b;
}return l+q+c+t+c+u+c+p+f;
},
get:function(v,
w){var x=qx.bom.element.Style.get(v,
m,
w,
false);
var p,
q,
r,
s;
var t,
u;
if(typeof x===j&&x!==a&&x!==g){x=qx.lang.String.trim(x);
if(/\((.*)\)/.test(x)){var y=RegExp.$1.split(c);
q=qx.lang.String.trim(y[0]);
t=qx.lang.String.trim(y[1]);
u=qx.lang.String.trim(y[2]);
p=qx.lang.String.trim(y[3]);
if(p===a){p=null;
}
if(q===a){q=null;
}
if(t===a){t=null;
}
if(u===a){u=null;
}if(q!=null){q=parseInt(q,
10);
}
if(t!=null){t=parseInt(t,
10);
}
if(u!=null){u=parseInt(u,
10);
}
if(p!=null){p=parseInt(p,
10);
}if(t!=null&&p!=null){r=t-p;
}else if(t!=null){r=t;
}
if(u!=null&&q!=null){s=u-q;
}else if(u!=null){s=u;
}}else{throw new Error("Could not parse clip string: "+x);
}}return {left:p||null,
top:q||null,
width:r||null,
height:s||null};
},
set:function(v,
o){if(!o){v.style.clip=n;
return;
}var p=o.left;
var q=o.top;
var r=o.width;
var s=o.height;
var t,
u;
if(p==null){t=(r==null?a:r+b);
p=a;
}else{t=(r==null?a:p+r+b);
p=p+b;
}
if(q==null){u=(s==null?a:s+b);
q=a;
}else{u=(s==null?a:q+s+b);
q=q+b;
}v.style.clip=e+q+c+t+c+u+c+p+h;
},
reset:function(v){v.style.clip=qx.bom.client.Engine.MSHTML?k:a;
}}});
})();
(function(){var a="n-resize",
b="e-resize",
c="nw-resize",
d="ne-resize",
e="",
f="cursor:",
g="qx.client",
h=";",
i="qx.bom.element.Cursor",
j="cursor",
k="hand";
qx.Class.define(i,
{statics:{__cv:qx.core.Variant.select(g,
{"mshtml":{"cursor":k,
"ew-resize":b,
"ns-resize":a,
"nesw-resize":d,
"nwse-resize":c},
"opera":{"col-resize":b,
"row-resize":a,
"ew-resize":b,
"ns-resize":a,
"nesw-resize":d,
"nwse-resize":c},
"default":{}}),
compile:function(l){return f+(this.__cv[l]||l)+h;
},
get:function(m,
n){return qx.bom.element.Style.get(m,
j,
n,
false);
},
set:function(m,
o){m.style.cursor=this.__cv[o]||o;
},
reset:function(m){m.style.cursor=e;
}}});
})();
(function(){var a="",
b="qx.client",
c=";",
d="filter",
e="opacity:",
f="opacity",
g="MozOpacity",
h=");",
i=")",
j="zoom:1;filter:alpha(opacity=",
k="qx.bom.element.Opacity",
l="alpha(opacity=",
m="-moz-opacity:";
qx.Class.define(k,
{statics:{compile:qx.core.Variant.select(b,
{"mshtml":function(n){if(n>=1){return a;
}
if(n<0.00001){n=0;
}return j+(n*100)+h;
},
"gecko":function(n){if(n==1){n=0.999999;
}
if(qx.bom.client.Engine.VERSION<1.7){return m+n+c;
}else{return e+n+c;
}},
"default":function(n){if(n==1){return a;
}return e+n+c;
}}),
set:qx.core.Variant.select(b,
{"mshtml":function(o,
n){var p=qx.bom.element.Style.get(o,
d,
qx.bom.element.Style.COMPUTED_MODE,
false);
if(n>=1){o.style.filter=p.replace(/alpha\([^\)]*\)/gi,
a);
return;
}
if(n<0.00001){n=0;
}if(!o.currentStyle.hasLayout){o.style.zoom=1;
}o.style.filter=p.replace(/alpha\([^\)]*\)/gi,
a)+l+n*100+i;
},
"gecko":function(o,
n){if(n==1){n=0.999999;
}
if(qx.bom.client.Engine.VERSION<1.7){o.style.MozOpacity=n;
}else{o.style.opacity=n;
}},
"default":function(o,
n){if(n==1){n=a;
}o.style.opacity=n;
}}),
reset:qx.core.Variant.select(b,
{"mshtml":function(o){var p=qx.bom.element.Style.get(o,
d,
qx.bom.element.Style.COMPUTED_MODE,
false);
o.style.filter=p.replace(/alpha\([^\)]*\)/gi,
a);
},
"gecko":function(o){if(qx.bom.client.Engine.VERSION<1.7){o.style.MozOpacity=a;
}else{o.style.opacity=a;
}},
"default":function(o){o.style.opacity=a;
}}),
get:qx.core.Variant.select(b,
{"mshtml":function(o,
q){var p=qx.bom.element.Style.get(o,
d,
q,
false);
if(p){var n=p.match(/alpha\(opacity=(.*)\)/);
if(n&&n[1]){return parseFloat(n[1])/100;
}}return 1.0;
},
"gecko":function(o,
q){var n=qx.bom.element.Style.get(o,
qx.bom.client.Engine.VERSION<1.7?g:f,
q,
false);
if(n==0.999999){n=1.0;
}
if(n!=null){return parseFloat(n);
}return 1.0;
},
"default":function(o,
q){var n=qx.bom.element.Style.get(o,
f,
q,
false);
if(n!=null){return parseFloat(n);
}return 1.0;
}})}});
})();
(function(){var a="qx.client",
b="",
c="boxSizing",
d="box-sizing",
e=":",
f="border-box",
g="qx.bom.element.BoxSizing",
h="KhtmlBoxSizing",
j="-moz-box-sizing",
k="WebkitBoxSizing",
m=";",
n="-khtml-box-sizing",
o="content-box",
p="-webkit-box-sizing",
q="MozBoxSizing";
qx.Class.define(g,
{statics:{__cw:qx.core.Variant.select(a,
{"mshtml":null,
"webkit":[c,
h,
k],
"gecko":[q],
"opera":[c]}),
__cx:qx.core.Variant.select(a,
{"mshtml":null,
"webkit":[d,
n,
p],
"gecko":[j],
"opera":[d]}),
__cy:{tags:{button:true,
select:true},
types:{search:true,
button:true,
submit:true,
reset:true,
checkbox:true,
radio:true}},
__cz:function(r){var s=this.__cy;
return s.tags[r.tagName.toLowerCase()]||s.types[r.type];
},
compile:qx.core.Variant.select(a,
{"mshtml":function(t){{};
},
"default":function(t){var u=this.__cx;
var v=b;
if(u){for(var w=0,
x=u.length;w<x;w++){v+=u[w]+e+t+m;
}}return v;
}}),
get:qx.core.Variant.select(a,
{"mshtml":function(r){if(qx.bom.Document.isStandardMode(qx.dom.Node.getDocument(r))){if(!this.__cz(r)){return o;
}}return f;
},
"default":function(r){var u=this.__cw;
var t;
if(u){for(var w=0,
x=u.length;w<x;w++){t=qx.bom.element.Style.get(r,
u[w],
null,
false);
if(t!=null&&t!==b){return t;
}}}return b;
}}),
set:qx.core.Variant.select(a,
{"mshtml":function(r,
t){{};
},
"default":function(r,
t){var u=this.__cw;
if(u){for(var w=0,
x=u.length;w<x;w++){r.style[u[w]]=t;
}}}}),
reset:function(r){this.set(r,
b);
}}});
})();
(function(){var a="CSS1Compat",
b="qx.bom.Document";
qx.Class.define(b,
{statics:{isQuirksMode:function(c){return (c||window).document.compatMode!==a;
},
isStandardMode:function(c){return (c||window).document.compatMode===a;
},
getWidth:function(c){var d=(c||window).document;
var e=qx.bom.Viewport.getWidth(c);
var f=d.compatMode===a?d.documentElement.scrollWidth:d.body.scrollWidth;
return Math.max(f,
e);
},
getHeight:function(c){var d=(c||window).document;
var e=qx.bom.Viewport.getHeight(c);
var f=d.compatMode===a?d.documentElement.scrollHeight:d.body.scrollHeight;
return Math.max(f,
e);
}}});
})();
(function(){var a="qx.client",
b="CSS1Compat",
c="qx.bom.Viewport";
qx.Class.define(c,
{statics:{getWidth:qx.core.Variant.select(a,
{"opera":function(d){return (d||window).document.body.clientWidth;
},
"webkit":function(d){return (d||window).innerWidth;
},
"default":function(d){var e=(d||window).document;
return e.compatMode===b?e.documentElement.clientWidth:e.body.clientWidth;
}}),
getHeight:qx.core.Variant.select(a,
{"opera":function(d){return (d||window).document.body.clientHeight;
},
"webkit":function(d){return (d||window).innerHeight;
},
"default":function(d){var e=(d||window).document;
return e.compatMode===b?e.documentElement.clientHeight:e.body.clientHeight;
}}),
getScrollLeft:qx.core.Variant.select(a,
{"mshtml":function(d){var e=(d||window).document;
return e.documentElement.scrollLeft||e.body.scrollLeft;
},
"default":function(d){return (d||window).pageXOffset;
}}),
getScrollTop:qx.core.Variant.select(a,
{"mshtml":function(d){var e=(d||window).document;
return e.documentElement.scrollTop||e.body.scrollTop;
},
"default":function(d){return (d||window).pageYOffset;
}})}});
})();
(function(){var a="",
b="qx.client",
d="hidden",
e="-moz-scrollbars-none",
f="overflow",
g=";",
h="overflowY",
i=":",
j="overflowX",
k="overflow:",
l="none",
m="scroll",
n="borderLeftStyle",
o="borderRightStyle",
p="div",
q="borderRightWidth",
r="overflow-y",
u="borderLeftWidth",
v="-moz-scrollbars-vertical",
w="100px",
x="qx.bom.element.Overflow",
y="overflow-x";
qx.Class.define(x,
{statics:{__cA:null,
getScrollbarWidth:function(){if(this.__cA!==null){return this.__cA;
}var z=qx.bom.element.Style;
var A=function(B,
C){return parseInt(z.get(B,
C))||0;
};
var D=function(B){return (z.get(B,
o)==l?0:A(B,
q));
};
var E=function(B){return (z.get(B,
n)==l?0:A(B,
u));
};
var F=qx.core.Variant.select(b,
{"mshtml":function(B){if(z.get(B,
h)==d||B.clientWidth==0){return D(B);
}return Math.max(0,
B.offsetWidth-B.clientLeft-B.clientWidth);
},
"default":function(B){if(B.clientWidth==0){var G=z.get(B,
f);
var H=(G==m||G==v?16:0);
return Math.max(0,
D(B)+H);
}return Math.max(0,
(B.offsetWidth-B.clientWidth-E(B)));
}});
var I=function(B){return F(B)-D(B);
};
var J=document.createElement(p);
var K=J.style;
K.height=K.width=w;
K.overflow=m;
document.body.appendChild(J);
var L=I(J);
this.__cA=L?L:16;
document.body.removeChild(J);
return this.__cA;
},
_compile:qx.core.Variant.select(b,
{"gecko":qx.bom.client.Engine.VERSION<
1.8?
function(M,
N){if(N==d){N=e;
}return k+N+g;
}:
function(M,
N){return M+i+N+g;
},
"opera":qx.bom.client.Engine.VERSION<
9.5?
function(M,
N){return k+N+g;
}:
function(M,
N){return M+i+N+g;
},
"default":function(M,
N){return M+i+N+g;
}}),
compileX:function(N){return this._compile(y,
N);
},
compileY:function(N){return this._compile(r,
N);
},
getX:qx.core.Variant.select(b,
{"gecko":qx.bom.client.Engine.VERSION<
1.8?
function(O,
P){var Q=qx.bom.element.Style.get(O,
f,
P,
false);
if(Q===e){Q=d;
}return Q;
}:
function(O,
P){return qx.bom.element.Style.get(O,
j,
P,
false);
},
"opera":qx.bom.client.Engine.VERSION<
9.5?
function(O,
P){return qx.bom.element.Style.get(O,
f,
P,
false);
}:
function(O,
P){return qx.bom.element.Style.get(O,
j,
P,
false);
},
"default":function(O,
P){return qx.bom.element.Style.get(O,
j,
P,
false);
}}),
setX:qx.core.Variant.select(b,
{"gecko":qx.bom.client.Engine.VERSION<
1.8?
function(O,
N){if(N==d){N=e;
}O.style.overflow=N;
}:
function(O,
N){O.style.overflowX=N;
},
"opera":qx.bom.client.Engine.VERSION<
9.5?
function(O,
N){O.style.overflow=N;
}:
function(O,
N){O.style.overflowX=N;
},
"default":function(O,
N){O.style.overflowX=N;
}}),
resetX:qx.core.Variant.select(b,
{"gecko":qx.bom.client.Engine.VERSION<
1.8?
function(O){O.style.overflow=a;
}:
function(O){O.style.overflowX=a;
},
"opera":qx.bom.client.Engine.VERSION<
9.5?
function(O,
N){O.style.overflow=a;
}:
function(O,
N){O.style.overflowX=a;
},
"default":function(O){O.style.overflowX=a;
}}),
getY:qx.core.Variant.select(b,
{"gecko":qx.bom.client.Engine.VERSION<
1.8?
function(O,
P){var Q=qx.bom.element.Style.get(O,
f,
P,
false);
if(Q===e){Q=d;
}return Q;
}:
function(O,
P){return qx.bom.element.Style.get(O,
h,
P,
false);
},
"opera":qx.bom.client.Engine.VERSION<
9.5?
function(O,
P){return qx.bom.element.Style.get(O,
f,
P,
false);
}:
function(O,
P){return qx.bom.element.Style.get(O,
h,
P,
false);
},
"default":function(O,
P){return qx.bom.element.Style.get(O,
h,
P,
false);
}}),
setY:qx.core.Variant.select(b,
{"gecko":qx.bom.client.Engine.VERSION<
1.8?
function(O,
N){if(N===d){N=e;
}O.style.overflow=N;
}:
function(O,
N){O.style.overflowY=N;
},
"opera":qx.bom.client.Engine.VERSION<
9.5?
function(O,
N){O.style.overflow=N;
}:
function(O,
N){O.style.overflowY=N;
},
"default":function(O,
N){O.style.overflowY=N;
}}),
resetY:qx.core.Variant.select(b,
{"gecko":qx.bom.client.Engine.VERSION<
1.8?
function(O){O.style.overflow=a;
}:
function(O){O.style.overflowY=a;
},
"opera":qx.bom.client.Engine.VERSION<
9.5?
function(O,
N){O.style.overflow=a;
}:
function(O,
N){O.style.overflowY=a;
},
"default":function(O){O.style.overflowY=a;
}})}});
})();
(function(){var a="qx.client",
b="qx.io2.ImageLoader",
c="load";
qx.Bootstrap.define(b,
{statics:{__cB:{},
__cC:{width:null,
height:null},
isLoaded:function(d){var e=this.__cB[d];
return !!(e&&e.loaded);
},
isFailed:function(d){var e=this.__cB[d];
return !!(e&&e.failed);
},
isLoading:function(d){var e=this.__cB[d];
return !!(e&&e.loading);
},
getSize:function(d){return this.__cB[d]||this.__cC;
},
getWidth:function(d){var e=this.__cB[d];
return e?e.width:null;
},
getHeight:function(d){var e=this.__cB[d];
return e?e.height:null;
},
load:function(d,
f,
g){var e=this.__cB[d];
if(!e){e=this.__cB[d]={};
}if(f&&!g){g=window;
}if(e.loaded||e.loading||e.failed){if(f){if(e.loading){e.callbacks.push(f,
g);
}else{f.call(g,
d,
e);
}}}else{e.loading=true;
e.callbacks=[];
if(f){e.callbacks.push(f,
g);
}var h=new Image();
var j=qx.lang.Function.listener(this.__cD,
this,
h,
d);
h.onload=j;
h.onerror=j;
h.src=d;
}},
__cD:function(k,
m,
d){var e=this.__cB[d];
if(k.type===c){e.loaded=true;
e.width=this.__cE(m);
e.height=this.__cF(m);
}else{e.failed=true;
}m.onload=m.onerror=null;
var n=e.callbacks;
delete e.loading;
delete e.callbacks;
for(var o=0,
p=n.length;o<p;o+=2){n[o].call(n[o+1],
d,
e);
}},
__cE:qx.core.Variant.select(a,
{"gecko":function(m){return m.naturalWidth;
},
"default":function(m){return m.width;
}}),
__cF:qx.core.Variant.select(a,
{"gecko":function(m){return m.naturalHeight;
},
"default":function(m){return m.height;
}})}});
})();
(function(){var a="_window",
b="_manager",
c="qx.event.handler.Window";
qx.Class.define(c,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(d){arguments.callee.base.call(this);
this._manager=d;
this._window=d.getWindow();
this._initWindowObserver();
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{error:1,
load:1,
beforeunload:1,
unload:1,
resize:1,
scroll:1,
beforeshutdown:1},
TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,
IGNORE_CAN_HANDLE:true},
members:{canHandleEvent:function(f,
g){},
registerEvent:function(f,
g,
h){},
unregisterEvent:function(f,
g,
h){},
_initWindowObserver:function(){this._onNativeWrapper=qx.lang.Function.listener(this._onNative,
this);
var i=qx.event.handler.Window.SUPPORTED_TYPES;
for(var j in i){qx.bom.Event.addNativeListener(this._window,
j,
this._onNativeWrapper);
}},
_stopWindowObserver:function(){var i=qx.event.handler.Window.SUPPORTED_TYPES;
for(var j in i){qx.bom.Event.removeNativeListener(this._window,
j,
this._onNativeWrapper);
}},
_onNative:function(k){if(this.isDisposed()){return;
}var l=this._window;
var m=l.document;
var n=m.documentElement;
var f=k.target||k.srcElement;
if(f==null||f===l||f===m||f===n){var o=qx.event.Registration.createEvent(k.type,
qx.event.type.Native,
[k,
l]);
qx.event.Registration.dispatchEvent(l,
o);
var p=o.getReturnValue();
if(p!=null){k.returnValue=p;
return p;
}}}},
destruct:function(){this._stopWindowObserver();
this._disposeFields(b,
a);
},
defer:function(q){qx.event.Registration.addHandler(q);
}});
})();
(function(){var a="ready",
b="qx.application",
c="beforeunload",
d="qx.core.Init",
f="shutdown";
qx.Class.define(d,
{statics:{getApplication:function(){return this.__cH||null;
},
__cG:function(){if(qx.bom.client.Engine.UNKNOWN_ENGINE){qx.log.Logger.warn("Could not detect engine!");
}
if(qx.bom.client.Engine.UNKNOWN_VERSION){qx.log.Logger.warn("Could not detect the version of the engine!");
}
if(qx.bom.client.Platform.UNKNOWN_PLATFORM){qx.log.Logger.warn("Could not detect platform!");
}
if(qx.bom.client.System.UNKNOWN_SYSTEM){qx.log.Logger.warn("Could not detect system!");
}qx.log.Logger.debug(this,
"Load runtime: "+(new Date-qx.Bootstrap.LOADSTART)+"ms");
var g=qx.core.Setting.get(b);
var h=qx.Class.getByName(g);
if(h){this.__cH=new h;
var i=new Date;
this.__cH.main();
qx.log.Logger.debug(this,
"Main runtime: "+(new Date-i)+"ms");
var i=new Date;
this.__cH.finalize();
qx.log.Logger.debug(this,
"Finalize runtime: "+(new Date-i)+"ms");
}else{qx.log.Logger.warn("Missing application class: "+g);
}},
__cI:function(j){var g=this.__cH;
if(g){j.setReturnValue(g.close());
}},
__cJ:function(){var g=this.__cH;
if(g){g.terminate();
}}},
defer:function(k){qx.event.Registration.addListener(window,
a,
k.__cG,
k);
qx.event.Registration.addListener(window,
f,
k.__cJ,
k);
qx.event.Registration.addListener(window,
c,
k.__cI,
k);
}});
})();
(function(){var a="qx.application.IApplication";
qx.Interface.define(a,
{members:{main:function(){},
finalize:function(){},
close:function(){},
terminate:function(){}}});
})();
(function(){var a="qx.locale.MTranslation";
qx.Mixin.define(a,
{members:{tr:function(b,
c){var d=qx.locale.Manager;
if(d){return d.tr.apply(d,
arguments);
}throw new Error("To enable localization please include qx.locale.Manager into your build!");
},
trn:function(e,
f,
g,
c){var d=qx.locale.Manager;
if(d){return d.trn.apply(d,
arguments);
}throw new Error("To enable localization please include qx.locale.Manager into your build!");
},
trc:function(h,
b,
c){var d=qx.locale.Manager;
if(d){return d.trc.apply(d,
arguments);
}throw new Error("To enable localization please include qx.locale.Manager into your build!");
},
marktr:function(b){var d=qx.locale.Manager;
if(d){return d.marktr.apply(d,
arguments);
}throw new Error("To enable localization please include qx.locale.Manager into your build!");
}}});
})();
(function(){var a="abstract",
b="__cK",
c="qx.application.AbstractGui";
qx.Class.define(c,
{type:a,
extend:qx.core.Object,
implement:[qx.application.IApplication],
include:qx.locale.MTranslation,
members:{__cK:null,
_createRootWidget:function(){throw new Error("Abstract method call");
},
getRoot:function(){return this.__cK;
},
main:function(){qx.theme.manager.Meta.getInstance().initialize();
this.__cK=this._createRootWidget();
},
finalize:function(){this.render();
},
render:function(){qx.ui.core.queue.Manager.flush();
},
close:function(d){},
terminate:function(){}},
destruct:function(){this._disposeFields(b);
}});
})();
(function(){var a="qx.application.Standalone";
qx.Class.define(a,
{extend:qx.application.AbstractGui,
members:{_createRootWidget:function(){return new qx.ui.root.Application(document);
}}});
})();
(function(){var a="Новое подключение",
b='createconnection',
c="О программе",
d="spamfighter/icon/22/actions/help-faq.png",
f="spamfighter.Application",
g="spamfighter/icon/22/actions/document-new.png",
h="main",
i="background-pane",
j="execute";
qx.Class.define(f,
{extend:qx.application.Standalone,
members:{__cL:null,
main:function(){arguments.callee.base.call(this);
{};
var k=new qx.ui.container.Composite(new qx.ui.layout.VBox(5));
this.getRoot().add(k,
{edge:0});
var l=new qx.ui.toolbar.ToolBar();
k.add(l);
var m=new qx.ui.window.Manager();
this.__cL=new qx.ui.window.Desktop(m);
this.__cL.set({decorator:h,
backgroundColor:i});
var n=new qx.ui.container.Composite(new qx.ui.layout.Grow());
n.add(this.__cL);
k.add(n,
{'flex':1});
var o=new qx.ui.toolbar.Part();
var p=new qx.ui.toolbar.Button(a,
g);
var q=new qx.ui.toolbar.Button(c,
d);
o.add(p);
o.add(new qx.ui.toolbar.Separator());
o.add(q);
l.add(o);
p.addListener(j,
this._newConnection,
this);
},
_newConnection:function(){var r=new spamfighter.ui.NewServer(this._desktop);
this.__cL.add(r);
r.addListener(b,
this._newServerWindow,
this);
r.open();
},
_newServerWindow:function(s){var t=s.getData();
var u=new spamfighter.ui.ServerWindow(t);
this.__cL.add(u);
u.open();
}}});
})();
(function(){var a="qx.event.type.Native",
b="_native",
c="_returnValue";
qx.Class.define(a,
{extend:qx.event.type.Event,
members:{init:function(d,
e,
f,
g,
h){arguments.callee.base.call(this,
g,
h);
this._target=e||qx.bom.Event.getTarget(d);
this._relatedTarget=f||qx.bom.Event.getRelatedTarget(d);
if(d.timeStamp){this._timeStamp=d.timeStamp;
}this._native=d;
return this;
},
clone:function(i){var j=arguments.callee.base.call(this,
i);
j._native=this._native;
j._returnValue=this._returnValue;
return j;
},
preventDefault:function(){arguments.callee.base.call(this);
qx.bom.Event.preventDefault(this._native);
},
stop:function(){this.stopPropagation();
this.preventDefault();
},
getNativeEvent:function(){return this._native;
},
setReturnValue:function(k){this._returnValue=k;
},
getReturnValue:function(){return this._returnValue;
}},
destruct:function(){this._disposeFields(b,
c);
}});
})();
(function(){var a="iPod",
b="Win32",
c="",
d="Win64",
e="Linux",
f="BSD",
g="Macintosh",
h="iPhone",
i="Windows",
j="qx.bom.client.Platform",
k="X11",
l="MacIntel",
m="MacPPC";
qx.Bootstrap.define(j,
{statics:{NAME:"",
WIN:false,
MAC:false,
UNIX:false,
UNKNOWN_PLATFORM:false,
__cM:function(){var n=navigator.platform;
if(n==null||n===c){n=navigator.userAgent;
}
if(n.indexOf(i)!=-1||n.indexOf(b)!=-1||n.indexOf(d)!=-1){this.WIN=true;
this.NAME="win";
}else if(n.indexOf(g)!=-1||n.indexOf(m)!=-1||n.indexOf(l)!=-1||n.indexOf(a)!=-1||n.indexOf(h)!=-1){this.MAC=true;
this.NAME="mac";
}else if(n.indexOf(k)!=-1||n.indexOf(e)!=-1||n.indexOf(f)!=-1){this.UNIX=true;
this.NAME="unix";
}else{this.UNKNOWN_PLATFORM=true;
this.WIN=true;
this.NAME="win";
}}},
defer:function(o){o.__cM();
}});
})();
(function(){var a="win98",
b="osx2",
c="osx0",
d="osx4",
e="win95",
f="win2000",
g="osx1",
h="osx5",
i="osx3",
j="Windows NT 5.01",
k=")",
l="winxp",
m="freebsd",
n="sunos",
o="SV1",
p="|",
q="nintendods",
r="winnt4",
s="wince",
t="winme",
u="os9",
v="\.",
w="osx",
x="linux",
y="netbsd",
z="winvista",
A="openbsd",
B="(",
C="win2003",
D="symbian",
E="g",
F="qx.bom.client.System",
G=" Mobile/";
qx.Bootstrap.define(F,
{statics:{NAME:"",
SP1:false,
SP2:false,
WIN95:false,
WIN98:false,
WINME:false,
WINNT4:false,
WIN2000:false,
WINXP:false,
WIN2003:false,
WINVISTA:false,
WINCE:false,
LINUX:false,
SUNOS:false,
FREEBSD:false,
NETBSD:false,
OPENBSD:false,
OSX:false,
OS9:false,
SYMBIAN:false,
NINTENDODS:false,
PSP:false,
IPHONE:false,
UNKNOWN_SYSTEM:false,
__cN:{"Windows NT 6.0":z,
"Windows NT 5.2":C,
"Windows NT 5.1":l,
"Windows NT 5.0":f,
"Windows 2000":f,
"Windows NT 4.0":r,
"Win 9x 4.90":t,
"Windows CE":s,
"Windows 98":a,
"Win98":a,
"Windows 95":e,
"Win95":e,
"Linux":x,
"FreeBSD":m,
"NetBSD":y,
"OpenBSD":A,
"SunOS":n,
"Symbian System":D,
"Nitro":q,
"PSP":"sonypsp",
"Mac OS X 10_5":h,
"Mac OS X 10.5":h,
"Mac OS X 10_4":d,
"Mac OS X 10.4":d,
"Mac OS X 10_3":i,
"Mac OS X 10.3":i,
"Mac OS X 10_2":b,
"Mac OS X 10.2":b,
"Mac OS X 10_1":g,
"Mac OS X 10.1":g,
"Mac OS X 10_0":c,
"Mac OS X 10.0":c,
"Mac OS X":w,
"Mac OS 9":u},
__cO:function(){var H=navigator.userAgent;
var I=[];
for(var J in this.__cN){I.push(J);
}var K=new RegExp(B+I.join(p).replace(/\./g,
v)+k,
E);
if(!K.test(H)){this.UNKNOWN_SYSTEM=true;
if(!qx.bom.client.Platform.UNKNOWN_PLATFORM){if(qx.bom.client.Platform.UNIX){this.NAME="linux";
this.LINUX=true;
}else if(qx.bom.client.Platform.MAC){this.NAME="osx5";
this.OSX=true;
}else{this.NAME="winxp";
this.WINXP=true;
}}else{this.NAME="winxp";
this.WINXP=true;
}return;
}
if(qx.bom.client.Engine.WEBKIT&&RegExp(G).test(navigator.userAgent)){this.IPHONE=true;
this.NAME="iphone";
}else{this.NAME=this.__cN[RegExp.$1];
this[this.NAME.toUpperCase()]=true;
if(qx.bom.client.Platform.WIN){if(H.indexOf(j)!==-1){this.SP1=true;
}else if(qx.bom.client.Engine.MSHTML&&H.indexOf(o)!==-1){this.SP2=true;
}}}}},
defer:function(L){L.__cO();
}});
})();
(function(){var a="_applyTheme",
b="qx.theme",
c="qx.theme.manager.Meta",
d="qx.theme.Classic",
e="Theme",
f="singleton";
qx.Class.define(c,
{type:f,
extend:qx.core.Object,
properties:{theme:{check:e,
nullable:true,
apply:a}},
members:{_applyTheme:function(g,
h){var i=null;
var j=null;
var k=null;
var l=null;
var m=null;
if(g){i=g.meta.color||null;
j=g.meta.decoration||null;
k=g.meta.font||null;
l=g.meta.icon||null;
m=g.meta.appearance||null;
}var n=qx.theme.manager.Color.getInstance();
var o=qx.theme.manager.Decoration.getInstance();
var p=qx.theme.manager.Font.getInstance();
var q=qx.theme.manager.Icon.getInstance();
var r=qx.theme.manager.Appearance.getInstance();
n.setTheme(i);
o.setTheme(j);
p.setTheme(k);
q.setTheme(l);
r.setTheme(m);
},
initialize:function(){var s=qx.core.Setting;
var t,
u;
t=s.get(b);
if(t){u=qx.Theme.getByName(t);
if(!u){throw new Error("The theme to use is not available: "+t);
}this.setTheme(u);
}}},
settings:{"qx.theme":d}});
})();
(function(){var a="qx.theme.manager.Font",
b="Theme",
c="changeTheme",
d="_applyTheme",
e="singleton";
qx.Class.define(a,
{type:e,
extend:qx.util.ValueManager,
properties:{theme:{check:b,
nullable:true,
apply:d,
event:c}},
members:{resolveDynamic:function(f){var g=this._dynamic;
return f instanceof qx.bom.Font?f:g[f];
},
resolve:function(f){var h=this._dynamic;
var i=h[f];
if(i){return i;
}var j=this.getTheme();
if(j!==null&&j.fonts[f]){return h[f]=(new qx.bom.Font).set(j.colors[f]);
}return f;
},
isDynamic:function(f){var h=this._dynamic;
if(f&&(f instanceof qx.bom.Font||h[f]!==undefined)){return true;
}var j=this.getTheme();
if(j!==null&&f&&j.fonts[f]){h[f]=(new qx.bom.Font).set(j.fonts[f]);
return true;
}return false;
},
_applyTheme:function(f){var k=this._getDynamic();
for(var l in k){if(k[l].themed){k[l].dispose();
delete k[l];
}}
if(f){var m=f.fonts;
var n=qx.bom.Font;
for(var l in m){k[l]=(new n).set(m[l]);
k[l].themed=true;
}}this._setDynamic(k);
}}});
})();
(function(){var a="",
b="underline",
c="Boolean",
d="px",
e='"',
f="italic",
g="normal",
h="bold",
j="_applyItalic",
k="_applyBold",
m="Integer",
n="_applyFamily",
o="_applyLineHeight",
p="Array",
q="overline",
r="line-through",
s="qx.bom.Font",
t="Number",
u="_applyDecoration",
v=" ",
w="_applySize",
x=",";
qx.Class.define(s,
{extend:qx.core.Object,
construct:function(y,
z){arguments.callee.base.call(this);
if(y!==undefined){this.setSize(y);
}
if(z!==undefined){this.setFamily(z);
}},
statics:{fromString:function(A){var B=new qx.bom.Font();
var C=A.split(/\s+/);
var D=[];
var E;
for(var F=0;F<C.length;F++){switch(E=C[F]){case h:B.setBold(true);
break;
case f:B.setItalic(true);
break;
case b:B.setDecoration(b);
break;
default:var G=parseInt(E,
10);
if(G==E||qx.lang.String.contains(E,
d)){B.setSize(G);
}else{D.push(E);
}break;
}}
if(D.length>0){B.setFamily(D);
}return B;
},
fromConfig:function(H){var B=new qx.bom.Font;
B.set(H);
return B;
},
__cP:{fontFamily:a,
fontSize:a,
fontWeight:a,
fontStyle:a,
textDecoration:a,
lineHeight:1.2},
getDefaultStyles:function(){return this.__cP;
}},
properties:{size:{check:m,
nullable:true,
apply:w},
lineHeight:{check:t,
nullable:true,
apply:o},
family:{check:p,
nullable:true,
apply:n},
bold:{check:c,
nullable:true,
apply:k},
italic:{check:c,
nullable:true,
apply:j},
decoration:{check:[b,
r,
q],
nullable:true,
apply:u}},
members:{__cQ:null,
__cR:null,
__cS:null,
__cT:null,
__cU:null,
__cV:null,
_applySize:function(I,
J){this.__cQ=I===null?null:I+d;
},
_applyLineHeight:function(I,
J){this.__cV=I===null?null:I;
},
_applyFamily:function(I,
J){var z=a;
for(var F=0,
K=I.length;F<K;F++){if(I[F].indexOf(v)>0){z+=e+I[F]+e;
}else{z+=I[F];
}
if(F!==K-1){z+=x;
}}this.__cR=z;
},
_applyBold:function(I,
J){this.__cS=I===null?null:I?h:g;
},
_applyItalic:function(I,
J){this.__cT=I===null?null:I?f:g;
},
_applyDecoration:function(I,
J){this.__cU=I===null?null:I;
},
getStyles:function(){return {fontFamily:this.__cR,
fontSize:this.__cQ,
fontWeight:this.__cS,
fontStyle:this.__cT,
textDecoration:this.__cU,
lineHeight:this.__cV};
}}});
})();
(function(){var a="icon",
b="qx.theme.manager.Icon",
c="Theme",
d="_applyTheme",
e="singleton";
qx.Class.define(b,
{type:e,
extend:qx.core.Object,
properties:{theme:{check:c,
nullable:true,
apply:d}},
members:{_applyTheme:function(f,
g){var h=qx.util.AliasManager.getInstance();
f?h.add(a,
f.resource):h.remove(a);
}}});
})();
(function(){var a="string",
b="Theme",
c="__cW",
d="_applyTheme",
e="__cX",
f="_applyAppearanceTheme",
g="qx.theme.manager.Appearance",
h=":",
i="changeAppearanceTheme",
j="changeTheme",
k="/",
l="singleton";
qx.Class.define(g,
{type:l,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this.__cW={};
this.__cX={};
},
properties:{appearanceTheme:{check:b,
nullable:true,
apply:f,
event:i},
theme:{check:b,
nullable:true,
apply:d,
event:j}},
members:{__cY:{},
__cW:null,
__cX:null,
_applyAppearanceTheme:function(m,
n){},
_applyTheme:function(m,
n){},
__da:function(o,
p){var q=p.appearances;
var r=q[o];
if(!r){var s=k;
var t=[];
var u=o.split(s);
var v;
while(!r&&u.length>0){t.unshift(u.pop());
var w=u.join(s);
r=q[w];
if(r){v=r.alias||r;
if(typeof v===a){var x=v+s+t.join(s);
return this.__da(x,
p);
}}}return null;
}else if(typeof r===a){return this.__da(r,
p);
}else if(r.include&&!r.style){return this.__da(r.include,
p);
}return o;
},
styleFrom:function(o,
y,
p){if(!p){p=this.getTheme();
}var z=this.__cX;
var A=z[o];
if(!A){A=z[o]=this.__da(o,
p);
}var r=p.appearances[A];
if(!r){this.warn("Missing appearance: "+o);
return null;
}if(!r.style){return null;
}var B=A;
if(y){var C=r.$$bits;
if(!C){C=r.$$bits={};
r.$$length=0;
}var D=0;
for(var E in y){if(C[E]==null){C[E]=1<<r.$$length++;
}D+=C[E];
}if(D>0){B+=h+D;
}}var F=this.__cW;
if(F[B]!==undefined){return F[B];
}if(!y){y=this.__cY;
}var G;
if(r.include||r.base){var H=r.style(y);
var I;
if(r.include){I=this.styleFrom(r.include,
y,
p);
}G={};
if(r.base){var J=this.styleFrom(A,
y,
r.base);
if(r.include){for(var K in J){if(!I.hasOwnProperty(K)&&!H.hasOwnProperty(K)){G[K]=J[K];
}}}else{for(var K in J){if(!H.hasOwnProperty(K)){G[K]=J[K];
}}}}if(r.include){for(var K in I){if(!H.hasOwnProperty(K)){G[K]=I[K];
}}}for(var K in H){G[K]=H[K];
}}else{G=r.style(y);
}return F[B]=G||null;
}},
destruct:function(){this._disposeFields(c,
e);
}});
})();
(function(){var a="qx.event.handler.UserAction",
b="__db",
c="__dc";
qx.Class.define(a,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(d){arguments.callee.base.call(this);
this.__db=d;
this.__dc=d.getWindow();
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{useraction:1},
TARGET_CHECK:qx.event.IEventHandler.TARGET_WINDOW,
IGNORE_CAN_HANDLE:true},
members:{canHandleEvent:function(e,
f){},
registerEvent:function(e,
f,
g){},
unregisterEvent:function(e,
f,
g){}},
destruct:function(){this._disposeFields(b,
c);
},
defer:function(h){qx.event.Registration.addHandler(h);
}});
})();
(function(){var a="__dd",
b="__de",
c="qx.util.DeferredCallManager",
d="singleton";
qx.Class.define(c,
{extend:qx.core.Object,
type:d,
construct:function(){this.__dd={};
this.__de=qx.lang.Function.bind(this.__di,
this);
this.__df=false;
},
members:{__dg:null,
__dh:null,
__dd:null,
__df:null,
__de:null,
schedule:function(e){if(this.__dg==null){this.__dg=window.setTimeout(this.__de,
0);
}var f=e.toHashCode();
if(this.__dh&&this.__dh[f]){return;
}this.__dd[f]=e;
this.__df=true;
},
cancel:function(e){var f=e.toHashCode();
if(this.__dh&&this.__dh[f]){this.__dh[f]=null;
return;
}delete this.__dd[f];
if(qx.lang.Object.isEmpty(this.__dd)&&this.__dg!=null){window.clearTimeout(this.__dg);
this.__dg=null;
}},
__di:function(){this.__dg=null;
while(this.__df){this.__dh=qx.lang.Object.copy(this.__dd);
this.__dd={};
this.__df=false;
for(var g in this.__dh){var h=this.__dh[g];
if(h){this.__dh[g]=null;
h.call();
}}}this.__dh=null;
}},
destruct:function(){if(this.__dg!=null){window.clearTimeout(this.__dg);
}this._disposeFields(b,
a);
}});
})();
(function(){var a="qx.util.DeferredCall",
b="__dl",
c="__dj",
d="__dk";
qx.Class.define(a,
{extend:qx.core.Object,
construct:function(e,
f){arguments.callee.base.call(this);
this.__dj=e;
this.__dk=f||null;
this.__dl=qx.util.DeferredCallManager.getInstance();
},
members:{__dj:null,
__dk:null,
__dl:null,
cancel:function(){this.__dl.cancel(this);
},
schedule:function(){this.__dl.schedule(this);
},
call:function(){this.__dk?this.__dj.apply(this.__dk):this.__dj();
}},
destruct:function(e,
f){this.cancel();
this._disposeFields(d,
c,
b);
}});
})();
(function(){var c="element",
d="\000",
e="qx.client",
f="div",
g="capture",
h="",
j="mshtml",
k="qx.html.Element",
m="__dI",
n="focus",
o="__dz",
p="blur",
q="__dx",
r="deactivate",
s="__dA",
t="evt\000",
u="releaseCapture",
v="__dn",
w="__dw",
z="__ds",
A="tabIndex",
B="__dy",
C="__dB",
D="activate",
E="__dC",
F="none",
G="__dr",
H="\000capture",
I="__dv";
qx.Class.define(k,
{extend:qx.core.Object,
construct:function(J){arguments.callee.base.call(this);
this.__dm=J||f;
},
statics:{DEBUG:false,
_modified:{},
_visibility:{},
_scroll:{},
_actions:[],
_scheduleFlush:function(K){qx.html.Element.__dN.schedule();
},
_mshtmlVisibilitySort:qx.core.Variant.select(e,
{"mshtml":function(L,
M){var N=L.__dn;
var O=M.__dn;
if(N.contains(O)){return 1;
}
if(O.contains(N)){return -1;
}return 0;
},
"default":null}),
flush:function(){var P;
{};
var Q=[];
var R=this._modified;
for(var S in R){P=R[S];
if(P.__dF()){if(P.__dn&&qx.dom.Hierarchy.isRendered(P.__dn)){Q.push(P);
}else{{};
P.__dE();
}delete R[S];
}}
for(var T=0,
U=Q.length;T<U;T++){P=Q[T];
{};
P.__dE();
}var V=this._visibility;
if(qx.core.Variant.isSet(e,
j)){var W=[];
for(var S in V){W.push(V[S]);
}if(W.length>1){W.sort(this._mshtmlVisibilitySort);
V=this._visibility={};
for(var T=0;T<W.length;T++){P=W[T];
V[P.$$hash]=P;
}}}
for(var S in V){P=V[S];
{};
P.__dn.style.display=P.__dq?h:F;
delete V[S];
}var X=this._scroll;
for(var S in X){P=X[S];
var Y=P.__dn;
if(Y&&Y.offsetWidth){var ba=true;
if(P.__dt!=null){P.__dn.scrollLeft=P.__dt;
delete P.__dt;
}if(P.__du!=null){P.__dn.scrollTop=P.__du;
delete P.__du;
}var bb=P.__dr;
if(bb!=null){var bc=bb.element.getDomElement();
if(bc&&bc.offsetWidth){qx.bom.element.Scroll.intoViewX(bc,
Y,
bb.align);
delete P.__dr;
}else{ba=false;
}}var bd=P.__ds;
if(bd!=null){var bc=bd.element.getDomElement();
if(bc&&bc.offsetWidth){qx.bom.element.Scroll.intoViewY(bc,
Y,
bd.align);
delete P.__ds;
}else{ba=false;
}}if(ba){delete X[S];
}}}for(var T=0;T<this._actions.length;T++){var be=this._actions[T];
var bf=be.element.__dn;
qx.bom.Element[be.type](bf);
}this._actions=[];
qx.event.handler.Appear.refresh();
}},
members:{__dm:null,
__dn:null,
__do:false,
__dp:true,
__dq:true,
__dr:null,
__ds:null,
__dt:null,
__du:null,
__dv:null,
__dw:null,
__dx:null,
__dy:null,
__dz:null,
__dA:null,
__dB:null,
__dC:null,
__dD:null,
_scheduleChildrenUpdate:function(){if(this.__dD){return;
}this.__dD=true;
qx.html.Element._modified[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
},
_createDomElement:function(){return qx.bom.Element.create(this.__dm);
},
__dE:function(){{};
var bg=this.__dC;
if(bg){var bh=bg.length;
var bc;
for(var T=0;T<bh;T++){bc=bg[T];
if(bc.__dq&&bc.__dp&&!bc.__dn){bc.__dE();
}}}
if(!this.__dn){this.__dn=this._createDomElement();
this.__dn.$$hash=this.$$hash;
this._copyData(false);
if(bg&&bh>0){this._insertChildren();
}}else{this._syncData();
if(this.__dD){this._syncChildren();
}}delete this.__dD;
},
_insertChildren:function(){var bg=this.__dC;
var bh=bg.length;
var bc;
if(bh>2){var bi=document.createDocumentFragment();
for(var T=0;T<bh;T++){bc=bg[T];
if(bc.__dn&&bc.__dp){bi.appendChild(bc.__dn);
}}this.__dn.appendChild(bi);
}else{var bi=this.__dn;
for(var T=0;T<bh;T++){bc=bg[T];
if(bc.__dn&&bc.__dp){bi.appendChild(bc.__dn);
}}}},
_syncChildren:function(){var bj=qx.core.ObjectRegistry;
var bk=this.__dC;
var bm=bk.length;
var bn;
var bo;
var bp=this.__dn;
var bq=bp.childNodes;
var br=0;
var bs;
var bt;
for(var T=bq.length-1;T>=0;T--){bs=bq[T];
bo=bj.fromHashCode(bs.$$hash);
if(!bo||!bo.__dp||bo.__dI!==this){bp.removeChild(bs);
{};
}}for(var T=0;T<bm;T++){bn=bk[T];
if(bn.__dp){bo=bn.__dn;
bs=bq[br];
if(!bo){continue;
}if(bo!=bs){if(bs){bp.insertBefore(bo,
bs);
}else{bp.appendChild(bo);
}{};
}br++;
}}{};
},
_copyData:function(bu){var Y=this.__dn;
var bv=this.__dz;
if(bv){var bw=qx.bom.element.Attribute;
for(var bx in bv){bw.set(Y,
bx,
bv[bx]);
}}var bv=this.__dy;
if(bv){var by=qx.bom.element.Style;
if(bu){for(var bx in bv){by.set(Y,
bx,
bv[bx]);
}}else{by.setCss(Y,
by.compile(bv));
}}var bv=this.__dA;
if(bv){for(var bx in bv){this._applyProperty(bx,
bv[bx]);
}}var bv=this.__dB;
if(bv){qx.event.Registration.getManager(Y).importListeners(Y,
bv);
delete this.__dB;
}},
_syncData:function(){var Y=this.__dn;
var bw=qx.bom.element.Attribute;
var by=qx.bom.element.Style;
var bz=this.__dw;
if(bz){var bv=this.__dz;
if(bv){var bA;
for(var bx in bz){bA=bv[bx];
if(bA!==undefined){bw.set(Y,
bx,
bA);
}else{bw.reset(Y,
bx);
}}}this.__dw=null;
}var bz=this.__dv;
if(bz){var bv=this.__dy;
if(bv){var bA;
for(var bx in bz){bA=bv[bx];
if(bA!==undefined){by.set(Y,
bx,
bA);
}else{by.reset(Y,
bx);
}}}this.__dv=null;
}var bz=this.__dx;
if(bz){var bv=this.__dA;
if(bv){var bA;
for(var bx in bz){this._applyProperty(bx,
bv[bx]);
}}this.__dx=null;
}},
__dF:function(){var bB=this;
while(bB){if(bB.__do){return true;
}
if(!bB.__dp||!bB.__dq){return false;
}bB=bB.__dI;
}return false;
},
__dG:function(bC,
bD,
bE,
bF){var bG=qx.core.ObjectRegistry;
var bH=t+bC+d+bG.toHashCode(bD);
if(bE){bH+=d+bG.toHashCode(bE);
}
if(bF){bH+=H;
}return bH;
},
__dH:function(bc){if(bc.__dI===this){throw new Error("Child is already in: "+bc);
}
if(bc.__do){throw new Error("Root elements could not be inserted into other ones.");
}if(bc.__dI){bc.__dI.remove(bc);
}bc.__dI=this;
if(!this.__dC){this.__dC=[];
}if(this.__dn){this._scheduleChildrenUpdate();
}},
__dJ:function(bc){if(bc.__dI!==this){throw new Error("Has no child: "+bc);
}if(this.__dn){this._scheduleChildrenUpdate();
}delete bc.__dI;
},
__dK:function(bc){if(bc.__dI!==this){throw new Error("Has no child: "+bc);
}if(this.__dn){this._scheduleChildrenUpdate();
}},
getChildren:function(){return this.__dC||null;
},
getChild:function(bI){var bg=this.__dC;
return bg&&bg[bI]||null;
},
hasChildren:function(){var bg=this.__dC;
return bg&&bg[0]!==undefined;
},
indexOf:function(bc){var bg=this.__dC;
return bg?bg.indexOf(bc):-1;
},
hasChild:function(bc){var bg=this.__dC;
return bg&&bg.indexOf(bc)!==-1;
},
add:function(bJ){if(arguments[1]){for(var T=0,
U=arguments.length;T<U;T++){this.__dH(arguments[T]);
}this.__dC.push.apply(this.__dC,
arguments);
}else{this.__dH(bJ);
this.__dC.push(bJ);
}return this;
},
addAt:function(bc,
bI){this.__dH(bc);
qx.lang.Array.insertAt(this.__dC,
bc,
bI);
return this;
},
remove:function(bK){var bg=this.__dC;
if(!bg){return;
}
if(arguments[1]){var bc;
for(var T=0,
U=arguments.length;T<U;T++){bc=arguments[T];
this.__dJ(bc);
qx.lang.Array.remove(bg,
bc);
}}else{this.__dJ(bK);
qx.lang.Array.remove(bg,
bK);
}return this;
},
removeAt:function(bI){var bg=this.__dC;
if(!bg){throw new Error("Has no children!");
}var bc=bg[bI];
if(!bc){throw new Error("Has no child at this position!");
}this.__dJ(bc);
qx.lang.Array.removeAt(this.__dC,
bI);
return this;
},
removeAll:function(){var bg=this.__dC;
if(bg){for(var T=0,
U=bg.length;T<U;T++){this.__dJ(bg[T]);
}bg.length=0;
}return this;
},
getParent:function(){return this.__dI||null;
},
insertInto:function(bL,
bI){bL.__dH(this);
if(bI==null){bL.__dC.push(this);
}else{qx.lang.Array.insertAt(this.__dC,
this,
bI);
}return this;
},
insertBefore:function(bM){var bL=bM.__dI;
bL.__dH(this);
qx.lang.Array.insertBefore(bL.__dC,
this,
bM);
return this;
},
insertAfter:function(bM){var bL=bM.__dI;
bL.__dH(this);
qx.lang.Array.insertAfter(bL.__dC,
this,
bM);
return this;
},
moveTo:function(bI){var bL=this.__dI;
bL.__dK(this);
var bN=bL.__dC.indexOf(this);
if(bN===bI){throw new Error("Could not move to same index!");
}else if(bN<bI){bI--;
}qx.lang.Array.removeAt(bL.__dC,
bN);
qx.lang.Array.insertAt(bL.__dC,
this,
bI);
return this;
},
moveBefore:function(bM){var bL=this.__dI;
return this.moveTo(bL.__dC.indexOf(bM));
},
moveAfter:function(bM){var bL=this.__dI;
return this.moveTo(bL.__dC.indexOf(bM)+1);
},
free:function(){var bL=this.__dI;
if(!bL){throw new Error("Has no parent to remove from.");
}
if(!bL.__dC){return;
}bL.__dJ(this);
qx.lang.Array.remove(bL.__dC,
this);
return this;
},
getDomElement:function(){return this.__dn||null;
},
getNodeName:function(){return this.__dm;
},
setNodeName:function(bO){this.__dm=bO;
},
setRoot:function(bP){this.__do=bP;
},
useMarkup:function(bQ){if(this.__dn){throw new Error("Could not overwrite existing element!");
}if(qx.core.Variant.isSet(e,
j)){var bR=document.createElement(f);
}else{var bR=qx.html.Element.__dL;
if(!bR){bR=qx.html.Element.__dL=document.createElement(f);
}}bR.innerHTML=bQ;
this.__dn=bR.firstChild;
this.__dn.$$hash=this.$$hash;
this._copyData(true);
return this.__dn;
},
useElement:function(Y){if(this.__dn){throw new Error("Could not overwrite existing element!");
}this.__dn=Y;
this.__dn.$$hash=this.$$hash;
this._copyData(true);
},
isFocusable:function(){var bS=this.getAttribute(A);
if(bS>=1){return true;
}var bT=qx.event.handler.Focus.FOCUSABLE_ELEMENTS;
if(bS>=0&&bT[this.__dm]){return true;
}return false;
},
isNativelyFocusable:function(){return !!qx.event.handler.Focus.FOCUSABLE_ELEMENTS[this.__dm];
},
include:function(){if(this.__dp){return;
}delete this.__dp;
if(this.__dI){this.__dI._scheduleChildrenUpdate();
}return this;
},
exclude:function(){if(!this.__dp){return;
}this.__dp=false;
if(this.__dI){this.__dI._scheduleChildrenUpdate();
}return this;
},
isIncluded:function(){return this.__dp===true;
},
show:function(){if(this.__dq){return;
}
if(this.__dn){qx.html.Element._visibility[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}if(this.__dI){this.__dI._scheduleChildrenUpdate();
}delete this.__dq;
},
hide:function(){if(!this.__dq){return;
}
if(this.__dn){qx.html.Element._visibility[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}this.__dq=false;
},
isVisible:function(){return this.__dq===true;
},
scrollChildIntoViewX:function(Y,
bU,
bV){var bW=this.__dn;
var bX=Y.getDomElement();
if(bV!==false&&bW&&bW.offsetWidth&&bX&&bX.offsetWidth){qx.bom.element.Scroll.intoViewX(bX,
bW,
bU);
}else{this.__dr={element:Y,
align:bU};
qx.html.Element._scroll[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}delete this.__dt;
},
scrollChildIntoViewY:function(Y,
bU,
bV){var bW=this.__dn;
var bX=Y.getDomElement();
if(bV!==false&&bW&&bW.offsetWidth&&bX&&bX.offsetWidth){qx.bom.element.Scroll.intoViewY(bX,
bW,
bU);
}else{this.__ds={element:Y,
align:bU};
qx.html.Element._scroll[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}delete this.__du;
},
scrollToX:function(bY,
ca){var bW=this.__dn;
if(ca!==true&&bW&&bW.offsetWidth){bW.scrollLeft=bY;
}else{this.__dt=bY;
qx.html.Element._scroll[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}delete this.__dr;
},
getScrollX:function(){var bW=this.__dn;
if(bW){return bW.scrollLeft;
}return this.__dt||0;
},
scrollToY:function(cb,
ca){var bW=this.__dn;
if(ca!==true&&bW&&bW.offsetWidth){bW.scrollTop=cb;
}else{this.__du=cb;
qx.html.Element._scroll[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}delete this.__ds;
},
getScrollY:function(){var bW=this.__dn;
if(bW){return bW.scrollTop;
}return this.__du||0;
},
getSelection:function(){var cc=this.__dn;
if(cc){return qx.bom.Selection.get(cc);
}return null;
},
getSelectionLength:function(){var cc=this.__dn;
if(cc){return qx.bom.Selection.getLength(cc);
}return null;
},
setSelection:function(cd,
ce){var cc=this.__dn;
if(cc){qx.bom.Selection.set(cc,
cd,
ce);
}},
clearSelection:function(){var cc=this.__dn;
if(cc){qx.bom.Selection.clear(cc);
}},
__dM:function(be){var cc=this.__dn;
var cf=qx.html.Element._actions;
if(cc&&cf.length==0){return qx.bom.Element[be](cc);
}cf.push({type:be,
element:this});
qx.html.Element._scheduleFlush(c);
},
focus:function(){this.__dM(n);
},
blur:function(){this.__dM(p);
},
activate:function(){this.__dM(D);
},
deactivate:function(){this.__dM(r);
},
capture:function(){this.__dM(g);
},
releaseCapture:function(){this.__dM(u);
},
setStyle:function(bx,
bA,
bV){if(!this.__dy){this.__dy={};
}
if(this.__dy[bx]==bA){return;
}
if(bA==null){delete this.__dy[bx];
}else{this.__dy[bx]=bA;
}if(this.__dn){if(bV){qx.bom.element.Style.set(this.__dn,
bx,
bA);
return this;
}if(!this.__dv){this.__dv={};
}this.__dv[bx]=true;
qx.html.Element._modified[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}return this;
},
setStyles:function(cg,
bV){for(var bx in cg){this.setStyle(bx,
cg[bx],
bV);
}return this;
},
removeStyle:function(bx,
bV){this.setStyle(bx,
null,
bV);
},
getStyle:function(bx){return this.__dy?this.__dy[bx]:null;
},
getAllStyles:function(){return this.__dy||null;
},
setAttribute:function(bx,
bA,
bV){if(!this.__dz){this.__dz={};
}
if(this.__dz[bx]==bA){return;
}
if(bA==null){delete this.__dz[bx];
}else{this.__dz[bx]=bA;
}if(this.__dn){if(bV){qx.bom.element.Attribute.set(this.__dn,
bx,
bA);
return this;
}if(!this.__dw){this.__dw={};
}this.__dw[bx]=true;
qx.html.Element._modified[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}return this;
},
setAttributes:function(cg,
bV){for(var bx in cg){this.setAttribute(bx,
cg[bx],
bV);
}return this;
},
removeAttribute:function(bx,
bV){this.setAttribute(bx,
null,
bV);
},
getAttribute:function(bx){return this.__dz?this.__dz[bx]:null;
},
_applyProperty:function(bO,
bA){},
_setProperty:function(bx,
bA,
bV){if(!this.__dA){this.__dA={};
}
if(this.__dA[bx]==bA){return;
}
if(bA==null){delete this.__dA[bx];
}else{this.__dA[bx]=bA;
}if(this.__dn){if(bV){this._applyProperty(bx,
bA);
return this;
}if(!this.__dx){this.__dx={};
}this.__dx[bx]=true;
qx.html.Element._modified[this.$$hash]=this;
qx.html.Element._scheduleFlush(c);
}return this;
},
_removeProperty:function(bx,
bV){this._setProperty(bx,
null,
bV);
},
_getProperty:function(bx){var ch=this.__dA;
if(!ch){return null;
}var bA=ch[bx];
return bA==null?null:bA;
},
addListener:function(bC,
bD,
bE,
bF){if(this.isDisposed()){return null;
}var ci;
if(this.__dn){return qx.event.Registration.addListener(this.__dn,
bC,
bD,
bE,
bF);
}
if(!this.__dB){this.__dB={};
}var bx=this.__dG(bC,
bD,
bE,
bF);
if(this.__dB[bx]){this.warn("A listener of this configuration does already exist!");
return this.__dB[bx];
}var cj={type:bC,
listener:bD,
self:bE,
capture:bF};
this.__dB[bx]=cj;
return cj;
},
removeListener:function(bC,
bD,
bE,
bF){if(this.isDisposed()){return;
}var ci;
if(this.__dn){qx.event.Registration.removeListener(this.__dn,
bC,
bD,
bE,
bF);
}else{var bx=this.__dG(bC,
bD,
bE,
bF);
if(!this.__dB||!this.__dB[bx]){this.warn("A listener of this configuration does not exist!");
return false;
}delete this.__dB[bx];
}return this;
},
removeListenerById:function(bH){if(this.__dn){if(bH.type){qx.event.Registration.removeListener(bH.type,
bH.listener,
bH.self,
bH.capture);
}else{qx.event.Registration.removeListenerById(this.__dn,
bH);
}return;
}this.removeListener(bH.type,
bH.listener,
bH.self,
bH.capture);
},
hasListener:function(bC,
bF){if(this.__dn){return qx.event.Registration.hasListener(this.__dn,
bC,
bF);
}
for(var bx in this.__dB){bx=bx.split(d);
var ck=bx[4]==g;
if(bF==ck&&bC==bx[1]){return true;
}}return false;
}},
defer:function(cl){cl.__dN=new qx.util.DeferredCall(cl.flush,
cl);
},
destruct:function(){var cc=this.__dn;
if(cc){qx.event.Registration.getManager(cc).removeAllListeners(cc);
cc.$$hash=h;
}
if(!qx.core.ObjectRegistry.inShutDown){var bL=this.__dI;
if(bL&&!bL.$$disposed){bL.remove(this);
}}this._disposeArray(E);
this._disposeFields(o,
B,
C,
s,
w,
I,
q,
v,
m,
G,
z);
}});
})();
(function(){var a="qx.ui.core.queue.Manager",
b="useraction";
qx.Class.define(a,
{statics:{__dO:false,
__dP:{},
scheduleFlush:function(c){var d=qx.ui.core.queue.Manager;
d.__dP[c]=true;
if(!d.__dO){d.__dR.schedule();
d.__dO=true;
}},
flush:function(){var d=qx.ui.core.queue.Manager;
if(d.__dQ){return;
}d.__dQ=true;
d.__dR.cancel();
var e=d.__dP;
while(e.visibility||e.widget||e.appearance||e.layout){if(e.widget){delete e.widget;
qx.ui.core.queue.Widget.flush();
}
if(e.visibility){delete e.visibility;
qx.ui.core.queue.Visibility.flush();
}
if(e.appearance){delete e.appearance;
qx.ui.core.queue.Appearance.flush();
}if(e.widget||e.visibility||e.appearance){continue;
}
if(e.layout){delete e.layout;
qx.ui.core.queue.Layout.flush();
}}qx.ui.core.queue.Manager.__dO=false;
if(e.element){delete e.element;
qx.html.Element.flush();
}
if(e.dispose){delete e.dispose;
qx.ui.core.queue.Dispose.flush();
}d.__dQ=false;
}},
defer:function(f){f.__dR=new qx.util.DeferredCall(f.flush);
qx.html.Element._scheduleFlush=f.scheduleFlush;
qx.event.Registration.addListener(window,
b,
f.flush);
}});
})();
(function(){var a="qx.client",
b="qx.dom.Hierarchy",
c="previousSibling",
d="*",
e="nextSibling",
f="parentNode";
qx.Class.define(b,
{statics:{getNodeIndex:function(g){var h=0;
while(g&&(g=g.previousSibling)){h++;
}return h;
},
getElementIndex:function(i){var h=0;
var j=qx.dom.Node.ELEMENT;
while(i&&(i=i.previousSibling)){if(i.nodeType==j){h++;
}}return h;
},
getNextElementSibling:function(i){while(i&&(i=i.nextSibling)&&!qx.dom.Node.isElement(i)){continue;
}return i||null;
},
getPreviousElementSibling:function(i){while(i&&(i=i.previousSibling)&&!qx.dom.Node.isElement(i)){continue;
}return i||null;
},
contains:qx.core.Variant.select(a,
{"webkit|mshtml|opera":function(i,
k){if(qx.dom.Node.isDocument(i)){var l=qx.dom.Node.getDocument(k);
return i&&l==i;
}else if(qx.dom.Node.isDocument(k)){return false;
}else{return i.contains(k);
}},
"gecko":function(i,
k){return !!(i.compareDocumentPosition(k)&16);
},
"default":function(i,
k){while(k){if(i==k){return true;
}k=k.parentNode;
}return false;
}}),
isRendered:function(i){if(!i.offsetParent){return false;
}var l=i.ownerDocument||i.document;
if(l.body.contains){return l.body.contains(i);
}if(l.compareDocumentPosition){return !!(l.compareDocumentPosition(i)&16);
}throw new Error("Missing support for isRendered()!");
},
isDescendantOf:function(i,
m){return this.contains(m,
i);
},
getCommonParent:qx.core.Variant.select(a,
{"mshtml|opera":function(n,
o){if(n===o){return n;
}
while(n){if(n.contains(o)){return n;
}n=n.parentNode;
}return null;
},
"default":function(n,
o){if(n===o){return n;
}var p={};
var q=qx.core.ObjectRegistry;
var r,
s;
while(n||o){if(n){r=q.toHashCode(n);
if(p[r]){return p[r];
}p[r]=n;
n=n.parentNode;
}
if(o){s=q.toHashCode(o);
if(p[s]){return p[s];
}p[s]=o;
o=o.parentNode;
}}return null;
}}),
getAncestors:function(i){return this._recursivelyCollect(i,
f);
},
getChildElements:function(i){i=i.firstChild;
if(!i){return [];
}var t=this.getNextSiblings(i);
t.unshift(i);
return t;
},
getDescendants:function(i){return qx.lang.Array.fromCollection(i.getElementsByTagName(d));
},
getFirstDescendant:function(i){i=i.firstChild;
while(i&&i.nodeType!=1){i=i.nextSibling;
}return i;
},
getLastDescendant:function(i){i=i.lastChild;
while(i&&i.nodeType!=1){i=i.previousSibling;
}return i;
},
getPreviousSiblings:function(i){return this._recursivelyCollect(i,
c);
},
getNextSiblings:function(i){return this._recursivelyCollect(i,
e);
},
_recursivelyCollect:function(i,
u){var v=[];
while(i=i[u]){if(i.nodeType==1){v.push(i);
}}return v;
},
getSiblings:function(i){return this.getPreviousSiblings(i).reverse().concat(this.getNextSiblings(i));
},
isEmpty:function(i){i=i.firstChild;
while(i){if(i.nodeType===qx.dom.Node.ELEMENT||i.nodeType===qx.dom.Node.TEXT){return false;
}i=i.nextSibling;
}return true;
},
cleanWhitespace:function(i){var g=i.firstChild;
while(g){var w=g.nextSibling;
if(g.nodeType==3&&!/\S/.test(g.nodeValue)){i.removeChild(g);
}g=w;
}}}});
})();
(function(){var a="visible",
b="scroll",
c="borderBottomWidth",
d="borderTopWidth",
e="left",
f="borderLeftWidth",
g="bottom",
h="top",
i="right",
j="qx.bom.element.Scroll",
k="borderRightWidth";
qx.Class.define(j,
{statics:{intoViewX:function(l,
m,
n){var o=l.parentNode;
var p=qx.dom.Node.getDocument(l);
var q=p.body;
var r,
s,
t;
var u,
v,
w;
var x,
y,
z;
var A,
B,
C,
D;
var E,
F,
G;
var H=n===e;
var I=n===i;
m=m?m.parentNode:p;
while(o&&o!=m){if(o.scrollWidth>o.clientWidth&&(o===q||qx.bom.element.Overflow.getY(o)!=a)){if(o===q){s=o.scrollLeft;
t=s+qx.bom.Viewport.getWidth();
u=qx.bom.Viewport.getWidth();
v=o.clientWidth;
w=o.scrollWidth;
x=0;
y=0;
z=0;
}else{r=qx.bom.element.Location.get(o);
s=r.left;
t=r.right;
u=o.offsetWidth;
v=o.clientWidth;
w=o.scrollWidth;
x=parseInt(qx.bom.element.Style.get(o,
f),
10)||0;
y=parseInt(qx.bom.element.Style.get(o,
k),
10)||0;
z=u-v-x-y;
}A=qx.bom.element.Location.get(l);
B=A.left;
C=A.right;
D=l.offsetWidth;
E=B-s-x;
F=C-t+y;
G=0;
if(H){G=E;
}else if(I){G=F+z;
}else if(E<0||D>v){G=E;
}else if(F>0){G=F+z;
}o.scrollLeft+=G;
if(qx.bom.client.Engine.GECKO){qx.event.Registration.fireNonBubblingEvent(o,
b);
}}
if(o===q){break;
}o=o.parentNode;
}},
intoViewY:function(l,
m,
n){var o=l.parentNode;
var p=qx.dom.Node.getDocument(l);
var q=p.body;
var r,
J,
K;
var L,
M,
N;
var O,
P,
Q;
var A,
R,
S,
T;
var U,
V,
G;
var W=n===h;
var X=n===g;
m=m?m.parentNode:p;
while(o&&o!=m){if(o.scrollHeight>o.clientHeight&&(o===q||qx.bom.element.Overflow.getY(o)!=a)){if(o===q){J=o.scrollTop;
K=J+qx.bom.Viewport.getHeight();
L=qx.bom.Viewport.getHeight();
M=o.clientHeight;
N=o.scrollHeight;
O=0;
P=0;
Q=0;
}else{r=qx.bom.element.Location.get(o);
J=r.top;
K=r.bottom;
L=o.offsetHeight;
M=o.clientHeight;
N=o.scrollHeight;
O=parseInt(qx.bom.element.Style.get(o,
d),
10)||0;
P=parseInt(qx.bom.element.Style.get(o,
c),
10)||0;
Q=L-M-O-P;
}A=qx.bom.element.Location.get(l);
R=A.top;
S=A.bottom;
T=l.offsetHeight;
U=R-J-O;
V=S-K+P;
G=0;
if(W){G=U;
}else if(X){G=V+Q;
}else if(U<0||T>M){G=U;
}else if(V>0){G=V+Q;
}o.scrollTop+=G;
if(qx.bom.client.Engine.GECKO){qx.event.Registration.fireNonBubblingEvent(o,
b);
}}
if(o===q){break;
}o=o.parentNode;
}},
intoView:function(l,
m,
Y,
ba){this.intoViewX(l,
m,
Y);
this.intoViewY(l,
m,
ba);
}}});
})();
(function(){var a="borderTopWidth",
b="borderLeftWidth",
c="scroll",
d="border-box",
e="borderBottomWidth",
f="qx.client",
g="borderRightWidth",
h="auto",
i="marginTop",
j="marginLeft",
k="padding",
l="position",
m="fixed",
n="CSS1Compat",
o="qx.bom.element.Location",
p="paddingLeft",
q="marginBottom",
r="visible",
s="BODY",
t="paddingBottom",
u="paddingTop",
v="marginRight",
w="margin",
x="overflow",
y="paddingRight",
z="border",
A="absolute";
qx.Class.define(o,
{statics:{__dS:function(B,
C){return qx.bom.element.Style.get(B,
C,
qx.bom.element.Style.COMPUTED_MODE,
false);
},
__dT:function(B,
C){return parseInt(qx.bom.element.Style.get(B,
C,
qx.bom.element.Style.COMPUTED_MODE,
false),
10)||0;
},
__dU:function(B){var D=0,
E=0;
if(B.getBoundingClientRect){var F=qx.dom.Node.getWindow(B);
D-=qx.bom.Viewport.getScrollLeft(F);
E-=qx.bom.Viewport.getScrollTop(F);
}else{var G=qx.dom.Node.getDocument(B).body;
B=B.parentNode;
while(B&&B!=G){D+=B.scrollLeft;
E+=B.scrollTop;
B=B.parentNode;
}}return {left:D,
top:E};
},
__dV:qx.core.Variant.select(f,
{"mshtml":function(B){var H=qx.dom.Node.getDocument(B);
var G=H.body;
var D=0;
var E=0;
D-=G.clientLeft+H.documentElement.clientLeft;
E-=G.clientTop+H.documentElement.clientTop;
if(qx.bom.client.Feature.STANDARD_MODE){D+=this.__dT(G,
b);
E+=this.__dT(G,
a);
}return {left:D,
top:E};
},
"webkit":function(B){var H=qx.dom.Node.getDocument(B);
var G=H.body;
var D=G.offsetLeft;
var E=G.offsetTop;
D+=this.__dT(G,
b);
E+=this.__dT(G,
a);
if(H.compatMode===n){D+=this.__dT(G,
j);
E+=this.__dT(G,
i);
}return {left:D,
top:E};
},
"gecko":function(B){var G=qx.dom.Node.getDocument(B).body;
var D=G.offsetLeft;
var E=G.offsetTop;
if(qx.bom.element.BoxSizing.get(G)!==d){D+=this.__dT(G,
b);
E+=this.__dT(G,
a);
if(!B.getBoundingClientRect){var I;
while(B){if(this.__dS(B,
l)===A||this.__dS(B,
l)===m){I=true;
break;
}B=B.offsetParent;
}
if(!I){D+=this.__dT(G,
b);
E+=this.__dT(G,
a);
}}}return {left:D,
top:E};
},
"default":function(B){var G=qx.dom.Node.getDocument(B).body;
var D=G.offsetLeft;
var E=G.offsetTop;
return {left:D,
top:E};
}}),
__dW:qx.core.Variant.select(f,
{"mshtml|webkit":function(B){var H=qx.dom.Node.getDocument(B);
if(B.getBoundingClientRect){var J=B.getBoundingClientRect();
var D=J.left;
var E=J.top;
}else{var D=B.offsetLeft;
var E=B.offsetTop;
B=B.offsetParent;
var G=H.body;
while(B&&B!=G){D+=B.offsetLeft;
E+=B.offsetTop;
D+=this.__dT(B,
b);
E+=this.__dT(B,
a);
B=B.offsetParent;
}}return {left:D,
top:E};
},
"gecko":function(B){if(B.getBoundingClientRect){var J=B.getBoundingClientRect();
var D=Math.round(J.left);
var E=Math.round(J.top);
}else{var D=0;
var E=0;
var G=qx.dom.Node.getDocument(B).body;
var K=qx.bom.element.BoxSizing;
if(K.get(B)!==d){D-=this.__dT(B,
b);
E-=this.__dT(B,
a);
}
while(B&&B!==G){D+=B.offsetLeft;
E+=B.offsetTop;
if(K.get(B)!==d){D+=this.__dT(B,
b);
E+=this.__dT(B,
a);
}if(B.parentNode&&this.__dS(B.parentNode,
x)!=r){D+=this.__dT(B.parentNode,
b);
E+=this.__dT(B.parentNode,
a);
}B=B.offsetParent;
}}return {left:D,
top:E};
},
"default":function(B){var D=0;
var E=0;
var G=qx.dom.Node.getDocument(B).body;
while(B&&B!==G){D+=B.offsetLeft;
E+=B.offsetTop;
B=B.offsetParent;
}return {left:D,
top:E};
}}),
get:function(B,
L){var G=this.__dV(B);
if(B.tagName==s){var D=G.left;
var E=G.top;
}else{var M=this.__dW(B);
var N=this.__dU(B);
var D=M.left+G.left-N.left;
var E=M.top+G.top-N.top;
}var O=D+B.offsetWidth;
var P=E+B.offsetHeight;
if(L){if(L==k||L==c){var Q=qx.bom.element.Overflow.getX(B);
if(Q==c||Q==h){O+=B.scrollWidth-B.offsetWidth+this.__dT(B,
b)+this.__dT(B,
g);
}var R=qx.bom.element.Overflow.getY(B);
if(R==c||R==h){P+=B.scrollHeight-B.offsetHeight+this.__dT(B,
a)+this.__dT(B,
e);
}}
switch(L){case k:D+=this.__dT(B,
p);
E+=this.__dT(B,
u);
O-=this.__dT(B,
y);
P-=this.__dT(B,
t);
case c:D-=B.scrollLeft;
E-=B.scrollTop;
O-=B.scrollLeft;
P-=B.scrollTop;
case z:D+=this.__dT(B,
b);
E+=this.__dT(B,
a);
O-=this.__dT(B,
g);
P-=this.__dT(B,
e);
break;
case w:D-=this.__dT(B,
j);
E-=this.__dT(B,
i);
O+=this.__dT(B,
v);
P+=this.__dT(B,
q);
break;
}}return {left:D,
top:E,
right:O,
bottom:P};
},
getLeft:function(B,
L){return this.get(B,
L).left;
},
getTop:function(B,
L){return this.get(B,
L).top;
},
getRight:function(B,
L){return this.get(B,
L).right;
},
getBottom:function(B,
L){return this.get(B,
L).bottom;
},
getRelative:function(S,
T,
U,
V){var W=this.get(S,
U);
var X=this.get(T,
V);
return {left:W.left-X.left,
top:W.top-X.top,
right:W.right-X.right,
bottom:W.bottom-X.bottom};
}}});
})();
(function(){var a="qx.event.handler.Appear",
b="__dY",
c="__dX",
d="disappear",
e="appear";
qx.Class.define(a,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(f){arguments.callee.base.call(this);
this.__dX=f;
this.__dY={};
qx.event.handler.Appear.__ea[this.$$hash]=this;
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{appear:true,
disappear:true},
TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:true,
__ea:{},
refresh:function(){var g=this.__ea;
for(var h in g){g[h].refresh();
}}},
members:{canHandleEvent:function(i,
j){},
registerEvent:function(i,
j,
k){var h=qx.core.ObjectRegistry.toHashCode(i);
var l=this.__dY;
if(l&&!l[h]){l[h]=i;
i.$$displayed=i.offsetWidth>0;
}},
unregisterEvent:function(i,
j,
k){var h=qx.core.ObjectRegistry.toHashCode(i);
var l=this.__dY;
if(!l){return;
}
if(l[h]){delete l[h];
i.$$displayed=null;
}},
refresh:function(){var l=this.__dY;
var m;
for(var h in l){m=l[h];
var n=m.offsetWidth>0;
if((!!m.$$displayed)!==n){m.$$displayed=n;
var o=qx.event.Registration.createEvent(n?e:d);
this.__dX.dispatchEvent(m,
o);
}}}},
destruct:function(){this._disposeFields(c,
b);
delete qx.event.handler.Appear.__ea[this.$$hash];
},
defer:function(p){qx.event.Registration.addHandler(p);
}});
})();
(function(){var a="abstract",
b="qx.event.dispatch.AbstractBubbling";
qx.Class.define(b,
{extend:qx.core.Object,
implement:qx.event.IEventDispatcher,
type:a,
construct:function(c){this._manager=c;
},
members:{_getParent:function(d){throw new Error("Missing implementation");
},
canDispatchEvent:function(d,
e,
f){return e.getBubbles();
},
dispatchEvent:function(d,
e,
f){var g=d;
var c=this._manager;
var h,
k;
var l;
var m,
n;
var o;
var p=[];
h=c.getListeners(d,
f,
true);
k=c.getListeners(d,
f,
false);
if(h){p.push(h);
}
if(k){p.push(k);
}var g=this._getParent(d);
var q=[];
var r=[];
var s=[];
var t=[];
while(g!=null){h=c.getListeners(g,
f,
true);
if(h){s.push(h);
t.push(g);
}k=c.getListeners(g,
f,
false);
if(k){q.push(k);
r.push(g);
}g=this._getParent(g);
}e.setEventPhase(qx.event.type.Event.CAPTURING_PHASE);
for(var u=s.length-1;u>=0;u--){o=t[u];
e.setCurrentTarget(o);
l=s[u];
for(var v=0,
w=l.length;v<w;v++){m=l[v];
n=m.context||o;
m.handler.call(n,
e);
}
if(e.getPropagationStopped()){return;
}}e.setEventPhase(qx.event.type.Event.AT_TARGET);
e.setCurrentTarget(d);
for(var u=0,
x=p.length;u<x;u++){l=p[u];
for(var v=0,
w=l.length;v<w;v++){m=l[v];
n=m.context||d;
m.handler.call(n,
e);
}
if(e.getPropagationStopped()){return;
}}e.setEventPhase(qx.event.type.Event.BUBBLING_PHASE);
for(var u=0,
x=q.length;u<x;u++){o=r[u];
e.setCurrentTarget(o);
l=q[u];
for(var v=0,
w=l.length;v<w;v++){m=l[v];
n=m.context||o;
m.handler.call(n,
e);
}
if(e.getPropagationStopped()){return;
}}}}});
})();
(function(){var a="qx.event.dispatch.DomBubbling";
qx.Class.define(a,
{extend:qx.event.dispatch.AbstractBubbling,
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL},
members:{_getParent:function(b){return b.parentNode;
},
canDispatchEvent:function(b,
c,
d){return b.nodeType!==undefined&&c.getBubbles();
}},
defer:function(e){qx.event.Registration.addDispatcher(e);
}});
})();
(function(){var a="keydown",
b="keypress",
c="qx.client",
d="NumLock",
e="keyup",
f="Enter",
g="0",
h="9",
i="-",
j="PageUp",
k="+",
l="PrintScreen",
m="gecko",
n="A",
o="Z",
p="Left",
q="F5",
r="Down",
s="Up",
t="F11",
u="F6",
v="useraction",
w="keyinput",
x="Insert",
y="F8",
z="End",
A="/",
B="Delete",
C="*",
D="F1",
E="F4",
F="Home",
G="F2",
H="F12",
I="PageDown",
J="F7",
K="F9",
L="F10",
M="Right",
N="F3",
O="text",
P="Escape",
Q="webkit",
R="__ed",
S="__ee",
T="5",
U="3",
V="Meta",
W="7",
X="CapsLock",
Y="__ec",
ba="input",
bb="Control",
bc="Space",
bd="Tab",
be="Shift",
bf="Pause",
bg="Unidentified",
bh="qx.event.handler.Keyboard",
bi="mshtml",
bj="mshtml|webkit",
bk="6",
bl="Apps",
bm="4",
bn="Alt",
bo="2",
bp="Scroll",
bq="1",
br="8",
bs="Win",
bt="__eb",
bu=",",
bv="Backspace";
qx.Class.define(bh,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(bw){arguments.callee.base.call(this);
this.__eb=bw;
this.__ec=bw.getWindow();
if(qx.core.Variant.isSet(c,
m)){this.__ed=this.__ec;
}else{this.__ed=this.__ec.document.documentElement;
}this.__ee={};
this._initKeyObserver();
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{keyup:1,
keydown:1,
keypress:1,
keyinput:1},
TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:true,
isValidKeyIdentifier:function(bx){if(this._identifierToKeyCodeMap[bx]){return true;
}
if(bx.length!=1){return false;
}
if(bx>=g&&bx<=h){return true;
}
if(bx>=n&&bx<=o){return true;
}
switch(bx){case k:case i:case C:case A:return true;
default:return false;
}}},
members:{__ef:null,
__eb:null,
__ec:null,
__ed:null,
__ee:null,
canHandleEvent:function(by,
bz){},
registerEvent:function(by,
bz,
bA){},
unregisterEvent:function(by,
bz,
bA){},
_fireInputEvent:function(bB,
bC){var bD=this.__eb.getHandler(qx.event.handler.Focus);
var by=bD.getActive();
if(!by||by.offsetWidth==0){by=bD.getFocus();
}if(by&&by.offsetWidth!=0){var bE=qx.event.Registration.createEvent(w,
qx.event.type.KeyInput,
[bB,
by,
bC]);
this.__eb.dispatchEvent(by,
bE);
}if(this.__ec){qx.event.Registration.fireEvent(this.__ec,
v,
qx.event.type.Data,
[w]);
}},
_fireSequenceEvent:function(bB,
bz,
bx){var bD=this.__eb.getHandler(qx.event.handler.Focus);
var by=bD.getActive();
if(!by||by.offsetWidth==0){by=bD.getFocus();
}if(!by||by.offsetWidth==0){by=this.__eb.getWindow().document.body;
}var bE=qx.event.Registration.createEvent(bz,
qx.event.type.KeySequence,
[bB,
by,
bx]);
this.__eb.dispatchEvent(by,
bE);
if(qx.core.Variant.isSet(c,
bj)){if(bz==a&&bE.getDefaultPrevented()){var bF=bB.keyCode;
if(!(this._isNonPrintableKeyCode(bF)||bF==8||bF==9)){this._fireSequenceEvent(bB,
b,
bx);
}}}if(this.__ec){qx.event.Registration.fireEvent(this.__ec,
v,
qx.event.type.Data,
[bz]);
}},
_initKeyObserver:function(){this.__ef=qx.lang.Function.listener(this.__eh,
this);
this.__eg=qx.lang.Function.listener(this.__ei,
this);
var bG=qx.bom.Event;
bG.addNativeListener(this.__ed,
e,
this.__ef);
bG.addNativeListener(this.__ed,
a,
this.__ef);
bG.addNativeListener(this.__ed,
b,
this.__eg);
},
_stopKeyObserver:function(){var bG=qx.bom.Event;
bG.removeNativeListener(this.__ed,
e,
this.__ef);
bG.removeNativeListener(this.__ed,
a,
this.__ef);
bG.removeNativeListener(this.__ed,
b,
this.__eg);
},
__eh:qx.core.Variant.select(c,
{"mshtml":function(bB){bB=window.event||bB;
var bF=bB.keyCode;
var bC=0;
var bz=bB.type;
if(!(this.__ee[bF]==a&&bz==a)){this._idealKeyHandler(bF,
bC,
bz,
bB);
}if(bz==a){if(this._isNonPrintableKeyCode(bF)||bF==8||bF==9){this._idealKeyHandler(bF,
bC,
b,
bB);
}}this.__ee[bF]=bz;
},
"gecko":function(bB){var bF=this._keyCodeFix[bB.keyCode]||bB.keyCode;
var bC=bB.charCode;
var bz=bB.type;
if(qx.bom.client.Platform.WIN){var bx=bF?this._keyCodeToIdentifier(bF):this._charCodeToIdentifier(bC);
if(!(this.__ee[bx]==a&&bz==a)){this._idealKeyHandler(bF,
bC,
bz,
bB);
}this.__ee[bx]=bz;
}else{this._idealKeyHandler(bF,
bC,
bz,
bB);
}if(bz===a&&(bF==33||bF==34||bF==38||bF==40)){var by=bB.target;
if(by.nodeType==1&&by.type==O&&by.tagName.toLowerCase()===ba){this._idealKeyHandler(bF,
bC,
b,
bB);
}}},
"webkit":function(bB){var bF=0;
var bC=0;
var bz=bB.type;
if(qx.bom.client.Engine.VERSION<525.13){if(bz==e||bz==a){bF=this._charCode2KeyCode[bB.charCode]||bB.keyCode;
}else{if(this._charCode2KeyCode[bB.charCode]){bF=this._charCode2KeyCode[bB.charCode];
}else{bC=bB.charCode;
}}this._idealKeyHandler(bF,
bC,
bz,
bB);
}else{bF=bB.keyCode;
if(!(this.__ee[bF]==a&&bz==a)){this._idealKeyHandler(bF,
bC,
bz,
bB);
}if(bz==a){if(this._isNonPrintableKeyCode(bF)||bF==8||bF==9){this._idealKeyHandler(bF,
bC,
b,
bB);
}}this.__ee[bF]=bz;
}},
"opera":function(bB){this._idealKeyHandler(bB.keyCode,
0,
bB.type,
bB);
}}),
__ei:qx.core.Variant.select(c,
{"mshtml":function(bB){bB=window.event||bB;
if(this._charCode2KeyCode[bB.keyCode]){this._idealKeyHandler(this._charCode2KeyCode[bB.keyCode],
0,
bB.type,
bB);
}else{this._idealKeyHandler(0,
bB.keyCode,
bB.type,
bB);
}},
"gecko":function(bB){var bF=this._keyCodeFix[bB.keyCode]||bB.keyCode;
var bC=bB.charCode;
var bz=bB.type;
this._idealKeyHandler(bF,
bC,
bz,
bB);
},
"webkit":function(bB){if(qx.bom.client.Engine.VERSION<525.13){var bF=0;
var bC=0;
var bz=bB.type;
if(bz==e||bz==a){bF=this._charCode2KeyCode[bB.charCode]||bB.keyCode;
}else{if(this._charCode2KeyCode[bB.charCode]){bF=this._charCode2KeyCode[bB.charCode];
}else{bC=bB.charCode;
}}this._idealKeyHandler(bF,
bC,
bz,
bB);
}else{if(this._charCode2KeyCode[bB.keyCode]){this._idealKeyHandler(this._charCode2KeyCode[bB.keyCode],
0,
bB.type,
bB);
}else{this._idealKeyHandler(0,
bB.keyCode,
bB.type,
bB);
}}},
"opera":function(bB){if(this._keyCodeToIdentifierMap[bB.keyCode]){this._idealKeyHandler(bB.keyCode,
0,
bB.type,
bB);
}else{this._idealKeyHandler(0,
bB.keyCode,
bB.type,
bB);
}}}),
_idealKeyHandler:function(bF,
bC,
bH,
bB){if(!bF&&!bC){return;
}var bx;
if(bF){bx=this._keyCodeToIdentifier(bF);
this._fireSequenceEvent(bB,
bH,
bx);
}else{bx=this._charCodeToIdentifier(bC);
this._fireSequenceEvent(bB,
b,
bx);
this._fireInputEvent(bB,
bC);
}},
_specialCharCodeMap:{8:bv,
9:bd,
13:f,
27:P,
32:bc},
_keyCodeToIdentifierMap:{16:be,
17:bb,
18:bn,
20:X,
224:V,
37:p,
38:s,
39:M,
40:r,
33:j,
34:I,
35:z,
36:F,
45:x,
46:B,
112:D,
113:G,
114:N,
115:E,
116:q,
117:u,
118:J,
119:y,
120:K,
121:L,
122:t,
123:H,
144:d,
44:l,
145:bp,
19:bf,
91:bs,
93:bl},
_numpadToCharCode:{96:g.charCodeAt(0),
97:bq.charCodeAt(0),
98:bo.charCodeAt(0),
99:U.charCodeAt(0),
100:bm.charCodeAt(0),
101:T.charCodeAt(0),
102:bk.charCodeAt(0),
103:W.charCodeAt(0),
104:br.charCodeAt(0),
105:h.charCodeAt(0),
106:C.charCodeAt(0),
107:k.charCodeAt(0),
109:i.charCodeAt(0),
110:bu.charCodeAt(0),
111:A.charCodeAt(0)},
_charCodeA:n.charCodeAt(0),
_charCodeZ:o.charCodeAt(0),
_charCode0:g.charCodeAt(0),
_charCode9:h.charCodeAt(0),
_isNonPrintableKeyCode:function(bF){return this._keyCodeToIdentifierMap[bF]?true:false;
},
_isIdentifiableKeyCode:function(bF){if(bF>=this._charCodeA&&bF<=this._charCodeZ){return true;
}if(bF>=this._charCode0&&bF<=this._charCode9){return true;
}if(this._specialCharCodeMap[bF]){return true;
}if(this._numpadToCharCode[bF]){return true;
}if(this._isNonPrintableKeyCode(bF)){return true;
}return false;
},
_keyCodeToIdentifier:function(bF){if(this._isIdentifiableKeyCode(bF)){var bI=this._numpadToCharCode[bF];
if(bI){return String.fromCharCode(bI);
}return (this._keyCodeToIdentifierMap[bF]||this._specialCharCodeMap[bF]||String.fromCharCode(bF));
}else{return bg;
}},
_charCodeToIdentifier:function(bC){return this._specialCharCodeMap[bC]||String.fromCharCode(bC).toUpperCase();
},
_identifierToKeyCode:function(bx){return qx.event.handler.Keyboard._identifierToKeyCodeMap[bx]||bx.charCodeAt(0);
}},
destruct:function(){this._stopKeyObserver();
this._disposeFields(bt,
Y,
R,
S);
},
defer:function(bJ,
bK,
bL){qx.event.Registration.addHandler(bJ);
if(!bJ._identifierToKeyCodeMap){bJ._identifierToKeyCodeMap={};
for(var bM in bK._keyCodeToIdentifierMap){bJ._identifierToKeyCodeMap[bK._keyCodeToIdentifierMap[bM]]=parseInt(bM,
10);
}
for(var bM in bK._specialCharCodeMap){bJ._identifierToKeyCodeMap[bK._specialCharCodeMap[bM]]=parseInt(bM,
10);
}}
if(qx.core.Variant.isSet(c,
bi)){bK._charCode2KeyCode={13:13,
27:27};
}else if(qx.core.Variant.isSet(c,
m)){bK._keyCodeFix={12:bK._identifierToKeyCode(d)};
}else if(qx.core.Variant.isSet(c,
Q)){if(qx.bom.client.Engine.VERSION<525.13){bK._charCode2KeyCode={63289:bK._identifierToKeyCode(d),
63276:bK._identifierToKeyCode(j),
63277:bK._identifierToKeyCode(I),
63275:bK._identifierToKeyCode(z),
63273:bK._identifierToKeyCode(F),
63234:bK._identifierToKeyCode(p),
63232:bK._identifierToKeyCode(s),
63235:bK._identifierToKeyCode(M),
63233:bK._identifierToKeyCode(r),
63272:bK._identifierToKeyCode(B),
63302:bK._identifierToKeyCode(x),
63236:bK._identifierToKeyCode(D),
63237:bK._identifierToKeyCode(G),
63238:bK._identifierToKeyCode(N),
63239:bK._identifierToKeyCode(E),
63240:bK._identifierToKeyCode(q),
63241:bK._identifierToKeyCode(u),
63242:bK._identifierToKeyCode(J),
63243:bK._identifierToKeyCode(y),
63244:bK._identifierToKeyCode(K),
63245:bK._identifierToKeyCode(L),
63246:bK._identifierToKeyCode(t),
63247:bK._identifierToKeyCode(H),
63248:bK._identifierToKeyCode(l),
3:bK._identifierToKeyCode(f),
12:bK._identifierToKeyCode(d),
13:bK._identifierToKeyCode(f)};
}else{bK._charCode2KeyCode={13:13,
27:27};
}}}});
})();
(function(){var a="qx.client",
b="mouseup",
c="mousedown",
d="click",
e="contextmenu",
f="dblclick",
g="mousewheel",
h="mouseover",
i="mouseout",
j="DOMMouseScroll",
k="mousemove",
l="mshtml|webkit|opera",
m="useraction",
n="__ej",
o="__ek",
p="__el",
q="qx.event.handler.Mouse",
r="gecko|webkit",
s="__eq";
qx.Class.define(q,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(t){arguments.callee.base.call(this);
this.__ej=t;
this.__ek=t.getWindow();
this.__el=this.__ek.document.documentElement;
this._initButtonObserver();
this._initMoveObserver();
this._initWheelObserver();
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{mousemove:1,
mouseover:1,
mouseout:1,
mousedown:1,
mouseup:1,
click:1,
dblclick:1,
contextmenu:1,
mousewheel:1},
TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:true},
members:{__em:null,
__en:null,
__eo:null,
__ep:null,
__eq:null,
__ej:null,
__ek:null,
__el:null,
canHandleEvent:function(u,
v){},
registerEvent:function(u,
v,
w){},
unregisterEvent:function(u,
v,
w){},
__er:function(x,
v,
u){if(!u){u=x.target||x.srcElement;
}qx.event.Registration.fireEvent(u,
v||x.type,
qx.event.type.Mouse,
[x,
u,
null,
true,
true]);
qx.event.Registration.fireEvent(this.__ek,
m,
qx.event.type.Data,
[v||x.type]);
},
_initButtonObserver:function(){this.__em=qx.lang.Function.listener(this._onButtonEvent,
this);
var y=qx.bom.Event;
y.addNativeListener(this.__el,
c,
this.__em);
y.addNativeListener(this.__el,
b,
this.__em);
y.addNativeListener(this.__el,
d,
this.__em);
y.addNativeListener(this.__el,
f,
this.__em);
y.addNativeListener(this.__el,
e,
this.__em);
},
_initMoveObserver:function(){this.__en=qx.lang.Function.listener(this._onMoveEvent,
this);
var y=qx.bom.Event;
y.addNativeListener(this.__el,
k,
this.__en);
y.addNativeListener(this.__el,
h,
this.__en);
y.addNativeListener(this.__el,
i,
this.__en);
},
_initWheelObserver:function(){this.__eo=qx.lang.Function.listener(this._onWheelEvent,
this);
var y=qx.bom.Event;
var v=qx.core.Variant.isSet(a,
l)?g:j;
y.addNativeListener(this.__el,
v,
this.__eo);
},
_stopButtonObserver:function(){var y=qx.bom.Event;
y.removeNativeListener(this.__el,
c,
this.__em);
y.removeNativeListener(this.__el,
b,
this.__em);
y.removeNativeListener(this.__el,
d,
this.__em);
y.removeNativeListener(this.__el,
f,
this.__em);
y.removeNativeListener(this.__el,
e,
this.__em);
},
_stopMoveObserver:function(){var y=qx.bom.Event;
y.removeNativeListener(this.__el,
k,
this.__en);
y.removeNativeListener(this.__el,
h,
this.__en);
y.removeNativeListener(this.__el,
i,
this.__en);
},
_stopWheelObserver:function(){var y=qx.bom.Event;
var v=qx.core.Variant.isSet(a,
l)?g:j;
y.removeNativeListener(this.__el,
v,
this.__eo);
},
_onMoveEvent:function(x){this.__er(x);
},
_onButtonEvent:function(x){var v=x.type;
var u=x.target||x.srcElement;
if(qx.core.Variant.isSet(a,
r)){if(u&&u.nodeType==3){u=u.parentNode;
}}
if(this.__es){this.__es(x,
v,
u);
}
if(this.__eu){this.__eu(x,
v,
u);
}this.__er(x,
v,
u);
if(this.__et){this.__et(x,
v,
u);
}
if(this.__ev){this.__ev(x,
v,
u);
}this.__ep=v;
},
_onWheelEvent:function(x){this.__er(x,
g);
},
__es:qx.core.Variant.select(a,
{"webkit":function(x,
v,
u){if(v==e){this.__er(x,
c,
u);
this.__er(x,
b,
u);
}},
"default":null}),
__et:qx.core.Variant.select(a,
{"opera":function(x,
v,
u){if(v==b&&x.button==2){this.__er(x,
e,
u);
}},
"default":null}),
__eu:qx.core.Variant.select(a,
{"mshtml":function(x,
v,
u){if(v==b&&this.__ep==d){this.__er(x,
c,
u);
}else if(v==f){this.__er(x,
d,
u);
}},
"default":null}),
__ev:qx.core.Variant.select(a,
{"mshtml":null,
"default":function(x,
v,
u){switch(v){case c:this.__eq=u;
break;
case b:if(u!==this.__eq){var z=qx.dom.Hierarchy.getCommonParent(u,
this.__eq);
this.__er(x,
d,
z);
}}}})},
destruct:function(){this._stopButtonObserver();
this._stopMoveObserver();
this._stopWheelObserver();
this._disposeFields(n,
o,
p,
s);
},
defer:function(A){qx.event.Registration.addHandler(A);
}});
})();
(function(){var a="qx.event.handler.Capture";
qx.Class.define(a,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{capture:true,
losecapture:true},
TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:true},
members:{canHandleEvent:function(b,
c){},
registerEvent:function(b,
c,
d){},
unregisterEvent:function(b,
c,
d){}},
defer:function(e){qx.event.Registration.addHandler(e);
}});
})();
(function(){var a="alias",
b="copy",
c="blur",
d="mouseout",
f="keydown",
g="Ctrl",
h="Shift",
i="mousemove",
j="move",
k="mouseover",
l="Alt",
m="keyup",
n="mouseup",
o="dragend",
p="on",
q="mousedown",
r="qxDraggable",
s="__eO",
t="drag",
u="__eK",
v="__eA",
w="__eC",
x="__ex",
y="drop",
z="qxDroppable",
A="qx.event.handler.DragDrop",
B="__eD",
C="__ew",
D="droprequest",
E="dragstart",
F="dragchange",
G="__eB",
H="dragleave",
I="dragover";
qx.Class.define(A,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(J){arguments.callee.base.call(this);
this.__ew=J;
this.__ex=J.getWindow().document.documentElement;
this.__ew.addListener(this.__ex,
q,
this._onMouseDown,
this);
this.__ez();
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{dragstart:1,
dragend:1,
dragover:1,
dragleave:1,
drop:1,
drag:1,
dragchange:1,
droprequest:1},
IGNORE_CAN_HANDLE:true},
members:{canHandleEvent:function(K,
L){},
registerEvent:function(K,
L,
M){},
unregisterEvent:function(K,
L,
M){},
addType:function(L){this.__eA[L]=true;
},
addAction:function(N){this.__eB[N]=true;
},
supportsType:function(L){return !!this.__eA[L];
},
supportsAction:function(L){return !!this.__eB[L];
},
getData:function(L){if(!this.__eN||!this.__eO){throw new Error("This method must not be used outside the drop event listener!");
}
if(!this.__eA[L]){throw new Error("Unsupported data type: "+L+"!");
}
if(!this.__eD[L]){this.__ey=L;
this.__eG(D,
this.__eK,
false);
}
if(!this.__eD[L]){throw new Error("Please use a dragrequest listener to the drag target to fill the manager with data!");
}return this.__eD[L]||null;
},
getCurrentAction:function(){return this.__eF;
},
addData:function(L,
O){this.__eD[L]=O;
},
getCurrentType:function(){return this.__ey;
},
__ez:function(){this.__eA={};
this.__eB={};
this.__eC={};
this.__eD={};
},
__eE:function(){var P=this.__eB;
var Q=this.__eC;
var R=null;
if(this.__eN){if(Q.Shift&&Q.Ctrl&&P.alias){R=a;
}else if(Q.Shift&&Q.Alt&&P.copy){R=b;
}else if(Q.Shift&&P.move){R=j;
}else if(Q.Alt&&P.alias){R=a;
}else if(Q.Ctrl&&P.copy){R=b;
}else if(P.move){R=j;
}else if(P.copy){R=b;
}else if(P.alias){R=a;
}}
if(R!=this.__eF){this.__eF=R;
this.__eG(F,
this.__eK,
false);
}},
__eG:function(L,
K,
S,
T){var U=qx.event.Registration;
var V=U.createEvent(L,
qx.event.type.Drag,
[S,
T]);
if(this.__eK!==this.__eO){if(K==this.__eK){V.setRelatedTarget(this.__eO);
}else{V.setRelatedTarget(this.__eK);
}}return U.dispatchEvent(K,
V);
},
__eH:function(W){while(W&&W.nodeType==1){if(W.getAttribute(r)==p){return W;
}W=W.parentNode;
}return null;
},
__eI:function(W){while(W&&W.nodeType==1){if(W.getAttribute(z)==p){return W;
}W=W.parentNode;
}return null;
},
__eJ:function(){this.__eK=null;
this.__ew.removeListener(this.__ex,
i,
this._onMouseMove,
this,
true);
this.__ew.removeListener(this.__ex,
n,
this._onMouseUp,
this,
true);
qx.event.Registration.removeListener(window,
c,
this._onWindowBlur,
this);
this.__ez();
},
__eL:function(){if(this.__eM){this.__ew.removeListener(this.__ex,
k,
this._onMouseOver,
this,
true);
this.__ew.removeListener(this.__ex,
d,
this._onMouseOut,
this,
true);
this.__ew.removeListener(this.__ex,
f,
this._onKeyDown,
this,
true);
this.__ew.removeListener(this.__ex,
m,
this._onKeyUp,
this,
true);
this.__eG(o,
this.__eK,
false);
this.__eM=false;
}this.__eN=false;
this.__eO=null;
this.__eJ();
},
__eN:false,
_onWindowBlur:function(X){this.__eL();
},
_onKeyDown:function(X){var Y=X.getKeyIdentifier();
switch(Y){case l:case g:case h:if(!this.__eC[Y]){this.__eC[Y]=true;
this.__eE();
}}},
_onKeyUp:function(X){var Y=X.getKeyIdentifier();
switch(Y){case l:case g:case h:if(this.__eC[Y]){this.__eC[Y]=false;
this.__eE();
}}},
_onMouseDown:function(X){if(this.__eM){return;
}var ba=this.__eH(X.getTarget());
if(ba){this.__eP=X.getDocumentLeft();
this.__eQ=X.getDocumentTop();
this.__eK=ba;
this.__ew.addListener(this.__ex,
i,
this._onMouseMove,
this,
true);
this.__ew.addListener(this.__ex,
n,
this._onMouseUp,
this,
true);
qx.event.Registration.addListener(window,
c,
this._onWindowBlur,
this);
}},
_onMouseUp:function(X){if(this.__eN){this.__eG(y,
this.__eO,
false,
X);
}if(this.__eM){X.stopPropagation();
}this.__eL();
},
_onMouseMove:function(X){if(this.__eM){if(!this.__eG(t,
this.__eK,
true,
X)){this.__eL();
}}else{if(Math.abs(X.getDocumentLeft()-this.__eP)>3||Math.abs(X.getDocumentTop()-this.__eQ)>3){if(this.__eG(E,
this.__eK,
true,
X)){this.__eM=true;
this.__ew.addListener(this.__ex,
k,
this._onMouseOver,
this,
true);
this.__ew.addListener(this.__ex,
d,
this._onMouseOut,
this,
true);
this.__ew.addListener(this.__ex,
f,
this._onKeyDown,
this,
true);
this.__ew.addListener(this.__ex,
m,
this._onKeyUp,
this,
true);
var Q=this.__eC;
Q.Ctrl=X.isCtrlPressed();
Q.Shift=X.isShiftPressed();
Q.Alt=X.isAltPressed();
this.__eE();
}else{this.__eG(o,
this.__eK,
false);
this.__eJ();
}}}},
_onMouseOver:function(X){var K=X.getTarget();
var bb=this.__eI(K);
if(bb&&bb!=this.__eO){this.__eN=this.__eG(I,
bb,
true,
X);
this.__eO=bb;
this.__eE();
}},
_onMouseOut:function(X){var K=X.getTarget();
var bb=this.__eI(K);
if(bb&&bb==this.__eO){this.__eG(H,
this.__eO,
false,
X);
this.__eO=null;
this.__eN=false;
this.__eE();
}}},
destruct:function(){this._disposeFields(u,
s,
C,
x,
v,
G,
w,
B);
},
defer:function(bc){qx.event.Registration.addHandler(bc);
}});
})();
(function(){var a="-",
b="qx.event.handler.Element",
c="_manager",
d="_registeredEvents";
qx.Class.define(b,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(e){arguments.callee.base.call(this);
this._manager=e;
this._registeredEvents={};
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{abort:true,
scroll:true,
select:true,
reset:true,
submit:true},
TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:true},
members:{canHandleEvent:function(f,
g){},
registerEvent:function(f,
g,
h){var i=qx.core.ObjectRegistry.toHashCode(f);
var j=i+a+g;
var k=qx.lang.Function.listener(this._onNative,
this,
j);
qx.bom.Event.addNativeListener(f,
g,
k);
this._registeredEvents[j]={element:f,
type:g,
listener:k};
},
unregisterEvent:function(f,
g,
h){var l=this._registeredEvents;
if(!l){return;
}var i=qx.core.ObjectRegistry.toHashCode(f);
var j=i+a+g;
var m=this._registeredEvents[j];
qx.bom.Event.removeNativeListener(f,
g,
m.listener);
delete this._registeredEvents[j];
},
_onNative:function(n,
j){var l=this._registeredEvents;
if(!l){return;
}var m=l[j];
qx.event.Registration.fireNonBubblingEvent(m.element,
m.type,
qx.event.type.Native,
[n]);
}},
destruct:function(){var o;
var l=this._registeredEvents;
for(var p in l){o=l[p];
qx.bom.Event.removeNativeListener(o.element,
o.type,
o.listener);
}this._disposeFields(c,
d);
},
defer:function(q){qx.event.Registration.addHandler(q);
}});
})();
(function(){var a="",
b=">",
c="<",
d=" ",
e="='",
f="http://www.w3.org/1999/xhtml",
g="qx.bom.Element",
h="div",
i="' ",
j="></";
qx.Class.define(g,
{statics:{__eR:{"onload":true,
"onpropertychange":true,
"oninput":true,
"onchange":true,
"name":true,
"type":true,
"checked":true,
"disabled":true},
create:function(k,
l,
m){if(!m){m=window;
}
if(!k){throw new Error("The tag name is missing!");
}var n=this.__eR;
var o=a;
for(var p in l){if(n[p]){o+=p+e+l[p]+i;
}}var q;
if(o!=a){if(qx.bom.client.Engine.MSHTML){q=m.document.createElement(c+k+d+o+b);
}else{var r=m.document.createElement(h);
r.innerHTML=c+k+d+o+j+k+b;
q=r.firstChild;
}}else{if(m.document.createElementNS){q=m.document.createElementNS(f,
k);
}else{q=m.document.createElement(k);
}}
for(var p in l){if(!n[p]){qx.bom.element.Attribute.set(q,
p,
l[p]);
}}return q;
},
empty:function(q){return q.innerHTML=a;
},
addListener:function(q,
s,
t,
u,
v){return qx.event.Registration.addListener(q,
s,
t,
u,
v);
},
removeListener:function(q,
s,
t,
u,
v){return qx.event.Registration.removeListener(q,
s,
t,
u,
v);
},
removeListenerById:function(w,
x){qx.event.Registration.removeListenerById(w,
x);
},
hasListener:function(q,
s,
v){return qx.event.Registration.hasListener(q,
s,
v);
},
focus:function(q){qx.event.Registration.getManager(q).getHandler(qx.event.handler.Focus).focus(q);
},
blur:function(q){qx.event.Registration.getManager(q).getHandler(qx.event.handler.Focus).blur(q);
},
activate:function(q){qx.event.Registration.getManager(q).getHandler(qx.event.handler.Focus).activate(q);
},
deactivate:function(q){qx.event.Registration.getManager(q).getHandler(qx.event.handler.Focus).deactivate(q);
},
capture:function(q){qx.event.Registration.getManager(q).getDispatcher(qx.event.dispatch.MouseCapture).activateCapture(q);
},
releaseCapture:function(q){qx.event.Registration.getManager(q).getDispatcher(qx.event.dispatch.MouseCapture).releaseCapture(q);
}}});
})();
(function(){var a="qx.client",
b="blur",
c="focus",
d="mousedown",
f="on",
g="mouseup",
h="DOMFocusOut",
i="DOMFocusIn",
j="selectstart",
k="onmousedown",
l="onfocusout",
m="onfocusin",
n="onmouseup",
o="onselectstart",
p="draggesture",
q="_document",
r="_root",
s="qx.event.handler.Focus",
t="_applyFocus",
u="_window",
v="deactivate",
w="_applyActive",
x="focusin",
y="qxSelectable",
z="tabIndex",
A="off",
B="_body",
C="activate",
D="focusout",
E="__mouseActive",
F="_manager",
G="qxKeepFocus",
H="qxKeepActive";
qx.Class.define(s,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(I){arguments.callee.base.call(this);
this._manager=I;
this._window=I.getWindow();
this._document=this._window.document;
this._root=this._document.documentElement;
this._body=this._document.body;
this._initObserver();
},
properties:{active:{apply:w,
nullable:true},
focus:{apply:t,
nullable:true}},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{focus:1,
blur:1,
focusin:1,
focusout:1,
activate:1,
deactivate:1},
IGNORE_CAN_HANDLE:true,
FOCUSABLE_ELEMENTS:qx.core.Variant.select("qx.client",
{"mshtml|gecko":{a:1,
body:1,
button:1,
frame:1,
iframe:1,
img:1,
input:1,
object:1,
select:1,
textarea:1},
"opera|webkit":{button:1,
input:1,
select:1,
textarea:1}})},
members:{canHandleEvent:function(J,
K){},
registerEvent:function(J,
K,
L){},
unregisterEvent:function(J,
K,
L){},
focus:function(M){try{M.focus();
}catch(ex){}this.setFocus(M);
this.setActive(M);
},
activate:function(M){this.setActive(M);
},
blur:function(M){try{M.blur();
}catch(ex){}
if(this.getActive()===M){this.resetActive();
}
if(this.getFocus()===M){this.resetFocus();
}},
deactivate:function(M){if(this.getActive()===M){this.resetActive();
}},
tryActivate:function(M){var N=this.__fq(M);
if(N){this.setActive(N);
}},
__eS:function(J,
O,
K,
P){var Q=qx.event.Registration;
var R=Q.createEvent(K,
qx.event.type.Focus,
[J,
O,
P]);
Q.dispatchEvent(J,
R);
},
_windowFocused:true,
__eT:function(){if(this._windowFocused){this._windowFocused=false;
this.__eS(this._window,
null,
b,
false);
}},
__eU:function(){if(!this._windowFocused){this._windowFocused=true;
this.__eS(this._window,
null,
c,
false);
}},
_initObserver:qx.core.Variant.select(a,
{"gecko":function(){this.__eV=qx.lang.Function.listener(this.__fl,
this);
this.__eW=qx.lang.Function.listener(this.__fm,
this);
this.__eX=qx.lang.Function.listener(this.__fk,
this);
this.__eY=qx.lang.Function.listener(this.__fj,
this);
this.__fa=qx.lang.Function.listener(this.__fe,
this);
this._document.addEventListener(d,
this.__eV,
true);
this._document.addEventListener(g,
this.__eW,
true);
this._window.addEventListener(c,
this.__eX,
true);
this._window.addEventListener(b,
this.__eY,
true);
this._window.addEventListener(p,
this.__fa,
true);
},
"mshtml":function(){this.__eV=qx.lang.Function.listener(this.__fl,
this);
this.__eW=qx.lang.Function.listener(this.__fm,
this);
this.__fb=qx.lang.Function.listener(this.__ff,
this);
this.__fc=qx.lang.Function.listener(this.__fg,
this);
this.__fd=qx.lang.Function.listener(this.__fn,
this);
this._document.attachEvent(k,
this.__eV);
this._document.attachEvent(n,
this.__eW);
this._document.attachEvent(m,
this.__fb);
this._document.attachEvent(l,
this.__fc);
this._document.attachEvent(o,
this.__fd);
},
"webkit":function(){this.__eV=qx.lang.Function.listener(this.__fl,
this);
this.__eW=qx.lang.Function.listener(this.__fm,
this);
this.__fc=qx.lang.Function.listener(this.__fg,
this);
this.__eX=qx.lang.Function.listener(this.__fk,
this);
this.__eY=qx.lang.Function.listener(this.__fj,
this);
this.__fd=qx.lang.Function.listener(this.__fn,
this);
this._document.addEventListener(d,
this.__eV,
true);
this._document.addEventListener(g,
this.__eW,
true);
this._document.addEventListener(j,
this.__fd,
false);
this._window.addEventListener(h,
this.__fc,
true);
this._window.addEventListener(c,
this.__eX,
true);
this._window.addEventListener(b,
this.__eY,
true);
},
"opera":function(){this.__eV=qx.lang.Function.listener(this.__fl,
this);
this.__eW=qx.lang.Function.listener(this.__fm,
this);
this.__fb=qx.lang.Function.listener(this.__ff,
this);
this.__fc=qx.lang.Function.listener(this.__fg,
this);
this._document.addEventListener(d,
this.__eV,
true);
this._document.addEventListener(g,
this.__eW,
true);
this._window.addEventListener(i,
this.__fb,
true);
this._window.addEventListener(h,
this.__fc,
true);
}}),
_stopObserver:qx.core.Variant.select(a,
{"gecko":function(){this._document.removeEventListener(d,
this.__eV,
true);
this._document.removeEventListener(g,
this.__eW,
true);
this._window.removeEventListener(c,
this.__eX,
true);
this._window.removeEventListener(b,
this.__eY,
true);
this._window.removeEventListener(p,
this.__fa,
true);
},
"mshtml":function(){this._document.detachEvent(k,
this.__eV);
this._document.detachEvent(n,
this.__eW);
this._document.detachEvent(m,
this.__fb);
this._document.detachEvent(l,
this.__fc);
this._document.detachEvent(o,
this.__fd);
},
"webkit":function(){this._document.removeEventListener(d,
this.__eV,
true);
this._document.removeEventListener(j,
this.__fd,
false);
this._window.removeEventListener(i,
this.__fb,
true);
this._window.removeEventListener(h,
this.__fc,
true);
this._window.removeEventListener(c,
this.__eX,
true);
this._window.removeEventListener(b,
this.__eY,
true);
},
"opera":function(){this._document.removeEventListener(d,
this.__eV,
true);
this._window.removeEventListener(i,
this.__fb,
true);
this._window.removeEventListener(h,
this.__fc,
true);
this._window.removeEventListener(c,
this.__eX,
true);
this._window.removeEventListener(b,
this.__eY,
true);
}}),
__fe:qx.core.Variant.select(a,
{"gecko":function(S){if(!this.__fr(S.target)){qx.bom.Event.preventDefault(S);
}},
"default":null}),
__ff:qx.core.Variant.select(a,
{"mshtml":function(S){this.__eU();
var J=S.srcElement;
var T=this.__fp(J);
if(T){this.setFocus(T);
}this.tryActivate(J);
},
"opera":function(S){var J=S.target;
if(J==this._document||J==this._window){this.__eU();
if(this.__fh){this.setFocus(this.__fh);
delete this.__fh;
}
if(this.__fi){this.setActive(this.__fi);
delete this.__fi;
}}else{this.setFocus(J);
this.tryActivate(J);
if(!this.__fr(J)){J.selectionStart=0;
J.selectionEnd=0;
}}},
"default":null}),
__fg:qx.core.Variant.select(a,
{"mshtml":function(S){if(!S.toElement){this.__eT();
this.resetFocus();
this.resetActive();
}},
"webkit":function(S){var J=S.target;
if(J===this.getFocus()){this.resetFocus();
}
if(J===this.getActive()){this.resetActive();
}},
"opera":function(S){var J=S.target;
if(J==this._document){this.__eT();
this.__fh=this.getFocus();
this.__fi=this.getActive();
this.resetFocus();
this.resetActive();
}else{if(J===this.getFocus()){this.resetFocus();
}
if(J===this.getActive()){this.resetActive();
}}},
"default":null}),
__fj:qx.core.Variant.select(a,
{"gecko":function(S){if(S.target===this._window||S.target===this._document){this.__eT();
this.resetActive();
this.resetFocus();
}},
"webkit":function(S){if(S.target===this._window||S.target===this._document){this.__eT();
this.__fh=this.getFocus();
this.__fi=this.getActive();
this.resetActive();
this.resetFocus();
}},
"default":null}),
__fk:qx.core.Variant.select(a,
{"gecko":function(S){var J=S.target;
if(J===this._window||J===this._document){this.__eU();
J=this._body;
}this.setFocus(J);
this.tryActivate(J);
},
"webkit":function(S){var J=S.target;
if(J===this._window||J===this._document){this.__eU();
if(this.__fh){this.setFocus(this.__fh);
delete this.__fh;
}
if(this.__fi){this.setActive(this.__fi);
delete this.__fi;
}}else{this.setFocus(J);
this.tryActivate(J);
}},
"default":null}),
__fl:qx.core.Variant.select(a,
{"gecko":function(S){var J=S.target;
var T=this.__fp(J);
var U=this.__fr(J);
if(!U){qx.bom.Event.preventDefault(S);
if(T){T.focus();
}}else if(!T){qx.bom.Event.preventDefault(S);
}},
"mshtml":function(S){var J=S.srcElement;
var T=this.__fp(J);
if(T){if(!this.__fr(J)){J.unselectable=f;
document.selection.empty();
T.focus();
}}else{qx.bom.Event.preventDefault(S);
if(!this.__fr(J)){J.unselectable=f;
}}},
"webkit":function(S){var J=S.target;
var T=this.__fp(J);
if(T){this.setFocus(T);
}else{qx.bom.Event.preventDefault(S);
}},
"opera":function(S){var J=S.target;
var T=this.__fp(J);
if(!this.__fr(J)){qx.bom.Event.preventDefault(S);
if(T){var V=this.getFocus();
if(V&&V.selectionEnd){V.selectionStart=0;
V.selectionEnd=0;
V.blur();
}if(T){this.setFocus(T);
}}}else if(T){this.setFocus(T);
}},
"default":null}),
__fm:qx.core.Variant.select(a,
{"mshtml":function(S){var J=S.srcElement;
if(J.unselectable){J.unselectable=A;
}this.tryActivate(J);
},
"gecko":function(S){var J=S.target;
while(J&&J.offsetWidth===undefined){J=J.parentNode;
}
if(J){this.tryActivate(J);
}},
"webkit|opera":function(S){this.tryActivate(S.target);
},
"default":null}),
__fn:qx.core.Variant.select(a,
{"mshtml|webkit":function(S){if(!this.__fr(S.srcElement)){qx.bom.Event.preventDefault(S);
}},
"default":null}),
__fo:function(W){var X=qx.bom.element.Attribute.get(W,
z);
if(X>=1){return true;
}var Y=qx.event.handler.Focus.FOCUSABLE_ELEMENTS;
if(X>=0&&Y[W.tagName]){return true;
}return false;
},
__fp:function(W){while(W&&W.nodeType===1){if(W.getAttribute(G)==f){return null;
}
if(this.__fo(W)){return W;
}W=W.parentNode;
}return this._body;
},
__fq:function(W){var ba=W;
while(W&&W.nodeType===1){if(W.getAttribute(H)==f){return null;
}W=W.parentNode;
}return ba;
},
__fr:function(bb){while(bb&&bb.nodeType===1){var bc=bb.getAttribute(y);
if(bc!=null){return bc===f;
}bb=bb.parentNode;
}return true;
},
_applyActive:function(bd,
be){if(be){this.__eS(be,
bd,
v,
true);
}
if(bd){this.__eS(bd,
be,
C,
true);
}},
_applyFocus:function(bd,
be){if(be){this.__eS(be,
bd,
D,
true);
}
if(bd){this.__eS(bd,
be,
x,
true);
}if(be){this.__eS(be,
bd,
b,
false);
}
if(bd){this.__eS(bd,
be,
c,
false);
}}},
destruct:function(){this._stopObserver();
this._disposeFields(F,
u,
q,
r,
B,
E);
},
defer:function(bf){qx.event.Registration.addHandler(bf);
var Y=bf.FOCUSABLE_ELEMENTS;
for(var bg in Y){Y[bg.toUpperCase()]=1;
}}});
})();
(function(){var a="qx.event.type.Focus";
qx.Class.define(a,
{extend:qx.event.type.Event,
members:{init:function(b,
c,
d){arguments.callee.base.call(this,
d,
false);
this._target=b;
this._relatedTarget=c;
return this;
}}});
})();
(function(){var a="qx.client",
b="mshtml",
c="readOnly",
d="accessKey",
e="qx.bom.element.Attribute",
f="rowSpan",
g="vAlign",
h="className",
i="textContent",
j="'",
k="htmlFor",
l="longDesc",
m="cellSpacing",
n="frameBorder",
o="='",
p="",
q="useMap",
r="innerText",
s="innerHTML",
t="tabIndex",
u="cssText",
v="dateTime",
w="maxLength",
x="cellPadding",
y="colSpan",
z="style";
qx.Class.define(e,
{statics:{__fs:{names:{"class":h,
"for":k,
html:s,
text:qx.core.Variant.isSet(a,
b)?r:i,
colspan:y,
rowspan:f,
valign:g,
datetime:v,
accesskey:d,
tabindex:t,
maxlength:w,
readonly:c,
longdesc:l,
cellpadding:x,
cellspacing:m,
frameborder:n,
usemap:q},
runtime:{"html":1,
"text":1},
bools:{compact:1,
nowrap:1,
ismap:1,
declare:1,
noshade:1,
checked:1,
disabled:1,
readonly:1,
multiple:1,
selected:1,
noresize:1,
defer:1},
property:{$$html:1,
$$widget:1,
disabled:1,
checked:1,
readOnly:1,
multiple:1,
selected:1,
value:1,
maxLength:1,
className:1,
innerHTML:1,
innerText:1,
textContent:1,
htmlFor:1,
tabIndex:1},
original:{href:1,
src:1,
type:1}},
compile:function(A){var B=[];
var C=this.__fs.runtime;
for(var D in A){if(!C[D]){B.push(D,
o,
A[D],
j);
}}return B.join(p);
},
get:qx.core.Variant.select(a,
{"mshtml":function(E,
F){var G=this.__fs;
var H;
F=G.names[F]||F;
if(G.original[F]){H=E.getAttribute(F,
2);
}else if(G.property[F]){H=E[F];
}else{H=E.getAttribute(F);
}if(G.bools[F]){return !!H;
}return H;
},
"default":function(E,
F){var G=this.__fs;
var H;
F=G.names[F]||F;
if(G.property[F]){H=E[F];
if(H==null){H=E.getAttribute(F);
}}else{H=E.getAttribute(F);
}if(G.bools[F]){return !!H;
}return H;
}}),
set:function(E,
F,
H){var G=this.__fs;
F=G.names[F]||F;
if(G.bools[F]){H=!!H;
}if(G.property[F]){E[F]=H;
}else if(H===true){E.setAttribute(F,
F);
}else if(H===false||H===null){E.removeAttribute(F);
}else if(qx.core.Variant.isSet(a,
b)&&F==z){E.style.setAttribute(u,
H);
}else{E.setAttribute(F,
H);
}},
reset:function(E,
F){this.set(E,
F,
null);
}}});
})();
(function(){var a="qx.event.type.Dom";
qx.Class.define(a,
{extend:qx.event.type.Native,
statics:{SHIFT_MASK:1,
CTRL_MASK:2,
ALT_MASK:4,
META_MASK:8},
members:{getModifiers:function(){if(!this.__modifiers){var b=0;
var c=this._native;
if(c.shiftKey){b|=qx.event.type.Dom.SHIFT_MASK;
}
if(c.ctrlKey){b|=qx.event.type.Dom.CTRL_MASK;
}
if(c.altKey){b|=qx.event.type.Dom.ALT_MASK;
}
if(c.metaKey){b|=qx.event.type.Dom.META_MASK;
}return b;
}return this.__modifiers;
},
isCtrlPressed:function(){return this._native.ctrlKey;
},
isShiftPressed:function(){return this._native.shiftKey;
},
isAltPressed:function(){return this._native.altKey;
},
isMetaPressed:function(){return this._native.metaKey;
},
isCtrlOrCommandPressed:function(){if(qx.bom.client.Platform.MAC){return this._native.metaKey;
}else{return this._native.ctrlKey;
}}}});
})();
(function(){var a="qx.event.type.KeyInput";
qx.Class.define(a,
{extend:qx.event.type.Dom,
members:{init:function(b,
c,
d){arguments.callee.base.call(this,
b,
c,
null,
true,
true);
this._charCode=d;
return this;
},
clone:function(e){var f=arguments.callee.base.call(this,
e);
f._charCode=this._charCode;
return f;
},
getCharCode:function(){return this._charCode;
},
getChar:function(){return String.fromCharCode(this._charCode);
}}});
})();
(function(){var a="qx.event.type.KeySequence";
qx.Class.define(a,
{extend:qx.event.type.Dom,
members:{init:function(b,
c,
d){arguments.callee.base.call(this,
b,
c,
null,
true,
true);
this._identifier=d;
return this;
},
clone:function(e){var f=arguments.callee.base.call(this,
e);
f._identifier=this._identifier;
return f;
},
getKeyIdentifier:function(){return this._identifier;
}}});
})();
(function(){var a="qx.client",
b="left",
c="right",
d="middle",
e="dblclick",
f="click",
g="none",
h="contextmenu",
i="qx.event.type.Mouse";
qx.Class.define(i,
{extend:qx.event.type.Dom,
members:{init:function(j,
k,
l,
m,
n){arguments.callee.base.call(this,
j,
k,
l,
m,
n);
if(!l){this._relatedTarget=qx.bom.Event.getRelatedTarget(j);
}return this;
},
__ft:qx.core.Variant.select(a,
{"mshtml":{1:b,
2:c,
4:d},
"default":{0:b,
2:c,
1:d}}),
stop:function(){this.stopPropagation();
},
getButton:function(){switch(this._type){case f:case e:return b;
case h:return c;
default:return this.__ft[this._native.button]||g;
}},
isLeftPressed:function(){return this.getButton()===b;
},
isMiddlePressed:function(){return this.getButton()===d;
},
isRightPressed:function(){return this.getButton()===c;
},
getRelatedTarget:function(){return this._relatedTarget;
},
getViewportLeft:function(){return this._native.clientX;
},
getViewportTop:function(){return this._native.clientY;
},
getDocumentLeft:qx.core.Variant.select(a,
{"mshtml":function(){var o=qx.dom.Node.getWindow(this._native.srcElement);
return this._native.clientX+qx.bom.Viewport.getScrollLeft(o);
},
"default":function(){return this._native.pageX;
}}),
getDocumentTop:qx.core.Variant.select(a,
{"mshtml":function(){var o=qx.dom.Node.getWindow(this._native.srcElement);
return this._native.clientY+qx.bom.Viewport.getScrollTop(o);
},
"default":function(){return this._native.pageY;
}}),
getScreenLeft:function(){return this._native.screenX;
},
getScreenTop:function(){return this._native.screenY;
},
getWheelDelta:qx.core.Variant.select(a,
{"default":function(){return -(this._native.wheelDelta/40);
},
"gecko":function(){return this._native.detail;
}})}});
})();
(function(){var a="qx.client",
b="qx.event.type.Drag";
qx.Class.define(b,
{extend:qx.event.type.Event,
members:{init:function(c,
d){arguments.callee.base.call(this,
false,
c);
if(d){this._native=d.getNativeEvent()||null;
this._originalTarget=d.getTarget()||null;
}else{this._native=null;
this._originalTarget=null;
}return this;
},
clone:function(e){var f=arguments.callee.base.call(this,
e);
f._native=this._native;
return f;
},
getDocumentLeft:qx.core.Variant.select(a,
{"mshtml":function(){if(this._native==null){return 0;
}var g=qx.dom.Node.getWindow(this._native.srcElement);
return this._native.clientX+qx.bom.Viewport.getScrollLeft(g);
},
"default":function(){if(this._native==null){return 0;
}return this._native.pageX;
}}),
getDocumentTop:qx.core.Variant.select(a,
{"mshtml":function(){if(this._native==null){return 0;
}var g=qx.dom.Node.getWindow(this._native.srcElement);
return this._native.clientY+qx.bom.Viewport.getScrollTop(g);
},
"default":function(){if(this._native==null){return 0;
}return this._native.pageY;
}}),
getManager:function(){return qx.event.Registration.getManager(this.getTarget()).getHandler(qx.event.handler.DragDrop);
},
addType:function(h){this.getManager().addType(h);
},
addAction:function(i){this.getManager().addAction(i);
},
supportsType:function(h){return this.getManager().supportsType(h);
},
supportsAction:function(i){return this.getManager().supportsAction(i);
},
addData:function(h,
j){this.getManager().addData(h,
j);
},
getData:function(h){return this.getManager().getData(h);
},
getCurrentType:function(){return this.getManager().getCurrentType();
},
getCurrentAction:function(){return this.getManager().getCurrentAction();
}}});
})();
(function(){var a="blur",
b="__fw",
c="losecapture",
d="__fv",
e="capture",
f="click",
g="__fu",
h="qx.event.dispatch.MouseCapture",
j="focus",
k="scroll";
qx.Class.define(h,
{extend:qx.core.Object,
implement:qx.event.IEventDispatcher,
construct:function(m){arguments.callee.base.call(this);
this.__fu=m;
this.__fv=m.getWindow();
m.addListener(this.__fv,
a,
this.releaseCapture,
this);
m.addListener(this.__fv,
j,
this.releaseCapture,
this);
m.addListener(this.__fv,
k,
this.releaseCapture,
this);
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_FIRST},
members:{__fw:null,
__fu:null,
__fv:null,
canDispatchEvent:function(n,
o,
p){return this.__fw&&this.__fx[p];
},
dispatchEvent:function(n,
o,
p){if(p==f){o.stopPropagation();
this.releaseCapture();
return;
}var q=this.__fu.getListeners(this.__fw,
p,
false);
if(q){o.setCurrentTarget(this.__fw);
o.setEventPhase(qx.event.type.Event.AT_TARGET);
for(var r=0,
s=q.length;r<s;r++){var t=q[r].context||o.getCurrentTarget();
q[r].handler.call(t,
o);
}}},
__fx:{"mouseup":1,
"mousedown":1,
"click":1,
"dblclick":1,
"mousemove":1,
"mouseout":1,
"mouseover":1},
activateCapture:function(u){if(this.__fw===u){return;
}
if(this.__fw){this.releaseCapture();
}this.__fw=u;
qx.event.Registration.fireEvent(u,
e,
qx.event.type.Event,
[true,
false]);
},
releaseCapture:function(){var u=this.__fw;
if(!u){return;
}this.__fw=null;
qx.event.Registration.fireEvent(u,
c,
qx.event.type.Event,
[true,
false]);
}},
destruct:function(){this._disposeFields(b,
g,
d);
},
defer:function(v){qx.event.Registration.addDispatcher(v);
}});
})();
(function(){var a="textarea",
b="input",
c="qx.client",
d="character",
e="qx.bom.Selection",
f="#text",
g="EndToEnd",
h="button",
i="body";
qx.Class.define(e,
{statics:{getSelectionObject:qx.core.Variant.select(c,
{"mshtml":function(j){return j.selection;
},
"default":function(j){return qx.dom.Node.getWindow(j).getSelection();
}}),
get:qx.core.Variant.select(c,
{"mshtml":function(k){var l=qx.bom.Range.get(qx.dom.Node.getDocument(k));
return l.text;
},
"default":function(k){if(qx.dom.Node.isElement(k)&&(k.nodeName.toLowerCase()==b||k.nodeName.toLowerCase()==a)){return k.value.substring(k.selectionStart,
k.selectionEnd);
}else{return qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(k)).toString();
}return null;
}}),
getLength:qx.core.Variant.select(c,
{"mshtml":function(k){var m=qx.bom.Selection.get(k);
var n=qx.util.StringSplit.split(m,
/\r\n/);
return m.length-(n.length-1);
},
"opera":function(k){var m,
o,
n;
if(qx.dom.Node.isElement(k)&&(k.nodeName.toLowerCase()==b||k.nodeName.toLowerCase()==a)){var p=k.selectionStart;
var q=k.selectionEnd;
m=k.value.substring(p,
q);
o=q-p;
}else{m=qx.bom.Selection.get(k);
o=m.length;
}n=qx.util.StringSplit.split(m,
/\r\n/);
return o-(n.length-1);
},
"default":function(k){if(qx.dom.Node.isElement(k)&&(k.nodeName.toLowerCase()==b||k.nodeName.toLowerCase()==a)){return k.selectionEnd-k.selectionStart;
}else{return qx.bom.Selection.get(k).length;
}return null;
}}),
set:qx.core.Variant.select(c,
{"mshtml":function(k,
p,
q){var l;
if(qx.dom.Node.isDocument(k)){k=k.body;
}
if(qx.dom.Node.isElement(k)||qx.dom.Node.isText(k)){switch(k.nodeName.toLowerCase()){case b:case a:case h:if(q===undefined){q=k.value.length;
}
if(p>=0&&p<=k.value.length&&q>=0&&q<=k.value.length){l=qx.bom.Range.get(k);
l.collapse(true);
l.moveStart(d,
p);
l.moveEnd(d,
q);
l.select();
return true;
}break;
case f:if(q===undefined){q=k.nodeValue.length;
}
if(p>=0&&p<=k.nodeValue.length&&q>=0&&q<=k.nodeValue.length){l=qx.bom.Range.get(qx.dom.Node.getBodyElement(k));
l.moveToElementText(k.parentNode);
l.collapse(true);
l.moveStart(d,
p);
l.moveEnd(d,
q);
l.select();
return true;
}break;
default:if(q===undefined){q=k.childNodes.length-1;
}if(k.childNodes[p]&&k.childNodes[q]){l=qx.bom.Range.get(qx.dom.Node.getBodyElement(k));
l.moveToElementText(k.childNodes[p]);
l.collapse(true);
var r=qx.bom.Range.get(qx.dom.Node.getBodyElement(k));
r.moveToElementText(k.childNodes[q]);
l.setEndPoint(g,
r);
l.select();
return true;
}}}return false;
},
"default":function(k,
p,
q){var s=k.nodeName.toLowerCase();
if(qx.dom.Node.isElement(k)&&(s==b||s==a)){if(q===undefined){q=k.value.length;
}if(p>=0&&p<=k.value.length&&q>=0&&q<=k.value.length){k.select();
k.setSelectionRange(p,
q);
return true;
}}else{var t=false;
var u=qx.dom.Node.getWindow(k).getSelection();
var l=qx.bom.Range.get(k);
if(qx.dom.Node.isText(k)){if(q===undefined){q=k.length;
}
if(p>=0&&p<k.length&&q>=0&&q<=k.length){t=true;
}}else if(qx.dom.Node.isElement(k)){if(q===undefined){q=k.childNodes.length-1;
}
if(p>=0&&k.childNodes[p]&&q>=0&&k.childNodes[q]){t=true;
}}else if(qx.dom.Node.isDocument(k)){k=k.body;
if(q===undefined){q=k.childNodes.length-1;
}
if(p>=0&&k.childNodes[p]&&q>=0&&k.childNodes[q]){t=true;
}}
if(t){if(!u.isCollapsed){u.collapseToStart();
}l.setStart(k,
p);
if(qx.dom.Node.isText(k)){l.setEnd(k,
q);
}else{l.setEndAfter(k.childNodes[q]);
}if(u.rangeCount>0){u.removeAllRanges();
}u.addRange(l);
return true;
}}return false;
}}),
setAll:function(k){return qx.bom.Selection.set(k,
0);
},
clear:qx.core.Variant.select(c,
{"mshtml":function(k){var u=qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(k));
var l=qx.bom.Range.get(k);
var v=l.parentElement();
var w=qx.bom.Range.get(qx.dom.Node.getDocument(k));
if(v==w.parentElement()&&v==k){u.empty();
}},
"default":function(k){var u=qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(k));
var s=k.nodeName.toLowerCase();
if(qx.dom.Node.isElement(k)&&(s==b||s==a)){k.setSelectionRange(0,
0);
qx.bom.Element.blur(k);
}else if(qx.dom.Node.isDocument(k)||s==i){u.collapse(k.body?k.body:k,
0);
}else{var l=qx.bom.Range.get(k);
if(!l.collapsed){var x;
var y=l.commonAncestorContainer;
if(qx.dom.Node.isElement(k)&&qx.dom.Node.isText(y)){x=y.parentNode;
}else{x=y;
}
if(x==k){u.collapse(k,
0);
}}}}})}});
})();
(function(){var a="button",
b="qx.bom.Range",
c="text",
d="password",
e="file",
f="submit",
g="reset",
h="textarea",
i="input",
j="hidden",
k="qx.client",
l="body";
qx.Class.define(b,
{statics:{get:qx.core.Variant.select(k,
{"mshtml":function(m){if(qx.dom.Node.isElement(m)){switch(m.nodeName.toLowerCase()){case i:switch(m.type){case c:case d:case j:case a:case g:case e:case f:return m.createTextRange();
break;
default:return qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(m)).createRange();
}break;
case h:case l:case a:return m.createTextRange();
break;
default:return qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(m)).createRange();
}}else{return qx.bom.Selection.getSelectionObject(qx.dom.Node.getDocument(m)).createRange();
}},
"default":function(m){var n=qx.dom.Node.getDocument(m);
var o=qx.bom.Selection.getSelectionObject(n);
if(o.rangeCount>0){return o.getRangeAt(0);
}else{return n.createRange();
}}})}});
})();
(function(){var a="",
b="g",
c="$",
d="qx.util.StringSplit",
e="\\$&",
f="^";
qx.Bootstrap.define(d,
{statics:{split:function(g,
h,
k){var l=a;
if(h===undefined){return [g.toString()];
}else if(h===null||h.constructor!==RegExp){h=new RegExp(String(h).replace(/[.*+?^${}()|[\]\/\\]/g,
e),
b);
}else{l=h.toString().replace(/^[\S\s]+\//,
a);
if(!h.global){h=new RegExp(h.source,
b+l);
}}var m=new RegExp(f+h.source+c,
l);
if(k===undefined||+k<0){k=false;
}else{k=Math.floor(+k);
if(!k){return [];
}}var n,
o=[],
p=0,
q=0;
while((k?q++<=k:true)&&(n=h.exec(g))){if((n[0].length===0)&&(h.lastIndex>n.index)){h.lastIndex--;
}
if(h.lastIndex>p){if(n.length>1){n[0].replace(m,
function(){for(var r=1;r<arguments.length-2;r++){if(arguments[r]===undefined){n[r]=undefined;
}}});
}o=o.concat(g.substring(p,
n.index),
(n.index===g.length?[]:n.slice(1)));
p=h.lastIndex;
}
if(n[0].length===0){h.lastIndex++;
}}return (p===g.length)?(h.test(a)?o:o.concat(a)):(k?o:o.concat(g.substring(p)));
}}});
})();
(function(){var a="qx.ui.core.queue.Widget",
b="widget";
qx.Class.define(a,
{statics:{__fy:{},
remove:function(c){delete this.__fy[c.$$hash];
},
add:function(c){var d=this.__fy;
if(d[c.$$hash]){return;
}d[c.$$hash]=c;
qx.ui.core.queue.Manager.scheduleFlush(b);
},
flush:function(){var d=this.__fy;
var e;
for(var f in d){e=d[f];
delete d[f];
e.syncWidget();
}for(var f in d){return;
}this.__fy={};
}}});
})();
(function(){var a="qx.ui.core.queue.Visibility",
b="visibility";
qx.Class.define(a,
{statics:{__fz:{},
__fA:{},
remove:function(c){var d=c.$$hash;
delete this.__fA[d];
delete this.__fz[d];
},
isVisible:function(c){return this.__fA[c.$$hash]||false;
},
__fB:function(c){var e=this.__fA;
var d=c.$$hash;
var f;
if(c.isExcluded()){f=false;
}else{var g=c.$$parent;
if(g){f=this.__fB(g);
}else{f=c.isRootWidget();
}}return e[d]=f;
},
add:function(c){var h=this.__fz;
if(h[c.$$hash]){return;
}h[c.$$hash]=c;
qx.ui.core.queue.Manager.scheduleFlush(b);
},
flush:function(){var h=this.__fz;
var e=this.__fA;
for(var d in h){if(e[d]!=null){h[d].addChildrenToQueue(h);
}}var i={};
for(var d in h){i[d]=e[d];
e[d]=null;
}for(var d in h){if(e[d]==null){this.__fB(h[d]);
}if(e[d]&&e[d]!=i[d]){h[d].checkAppearanceNeeds();
}}this.__fz={};
}}});
})();
(function(){var a="appearance",
b="qx.ui.core.queue.Appearance";
qx.Class.define(b,
{statics:{__fC:{},
remove:function(c){delete this.__fC[c.$$hash];
},
add:function(c){var d=this.__fC;
if(d[c.$$hash]){return;
}d[c.$$hash]=c;
qx.ui.core.queue.Manager.scheduleFlush(a);
},
has:function(c){return !!this.__fC[c.$$hash];
},
flush:function(){var e=qx.ui.core.queue.Visibility;
var d=this.__fC;
var f;
for(var g in d){f=d[g];
delete d[g];
if(e.isVisible(f)){f.syncAppearance();
}else{f.$$stateChanges=true;
}}}}});
})();
(function(){var a="qx.ui.core.queue.Layout",
b="layout";
qx.Class.define(a,
{statics:{__fD:{},
remove:function(c){delete this.__fD[c.$$hash];
},
add:function(c){this.__fD[c.$$hash]=c;
qx.ui.core.queue.Manager.scheduleFlush(b);
},
flush:function(){var d=this.__fG();
for(var e=d.length-1;e>=0;e--){var c=d[e];
if(c.hasValidLayout()){continue;
}if(c.isRootWidget()&&!c.hasUserBounds()){var f=c.getSizeHint();
c.renderLayout(0,
0,
f.width,
f.height);
}else{var g=c.getBounds();
c.renderLayout(g.left,
g.top,
g.width,
g.height);
}}},
getNestingLevel:function(c){var h=this.__fF;
var j=0;
var k=c;
while(true){if(h[k.$$hash]!=null){j+=h[k.$$hash];
break;
}
if(!k.$$parent){break;
}k=k.$$parent;
j+=1;
}var l=j;
while(c&&c!==k){h[c.$$hash]=l--;
c=c.$$parent;
}return j;
},
__fE:function(){var m=qx.ui.core.queue.Visibility;
this.__fF={};
var n=[];
var d=this.__fD;
var c,
j;
for(var o in d){c=d[o];
if(m.isVisible(c)){j=this.getNestingLevel(c);
if(!n[j]){n[j]={};
}n[j][o]=c;
delete d[o];
}}return n;
},
__fG:function(){var p=[];
var n=this.__fE();
for(var j=n.length-1;j>=0;j--){if(!n[j]){continue;
}
for(var o in n[j]){var c=n[j][o];
if(j==0||c.isRootWidget()||c.hasUserBounds()){p.push(c);
c.invalidateLayoutCache();
continue;
}var q=c.getSizeHint(false);
if(q){c.invalidateLayoutCache();
var r=c.getSizeHint();
var s=(!c.getBounds()||q.minWidth!==r.minWidth||q.width!==r.width||q.maxWidth!==r.maxWidth||q.minHeight!==r.minHeight||q.height!==r.height||q.maxHeight!==r.maxHeight);
}else{s=true;
}
if(s){var k=c.getLayoutParent();
if(!n[j-1]){n[j-1]={};
}n[j-1][k.$$hash]=k;
}else{p.push(c);
}}}return p;
}}});
})();
(function(){var a="dispose",
b="qx.ui.core.queue.Dispose";
qx.Class.define(b,
{statics:{__fH:{},
add:function(c){var d=this.__fH;
if(d[c.$$hash]){return;
}d[c.$$hash]=c;
qx.ui.core.queue.Manager.scheduleFlush(a);
},
flush:function(){var d=this.__fH;
for(var e in d){d[e].dispose();
delete d[e];
}for(var e in d){return;
}this.__fH={};
}}});
})();
(function(){var a="qx.ui.core.MChildrenHandling";
qx.Mixin.define(a,
{members:{getChildren:function(){return this._getChildren();
},
hasChildren:function(){return this._hasChildren();
},
indexOf:function(b){return this._indexOf(b);
},
add:function(b,
c){this._add(b,
c);
},
addAt:function(b,
d,
c){this._addAt(b,
d,
c);
},
addBefore:function(b,
e,
c){this._addBefore(b,
e,
c);
},
addAfter:function(b,
f,
c){this._addAfter(b,
f,
c);
},
remove:function(b){this._remove(b);
},
removeAt:function(d){this._removeAt(d);
},
removeAll:function(){return this._removeAll();
}},
statics:{remap:function(g){g.getChildren=g._getChildren;
g.hasChildren=g._hasChildren;
g.indexOf=g._indexOf;
g.add=g._add;
g.addAt=g._addAt;
g.addBefore=g._addBefore;
g.addAfter=g._addAfter;
g.remove=g._remove;
g.removeAt=g._removeAt;
g.removeAll=g._removeAll;
}}});
})();
(function(){var a="Integer",
b="_applyDimension",
c="Boolean",
d="_applyStretching",
e="_applyMargin",
f="shorthand",
g="_applyAlign",
h="allowShrinkY",
i="__fO",
j="bottom",
k="baseline",
l="marginBottom",
m="qx.ui.core.LayoutItem",
n="center",
o="marginTop",
p="$$subparent",
q="allowGrowX",
r="middle",
s="marginLeft",
t="__fL",
u="__fN",
v="allowShrinkX",
w="__fJ",
x="$$parent",
y="top",
z="right",
A="marginRight",
B="abstract",
C="allowGrowY",
D="left";
qx.Class.define(m,
{type:B,
extend:qx.core.Object,
properties:{minWidth:{check:a,
nullable:true,
apply:b,
init:null,
themeable:true},
width:{check:a,
nullable:true,
apply:b,
init:null,
themeable:true},
maxWidth:{check:a,
nullable:true,
apply:b,
init:null,
themeable:true},
minHeight:{check:a,
nullable:true,
apply:b,
init:null,
themeable:true},
height:{check:a,
nullable:true,
apply:b,
init:null,
themeable:true},
maxHeight:{check:a,
nullable:true,
apply:b,
init:null,
themeable:true},
allowGrowX:{check:c,
apply:d,
init:true,
themeable:true},
allowShrinkX:{check:c,
apply:d,
init:true,
themeable:true},
allowGrowY:{check:c,
apply:d,
init:true,
themeable:true},
allowShrinkY:{check:c,
apply:d,
init:true,
themeable:true},
allowStretchX:{group:[q,
v],
mode:f,
themeable:true},
allowStretchY:{group:[C,
h],
mode:f,
themeable:true},
marginTop:{check:a,
init:0,
apply:e,
themeable:true},
marginRight:{check:a,
init:0,
apply:e,
themeable:true},
marginBottom:{check:a,
init:0,
apply:e,
themeable:true},
marginLeft:{check:a,
init:0,
apply:e,
themeable:true},
margin:{group:[o,
A,
l,
s],
mode:f,
themeable:true},
alignX:{check:[D,
n,
z],
nullable:true,
apply:g,
themeable:true},
alignY:{check:[y,
r,
j,
k],
nullable:true,
apply:g,
themeable:true}},
members:{__fI:null,
__fJ:null,
__fK:null,
__fL:null,
__fM:null,
__fN:null,
__fO:null,
getBounds:function(){return this.__fN||this.__fJ||null;
},
clearSeparators:function(){},
renderSeparator:function(E,
F){},
renderLayout:function(G,
H,
I,
J){var K;
var L=null;
if(this.getHeight()==null&&this._hasHeightForWidth()){var L=this._getHeightForWidth(I);
}
if(L!=null&&L!==this.__fI){this.__fI=L;
qx.ui.core.queue.Layout.add(this);
return null;
}var M=this.__fJ;
if(!M){M=this.__fJ={};
}var N={};
if(G!==M.left||H!==M.top){N.position=true;
M.left=G;
M.top=H;
}
if(I!==M.width||J!==M.height){N.size=true;
M.width=I;
M.height=J;
}if(this.__fK){N.local=true;
delete this.__fK;
}
if(this.__fM){N.margin=true;
delete this.__fM;
}return N;
},
isExcluded:function(){return false;
},
hasValidLayout:function(){return !this.__fK;
},
scheduleLayoutUpdate:function(){qx.ui.core.queue.Layout.add(this);
},
invalidateLayoutCache:function(){this.__fK=true;
this.__fL=null;
},
getSizeHint:function(O){var P=this.__fL;
if(P){return P;
}
if(O===false){return null;
}P=this.__fL=this._computeSizeHint();
if(this.__fI&&this.getHeight()==null){P.height=this.__fI;
}if(!this.getAllowShrinkX()){P.minWidth=P.width;
}else if(P.minWidth>P.width){P.width=P.minWidth;
}
if(!this.getAllowShrinkY()){P.minHeight=P.height;
}else if(P.minHeight>P.height){P.height=P.minHeight;
}if(!this.getAllowGrowX()){P.maxWidth=P.width;
}else if(P.width>P.maxWidth){P.width=P.maxWidth;
}
if(!this.getAllowGrowY()){P.maxHeight=P.height;
}else if(P.height>P.maxHeight){P.height=P.maxHeight;
}return P;
},
_computeSizeHint:function(){var Q=this.getMinWidth()||0;
var R=this.getMinHeight()||0;
var I=this.getWidth()||Q;
var J=this.getHeight()||R;
var S=this.getMaxWidth()||Infinity;
var T=this.getMaxHeight()||Infinity;
return {minWidth:Q,
width:I,
maxWidth:S,
minHeight:R,
height:J,
maxHeight:T};
},
_hasHeightForWidth:function(){var U=this._getLayout();
if(U){return U.hasHeightForWidth();
}return false;
},
_getHeightForWidth:function(I){var U=this._getLayout();
if(U&&U.hasHeightForWidth()){return U.getHeightForWidth(I);
}return null;
},
_applyMargin:function(){this.__fM=true;
var V=this.$$parent;
if(V){V.updateLayoutProperties();
}},
_applyAlign:function(){var V=this.$$parent;
if(V){V.updateLayoutProperties();
}},
_applyDimension:function(){qx.ui.core.queue.Layout.add(this);
},
_applyStretching:function(){qx.ui.core.queue.Layout.add(this);
},
hasUserBounds:function(){return !!this.__fN;
},
setUserBounds:function(G,
H,
I,
J){this.__fN={left:G,
top:H,
width:I,
height:J};
qx.ui.core.queue.Layout.add(this);
},
resetUserBounds:function(){delete this.__fN;
qx.ui.core.queue.Layout.add(this);
},
__fP:{},
setLayoutProperties:function(W){if(W==null){return;
}var X=this.__fO;
if(!X){X=this.__fO={};
}var V=this.getLayoutParent();
if(V){V.updateLayoutProperties(W);
}for(var Y in W){if(W[Y]==null){delete X[Y];
}else{X[Y]=W[Y];
}}},
getLayoutProperties:function(){return this.__fO||this.__fP;
},
clearLayoutProperties:function(){delete this.__fO;
},
updateLayoutProperties:function(W){var U=this._getLayout();
if(U){var Y;
U.invalidateChildrenCache();
}qx.ui.core.queue.Layout.add(this);
},
getApplicationRoot:function(){return qx.core.Init.getApplication().getRoot();
},
getLayoutParent:function(){return this.$$parent||null;
},
setLayoutParent:function(V){this.$$parent=V||null;
qx.ui.core.queue.Visibility.add(this);
},
isRootWidget:function(){return false;
},
_getRoot:function(){var V=this;
while(V){if(V.isRootWidget()){return V;
}V=V.$$parent;
}return null;
},
clone:function(){var ba=arguments.callee.base.call(this);
var W=this.__fO;
if(W){ba.__fO=qx.lang.Object.copy(W);
}return ba;
},
serialize:function(){var bb=arguments.callee.base.call(this);
var W=this.__fO;
if(W){bb.layoutProperties=qx.lang.Object.copy(W);
}return bb;
}},
destruct:function(){this._disposeFields(x,
p,
i,
w,
u,
t);
}});
})();
(function(){var a="px",
b="qx.event.type.Mouse",
c="Boolean",
d="qx.event.type.Drag",
f="visible",
g="qx.event.type.Focus",
h="Integer",
j="on",
k="excluded",
m="object",
n="_applyPadding",
o="qx.event.type.Event",
p="zIndex",
q="hidden",
r="tabIndex",
s="contextmenu",
t="absolute",
u="backgroundColor",
v="focused",
w="hovered",
x="qx.event.type.KeySequence",
y="qx.client",
z="height",
A="div",
B="qx.event.type.Data",
C="disabled",
D="move",
E="dragstart",
F="dragchange",
G="position",
H="dragend",
I="resize",
J="Decorator",
K="width",
L="$$widget",
M="mshtml",
N="none",
O="default",
P="Color",
Q="top",
R="left",
S="String",
T="drag",
U="Use public 'getChildControl' instead!",
V="__fT",
W="_applyBackgroundColor",
X="_applyFocusable",
Y="changeShadow",
ba="__gk",
bb="qx.event.type.KeyInput",
bc="normal",
bd="Font",
be="__fU",
bf="_applyShadow",
bg="_applyEnabled",
bh="_applySelectable",
bi="_applyKeepActive",
bj="Number",
bk="_applyVisibility",
bl="repeat",
bm="qxDraggable",
bn="__fR",
bo="paddingLeft",
bp="_applyDroppable",
bq="userSelect",
br="#",
bs="_applyCursor",
bt="changeVisibility",
bu="_applyDraggable",
bv="changeTextColor",
bw="changeContextMenu",
bx="paddingTop",
by="opacity",
bz="hideFocus",
bA="outline",
bB="_applyAppearance",
bC="overflowX",
bD="_applyOpacity",
bE="__fX",
bF="url(",
bG=")",
bH="qx.ui.core.Widget",
bI="_applyFont",
bJ="cursor",
bK="qxDroppable",
bL="changeZIndex",
bM="overflowY",
bN="changeEnabled",
bO="changeFont",
bP="off",
bQ="_applyDecorator",
bR="_applyZIndex",
bS="__fQ",
bT="_applyTextColor",
bU="qx.ui.menu.Menu",
bV="Use public 'hasChildControl' instead!",
bW="__fV",
bX="true",
bY="widget",
ca="changeDecorator",
cb="_applyTabIndex",
cc="changeAppearance",
cd="shorthand",
ce="/",
cf="",
cg="__gh",
ch="_applyContextMenu",
ci="qxSelectable",
cj="__gc",
ck="paddingBottom",
cl="qx.ui.tooltip.ToolTip",
cm="qxKeepActive",
cn="_applyKeepFocus",
co="webkit",
cp="paddingRight",
cq="changeBackgroundColor",
cr="qxKeepFocus",
cs="__ga",
ct="qx/static/blank.gif";
qx.Class.define(bH,
{extend:qx.ui.core.LayoutItem,
include:[qx.locale.MTranslation],
construct:function(){arguments.callee.base.call(this);
this.__fQ=this._createContainerElement();
this.__fR=this.__gb();
this.__fQ.add(this.__fR);
this.initFocusable();
this.initSelectable();
},
events:{appear:o,
disappear:o,
resize:B,
move:B,
mousemove:b,
mouseover:b,
mouseout:b,
mousedown:b,
mouseup:b,
click:b,
dblclick:b,
contextmenu:b,
mousewheel:b,
keyup:x,
keydown:x,
keypress:x,
keyinput:bb,
focus:g,
blur:g,
focusin:g,
focusout:g,
activate:g,
deactivate:g,
capture:o,
losecapture:o,
drop:d,
dragleave:d,
dragover:d,
drag:d,
dragstart:d,
dragend:d,
dragchange:d,
droprequest:d},
properties:{paddingTop:{check:h,
init:0,
apply:n,
themeable:true},
paddingRight:{check:h,
init:0,
apply:n,
themeable:true},
paddingBottom:{check:h,
init:0,
apply:n,
themeable:true},
paddingLeft:{check:h,
init:0,
apply:n,
themeable:true},
padding:{group:[bx,
cp,
ck,
bo],
mode:cd,
themeable:true},
zIndex:{nullable:true,
init:null,
apply:bR,
event:bL,
check:h,
themeable:true},
decorator:{nullable:true,
init:null,
apply:bQ,
event:ca,
check:J,
themeable:true},
shadow:{nullable:true,
init:null,
apply:bf,
event:Y,
check:J,
themeable:true},
backgroundColor:{nullable:true,
check:P,
apply:W,
event:cq,
themeable:true},
textColor:{nullable:true,
check:P,
apply:bT,
event:bv,
themeable:true,
inheritable:true},
font:{nullable:true,
apply:bI,
check:bd,
event:bO,
themeable:true,
inheritable:true},
opacity:{check:bj,
apply:bD,
themeable:true,
nullable:true,
init:null},
cursor:{check:S,
apply:bs,
themeable:true,
inheritable:true,
nullable:true,
init:null},
toolTip:{check:cl,
nullable:true},
visibility:{check:[f,
q,
k],
init:f,
apply:bk,
event:bt},
enabled:{init:true,
check:c,
inheritable:true,
apply:bg,
event:bN},
anonymous:{init:false,
check:c},
tabIndex:{check:h,
nullable:true,
apply:cb},
focusable:{check:c,
init:false,
apply:X},
keepFocus:{check:c,
init:false,
apply:cn},
keepActive:{check:c,
init:false,
apply:bi},
draggable:{check:c,
init:false,
apply:bu},
droppable:{check:c,
init:false,
apply:bp},
selectable:{check:c,
init:false,
apply:bh},
contextMenu:{check:bU,
apply:ch,
nullable:true,
event:bw},
appearance:{check:S,
init:bY,
apply:bB,
event:cc}},
statics:{DEBUG:false,
getWidgetByElement:function(cu){try{while(cu){var cv=cu.$$widget;
if(cv!=null){return qx.core.ObjectRegistry.fromHashCode(cv);
}cu=cu.parentNode;
}}catch(ex){}return null;
},
contains:function(cw,
cx){while(cx){if(cw==cx){return true;
}cx=cx.getLayoutParent();
}return false;
},
__fS:{}},
members:{__fQ:null,
__fR:null,
__fT:null,
__fU:null,
__fV:null,
__fW:null,
__fX:null,
_getLayout:function(){return this.__fX;
},
_setLayout:function(cy){{};
if(this.__fX){this.__fX.connectToWidget(null);
}
if(cy){cy.connectToWidget(this);
}this.__fX=cy;
qx.ui.core.queue.Layout.add(this);
},
setLayoutParent:function(cw){if(this.$$parent===cw){return;
}
if(this.$$parent){this.$$parent.getContentElement().remove(this.__fQ);
}this.$$parent=cw||null;
if(cw){this.$$parent.getContentElement().add(this.__fQ);
}qx.core.Property.refresh(this);
qx.ui.core.queue.Visibility.add(this);
},
__fY:null,
renderLayout:function(cz,
cA,
cB,
cC){var cD=arguments.callee.base.call(this,
cz,
cA,
cB,
cC);
if(!cD){return;
}var cE=this.__fQ;
var cF=this.__fR;
var cG=cD.size||this.__fY;
var cH=a;
if(cD.position){cE.setStyle(R,
cz+cH);
cE.setStyle(Q,
cA+cH);
}if(cD.size){cE.setStyle(K,
cB+cH);
cE.setStyle(z,
cC+cH);
}
if(cG||cD.local||cD.margin){var cI=this.getInsets();
var cJ=cB-cI.left-cI.right;
var cK=cC-cI.top-cI.bottom;
}
if(this.__fY){cF.setStyle(R,
cI.left+cH);
cF.setStyle(Q,
cI.top+cH);
}
if(cG){cF.setStyle(K,
cJ+cH);
cF.setStyle(z,
cK+cH);
}
if(cD.size){var cL=this.__fV;
if(cL){cL.setStyles({width:cB+a,
height:cC+a});
}}
if(cD.size||this.__fY){var cM=qx.theme.manager.Decoration.getInstance();
var cN=this.getDecorator();
if(cN){var cu=this.__fT;
var cO=cM.resolve(cN);
cO.resize(cu,
cB,
cC);
}}
if(cD.size){var cP=this.getShadow();
if(cP){var cu=this.__fU;
var cO=cM.resolve(cP);
var cI=cO.getInsets();
var cQ=cB+cI.left+cI.right;
var cR=cC+cI.top+cI.bottom;
cO.resize(cu,
cQ,
cR);
}}
if(cG||cD.local||cD.margin){if(this.__fX&&this.hasLayoutChildren()){this.__fX.renderLayout(cJ,
cK);
}else if(this.hasLayoutChildren()){throw new Error("At least one child in control "+this._findTopControl()+" requires a layout, but no one was defined!");
}}if(cD.position&&this.hasListener(D)){this.fireDataEvent(D,
this.getBounds());
}
if(cD.size&&this.hasListener(I)){this.fireDataEvent(I,
this.getBounds());
}delete this.__fY;
},
__ga:null,
clearSeparators:function(){var cS=this.__ga;
if(!cS){return;
}var cT=qx.ui.core.Widget.__fS;
var cF=this.__fR;
var cU,
cV;
for(var cW=0,
cX=cS.length;cW<cX;cW++){cV=cS[cW];
cU=cV.$$separator;
if(!cT[cU]){cT[cU]=[cV];
}else{cT[cU].push(cV);
}cF.remove(cV);
}cS.length=0;
},
renderSeparator:function(cU,
cY){var cT=qx.ui.core.Widget.__fS;
var da=qx.theme.manager.Decoration.getInstance();
if(typeof cU==m){var db=cU.toHashCode();
var cO=cU;
}else{var db=cU;
var cO=da.resolve(cU);
}var dc=cT[cU];
if(dc&&dc.length>0){var cV=dc.pop();
}else{var cV=this.__gg(cO);
}this.__fR.add(cV);
cO.resize(cV,
cY.width,
cY.height);
var dd=cV.getDomElement().style;
dd.left=cY.left+a;
dd.top=cY.top+a;
if(!this.__ga){this.__ga=[cV];
}else{this.__ga.push(cV);
}cV.$$separator=db;
},
_computeSizeHint:function(){var cB=this.getWidth();
var de=this.getMinWidth();
var df=this.getMaxWidth();
var cC=this.getHeight();
var dg=this.getMinHeight();
var dh=this.getMaxHeight();
var di=this._getContentHint();
var cI=this.getInsets();
var dj=cI.left+cI.right;
var dk=cI.top+cI.bottom;
if(cB==null){cB=di.width+dj;
}
if(cC==null){cC=di.height+dk;
}
if(de==null){de=dj;
if(di.minWidth!=null){de+=di.minWidth;
}}
if(dg==null){dg=dk;
if(di.minHeight!=null){dg+=di.minHeight;
}}
if(df==null){if(di.maxWidth==null){df=Infinity;
}else{df=di.maxWidth+dj;
}}
if(dh==null){if(di.maxHeight==null){dh=Infinity;
}else{dh=di.maxHeight+dk;
}}return {width:cB,
minWidth:de,
maxWidth:df,
height:cC,
minHeight:dg,
maxHeight:dh};
},
invalidateLayoutCache:function(){arguments.callee.base.call(this);
if(this.__fX){this.__fX.invalidateLayoutCache();
}},
_getContentHint:function(){var cy=this.__fX;
if(cy){if(this.hasLayoutChildren()){var dl=cy.getSizeHint();
var dm;
return dl;
}else{return {width:0,
height:0};
}}else{return {width:100,
height:50};
}},
_getHeightForWidth:function(cB){var cI=this.getInsets();
var dj=cI.left+cI.right;
var dk=cI.top+cI.bottom;
var dn=cB-dj;
var cy=this._getLayout();
if(cy&&cy.hasHeightForWidth()){var dp=cy.getHeightForWidth(cB);
}else{dp=this._getContentHeightForWidth(dn);
}var cC=dp+dk;
return cC;
},
_getContentHeightForWidth:function(cB){throw new Error("Abstract method call: _getContentHeightForWidth()!");
},
getInsets:function(){var cA=this.getPaddingTop();
var dq=this.getPaddingRight();
var dr=this.getPaddingBottom();
var cz=this.getPaddingLeft();
var cN=this.getDecorator();
if(cN){var cM=qx.theme.manager.Decoration.getInstance();
var cO=cM.resolve(cN);
var ds=cO.getInsets();
{};
cA+=ds.top;
dq+=ds.right;
dr+=ds.bottom;
cz+=ds.left;
}return {"top":cA,
"right":dq,
"bottom":dr,
"left":cz};
},
getInnerSize:function(){var dt=this.getBounds();
if(!dt){return null;
}var cI=this.getInsets();
return {width:dt.width-cI.left-cI.right,
height:dt.height-cI.top-cI.bottom};
},
show:function(){this.setVisibility(f);
},
hide:function(){this.setVisibility(q);
},
exclude:function(){this.setVisibility(k);
},
isVisible:function(){return this.getVisibility()===f;
},
isHidden:function(){return this.getVisibility()!==f;
},
isExcluded:function(){return this.getVisibility()===k;
},
_createContainerElement:function(){var du=new qx.html.Element(A);
{};
du.setStyle(G,
t);
du.setStyle(p,
0);
du.setAttribute(L,
this.toHashCode());
{};
return du;
},
__gb:function(){var du=this._createContentElement();
{};
du.setStyle(G,
t);
du.setStyle(p,
10);
return du;
},
_createContentElement:function(){var du=new qx.html.Element(A);
du.setStyle(bC,
q);
du.setStyle(bM,
q);
return du;
},
getContainerElement:function(){return this.__fQ;
},
getContentElement:function(){return this.__fR;
},
getDecoratorElement:function(){return this.__fT;
},
__gc:null,
getLayoutChildren:function(){var dv=this.__gc;
if(!dv){return this.__gd;
}var dw;
for(var cW=0,
cX=dv.length;cW<cX;cW++){var cx=dv[cW];
if(cx.hasUserBounds()||cx.isExcluded()){if(dw==null){dw=dv.concat();
}qx.lang.Array.remove(dw,
cx);
}}return dw||dv;
},
scheduleLayoutUpdate:function(){qx.ui.core.queue.Layout.add(this);
},
invalidateLayoutChildren:function(){var cy=this.__fX;
if(cy){cy.invalidateChildrenCache();
}qx.ui.core.queue.Layout.add(this);
},
hasLayoutChildren:function(){var dv=this.__gc;
if(!dv){return false;
}var cx;
for(var cW=0,
cX=dv.length;cW<cX;cW++){cx=dv[cW];
if(!cx.hasUserBounds()&&!cx.isExcluded()){return true;
}}return false;
},
getChildrenContainer:function(){return this;
},
__gd:[],
_getChildren:function(){return this.__gc||this.__gd;
},
_indexOf:function(cx){var dv=this.__gc;
if(!dv){return -1;
}return dv.indexOf(cx);
},
_hasChildren:function(){var dv=this.__gc;
return dv!=null&&(!!dv[0]);
},
addChildrenToQueue:function(dx){var dv=this.__gc;
if(!dv){return;
}var cx;
for(var cW=0,
cX=dv.length;cW<cX;cW++){cx=dv[cW];
dx[cx.$$hash]=cx;
cx.addChildrenToQueue(dx);
}},
_add:function(cx,
dy){if(cx.getLayoutParent()==this){qx.lang.Array.remove(this.__gc,
cx);
}
if(this.__gc){this.__gc.push(cx);
}else{this.__gc=[cx];
}this.__ge(cx,
dy);
},
_addAt:function(cx,
dz,
dy){if(!this.__gc){this.__gc=[];
}if(cx.getLayoutParent()==this){qx.lang.Array.remove(this.__gc,
cx);
}var dA=this.__gc[dz];
if(dA===cx){return cx.setLayoutProperties(dy);
}
if(dA){qx.lang.Array.insertBefore(this.__gc,
cx,
dA);
}else{this.__gc.push(cx);
}this.__ge(cx,
dy);
},
_addBefore:function(cx,
dB,
dy){{};
if(cx==dB){return;
}
if(!this.__gc){this.__gc=[];
}if(cx.getLayoutParent()==this){qx.lang.Array.remove(this.__gc,
cx);
}qx.lang.Array.insertBefore(this.__gc,
cx,
dB);
this.__ge(cx,
dy);
},
_addAfter:function(cx,
dC,
dy){{};
if(cx==dC){return;
}
if(!this.__gc){this.__gc=[];
}if(cx.getLayoutParent()==this){qx.lang.Array.remove(this.__gc,
cx);
}qx.lang.Array.insertAfter(this.__gc,
cx,
dC);
this.__ge(cx,
dy);
},
_remove:function(cx){if(!this.__gc){return;
}qx.lang.Array.remove(this.__gc,
cx);
this.__gf(cx);
},
_removeAt:function(dz){if(!this.__gc){throw new Error("This widget has no children!");
}var cx=this.__gc[dz];
qx.lang.Array.removeAt(this.__gc,
dz);
this.__gf(cx);
return cx;
},
_removeAll:function(){if(!this.__gc){return;
}var dv=this.__gc.concat();
this.__gc.length=0;
for(var cW=dv.length-1;cW>=0;cW--){this.__gf(dv[cW]);
}qx.ui.core.queue.Layout.add(this);
},
_afterAddChild:null,
_afterRemoveChild:null,
__ge:function(cx,
dy){{};
var cw=cx.getLayoutParent();
if(cw&&cw!=this){cw._remove(cx);
}cx.setLayoutParent(this);
if(dy){cx.setLayoutProperties(dy);
}else{this.updateLayoutProperties();
}if(this._afterAddChild){this._afterAddChild(cx);
}},
__gf:function(cx){{};
cx.setLayoutParent(null);
if(this.__fX){this.__fX.invalidateChildrenCache();
}qx.ui.core.queue.Layout.add(this);
if(this._afterRemoveChild){this._afterRemoveChild(cx);
}},
capture:function(){this.__fQ.capture();
},
releaseCapture:function(){this.__fQ.releaseCapture();
},
_applyPadding:function(dD,
dE,
dF){this.__fY=true;
qx.ui.core.queue.Layout.add(this);
},
_createProtectorElement:function(){if(this.__fV){return;
}var dG=this.__fV=new qx.html.Element;
{};
dG.setStyles({position:t,
top:0,
left:0,
zIndex:7});
var cY=this.getBounds();
if(cY){this.__fV.setStyles({width:cY.width+a,
height:cY.height+a});
}if(qx.core.Variant.isSet(y,
M)){dG.setStyles({backgroundImage:bF+qx.util.ResourceManager.toUri(ct)+bG,
backgroundRepeat:bl});
}this.__fQ.add(dG);
},
__gg:function(cN){var cu=new qx.html.Element;
cu.setStyles({position:t,
top:0,
left:0});
{};
cN.init(cu);
return cu;
},
_applyDecorator:function(dD,
dE){var cT=qx.ui.core.Widget.__fS;
var da=qx.theme.manager.Decoration.getInstance();
var cE=this.__fQ;
var cV=this.__fT;
if(!this.__fV){this._createProtectorElement();
}var dH;
if(dE){if(typeof dE===m){dH=dE.toHashCode();
}else{dH=dE;
dE=da.resolve(dE);
}}var dI;
if(dD){if(typeof dD===m){dI=dD.toHashCode();
{};
}else{dI=dD;
dD=da.resolve(dD);
}}if(dE){if(!cT[dH]){cT[dH]=[];
}cE.remove(cV);
cT[dH].push(cV);
}if(dD){if(cT[dI]&&cT[dI].length>0){cV=cT[dI].pop();
}else{cV=this.__gg(dD);
cV.setStyle(p,
5);
}var dJ=this.getBackgroundColor();
dD.tint(cV,
dJ);
cE.add(cV);
this.__fT=cV;
}else{delete this.__fT;
this._applyBackgroundColor(this.getBackgroundColor());
}if(dD&&!dE&&dJ){this.getContainerElement().setStyle(u,
null);
}if(qx.ui.decoration.Util.insetsModified(dE,
dD)){this.__fY=true;
qx.ui.core.queue.Layout.add(this);
}else if(dD){var cY=this.getBounds();
if(cY){da.resolve(dD).resize(cV,
cY.width,
cY.height);
this.__fV.setStyles({width:cY.width+a,
height:cY.height+a});
}}},
_applyShadow:function(dD,
dE){var cT=qx.ui.core.Widget.__fS;
var da=qx.theme.manager.Decoration.getInstance();
var cE=this.__fQ;
var dH;
if(dE){if(typeof dE===m){dH=dE.toHashCode();
}else{dH=dE;
dE=da.resolve(dE);
}}var dI;
if(dD){if(typeof dD===m){dI=dD.toHashCode();
}else{dI=dD;
dD=da.resolve(dD);
}}if(dE){if(!cT[dH]){cT[dH]=[];
}cE.remove(this.__fU);
cT[dH].push(this.__fU);
}if(dD){var cV;
if(cT[dI]&&cT[dI].length>0){cV=cT[dI].pop();
}else{cV=this.__gg(dD);
}cE.add(cV);
this.__fU=cV;
var cI=dD.getInsets();
cV.setStyles({left:(-cI.left)+a,
top:(-cI.top)+a});
var cY=this.getBounds();
if(cY){var cQ=cY.width+cI.left+cI.right;
var cR=cY.height+cI.top+cI.bottom;
dD.resize(cV,
cQ,
cR);
}}else{delete this.__fU;
}},
_applyTextColor:function(dD,
dE){},
_applyZIndex:function(dD,
dE){this.__fQ.setStyle(p,
dD==null?0:dD);
},
_applyVisibility:function(dD,
dE){if(dD===f){this.__fQ.show();
}else{this.__fQ.hide();
}var cw=this.$$parent;
if(cw&&(dE==null||dD==null||dE===k||dD===k)){cw.invalidateLayoutChildren();
}qx.ui.core.queue.Visibility.add(this);
},
_applyOpacity:function(dD,
dE){this.__fQ.setStyle(by,
dD==1?null:dD);
},
_applyCursor:function(dD,
dE){if(dD==null&&!this.isSelectable()){dD=O;
}this.__fQ.setStyle(bJ,
dD);
},
_applyBackgroundColor:function(dD,
dE){var cN=this.getDecorator();
var cP=this.getShadow();
var dK=this.getBackgroundColor();
var cE=this.__fQ;
if(cN||cP){var cV=this.__fT;
if(cV){var cO=qx.theme.manager.Decoration.getInstance().resolve(cN);
cO.tint(this.__fT,
dK);
}cE.setStyle(u,
null);
}else{var dL=qx.theme.manager.Color.getInstance().resolve(dK);
cE.setStyle(u,
dL);
}},
_applyFont:function(dD,
dE){},
__gh:null,
$$stateChanges:null,
_forwardStates:null,
hasState:function(dM){var dN=this.__gh;
return dN&&dN[dM];
},
addState:function(dM){var dN=this.__gh;
if(!dN){dN=this.__gh={};
}
if(dN[dM]){return;
}this.__gh[dM]=true;
if(dM===w){this.syncAppearance();
}else if(!qx.ui.core.queue.Visibility.isVisible(this)){this.$$stateChanges=true;
}else{qx.ui.core.queue.Appearance.add(this);
}var dO=this._forwardStates;
var dP=this.__gk;
if(dO&&dO[dM]&&dP){var dQ;
for(var db in dP){dQ=dP[db];
if(dQ instanceof qx.ui.core.Widget){dP[db].addState(dM);
}}}},
removeState:function(dM){var dN=this.__gh;
if(!dN||!dN[dM]){return;
}delete this.__gh[dM];
if(dM===w){this.syncAppearance();
}else if(!qx.ui.core.queue.Visibility.isVisible(this)){this.$$stateChanges=true;
}else{qx.ui.core.queue.Appearance.add(this);
}var dO=this._forwardStates;
var dP=this.__gk;
if(dO&&dO[dM]&&dP){for(var db in dP){var dQ=dP[db];
if(dQ instanceof qx.ui.core.Widget){dQ.removeState(dM);
}}}},
replaceState:function(dE,
dD){var dN=this.__gh;
if(!dN){dN=this.__gh={};
}
if(!dN[dD]){dN[dD]=true;
}
if(dN[dE]){delete dN[dE];
}
if(!qx.ui.core.queue.Visibility.isVisible(this)){this.$$stateChanges=true;
}else{qx.ui.core.queue.Appearance.add(this);
}var dO=this._forwardStates;
var dP=this.__gk;
if(dO&&dO[dD]&&dP){for(var db in dP){var dQ=dP[db];
if(dQ instanceof qx.ui.core.Widget){dQ.replaceState(dE,
dD);
}}}},
__gi:null,
__gj:null,
syncAppearance:function(){var dN=this.__gh;
var dR=this.__gi;
var cM=qx.theme.manager.Appearance.getInstance();
var dS=qx.core.Property.$$method.setThemed;
var dT=qx.core.Property.$$method.resetThemed;
if(this.__gj){delete this.__gj;
if(dR){var dU=cM.styleFrom(dR,
dN);
if(dU){dR=null;
}}}if(!dR){var dV=this;
var db=[];
do{db.push(dV.$$subcontrol||dV.getAppearance());
}while(dV=dV.$$subparent);
dR=this.__gi=db.reverse().join(ce).replace(/#[0-9]+/g,
cf);
}var dW=cM.styleFrom(dR,
dN);
if(dW){if(dU){for(var dX in dU){if(dW[dX]===undefined){this[dT[dX]]();
}}}var dX;
var dX;
for(var dX in dW){dW[dX]===undefined?this[dT[dX]]():this[dS[dX]](dW[dX]);
}}else if(dU){for(var dX in dU){this[dT[dX]]();
}}},
_applyAppearance:function(dD,
dE){this.updateAppearance();
},
checkAppearanceNeeds:function(){if(!this.__fW){qx.ui.core.queue.Appearance.add(this);
this.__fW=true;
}else if(this.$$stateChanges){qx.ui.core.queue.Appearance.add(this);
delete this.$$stateChanges;
}},
updateAppearance:function(){this.__gj=true;
qx.ui.core.queue.Appearance.add(this);
var dP=this.__gk;
if(dP){var dV;
for(var db in dP){dV=dP[db];
if(dV instanceof qx.ui.core.Widget){dV.updateAppearance();
}}}},
syncWidget:function(){},
getEventTarget:function(){var dY=this;
while(dY.getAnonymous()){dY=dY.getLayoutParent();
if(!dY){return null;
}}return dY;
},
getFocusTarget:function(){var dY=this;
if(!dY.getEnabled()){return null;
}
while(dY.getAnonymous()||!dY.getFocusable()){dY=dY.getLayoutParent();
if(!dY||!dY.getEnabled()){return null;
}}return dY;
},
getFocusElement:function(){return this.__fQ;
},
isTabable:function(){return this.getContainerElement().getDomElement()&&this.isFocusable();
},
_applyFocusable:function(dD,
dE){var dY=this.getFocusElement();
if(dD){var ea=this.getTabIndex();
if(ea==null){ea=1;
}dY.setAttribute(r,
ea);
if(qx.core.Variant.isSet(y,
M)){dY.setAttribute(bz,
bX);
}else{dY.setStyle(bA,
N);
}}else{if(dY.isNativelyFocusable()){dY.setAttribute(r,
-1);
}else if(dE){dY.setAttribute(r,
null);
}}},
_applyKeepFocus:function(dD){var dY=this.getFocusElement();
dY.setAttribute(cr,
dD?j:null);
},
_applyKeepActive:function(dD){var dY=this.getContainerElement();
dY.setAttribute(cm,
dD?j:null);
},
_applyTabIndex:function(dD){if(dD==null){dD=1;
}else if(dD<1||dD>32000){throw new Error("TabIndex property must be between 1 and 32000");
}
if(this.getFocusable()&&dD!=null){this.getFocusElement().setAttribute(r,
dD);
}},
_applySelectable:function(dD){this._applyCursor(this.getCursor());
this.__fQ.setAttribute(ci,
dD?j:bP);
if(qx.core.Variant.isSet(y,
co)){this.__fQ.setStyle(bq,
dD?bc:N);
}},
_applyEnabled:function(dD,
dE){if(dD===false){this.addState(C);
this.removeState(w);
if(this.isFocusable()){this.removeState(v);
this._applyFocusable(false,
true);
}}else{this.removeState(C);
if(this.isFocusable()){this._applyFocusable(true,
false);
}}},
_applyContextMenu:function(dD,
dE){if(dE){dE.removeState(s);
if(dE.getOpener()==this){dE.resetOpener();
}
if(!dD){this.removeListener(s,
this._onContextMenuOpen);
}}
if(dD){dD.setOpener(this);
dD.addState(s);
if(!dE){this.addListener(s,
this._onContextMenuOpen);
}}},
_onContextMenuOpen:function(eb){var ec=this.getContextMenu();
ec.placeToMouse(eb);
ec.show();
eb.preventDefault();
},
_onStopEvent:function(eb){eb.stopPropagation();
},
_applyDraggable:function(dD,
dE){qx.ui.core.DragDropCursor.getInstance();
if(dD){this.addListener(E,
this._onDragStart);
this.addListener(T,
this._onDrag);
this.addListener(H,
this._onDragEnd);
this.addListener(F,
this._onDragChange);
}else{this.removeListener(E,
this._onDragStart);
this.removeListener(T,
this._onDrag);
this.removeListener(H,
this._onDragEnd);
this.removeListener(F,
this._onDragChange);
}this.__fQ.setAttribute(bm,
dD?j:null);
},
_applyDroppable:function(dD,
dE){this.__fQ.setAttribute(bK,
dD?j:null);
},
_onDragStart:function(eb){qx.ui.core.DragDropCursor.getInstance().placeToMouse(eb);
this.getApplicationRoot().setGlobalCursor(O);
},
_onDrag:function(eb){qx.ui.core.DragDropCursor.getInstance().placeToMouse(eb);
},
_onDragEnd:function(eb){qx.ui.core.DragDropCursor.getInstance().moveTo(-1000,
-1000);
this.getApplicationRoot().resetGlobalCursor();
},
_onDragChange:function(eb){var ed=qx.ui.core.DragDropCursor.getInstance();
var ee=eb.getCurrentAction();
ee?ed.setAction(ee):ed.resetAction();
},
visualizeFocus:function(){this.addState(v);
},
visualizeBlur:function(){this.removeState(v);
},
scrollChildIntoView:function(cx,
ef,
eg,
eh){this.scrollChildIntoViewX(cx,
ef,
eh);
this.scrollChildIntoViewY(cx,
eg,
eh);
},
scrollChildIntoViewX:function(cx,
ei,
eh){this.__fR.scrollChildIntoViewX(cx.getContainerElement(),
ei,
eh);
},
scrollChildIntoViewY:function(cx,
ei,
eh){this.__fR.scrollChildIntoViewY(cx.getContainerElement(),
ei,
eh);
},
focus:function(){if(this.isFocusable()){this.getFocusElement().focus();
}else{throw new Error("Widget is not focusable!");
}},
blur:function(){if(this.isFocusable()){this.getFocusElement().blur();
}else{throw new Error("Widget is not focusable!");
}},
activate:function(){this.__fQ.activate();
},
deactivate:function(){this.__fQ.deactivate();
},
tabFocus:function(){this.getFocusElement().focus();
},
_hasChildControl:function(db){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
bV);
return this.hasChildControl(db);
},
hasChildControl:function(db){if(!this.__gk){return false;
}return !!this.__gk[db];
},
__gk:null,
_getChildControl:function(db,
ej){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
U);
return this.getChildControl(db,
ej);
},
getChildControl:function(db,
ej){if(!this.__gk){if(ej){return null;
}this.__gk={};
}var dQ=this.__gk[db];
if(dQ){return dQ;
}
if(ej===true){return null;
}return this._createChildControl(db);
},
_showChildControl:function(db){var dQ=this.getChildControl(db);
dQ.show();
return dQ;
},
_excludeChildControl:function(db){var dQ=this.getChildControl(db,
true);
if(dQ){dQ.exclude();
}},
_isChildControlVisible:function(db){var dQ=this.getChildControl(db,
true);
if(dQ){return dQ.isVisible();
}return false;
},
_createChildControl:function(db){if(!this.__gk){this.__gk={};
}else if(this.__gk[db]){throw new Error("Child control '"+db+"' already created!");
}var ek=db.indexOf(br);
if(ek==-1){var dQ=this._createChildControlImpl(db);
}else{var dQ=this._createChildControlImpl(db.substring(0,
ek));
}
if(!dQ){throw new Error("Unsupported control: "+db);
}dQ.$$subcontrol=db;
dQ.$$subparent=this;
var dN=this.__gh;
var dO=this._forwardStates;
if(dN&&dO&&dQ instanceof qx.ui.core.Widget){for(var dM in dN){if(dO[dM]){dQ.addState(dM);
}}}return this.__gk[db]=dQ;
},
_createChildControlImpl:function(db){return null;
},
_disposeChildControls:function(){var dP=this.__gk;
if(!dP){return;
}var em=qx.ui.core.Widget;
for(var db in dP){var dQ=dP[db];
if(!em.contains(this,
dQ)){dQ.destroy();
}else{dQ.dispose();
}}delete this.__gk;
},
_findTopControl:function(){var dV=this;
while(dV){if(!dV.$$subparent){return dV;
}dV=dV.$$subparent;
}return null;
},
getContainerLocation:function(en){var eo=this.getContainerElement().getDomElement();
return eo?qx.bom.element.Location.get(eo,
en):null;
},
getContentLocation:function(en){var eo=this.getContentElement().getDomElement();
return eo?qx.bom.element.Location.get(eo,
en):null;
},
setDomLeft:function(dD){var eo=this.getContainerElement().getDomElement();
if(eo){eo.style.left=dD+a;
}else{throw new Error("DOM element is not yet created!");
}},
setDomTop:function(dD){var eo=this.getContainerElement().getDomElement();
if(eo){eo.style.top=dD+a;
}else{throw new Error("DOM element is not yet created!");
}},
setDomPosition:function(cz,
cA){var eo=this.getContainerElement().getDomElement();
if(eo){eo.style.left=cz+a;
eo.style.top=cA+a;
}else{throw new Error("DOM element is not yet created!");
}},
destroy:function(){if(this.$$disposed){return;
}var cw=this.$$parent;
if(cw){cw._remove(this);
}qx.ui.core.queue.Dispose.add(this);
},
clone:function(){var ep=arguments.callee.base.call(this);
if(this.getChildren){var dv=this.getChildren();
for(var cW=0,
cX=dv.length;cW<cX;cW++){ep.add(dv[cW].clone());
}}return ep;
},
serialize:function(){var eq=arguments.callee.base.call(this);
if(this.getChildren){var dv=this.getChildren();
if(dv.length>0){eq.children=[];
for(var cW=0,
cX=dv.length;cW<cX;cW++){eq.children.push(dv[cW].serialize());
}}}
if(this.getLayout){var cy=this.getLayout();
if(cy){eq.layout=cy.serialize();
}}return eq;
}},
destruct:function(){if(!qx.core.ObjectRegistry.inShutDown){this.__fQ.setAttribute(L,
null,
true);
this._disposeChildControls();
qx.ui.core.queue.Appearance.remove(this);
qx.ui.core.queue.Layout.remove(this);
qx.ui.core.queue.Visibility.remove(this);
qx.ui.core.queue.Widget.remove(this);
}this._disposeArray(cj);
this._disposeArray(cs);
this._disposeFields(cg,
ba);
this._disposeObjects(bE,
bS,
bn,
V,
be,
bW);
}});
})();
(function(){var a="100%",
b="mshtml",
c="backgroundColor",
d="repeat",
e="opacity",
f="_applyBlockerColor",
g="Number",
h="zIndex",
j=")",
k="qx.client",
l="url(",
m="qx.ui.core.MBlocker",
n="_applyBlockerOpacity",
o="Color",
p="qx/static/blank.gif",
q="__go",
r="absolute";
qx.Mixin.define(m,
{properties:{blockerColor:{check:o,
init:null,
nullable:true,
apply:f,
themeable:true},
blockerOpacity:{check:g,
init:1,
apply:n,
themeable:true}},
members:{__gl:null,
__gm:null,
__gn:null,
__go:null,
__gp:null,
_applyBlockerColor:function(s,
t){var u=[];
this.__gl&&u.push(this.__gl);
this.__go&&u.push(this.__go);
for(var v=0;v<u.length;v++){u[v].setStyle(c,
qx.theme.manager.Color.getInstance().resolve(s));
}},
_applyBlockerOpacity:function(s,
t){var u=[];
this.__gl&&u.push(this.__gl);
this.__go&&u.push(this.__go);
for(var v=0;v<u.length;v++){u[v].setStyle(e,
s);
}},
__gq:function(){var w=new qx.html.Element().setStyles({position:r,
width:a,
height:a,
opacity:this.getBlockerOpacity(),
backgroundColor:qx.theme.manager.Color.getInstance().resolve(this.getBlockerColor())});
if(qx.core.Variant.isSet(k,
b)){w.setStyles({backgroundImage:l+qx.util.ResourceManager.toUri(p)+j,
backgroundRepeat:d});
}return w;
},
_getBlocker:function(){if(!this.__gl){this.__gl=this.__gq();
this.getContentElement().add(this.__gl);
this.__gl.exclude();
}return this.__gl;
},
block:function(){if(this.__gm){return;
}this.__gm=true;
this._getBlocker().include();
this.__gn=this.getAnonymous();
this.setAnonymous(true);
},
isBlocked:function(){return !!this.__gm;
},
unblock:function(){if(!this.__gm){return;
}this.__gm=false;
this.setAnonymous(this.__gn);
this._getBlocker().exclude();
},
_getContentBlocker:function(){if(!this.__go){this.__go=this.__gq();
this.getContentElement().add(this.__go);
this.__go.exclude();
}return this.__go;
},
blockContent:function(x){var w=this._getContentBlocker();
w.setStyle(h,
x);
if(this.__gp){return;
}this.__gp=true;
w.include();
},
isContentBlocked:function(){return !!this.__gp;
},
unblockContent:function(){if(!this.__gp){return;
}this.__gp=false;
this._getContentBlocker().exclude();
}},
destruct:function(){this._disposeObjects(q);
}});
})();
(function(){var a="qx.ui.window.Window",
b="changeModal",
c="changeVisibility",
d="changeActive",
f="_applyActiveWindow",
g="__gs",
h="__gr",
i="qx.ui.window.MDesktop";
qx.Mixin.define(i,
{properties:{activeWindow:{check:a,
apply:f}},
members:{__gr:null,
__gs:null,
getWindowManager:function(){if(!this.__gs){this.setWindowManager(new qx.ui.window.Window.DEFAULT_MANAGER_CLASS());
}return this.__gs;
},
supportsMaximize:function(){return true;
},
setWindowManager:function(j){if(this.__gs){this.__gs.setDesktop(null);
}j.setDesktop(this);
this.__gs=j;
},
_onChangeActive:function(k){if(k.getData()){this.setActiveWindow(k.getTarget());
}},
_applyActiveWindow:function(l,
m){this.getWindowManager().changeActiveWindow(l,
m);
l.setActive(true);
if(m){m.resetActive();
}},
_onChangeModal:function(k){this.getWindowManager().updateStack();
},
_onChangeVisibility:function(){this.getWindowManager().updateStack();
},
_afterAddChild:function(n){if(qx.Class.isDefined(a)&&n instanceof qx.ui.window.Window){this._addWindow(n);
}},
_addWindow:function(n){this.getWindows().push(n);
n.addListener(d,
this._onChangeActive,
this);
n.addListener(b,
this._onChangeModal,
this);
n.addListener(c,
this._onChangeVisibility,
this);
if(n.getActive()){this.setActiveWindow(n);
}this.getWindowManager().updateStack();
},
_afterRemoveChild:function(n){if(qx.Class.isDefined(a)&&n instanceof qx.ui.window.Window){this._removeWindow(n);
}},
_removeWindow:function(n){qx.lang.Array.remove(this.getWindows(),
n);
n.removeListener(d,
this._onChangeActive,
this);
n.removeListener(b,
this._onChangeModal,
this);
n.removeListener(c,
this._onChangeVisibility,
this);
this.getWindowManager().updateStack();
},
getWindows:function(){if(!this.__gr){this.__gr=[];
}return this.__gr;
}},
destruct:function(){this._disposeArray(h);
this._disposeObjects(g);
}});
})();
(function(){var a="contextmenu",
b="changeGlobalCursor",
c="__gt",
d="abstract",
f="Boolean",
g="root",
h="",
i="_applyNativeContextMenu",
j=" !important",
k="_applyGlobalCursor",
l="qx.client",
m=";",
n="qx.ui.root.Abstract",
o="String",
p="*";
qx.Class.define(n,
{type:d,
extend:qx.ui.core.Widget,
include:[qx.ui.core.MChildrenHandling,
qx.ui.core.MBlocker,
qx.ui.window.MDesktop],
construct:function(){arguments.callee.base.call(this);
qx.ui.core.FocusHandler.getInstance().addRoot(this);
qx.ui.core.queue.Visibility.add(this);
},
properties:{appearance:{refine:true,
init:g},
enabled:{refine:true,
init:true},
focusable:{refine:true,
init:true},
globalCursor:{check:o,
nullable:true,
themeable:true,
apply:k,
event:b},
nativeContextMenu:{check:f,
nullable:true,
apply:i,
init:true}},
members:{__gt:null,
isRootWidget:function(){return true;
},
getLayout:function(){return this._getLayout();
},
_applyGlobalCursor:qx.core.Variant.select(l,
{"mshtml":function(q,
r){},
"default":function(q,
r){var s=qx.bom.Stylesheet;
var t=this.__gt;
if(!t){this.__gt=t=s.createElement();
}s.removeAllRules(t);
if(q){s.addRule(t,
p,
qx.bom.element.Cursor.compile(q).replace(m,
h)+j);
}}}),
_applyNativeContextMenu:function(q,
r){if(q){this.removeListener(a,
this._onNativeContextMenu,
this,
true);
}else{this.addListener(a,
this._onNativeContextMenu,
this,
true);
}},
_onNativeContextMenu:function(u){u.preventDefault();
}},
destruct:function(){this._disposeFields(c);
},
defer:function(v,
w){qx.ui.core.MChildrenHandling.remap(w);
}});
})();
(function(){var a="resize",
b="__gu",
c="position",
d="0px",
f="__gv",
g="$$widget",
h="qx.ui.root.Application",
i="hidden",
j="div",
k="100%",
l="absolute";
qx.Class.define(h,
{extend:qx.ui.root.Abstract,
construct:function(m){this.__gu=qx.dom.Node.getWindow(m);
this.__gv=m;
arguments.callee.base.call(this);
qx.event.Registration.addListener(this.__gu,
a,
this._onResize,
this);
this._setLayout(new qx.ui.layout.Canvas());
qx.ui.core.queue.Layout.add(this);
qx.ui.core.FocusHandler.getInstance().connectTo(this);
},
members:{__gu:null,
__gv:null,
_createContainerElement:function(){var m=this.__gv;
var n=m.documentElement.style;
var o=m.body.style;
n.overflow=o.overflow=i;
n.padding=n.margin=o.padding=o.margin=d;
n.width=n.height=o.width=o.height=k;
var p=m.createElement(j);
m.body.appendChild(p);
var q=new qx.html.Root(p);
q.setStyle(c,
l);
q.setAttribute(g,
this.toHashCode());
return q;
},
_onResize:function(r){qx.ui.core.queue.Layout.add(this);
},
_computeSizeHint:function(){var s=qx.bom.Viewport.getWidth(this.__gu);
var t=qx.bom.Viewport.getHeight(this.__gu);
return {minWidth:s,
width:s,
maxWidth:s,
minHeight:t,
height:t,
maxHeight:t};
}},
destruct:function(){this._disposeFields(b,
f);
}});
})();
(function(){var a="blur",
b="focus",
c="load",
d="input",
e="qx.ui.core.EventHandler",
f="__gw";
qx.Class.define(e,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(){arguments.callee.base.call(this);
this.__gw=qx.event.Registration.getManager();
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_FIRST,
SUPPORTED_TYPES:{mousemove:1,
mouseover:1,
mouseout:1,
mousedown:1,
mouseup:1,
click:1,
dblclick:1,
contextmenu:1,
mousewheel:1,
keyup:1,
keydown:1,
keypress:1,
keyinput:1,
capture:1,
losecapture:1,
focusin:1,
focusout:1,
focus:1,
blur:1,
activate:1,
deactivate:1,
appear:1,
disappear:1,
dragstart:1,
dragend:1,
dragover:1,
dragleave:1,
drop:1,
drag:1,
dragchange:1,
droprequest:1},
IGNORE_CAN_HANDLE:false},
members:{__gw:null,
__gx:{focusin:1,
focusout:1,
focus:1,
blur:1},
__gy:{mouseover:1,
mouseout:1,
appear:1,
disappear:1},
canHandleEvent:function(g,
h){return g instanceof qx.ui.core.Widget;
},
_dispatchEvent:function(j){var k=j.getTarget();
var m=qx.ui.core.Widget.getWidgetByElement(k,
true);
while(m&&m.isAnonymous()){m=m.getLayoutParent();
}if(this.__gx[j.getType()]){m=m&&m.getFocusTarget();
if(!m){return;
}}if(j.getRelatedTarget){var n=j.getRelatedTarget();
var o=qx.ui.core.Widget.getWidgetByElement(n);
while(o&&o.isAnonymous()){o=o.getLayoutParent();
}
if(o){if(this.__gx[j.getType()]){o=o.getFocusTarget();
}if(o===m){return;
}}}var p=j.getCurrentTarget();
var q=qx.ui.core.Widget.getWidgetByElement(p);
if(!q||q.isAnonymous()){return;
}if(this.__gx[j.getType()]){q=q.getFocusTarget();
}var h=j.getType();
if(!(q.isEnabled()||this.__gy[h])){return;
}var r=j.getEventPhase()==qx.event.type.Event.CAPTURING_PHASE;
var s=this.__gw.getListeners(q,
h,
r);
if(!s||s.length===0){return;
}var t=qx.event.Pool.getInstance().getObject(j.constructor);
j.clone(t);
t.setTarget(m);
t.setRelatedTarget(o||null);
t.setCurrentTarget(q);
var u=j.getOriginalTarget();
if(u){var v=qx.ui.core.Widget.getWidgetByElement(u);
while(v&&v.isAnonymous()){v=v.getLayoutParent();
}t.setOriginalTarget(v);
}else{t.setOriginalTarget(k);
}for(var w=0,
x=s.length;w<x;w++){var y=s[w].context||q;
s[w].handler.call(y,
t);
}if(t.getPropagationStopped()){j.stopPropagation();
}
if(t.getDefaultPrevented()){j.preventDefault();
}qx.event.Pool.getInstance().poolObject(t);
},
registerEvent:function(g,
h,
r){var z;
if(h===b||h===a){z=g.getFocusElement();
}else if(h===c||h===d){z=g.getContentElement();
}else{z=g.getContainerElement();
}
if(z){z.addListener(h,
this._dispatchEvent,
this,
r);
}},
unregisterEvent:function(g,
h,
r){var z;
if(h===b||h===a){z=g.getFocusElement();
}else if(h===c||h===d){z=g.getContentElement();
}else{z=g.getContainerElement();
}
if(z){z.removeListener(h,
this._dispatchEvent,
this,
r);
}}},
destruct:function(){this._disposeFields(f);
},
defer:function(A){qx.event.Registration.addHandler(A);
}});
})();
(function(){var a="replacement",
b="Boolean",
c="_applyScale",
d="_applySource",
e="-disabled.$1",
f="changeSource",
g="String",
h="image",
i="qx.ui.basic.Image";
qx.Class.define(i,
{extend:qx.ui.core.Widget,
construct:function(j){arguments.callee.base.call(this);
if(j){this.setSource(j);
}},
properties:{source:{check:g,
init:null,
nullable:true,
event:f,
apply:d,
themeable:true},
scale:{check:b,
init:false,
themeable:true,
apply:c},
appearance:{refine:true,
init:h},
allowShrinkX:{refine:true,
init:false},
allowShrinkY:{refine:true,
init:false},
allowGrowX:{refine:true,
init:false},
allowGrowY:{refine:true,
init:false}},
members:{__gz:null,
__gA:null,
_createContentElement:function(){return new qx.html.Image();
},
_getContentHint:function(){return {width:this.__gz||0,
height:this.__gA||0};
},
_applyEnabled:function(k,
l){arguments.callee.base.call(this,
k,
l);
if(this.getSource()){this._styleSource();
}},
_applySource:function(k){this._styleSource();
},
_applyScale:function(k){var m=this.getContentElement();
m.setScale(k);
},
_styleSource:function(){var j=qx.util.AliasManager.getInstance().resolve(this.getSource());
var m=this.getContentElement();
if(!j){m.resetSource();
return;
}var n=qx.util.ResourceManager;
var o=qx.io2.ImageLoader;
if(n.has(j)){if(!this.getEnabled()){var p=j.replace(/\.([a-z]+)$/,
e);
if(n.has(p)){j=p;
this.addState(a);
}else{this.removeState(a);
}}if(m.getSource()===j){return;
}m.setSource(j);
this.__gC(n.getImageWidth(j),
n.getImageHeight(j));
}else if(o.isLoaded(j)){m.setSource(j);
var q=o.getWidth(j);
var r=o.getHeight(j);
this.__gC(q,
r);
}else{var s;
if(!qx.io2.ImageLoader.isFailed(j)){qx.io2.ImageLoader.load(j,
this.__gB,
this);
}}},
__gB:function(j,
t){if(j!==qx.util.AliasManager.getInstance().resolve(this.getSource())){return;
}if(!t){this.warn("Image could not be loaded: "+j);
return;
}this._styleSource();
},
__gC:function(q,
r){if(q!==this.__gz||r!==this.__gA){this.__gz=q;
this.__gA=r;
qx.ui.core.queue.Layout.add(this);
}}}});
})();
(function(){var a="interval",
b="Integer",
c="resize",
d="Boolean",
e="disappear",
f="bottom-left",
g="offsetLeft",
h="offsetRight",
i="right-top",
j="top-right",
k="top-left",
l="bottom-right",
m="right-bottom",
n="offsetBottom",
o="qx.ui.core.MPlacement",
p="left-top",
q="left-bottom",
r="shorthand",
s="offsetTop";
qx.Mixin.define(o,
{properties:{position:{check:[k,
j,
f,
l,
p,
q,
i,
m],
init:f,
themeable:true},
domMove:{check:d,
init:false},
smart:{check:d,
init:true,
themeable:true},
offsetLeft:{check:b,
init:0,
themeable:true},
offsetTop:{check:b,
init:0,
themeable:true},
offsetRight:{check:b,
init:0,
themeable:true},
offsetBottom:{check:b,
init:0,
themeable:true},
offset:{group:[s,
h,
n,
g],
mode:r,
themeable:true}},
members:{__gD:null,
__gE:null,
getLayoutLocation:function(t){var u,
v,
w,
x;
v=t.getBounds();
w=v.left;
x=v.top;
var y=v;
t=t.getLayoutParent();
while(t&&!t.isRootWidget()){v=t.getBounds();
w+=v.left;
x+=v.top;
u=t.getInsets();
w+=u.left;
x+=u.top;
t=t.getLayoutParent();
}if(t.isRootWidget()){var z=t.getContainerLocation();
if(z){w+=z.left;
x+=z.top;
}}return {left:w,
top:x,
right:w+y.width,
bottom:x+y.height};
},
moveTo:function(w,
x){if(this.getDomMove()){this.setDomPosition(w,
x);
}else{this.setLayoutProperties({left:w,
top:x});
}},
placeToWidget:function(A,
B){if(B){this.__gE=qx.lang.Function.bind(this.placeToWidget,
this,
A,
false);
qx.event.Idle.getInstance().addListener(a,
this.__gE);
this.addListener(e,
function(){if(this.__gE){qx.event.Idle.getInstance().removeListener(a,
this.__gE);
this.__gE=null;
}},
this);
}var C=A.getContainerLocation()||this.getLayoutLocation(A);
this.__gF(C);
},
placeToMouse:function(D){var w=D.getDocumentLeft();
var x=D.getDocumentTop();
var C={left:w,
top:x,
right:w,
bottom:x};
this.__gF(C);
},
placeToElement:function(E,
B){var F=qx.bom.element.Location.get(E);
var C={left:F.left,
top:F.top,
right:F.left+E.offsetWidth,
bottom:F.top+E.offsetHeight};
if(B){this.__gE=qx.lang.Function.bind(this.placeToElement,
this,
E,
false);
qx.event.Idle.getInstance().addListener(a,
this.__gE);
this.addListener(e,
function(){if(this.__gE){qx.event.Idle.getInstance().removeListener(a,
this.__gE);
this.__gE=null;
}},
this);
}this.__gF(C);
},
placeToPoint:function(G){var C={left:G.left,
top:G.top,
right:G.left,
bottom:G.top};
this.__gF(C);
},
__gF:function(C){var y=this.getBounds();
if(y==null){if(!this.__gD){this.addListener(c,
this.__gF);
}this.__gD=C;
return;
}else if(this.__gD){C=this.__gD;
delete this.__gD;
this.removeListener(c,
this.__gF);
}var H=this.getLayoutParent().getBounds();
var I=this.getPosition();
var J=this.getSmart();
var K={left:this.getOffsetLeft(),
top:this.getOffsetTop(),
right:this.getOffsetRight(),
bottom:this.getOffsetBottom()};
var L=qx.util.PlaceUtil.compute(y,
H,
C,
I,
J,
K);
this.moveTo(L.left,
L.top);
}}});
})();
(function(){var a="dragdrop-cursor",
b="_applyAction",
c="alias",
d="qx.ui.core.DragDropCursor",
e="move",
f="singleton",
g="copy";
qx.Class.define(d,
{extend:qx.ui.basic.Image,
include:qx.ui.core.MPlacement,
type:f,
construct:function(){arguments.callee.base.call(this);
this.setZIndex(1e8);
this.setDomMove(true);
var h=this.getApplicationRoot();
h.add(this,
{left:-1000,
top:-1000});
},
properties:{appearance:{refine:true,
init:a},
action:{check:[c,
g,
e],
apply:b,
nullable:true}},
members:{_applyAction:function(i,
j){if(j){this.removeState(j);
}
if(i){this.addState(i);
}}}});
})();
(function(){var a="source",
b="scale",
c="no-repeat",
d="mshtml",
e="qx.client",
f="qx.html.Image";
qx.Class.define(f,
{extend:qx.html.Element,
members:{_applyProperty:function(g,
h){arguments.callee.base.call(this,
g,
h);
if(g===a){var i=this.getDomElement();
var j=this.getAllStyles();
var k=this._getProperty(a);
var l=this._getProperty(b);
var m=l?b:c;
qx.bom.element.Decoration.update(i,
k,
m,
j);
}},
_createDomElement:function(){var l=this._getProperty(b);
var m=l?b:c;
if(qx.core.Variant.isSet(e,
d)){var k=this._getProperty(a);
this.setNodeName(qx.bom.element.Decoration.getTagName(m,
k));
}else{this.setNodeName(qx.bom.element.Decoration.getTagName(m));
}return arguments.callee.base.call(this);
},
_copyData:function(n){return arguments.callee.base.call(this,
true);
},
setSource:function(h){this._setProperty(a,
h);
return this;
},
getSource:function(){return this._getProperty(a);
},
resetSource:function(){this._removeProperty(a);
return this;
},
setScale:function(h){this._setProperty(b,
h);
return this;
},
getScale:function(){return this._getProperty(b);
}}});
})();
(function(){var a="interval",
b="__gG",
c="Number",
d="_applyTimeoutInterval",
e="qx.event.type.Event",
f="qx.event.Idle",
g="singleton";
qx.Class.define(f,
{extend:qx.core.Object,
type:g,
construct:function(){arguments.callee.base.call(this);
var h=new qx.event.Timer(this.getTimeoutInterval());
h.addListener(a,
this._onInterval,
this);
h.start();
this.__gG=h;
},
events:{"interval":e},
properties:{timeoutInterval:{check:c,
init:100,
apply:d}},
members:{__gG:null,
_applyTimeoutInterval:function(i){this.__gG.setInterval(i);
},
_onInterval:function(){this.fireEvent(a);
}},
destruct:function(){if(this.__gG){this.__gG.stop();
}this._disposeFields(b);
}});
})();
(function(){var a="interval",
b="qx.event.Timer",
c="_applyInterval",
d="_applyEnabled",
f="Boolean",
g="__gI",
h="__gH",
i="qx.event.type.Event",
j="Integer";
qx.Class.define(b,
{extend:qx.core.Object,
construct:function(k){arguments.callee.base.call(this);
this.setEnabled(false);
if(k!=null){this.setInterval(k);
}this.__gH=qx.lang.Function.bind(this._oninterval,
this);
},
events:{"interval":i},
statics:{once:function(l,
m,
n){var o=new qx.event.Timer(n);
o.addListener(a,
function(p){o.stop();
l.call(m,
p);
o.dispose();
m=null;
},
m);
o.start();
return o;
}},
properties:{enabled:{init:true,
check:f,
apply:d},
interval:{check:j,
init:1000,
apply:c}},
members:{__gI:null,
_applyInterval:function(q,
r){if(this.getEnabled()){this.restart();
}},
_applyEnabled:function(q,
r){if(r){window.clearInterval(this.__gI);
this.__gI=null;
}else if(q){this.__gI=window.setInterval(this.__gH,
this.getInterval());
}},
start:function(){this.setEnabled(true);
},
startWith:function(k){this.setInterval(k);
this.start();
},
stop:function(){this.setEnabled(false);
},
restart:function(){this.stop();
this.start();
},
restartWith:function(k){this.stop();
this.startWith(k);
},
_oninterval:function(){if(this.getEnabled()){this.fireEvent(a);
}}},
destruct:function(){if(this.__gI){window.clearInterval(this.__gI);
}this._disposeFields(g,
h);
}});
})();
(function(){var a="bottom",
b="top",
c="left",
d="right",
e="-",
f="qx.util.PlaceUtil";
qx.Class.define(f,
{statics:{compute:function(g,
h,
i,
j,
k,
l){var m=0;
var n=0;
var o,
p;
var q=j.split(e);
var r=q[0];
var s=q[1];
var t=0,
u=0,
v=0,
w=0;
if(l){t+=l.left||0;
u+=l.top||0;
v+=l.right||0;
w+=l.bottom||0;
}switch(r){case c:m=i.left-g.width-t;
break;
case b:n=i.top-g.height-u;
break;
case d:m=i.right+v;
break;
case a:n=i.bottom+w;
break;
}switch(s){case c:m=i.left;
break;
case b:n=i.top;
break;
case d:m=i.right-g.width;
break;
case a:n=i.bottom-g.height;
break;
}
if(k===false){return {left:m,
top:n};
}else{var x=Math.min(m,
h.width-m-g.width);
if(x<0){var y=m;
if(m<0){if(r==c){y=i.right+v;
}else if(s==d){y=i.left;
}}else{if(r==d){y=i.left-g.width-t;
}else if(s==c){y=i.right-g.width;
}}o=Math.min(y,
h.width-y-g.width);
if(o>x){m=y;
x=o;
}}var z=Math.min(n,
h.height-n-g.height);
if(z<0){var A=n;
if(n<0){if(r==b){A=i.bottom+w;
}else if(s==a){A=i.top;
}}else{if(r==a){A=i.top-g.height-u;
}else if(s==b){A=i.bottom-g.height;
}}p=Math.min(A,
h.height-A-g.height);
if(p>z){n=A;
z=p;
}}return {left:m,
top:n,
ratingX:x,
ratingY:z};
}}}});
})();
(function(){var a="__gJ",
b="keypress",
c="focusout",
d="__gK",
f="activate",
g="__gM",
h="Tab",
j="__gL",
k="singleton",
m="deactivate",
n="focusin",
o="qx.ui.core.FocusHandler";
qx.Class.define(o,
{extend:qx.core.Object,
type:k,
construct:function(){arguments.callee.base.call(this);
this.__gJ={};
},
members:{__gJ:null,
__gK:null,
__gL:null,
__gM:null,
connectTo:function(p){p.addListener(b,
this.__gN,
this);
p.addListener(n,
this._onFocusIn,
this,
true);
p.addListener(c,
this._onFocusOut,
this,
true);
p.addListener(f,
this._onActivate,
this,
true);
p.addListener(m,
this._onDeactivate,
this,
true);
},
addRoot:function(q){this.__gJ[q.$$hash]=q;
},
removeRoot:function(q){delete this.__gJ[q.$$hash];
},
getActiveWidget:function(){return this.__gK;
},
isActive:function(q){return this.__gK==q;
},
getFocusedWidget:function(){return this.__gL;
},
isFocused:function(q){return this.__gL==q;
},
isFocusRoot:function(q){return !!this.__gJ[q.$$hash];
},
_onActivate:function(r){var s=r.getTarget();
this.__gK=s;
var p=this.__gO(s);
if(p!=this.__gM){this.__gM=p;
}},
_onDeactivate:function(r){var s=r.getTarget();
if(this.__gK==s){this.__gK=null;
}},
_onFocusIn:function(r){var s=r.getTarget();
if(s!=this.__gL){this.__gL=s;
s.visualizeFocus();
}},
_onFocusOut:function(r){var s=r.getTarget();
if(s==this.__gL){this.__gL=null;
s.visualizeBlur();
}},
__gN:function(r){if(r.getKeyIdentifier()!=h){return;
}
if(!this.__gM){return;
}r.stopPropagation();
r.preventDefault();
var t=this.__gL;
if(!r.isShiftPressed()){var u=t?this.__gS(t):this.__gQ();
}else{var u=t?this.__gT(t):this.__gR();
}if(u){u.tabFocus();
}},
__gO:function(q){var v=this.__gJ;
while(q){if(v[q.$$hash]){return q;
}q=q.getLayoutParent();
}return null;
},
__gP:function(w,
x){if(w===x){return 0;
}var y=w.getTabIndex()||0;
var z=x.getTabIndex()||0;
if(y!=z){return y-z;
}var A=w.getContainerElement().getDomElement();
var B=x.getContainerElement().getDomElement();
var C=qx.bom.element.Location;
var D=C.get(A);
var E=C.get(B);
if(D.top!=E.top){return D.top-E.top;
}if(D.left!=E.left){return D.left-E.left;
}var F=w.getZIndex();
var G=x.getZIndex();
if(F!=G){return F-G;
}return 0;
},
__gQ:function(){return this.__gW(this.__gM,
null);
},
__gR:function(){return this.__gX(this.__gM,
null);
},
__gS:function(q){var p=this.__gM;
if(p==q){return this.__gQ();
}
while(q&&q.getAnonymous()){q=q.getLayoutParent();
}
if(q==null){return [];
}var H=[];
this.__gU(p,
q,
H);
H.sort(this.__gP);
var I=H.length;
return I>0?H[0]:this.__gQ();
},
__gT:function(q){var p=this.__gM;
if(p==q){return this.__gR();
}
while(q&&q.getAnonymous()){q=q.getLayoutParent();
}
if(q==null){return [];
}var H=[];
this.__gV(p,
q,
H);
H.sort(this.__gP);
var I=H.length;
return I>0?H[I-1]:this.__gR();
},
__gU:function(J,
q,
H){var K=J.getLayoutChildren();
var L;
for(var M=0,
N=K.length;M<N;M++){L=K[M];
if(!(L instanceof qx.ui.core.Widget)){continue;
}
if(!this.isFocusRoot(L)&&L.isEnabled()){if(L.isTabable()&&this.__gP(q,
L)<0){H.push(L);
}this.__gU(L,
q,
H);
}}},
__gV:function(J,
q,
H){var K=J.getLayoutChildren();
var L;
for(var M=0,
N=K.length;M<N;M++){L=K[M];
if(!(L instanceof qx.ui.core.Widget)){continue;
}
if(!this.isFocusRoot(L)&&L.isEnabled()){if(L.isTabable()&&this.__gP(q,
L)>0){H.push(L);
}this.__gV(L,
q,
H);
}}},
__gW:function(J,
O){var K=J.getLayoutChildren();
var L;
for(var M=0,
N=K.length;M<N;M++){L=K[M];
if(!(L instanceof qx.ui.core.Widget)){continue;
}if(!this.isFocusRoot(L)&&L.isEnabled()){if(L.isTabable()){if(O==null||this.__gP(L,
O)<0){O=L;
}}O=this.__gW(L,
O);
}}return O;
},
__gX:function(J,
P){var K=J.getLayoutChildren();
var L;
for(var M=0,
N=K.length;M<N;M++){L=K[M];
if(!(L instanceof qx.ui.core.Widget)){continue;
}if(!this.isFocusRoot(L)&&L.isEnabled()){if(L.isTabable()){if(P==null||this.__gP(L,
P)>0){P=L;
}}P=this.__gX(L,
P);
}}return P;
}},
destruct:function(){this._disposeMap(a);
this._disposeFields(j,
d,
g);
}});
})();
(function(){var a="qx.client",
b="head",
c="text/css",
d="stylesheet",
e="}",
f='@import "',
g="{",
h='";',
j="qx.bom.Stylesheet",
k="link",
l="style";
qx.Class.define(j,
{statics:{includeFile:function(m,
n){if(!n){n=document;
}var o=n.createElement(k);
o.type=c;
o.rel=d;
o.href=qx.util.ResourceManager.toUri(m);
var p=n.getElementsByTagName(b)[0];
p.appendChild(o);
},
createElement:qx.core.Variant.select(a,
{"mshtml":function(q){var r=document.createStyleSheet();
if(q){r.cssText=q;
}return r;
},
"default":function(q){var s=document.createElement(l);
s.type=c;
if(q){s.appendChild(document.createTextNode(q));
}document.getElementsByTagName(b)[0].appendChild(s);
return s.sheet;
}}),
addRule:qx.core.Variant.select(a,
{"mshtml":function(r,
t,
u){r.addRule(t,
u);
},
"default":function(r,
t,
u){r.insertRule(t+g+u+e,
r.cssRules.length);
}}),
removeRule:qx.core.Variant.select(a,
{"mshtml":function(r,
t){var v=r.rules;
var w=v.length;
for(var x=w-1;x>=0;--x){if(v[x].selectorText==t){r.removeRule(x);
}}},
"default":function(r,
t){var v=r.cssRules;
var w=v.length;
for(var x=w-1;x>=0;--x){if(v[x].selectorText==t){r.deleteRule(x);
}}}}),
removeAllRules:qx.core.Variant.select(a,
{"mshtml":function(r){var v=r.rules;
var w=v.length;
for(var x=w-1;x>=0;x--){r.removeRule(x);
}},
"default":function(r){var v=r.cssRules;
var w=v.length;
for(var x=w-1;x>=0;x--){r.deleteRule(x);
}}}),
addImport:qx.core.Variant.select(a,
{"mshtml":function(r,
y){r.addImport(y);
},
"default":function(r,
y){r.insertRule(f+y+h,
r.cssRules.length);
}}),
removeImport:qx.core.Variant.select(a,
{"mshtml":function(r,
y){var z=r.imports;
var w=z.length;
for(var x=w-1;x>=0;x--){if(z[x].href==y){r.removeImport(x);
}}},
"default":function(r,
y){var v=r.cssRules;
var w=v.length;
for(var x=w-1;x>=0;x--){if(v[x].href==y){r.deleteRule(x);
}}}}),
removeAllImports:qx.core.Variant.select(a,
{"mshtml":function(r){var z=r.imports;
var w=z.length;
for(var x=w-1;x>=0;x--){r.removeImport(x);
}},
"default":function(r){var v=r.cssRules;
var w=v.length;
for(var x=w-1;x>=0;x--){if(v[x].type==v[x].IMPORT_RULE){r.deleteRule(x);
}}}})}});
})();
(function(){var a="abstract",
b="__gY",
c="__ha",
d="qx.ui.layout.Abstract";
qx.Class.define(d,
{type:a,
extend:qx.core.Object,
members:{__gY:null,
_invalidChildrenCache:null,
__ha:null,
invalidateLayoutCache:function(){this.__gY=null;
},
renderLayout:function(e,
f){this.warn("Missing renderLayout() implementation!");
},
getSizeHint:function(){if(this.__gY){return this.__gY;
}return this.__gY=this._computeSizeHint();
},
hasHeightForWidth:function(){return false;
},
getHeightForWidth:function(g){this.warn("Missing getHeightForWidth() implementation!");
return null;
},
_computeSizeHint:function(){return null;
},
invalidateChildrenCache:function(){this._invalidChildrenCache=true;
},
verifyLayoutProperty:null,
_clearSeparators:function(){var h=this.__ha;
if(h instanceof qx.ui.core.LayoutItem){h.clearSeparators();
}},
_renderSeparator:function(i,
j){this.__ha.renderSeparator(i,
j);
},
connectToWidget:function(h){if(h&&this.__ha){throw new Error("It is not possible to manually set the connected widget.");
}this.__ha=h;
this.invalidateChildrenCache();
},
_applyLayoutChange:function(){if(this.__ha){this.__ha.scheduleLayoutUpdate();
}},
_getLayoutChildren:function(){return this.__ha.getLayoutChildren();
}},
destruct:function(){this._disposeFields(c,
b);
}});
})();
(function(){var a="number",
b="string",
c="qx.ui.layout.Canvas";
qx.Class.define(c,
{extend:qx.ui.layout.Abstract,
members:{verifyLayoutProperty:null,
renderLayout:function(d,
e){var f=this._getLayoutChildren();
var g,
h,
j;
var k,
m,
n,
o,
p,
q;
var r,
s,
t,
u;
for(var v=0,
w=f.length;v<w;v++){g=f[v];
h=g.getSizeHint();
j=g.getLayoutProperties();
r=g.getMarginTop();
s=g.getMarginRight();
t=g.getMarginBottom();
u=g.getMarginLeft();
k=j.left!=null?j.left:j.edge;
if(k&&typeof k===b){k=Math.round(parseFloat(k)*d/100);
}n=j.right!=null?j.right:j.edge;
if(n&&typeof n===b){n=Math.round(parseFloat(n)*d/100);
}m=j.top!=null?j.top:j.edge;
if(m&&typeof m===b){m=Math.round(parseFloat(m)*e/100);
}o=j.bottom!=null?j.bottom:j.edge;
if(o&&typeof o===b){o=Math.round(parseFloat(o)*e/100);
}if(k!=null&&n!=null){p=d-k-n-u-s;
if(p<h.minWidth){p=h.minWidth;
}else if(p>h.maxWidth){p=h.maxWidth;
}k+=u;
}else{p=j.width;
if(p==null){p=h.width;
}else{p=Math.round(parseFloat(p)*d/100);
if(p<h.minWidth){p=h.minWidth;
}else if(p>h.maxWidth){p=h.maxWidth;
}}
if(n!=null){k=d-p-n-s-u;
}else if(k==null){k=u;
}else{k+=u;
}}if(m!=null&&o!=null){q=e-m-o-r-t;
if(q<h.minHeight){q=h.minHeight;
}else if(q>h.maxHeight){q=h.maxHeight;
}m+=r;
}else{q=j.height;
if(q==null){q=h.height;
}else{q=Math.round(parseFloat(q)*e/100);
if(q<h.minHeight){q=h.minHeight;
}else if(q>h.maxHeight){q=h.maxHeight;
}}
if(o!=null){m=e-q-o-t-r;
}else if(m==null){m=r;
}else{m+=r;
}}g.renderLayout(k,
m,
p,
q);
}},
_computeSizeHint:function(){var x=0,
y=0;
var z=0,
A=0;
var p,
B;
var q,
C;
var f=this._getLayoutChildren();
var g,
j,
D;
var k,
m,
n,
o;
for(var v=0,
w=f.length;v<w;v++){g=f[v];
j=g.getLayoutProperties();
D=g.getSizeHint();
var E=g.getMarginLeft()+g.getMarginRight();
var F=g.getMarginTop()+g.getMarginBottom();
p=D.width+E;
B=D.minWidth+E;
k=j.left!=null?j.left:j.edge;
if(k&&typeof k===a){p+=k;
B+=k;
}n=j.right!=null?j.right:j.edge;
if(n&&typeof n===a){p+=n;
B+=n;
}x=Math.max(x,
p);
y=Math.max(y,
B);
q=D.height+F;
C=D.minHeight+F;
m=j.top!=null?j.top:j.edge;
if(m&&typeof m===a){q+=m;
C+=m;
}o=j.bottom!=null?j.bottom:j.edge;
if(o&&typeof o===a){q+=o;
C+=o;
}z=Math.max(z,
q);
A=Math.max(A,
C);
}return {width:x,
minWidth:y,
height:z,
minHeight:A};
}}});
})();
(function(){var a="qx.html.Root";
qx.Class.define(a,
{extend:qx.html.Element,
construct:function(b){arguments.callee.base.call(this);
if(b!=null){this.useElement(b);
}},
members:{useElement:function(b){arguments.callee.base.call(this,
b);
this.setRoot(true);
qx.html.Element._modified[this.$$hash]=this;
}}});
})();
(function(){var a="qx.ui.core.MLayoutHandling";
qx.Mixin.define(a,
{members:{setLayout:function(b){return this._setLayout(b);
},
getLayout:function(){return this._getLayout();
}},
statics:{remap:function(c){c.getLayout=c._getLayout;
c.setLayout=c._setLayout;
}}});
})();
(function(){var a="qx.event.type.Data",
b="qx.ui.container.Composite",
c="addChildWidget",
d="removeChildWidget";
qx.Class.define(b,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MChildrenHandling,
qx.ui.core.MLayoutHandling],
construct:function(e){arguments.callee.base.call(this);
if(e!=null){this._setLayout(e);
}},
events:{addChildWidget:a,
removeChildWidget:a},
members:{_afterAddChild:function(f){this.fireNonBubblingEvent(c,
qx.event.type.Data,
[f]);
},
_afterRemoveChild:function(f){this.fireNonBubblingEvent(d,
qx.event.type.Data,
[f]);
}},
defer:function(g,
h){qx.ui.core.MChildrenHandling.remap(h);
qx.ui.core.MLayoutHandling.remap(h);
}});
})();
(function(){var a="_applyLayoutChange",
b="top",
c="left",
d="middle",
e="Decorator",
f="__hc",
g="center",
h="baseline",
j="bottom",
k="__he",
m="qx.ui.layout.VBox",
n="__hb",
o="_applyReversed",
p="Integer",
q="right",
r="Boolean";
qx.Class.define(m,
{extend:qx.ui.layout.Abstract,
construct:function(s,
t,
u){arguments.callee.base.call(this);
if(s){this.setSpacing(s);
}
if(t){this.setAlignY(t);
}
if(u){this.setSeparator(u);
}},
properties:{alignY:{check:[b,
d,
j],
init:b,
apply:a},
alignX:{check:[c,
g,
q,
h],
init:c,
apply:a},
spacing:{check:p,
init:0,
apply:a},
separator:{check:e,
nullable:true,
apply:a},
reversed:{check:r,
init:false,
apply:o}},
members:{__hb:null,
__hc:null,
__hd:null,
__he:null,
_applyReversed:function(){this._invalidChildrenCache=true;
this._applyLayoutChange();
},
__hf:function(){var v=this._getLayoutChildren();
var w=v.length;
var x=false;
var y=this.__hb&&this.__hb.length!=w&&this.__hc&&this.__hb;
var z;
var A=y?this.__hb:new Array(w);
var B=y?this.__hc:new Array(w);
if(this.getReversed()){v=v.concat().reverse();
}for(var C=0;C<w;C++){z=v[C].getLayoutProperties();
if(z.height!=null){A[C]=parseFloat(z.height)/100;
}
if(z.flex!=null){B[C]=z.flex;
x=true;
}}if(!y){this.__hb=A;
this.__hc=B;
}this.__hd=x;
this.__he=v;
delete this._invalidChildrenCache;
},
verifyLayoutProperty:null,
renderLayout:function(D,
E){if(this._invalidChildrenCache){this.__hf();
}var v=this.__he;
var w=v.length;
var F=qx.ui.layout.Util;
var s=this.getSpacing();
var u=this.getSeparator();
if(u){var G=F.computeVerticalSeparatorGaps(v,
s,
u);
}else{var G=F.computeVerticalGaps(v,
s,
true);
}var C,
H,
I,
J;
var A=[];
var K=G;
for(C=0;C<w;C+=1){J=this.__hb[C];
I=J!=null?Math.floor((E-G)*J):v[C].getSizeHint().height;
A.push(I);
K+=I;
}if(this.__hd&&K!=E){var L={};
var M,
N;
for(C=0;C<w;C+=1){M=this.__hc[C];
if(M>0){Q=v[C].getSizeHint();
L[C]={min:Q.minHeight,
value:A[C],
max:Q.maxHeight,
flex:M};
}}var O=F.computeFlexOffsets(L,
E,
K);
for(C in O){N=O[C].offset;
A[C]+=N;
K+=N;
}}var P=v[0].getMarginTop();
if(K<E&&this.getAlignY()!=b){P=E-K;
if(this.getAlignY()===d){P=Math.round(P/2);
}}var Q,
R,
S,
I,
T,
U,
V;
var s=this.getSpacing();
this._clearSeparators();
if(u){var W=qx.theme.manager.Decoration.getInstance().resolve(u).getInsets();
var X=W.top+W.bottom;
}for(C=0;C<w;C+=1){H=v[C];
I=A[C];
Q=H.getSizeHint();
U=H.getMarginLeft();
V=H.getMarginRight();
S=Math.max(Q.minWidth,
Math.min(D-U-V,
Q.maxWidth));
R=F.computeHorizontalAlignOffset(H.getAlignX()||this.getAlignX(),
S,
D,
U,
V);
if(C>0){if(u){P+=T+s;
this._renderSeparator(u,
{top:P,
left:0,
height:X,
width:D});
P+=X+s+H.getMarginTop();
}else{P+=F.collapseMargins(s,
T,
H.getMarginTop());
}}H.renderLayout(R,
P,
S,
I);
P+=I;
T=H.getMarginBottom();
}},
_computeSizeHint:function(){if(this._invalidChildrenCache){this.__hf();
}var F=qx.ui.layout.Util;
var v=this.__he;
var Y=0,
I=0;
var ba=0,
S=0;
var H,
Q,
bb;
for(var C=0,
bc=v.length;C<bc;C+=1){H=v[C];
Q=H.getSizeHint();
I+=Q.height;
Y+=this.__hc[C]>0?Q.minHeight:Q.height;
bb=H.getMarginLeft()+H.getMarginRight();
if((Q.width+bb)>S){S=Q.width+bb;
}if((Q.minWidth+bb)>ba){ba=Q.minWidth+bb;
}}var s=this.getSpacing();
var u=this.getSeparator();
if(u){var G=F.computeVerticalSeparatorGaps(v,
s,
u);
}else{var G=F.computeVerticalGaps(v,
s,
true);
}return {minHeight:Y+G,
height:I+G,
minWidth:ba,
width:S};
}},
destruct:function(){this._disposeFields(n,
f,
k);
}});
})();
(function(){var a="middle",
b="qx.ui.layout.Util",
c="left",
d="center",
e="top",
f="bottom",
g="right";
qx.Class.define(b,
{statics:{PERCENT_VALUE:/[0-9]+(?:\.[0-9]+)?%/,
computeFlexOffsets:function(h,
j,
k){var m,
n,
o,
p;
var q=j>k;
var r=Math.abs(j-k);
var s,
t;
var u={};
for(n in h){m=h[n];
u[n]={potential:q?m.max-m.value:m.value-m.min,
flex:q?m.flex:1/m.flex,
offset:0};
}while(r!=0){p=Infinity;
o=0;
for(n in u){m=u[n];
if(m.potential>0){o+=m.flex;
p=Math.min(p,
m.potential/m.flex);
}}if(o==0){break;
}p=Math.min(r,
p*o)/o;
s=0;
for(n in u){m=u[n];
if(m.potential>0){t=Math.min(r,
m.potential,
Math.ceil(p*m.flex));
s+=t-p*m.flex;
if(s>=1){s-=1;
t-=1;
}m.potential-=t;
if(q){m.offset+=t;
}else{m.offset-=t;
}r-=t;
}}}return u;
},
computeHorizontalAlignOffset:function(v,
w,
x,
y,
z){if(y==null){y=0;
}
if(z==null){z=0;
}var A=0;
switch(v){case c:A=y;
break;
case g:A=x-w-z;
break;
case d:A=Math.round((x-w)/2);
if(A<y){A=y;
}else if(A<z){A=Math.max(y,
x-w-z);
}break;
}return A;
},
computeVerticalAlignOffset:function(v,
B,
C,
D,
E){if(D==null){D=0;
}
if(E==null){E=0;
}var A=0;
switch(v){case e:A=D;
break;
case f:A=C-B-E;
break;
case a:A=Math.round((C-B)/2);
if(A<D){A=D;
}else if(A<E){A=Math.max(D,
C-B-E);
}break;
}return A;
},
collapseMargins:function(F){var G=0,
H=0;
for(var I=0,
J=arguments.length;I<J;I++){var A=arguments[I];
if(A<0){H=Math.min(H,
A);
}else if(A>0){G=Math.max(G,
A);
}}return G+H;
},
computeHorizontalGaps:function(K,
L,
M){if(L==null){L=0;
}var N=0;
if(M){N+=K[0].getMarginLeft();
for(var I=1,
J=K.length;I<J;I+=1){N+=this.collapseMargins(L,
K[I-1].getMarginRight(),
K[I].getMarginLeft());
}N+=K[J-1].getMarginRight();
}else{for(var I=1,
J=K.length;I<J;I+=1){N+=K[I].getMarginLeft()+K[I].getMarginRight();
}N+=(L*(J-1));
}return N;
},
computeVerticalGaps:function(K,
L,
M){if(L==null){L=0;
}var N=0;
if(M){N+=K[0].getMarginTop();
for(var I=1,
J=K.length;I<J;I+=1){N+=this.collapseMargins(L,
K[I-1].getMarginBottom(),
K[I].getMarginTop());
}N+=K[J-1].getMarginBottom();
}else{for(var I=1,
J=K.length;I<J;I+=1){N+=K[I].getMarginTop()+K[I].getMarginBottom();
}N+=(L*(J-1));
}return N;
},
computeHorizontalSeparatorGaps:function(K,
L,
O){var P=qx.theme.manager.Decoration.getInstance().resolve(O);
var Q=P.getInsets();
var w=Q.left+Q.right;
var N=0;
for(var I=0,
J=K.length;I<J;I++){var m=K[I];
N+=m.getMarginLeft()+m.getMarginRight();
}N+=(L+w+L)*(J-1);
return N;
},
computeVerticalSeparatorGaps:function(K,
L,
O){var P=qx.theme.manager.Decoration.getInstance().resolve(O);
var Q=P.getInsets();
var B=Q.top+Q.bottom;
var N=0;
for(var I=0,
J=K.length;I<J;I++){var m=K[I];
N+=m.getMarginTop()+m.getMarginBottom();
}N+=(L+B+L)*(J-1);
return N;
},
arrangeIdeals:function(R,
S,
T,
U,
V,
W){if(S<R||V<U){if(S<R&&V<U){S=R;
V=U;
}else if(S<R){V-=(R-S);
S=R;
if(V<U){V=U;
}}else if(V<U){S-=(U-V);
V=U;
if(S<R){S=R;
}}}
if(S>T||V>W){if(S>T&&V>W){S=T;
V=W;
}else if(S>T){V+=(S-T);
S=T;
if(V>W){V=W;
}}else if(V>W){S+=(V-W);
V=W;
if(S>T){S=T;
}}}return {begin:S,
end:V};
}}});
})();
(function(){var a="both",
b="qx.ui.menu.Menu",
c="_applySpacing",
d="icon",
e="label",
f="changeShow",
g="Integer",
h="qx.ui.toolbar.ToolBar",
j="toolbar",
k="changeOpenMenu";
qx.Class.define(h,
{extend:qx.ui.core.Widget,
include:qx.ui.core.MChildrenHandling,
construct:function(){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.HBox());
},
properties:{appearance:{refine:true,
init:j},
openMenu:{check:b,
event:k,
nullable:true},
show:{init:a,
check:[a,
e,
d],
inheritable:true,
event:f},
spacing:{nullable:true,
check:g,
themeable:true,
apply:c}},
members:{_applySpacing:function(m,
n){var o=this._getLayout();
m==null?o.resetSpacing():o.setSpacing(m);
},
addSpacer:function(){var p=new qx.ui.core.Spacer;
this._add(p,
{flex:1});
return p;
},
addSeparator:function(){this.add(new qx.ui.toolbar.Separator);
},
getMenuButtons:function(){var q=this.getChildren();
var r=[];
var s;
for(var t=0,
u=q.length;t<u;t++){s=q[t];
if(s instanceof qx.ui.menubar.Button){r.push(s);
}else if(s instanceof qx.ui.toolbar.Part){r.push.apply(r,
s.getMenuButtons());
}}return r;
}}});
})();
(function(){var a="_applyLayoutChange",
b="left",
c="center",
d="top",
e="Decorator",
f="middle",
g="__hj",
h="baseline",
j="bottom",
k="Boolean",
m="__hg",
n="__hh",
o="right",
p="_applyReversed",
q="Integer",
r="qx.ui.layout.HBox";
qx.Class.define(r,
{extend:qx.ui.layout.Abstract,
construct:function(s,
t,
u){arguments.callee.base.call(this);
if(s){this.setSpacing(s);
}
if(t){this.setAlignX(t);
}
if(u){this.setSeparator(u);
}},
properties:{alignX:{check:[b,
c,
o],
init:b,
apply:a},
alignY:{check:[d,
f,
j,
h],
init:d,
apply:a},
spacing:{check:q,
init:0,
apply:a},
separator:{check:e,
nullable:true,
apply:a},
reversed:{check:k,
init:false,
apply:p}},
members:{__hg:null,
__hh:null,
__hi:null,
__hj:null,
_applyReversed:function(){this._invalidChildrenCache=true;
this._applyLayoutChange();
},
__hk:function(){var v=this._getLayoutChildren();
var w=v.length;
var x=false;
var y=this.__hg&&this.__hg.length!=w&&this.__hh&&this.__hg;
var z;
var A=y?this.__hg:new Array(w);
var B=y?this.__hh:new Array(w);
if(this.getReversed()){v=v.concat().reverse();
}for(var C=0;C<w;C++){z=v[C].getLayoutProperties();
if(z.width!=null){A[C]=parseFloat(z.width)/100;
}
if(z.flex!=null){B[C]=z.flex;
x=true;
}}if(!y){this.__hg=A;
this.__hh=B;
}this.__hi=x;
this.__hj=v;
delete this._invalidChildrenCache;
},
verifyLayoutProperty:null,
renderLayout:function(D,
E){if(this._invalidChildrenCache){this.__hk();
}var v=this.__hj;
var w=v.length;
var F=qx.ui.layout.Util;
var s=this.getSpacing();
var u=this.getSeparator();
if(u){var G=F.computeHorizontalSeparatorGaps(v,
s,
u);
}else{var G=F.computeHorizontalGaps(v,
s,
true);
}var C,
H,
I,
J;
var A=[];
var K=G;
for(C=0;C<w;C+=1){J=this.__hg[C];
I=J!=null?Math.floor((D-G)*J):v[C].getSizeHint().width;
A.push(I);
K+=I;
}if(this.__hi&&K!=D){var L={};
var M,
N;
for(C=0;C<w;C+=1){M=this.__hh[C];
if(M>0){Q=v[C].getSizeHint();
L[C]={min:Q.minWidth,
value:A[C],
max:Q.maxWidth,
flex:M};
}}var O=F.computeFlexOffsets(L,
D,
K);
for(C in O){N=O[C].offset;
A[C]+=N;
K+=N;
}}var P=v[0].getMarginLeft();
if(K<D&&this.getAlignX()!=b){P=D-K;
if(this.getAlignX()===c){P=Math.round(P/2);
}}var Q,
R,
S,
I,
T,
U,
V;
var s=this.getSpacing();
this._clearSeparators();
if(u){var W=qx.theme.manager.Decoration.getInstance().resolve(u).getInsets();
var X=W.left+W.right;
}for(C=0;C<w;C+=1){H=v[C];
I=A[C];
Q=H.getSizeHint();
U=H.getMarginTop();
V=H.getMarginBottom();
S=Math.max(Q.minHeight,
Math.min(E-U-V,
Q.maxHeight));
R=F.computeVerticalAlignOffset(H.getAlignY()||this.getAlignY(),
S,
E,
U,
V);
if(C>0){if(u){P+=T+s;
this._renderSeparator(u,
{left:P,
top:0,
width:X,
height:E});
P+=X+s+H.getMarginLeft();
}else{P+=F.collapseMargins(s,
T,
H.getMarginLeft());
}}H.renderLayout(P,
R,
I,
S);
P+=I;
T=H.getMarginRight();
}},
_computeSizeHint:function(){if(this._invalidChildrenCache){this.__hk();
}var F=qx.ui.layout.Util;
var v=this.__hj;
var Y=0,
I=0;
var ba=0,
S=0;
var H,
Q,
bb;
for(var C=0,
bc=v.length;C<bc;C+=1){H=v[C];
Q=H.getSizeHint();
I+=Q.width;
Y+=this.__hh[C]>0?Q.minWidth:Q.width;
bb=H.getMarginTop()+H.getMarginBottom();
if((Q.height+bb)>S){S=Q.height+bb;
}if((Q.minHeight+bb)>ba){ba=Q.minHeight+bb;
}}var s=this.getSpacing();
var u=this.getSeparator();
if(u){var G=F.computeHorizontalSeparatorGaps(v,
s,
u);
}else{var G=F.computeHorizontalGaps(v,
s,
true);
}return {minWidth:Y+G,
width:I+G,
minHeight:ba,
height:S};
}},
destruct:function(){this._disposeFields(m,
n,
g);
}});
})();
(function(){var a="qx.ui.core.Spacer";
qx.Class.define(a,
{extend:qx.ui.core.LayoutItem,
construct:function(b,
c){arguments.callee.base.call(this);
this.setWidth(b!=null?b:0);
this.setHeight(c!=null?c:0);
},
members:{checkAppearanceNeeds:function(){},
addChildrenToQueue:function(d){},
destroy:function(){if(this.$$disposed){return;
}var e=this.$$parent;
if(e){e._remove(this);
}qx.ui.core.queue.Dispose.add(this);
}}});
})();
(function(){var a="toolbar-separator",
b="qx.ui.toolbar.Separator";
qx.Class.define(b,
{extend:qx.ui.core.Widget,
properties:{appearance:{refine:true,
init:a},
width:{refine:true,
init:0},
height:{refine:true,
init:0}}});
})();
(function(){var a="label",
b="icon",
c="Boolean",
d="left",
e="both",
f="String",
g="_applyRich",
h="_applyIcon",
i="changeGap",
j="_applyShow",
k="right",
l="_applyCenter",
m="_applyIconPosition",
n="qx.ui.basic.Atom",
o="top",
p="changeShow",
q="bottom",
r="_applyLabel",
s="Integer",
t="_applyGap",
u="atom";
qx.Class.define(n,
{extend:qx.ui.core.Widget,
construct:function(v,
w){{};
arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.Atom());
if(v!=null){this.setLabel(v);
}
if(w!=null){this.setIcon(w);
}},
properties:{appearance:{refine:true,
init:u},
label:{apply:r,
nullable:true,
dispose:true,
check:f},
rich:{check:c,
init:false,
apply:g},
icon:{check:f,
apply:h,
nullable:true,
themeable:true},
gap:{check:s,
nullable:false,
event:i,
apply:t,
themeable:true,
init:4},
show:{init:e,
check:[e,
a,
b],
themeable:true,
inheritable:true,
apply:j,
event:p},
iconPosition:{init:d,
check:[o,
k,
q,
d],
themeable:true,
apply:m},
center:{init:false,
check:c,
themeable:true,
apply:l}},
members:{_createChildControlImpl:function(x){var y;
switch(x){case a:y=new qx.ui.basic.Label(this.getLabel());
y.setAnonymous(true);
y.setRich(this.getRich());
this._add(y);
if(this.getLabel()==null||this.getShow()===b){y.exclude();
}break;
case b:y=new qx.ui.basic.Image(this.getIcon());
y.setAnonymous(true);
this._addAt(y,
0);
if(this.getIcon()==null||this.getShow()===a){y.exclude();
}break;
}return y||arguments.callee.base.call(this,
x);
},
_forwardStates:{focused:true,
hovered:true},
_handleLabel:function(){if(this.getLabel()==null||this.getShow()===b){this._excludeChildControl(a);
}else{this._showChildControl(a);
}},
_handleIcon:function(){if(this.getIcon()==null||this.getShow()===a){this._excludeChildControl(b);
}else{this._showChildControl(b);
}},
_applyLabel:function(z,
A){var v=this.getChildControl(a,
true);
if(v){v.setContent(z);
}this._handleLabel();
},
_applyRich:function(z,
A){var v=this.getChildControl(a,
true);
if(v){v.setRich(z);
}},
_applyIcon:function(z,
A){var w=this.getChildControl(b,
true);
if(w){w.setSource(z);
}this._handleIcon();
},
_applyGap:function(z,
A){this._getLayout().setGap(z);
},
_applyShow:function(z,
A){this._handleLabel();
this._handleIcon();
},
_applyIconPosition:function(z,
A){this._getLayout().setIconPosition(z);
},
_applyCenter:function(z,
A){this._getLayout().setCenter(z);
}}});
})();
(function(){var a="changeEnabled",
b="qx.ui.core.MExecutable",
c="qx.event.Command",
d="qx.event.type.Event",
f="changeCommand",
g="_applyCommand",
h="execute";
qx.Mixin.define(b,
{events:{"execute":d},
properties:{command:{check:c,
apply:g,
event:f,
nullable:true}},
members:{execute:function(){var i=this.getCommand();
if(i){i.execute(this);
}this.fireEvent(h);
},
_applyCommand:function(j,
k){if(k){k.removeListener(a,
this._onChangeEnabledCommand,
this);
}
if(j){j.addListener(a,
this._onChangeEnabledCommand,
this);
if(this.getEnabled()===false){j.setEnabled(false);
}else if(j.getEnabled()===false){this.setEnabled(false);
}}},
_onChangeEnabledCommand:function(l){this.setEnabled(l.getData());
}}});
})();
(function(){var a="qx.event.type.Data",
b="string",
c="qx.ui.form.IFormElement",
d="boolean";
qx.Interface.define(c,
{events:{"changeValue":a,
"changeName":a,
"changeEnabled":a},
members:{setEnabled:function(e){this.assertType(e,
d);
},
getEnabled:function(){},
setName:function(e){this.assertType(e,
b);
},
getName:function(){},
setValue:function(e){this.assertType(e,
b);
},
getValue:function(){}}});
})();
(function(){var a="pressed",
b="abandoned",
c="hovered",
d="Enter",
f="Space",
g="String",
h="dblclick",
i="qx.ui.form.Button",
j="mouseup",
k="mousedown",
l="changeName",
m="mouseover",
n="mouseout",
o="changeValue",
p="keydown",
q="button",
r="keyup";
qx.Class.define(i,
{extend:qx.ui.basic.Atom,
include:qx.ui.core.MExecutable,
implement:qx.ui.form.IFormElement,
construct:function(s,
t,
u){arguments.callee.base.call(this,
s,
t);
if(u!=null){this.setCommand(u);
}this.addListener(m,
this._onMouseOver);
this.addListener(n,
this._onMouseOut);
this.addListener(k,
this._onMouseDown);
this.addListener(j,
this._onMouseUp);
this.addListener(p,
this._onKeyDown);
this.addListener(r,
this._onKeyUp);
this.addListener(h,
this._onStopEvent);
},
properties:{name:{check:g,
nullable:true,
event:l},
value:{check:g,
nullable:true,
event:o},
appearance:{refine:true,
init:q},
focusable:{refine:true,
init:true}},
members:{press:function(){if(this.hasState(b)){return;
}this.addState(a);
},
release:function(){if(this.hasState(a)){this.removeState(a);
}},
reset:function(){this.removeState(a);
this.removeState(b);
this.removeState(c);
},
_onMouseOver:function(v){if(!this.isEnabled()||v.getTarget()!==this){return;
}
if(this.hasState(b)){this.removeState(b);
this.addState(a);
}this.addState(c);
},
_onMouseOut:function(v){if(!this.isEnabled()||v.getTarget()!==this){return;
}this.removeState(c);
if(this.hasState(a)){this.removeState(a);
this.addState(b);
}},
_onMouseDown:function(v){if(!v.isLeftPressed()){return;
}v.stopPropagation();
this.capture();
this.removeState(b);
this.addState(a);
},
_onMouseUp:function(v){this.releaseCapture();
var w=this.hasState(a);
var x=this.hasState(b);
if(w){this.removeState(a);
}
if(x){this.removeState(b);
}else{this.addState(c);
if(w){this.execute();
}}v.stopPropagation();
},
_onKeyDown:function(v){switch(v.getKeyIdentifier()){case d:case f:this.removeState(b);
this.addState(a);
v.stopPropagation();
}},
_onKeyUp:function(v){switch(v.getKeyIdentifier()){case d:case f:if(this.hasState(a)){this.removeState(b);
this.removeState(a);
this.execute();
v.stopPropagation();
}}}}});
})();
(function(){var a="pressed",
b="hovered",
c="changeVisibility",
d="qx.ui.menu.Menu",
f="Enter",
g="changeMenu",
h="qx.ui.form.MenuButton",
i="abandoned",
j="_applyMenu";
qx.Class.define(h,
{extend:qx.ui.form.Button,
construct:function(k,
l,
m){arguments.callee.base.call(this,
k,
l);
if(m!=null){this.setMenu(m);
}},
properties:{menu:{check:d,
nullable:true,
apply:j,
event:g}},
members:{_applyMenu:function(n,
o){if(o){o.removeListener(c,
this._onMenuChange,
this);
o.resetOpener();
}
if(n){n.addListener(c,
this._onMenuChange,
this);
n.setOpener(this);
}},
open:function(p){var m=this.getMenu();
if(m){qx.ui.menu.Manager.getInstance().hideAll();
m.open();
if(p){var q=m.getChildren()[0];
if(q){m.setSelectedButton(q);
}}}},
_onMenuChange:function(r){var m=this.getMenu();
if(m.isVisible()){this.addState(a);
}else{this.removeState(a);
}},
_onMouseDown:function(r){var m=this.getMenu();
if(m){if(!m.isVisible()){this.open();
}else{m.exclude();
}r.stopPropagation();
}},
_onMouseUp:function(r){r.stopPropagation();
},
_onMouseOver:function(r){this.addState(b);
},
_onMouseOut:function(r){this.removeState(b);
},
_onKeyDown:function(r){switch(r.getKeyIdentifier()){case f:this.removeState(i);
this.addState(a);
var m=this.getMenu();
if(m){if(!m.isVisible()){this.open();
}else{m.exclude();
}}r.stopPropagation();
}},
_onKeyUp:function(r){}},
destruct:function(){if(this.getMenu()){if(!qx.core.ObjectRegistry.inShutDown){this.getMenu().destroy();
}}}});
})();
(function(){var a="pressed",
b="hovered",
c="inherit",
d="qx.ui.menubar.Button",
f="keydown",
g="menubar-button",
h="keyup";
qx.Class.define(d,
{extend:qx.ui.form.MenuButton,
construct:function(i,
j,
k){arguments.callee.base.call(this,
i,
j,
k);
this.removeListener(f,
this._onKeyDown);
this.removeListener(h,
this._onKeyUp);
},
properties:{appearance:{refine:true,
init:g},
show:{refine:true,
init:c},
focusable:{refine:true,
init:false}},
members:{getToolBar:function(){var l=this;
while(l){if(l instanceof qx.ui.toolbar.ToolBar){return l;
}l=l.getLayoutParent();
}return null;
},
_onMenuChange:function(m){var k=this.getMenu();
var n=this.getToolBar();
if(k.isVisible()){this.addState(a);
if(n){n.setOpenMenu(k);
}}else{this.removeState(a);
if(n&&n.getOpenMenu()==k){n.resetOpenMenu();
}}},
_onMouseOver:function(m){this.addState(b);
if(this.getMenu()){var n=this.getToolBar();
var o=n.getOpenMenu();
if(o&&o!=this.getMenu()){qx.ui.menu.Manager.getInstance().hideAll();
this.open();
}}}}});
})();
(function(){var a="bottom",
b="_applyLayoutChange",
c="top",
d="left",
e="right",
f="middle",
g="center",
h="qx.ui.layout.Atom",
j="Integer",
k="Boolean";
qx.Class.define(h,
{extend:qx.ui.layout.Abstract,
properties:{gap:{check:j,
init:4,
apply:b},
iconPosition:{check:[d,
c,
e,
a],
init:d,
apply:b},
center:{check:k,
init:false,
apply:b}},
members:{verifyLayoutProperty:null,
renderLayout:function(l,
m){var n=qx.ui.layout.Util;
var o=this.getIconPosition();
var p=this._getLayoutChildren();
var q=p.length;
var r,
s,
t,
u;
var v,
w;
var x=this.getGap();
var y=this.getCenter();
if(o===a||o===e){var z=q-1;
var A=-1;
var B=-1;
}else{var z=0;
var A=q;
var B=1;
}if(o==c||o==a){if(y){var C=0;
for(var D=z;D!=A;D+=B){u=p[D].getSizeHint().height;
if(u>0){C+=u;
if(D!=z){C+=x;
}}}s=Math.round((m-C)/2);
}else{s=0;
}
for(var D=z;D!=A;D+=B){v=p[D];
w=v.getSizeHint();
t=Math.min(w.maxWidth,
Math.max(l,
w.minWidth));
u=w.height;
r=n.computeHorizontalAlignOffset(g,
t,
l);
v.renderLayout(r,
s,
t,
u);
if(u>0){s+=u+x;
}}}else{var E=l;
var F=0;
var G=null;
var H=0;
for(var D=z;D!=A;D+=B){v=p[D];
t=v.getSizeHint().width;
if(t>0){if(!G&&v instanceof qx.ui.basic.Label){G=v;
}else{E-=t;
}F+=t;
H++;
}}
if(H>1){var I=(H-1)*x;
E-=I;
F+=I;
}
if(y&&F<l){r=Math.round((l-F)/2);
}else{r=0;
}
for(var D=z;D!=A;D+=B){v=p[D];
w=v.getSizeHint();
u=Math.min(w.maxHeight,
Math.max(m,
w.minHeight));
if(v===G){t=Math.max(w.minWidth,
Math.min(E,
w.width));
}else{t=w.width;
}s=n.computeVerticalAlignOffset(f,
w.height,
m);
v.renderLayout(r,
s,
t,
u);
if(t>0){r+=t+x;
}}}},
_computeSizeHint:function(){var p=this._getLayoutChildren();
var q=p.length;
var w,
J;
if(q===1){var w=p[0].getSizeHint();
J={width:w.width,
height:w.height,
minWidth:w.minWidth,
minHeight:w.minHeight};
}else{var K=0,
t=0;
var L=0,
u=0;
var o=this.getIconPosition();
var x=this.getGap();
if(o===c||o===a){var H=0;
for(var D=0;D<q;D++){w=p[D].getSizeHint();
t=Math.max(t,
w.width);
K=Math.max(K,
w.minWidth);
if(w.height>0){u+=w.height;
L+=w.minHeight;
H++;
}}
if(H>1){var I=(H-1)*x;
u+=I;
L+=I;
}}else{var H=0;
for(var D=0;D<q;D++){w=p[D].getSizeHint();
u=Math.max(u,
w.height);
L=Math.max(L,
w.minHeight);
if(w.width>0){t+=w.width;
K+=w.minWidth;
H++;
}}
if(H>1){var I=(H-1)*x;
t+=I;
K+=I;
}}J={minWidth:K,
width:t,
minHeight:L,
height:u};
}return J;
}}});
})();
(function(){var a="qx.dynlocale",
b="changeLocale",
c="on",
d="color",
f="qx.ui.basic.Label",
g="_applyRich",
h="A",
i="__hl",
j="_applyTextAlign",
k="Boolean",
l="_applyContent",
m="label",
n="textAlign",
o="center",
p="changeContent",
q="left",
r="String",
s="right";
qx.Class.define(f,
{extend:qx.ui.core.Widget,
construct:function(t){arguments.callee.base.call(this);
if(t!=null){this.setContent(t);
}
if(qx.core.Variant.isSet(a,
c)){qx.locale.Manager.getInstance().addListener(b,
this._onChangeLocale,
this);
}},
properties:{rich:{check:k,
init:false,
apply:g},
content:{check:r,
apply:l,
event:p,
nullable:true},
textAlign:{check:[q,
o,
s],
nullable:true,
themeable:true,
apply:j},
appearance:{refine:true,
init:m},
selectable:{refine:true,
init:false},
allowGrowX:{refine:true,
init:false},
allowGrowY:{refine:true,
init:false},
allowShrinkY:{refine:true,
init:false}},
members:{__hl:null,
__hm:null,
_getContentHint:function(){if(this.__hm){this.__ho();
delete this.__hm;
}return {width:this.__hn.width,
height:this.__hn.height};
},
_hasHeightForWidth:function(){return this.getRich();
},
_getContentHeightForWidth:function(u){if(!this.getRich()){return null;
}var v=this.__hl?this.__hl.getStyles():qx.bom.Font.getDefaultStyles();
return qx.bom.Label.getHtmlSize(this.getContent(),
v,
u).height;
},
_createContentElement:function(){return new qx.html.Label;
},
_applyTextAlign:function(w,
x){this.getContentElement().setStyle(n,
w);
},
_applyTextColor:function(w,
x){if(w){this.getContentElement().setStyle(d,
qx.theme.manager.Color.getInstance().resolve(w));
}else{this.getContentElement().removeStyle(d);
}},
__hn:{width:0,
height:0},
_applyFont:function(w,
x){var v;
if(w){this.__hl=qx.theme.manager.Font.getInstance().resolve(w);
v=this.__hl.getStyles();
}else{this.__hl=null;
v=qx.bom.Font.getDefaultStyles();
}this.getContentElement().setStyles(v);
this.__hm=true;
qx.ui.core.queue.Layout.add(this);
},
__ho:function(){var y=qx.bom.Label;
var z=this.getFont();
var v=z?this.__hl.getStyles():qx.bom.Font.getDefaultStyles();
var t=this.getContent()||h;
var A=this.getRich();
this.__hn=A?y.getHtmlSize(t,
v):y.getTextSize(t,
v);
},
_applyRich:function(w){this.getContentElement().setRich(w);
this.__hm=true;
qx.ui.core.queue.Layout.add(this);
},
_onChangeLocale:qx.core.Variant.select(a,
{"on":function(B){var t=this.getContent();
if(t&&t.translate){this.setContent(t.translate());
}},
"off":null}),
_applyContent:function(w){this.getContentElement().setContent(w);
this.__hm=true;
qx.ui.core.queue.Layout.add(this);
}},
destruct:function(){if(qx.core.Variant.isSet(a,
c)){qx.locale.Manager.getInstance().removeListener(b,
this._onChangeLocale,
this);
}this._disposeFields(i);
}});
})();
(function(){var a="qx.bom.client.Locale",
b="-",
c="";
qx.Bootstrap.define(a,
{statics:{LOCALE:"",
VARIANT:"",
__hp:function(){var d=(qx.bom.client.Engine.MSHTML?navigator.userLanguage:navigator.language).toLowerCase();
var e=c;
var f=d.indexOf(b);
if(f!=-1){e=d.substr(f+1);
d=d.substr(0,
f);
}this.LOCALE=d;
this.VARIANT=e;
}},
defer:function(g){g.__hp();
}});
})();
(function(){var a="qx.core.BaseString";
qx.Class.define(a,
{extend:String,
construct:function(b){{};
this.__hq=b;
},
members:{__hq:null,
toString:function(){return this.__hq;
},
valueOf:function(){return this.__hq;
},
toHashCode:function(){return qx.core.ObjectRegistry.toHashCode(this);
},
base:function(c,
d){return qx.core.Object.prototype.base.apply(this,
arguments);
}},
defer:function(e){{};
}});
})();
(function(){var a="qx.locale.LocalizedString";
qx.Class.define(a,
{extend:qx.core.BaseString,
construct:function(b,
c,
d){arguments.callee.base.call(this,
b);
this.__hr=c;
this.__hs=d;
},
members:{__hr:null,
__hs:null,
translate:function(){return qx.locale.Manager.getInstance().translate(this.__hr,
this.__hs);
}}});
})();
(function(){var a="_",
b="",
c="qx.dynlocale",
d="on",
e="_applyLocale",
f="changeLocale",
g="C",
h="qx.locale.Manager",
j="__ht",
k="String",
l="singleton",
m="__hu";
qx.Class.define(h,
{type:l,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this.__ht=window.qxtranslations||{};
this.__hu=window.qxlocales||{};
var n=qx.bom.client.Locale;
var o=n.LOCALE;
var p=n.VARIANT;
if(p!==b){o+=a+p;
}this.setLocale(o||this.__hv);
},
statics:{tr:function(q,
r){var s=qx.lang.Array.fromArguments(arguments);
s.splice(0,
1);
return qx.locale.Manager.getInstance().translate(q,
s);
},
trn:function(t,
u,
v,
r){var s=qx.lang.Array.fromArguments(arguments);
s.splice(0,
3);
if(v!=1){return qx.locale.Manager.getInstance().translate(u,
s);
}else{return qx.locale.Manager.getInstance().translate(t,
s);
}},
trc:function(w,
q,
r){var s=qx.lang.Array.fromArguments(arguments);
s.splice(0,
2);
return qx.locale.Manager.getInstance().translate(q,
s);
},
marktr:function(q){return q;
}},
properties:{locale:{check:k,
nullable:true,
apply:e,
event:f}},
members:{__hv:g,
__hw:null,
__hx:null,
__ht:null,
__hu:null,
getLanguage:function(){return this.__hx;
},
getTerritory:function(){return this.getLocale().split(a)[1]||b;
},
getAvailableLocales:function(){var x=[];
for(var o in this.__hu){if(o!=this.__hv){x.push(o);
}}return x;
},
__hy:function(o){var y;
var z=o.indexOf(a);
if(z==-1){y=o;
}else{y=o.substring(0,
z);
}return y;
},
_applyLocale:function(A,
B){this.__hw=A;
this.__hx=this.__hy(A);
},
addTranslation:function(C,
D){var E=this.__ht;
if(E[C]){for(var F in D){E[C][F]=D[F];
}}else{E[C]=D;
}},
translate:function(q,
s,
o){var G;
var E=this.__ht;
if(!E){return q;
}
if(o){var y=this.__hy(o);
}else{o=this.__hw;
y=this.__hx;
}
if(!G&&E[o]){G=E[o][q];
}
if(!G&&E[y]){G=E[y][q];
}
if(!G&&E[this.__hv]){G=E[this.__hv][q];
}
if(!G){G=q;
}
if(s.length>0){var H=[];
for(var I=0;I<s.length;I++){var J=s[I];
if(J.translate){H[I]=J.translate();
}else{H[I]=J;
}}G=qx.lang.String.format(G,
H);
}
if(qx.core.Variant.isSet(c,
d)){G=new qx.locale.LocalizedString(G,
q,
s);
}return G;
},
localize:function(q,
s,
o){var G;
var E=this.__hu;
if(!E){return q;
}
if(o){var y=this.__hy(o);
}else{o=this.__hw;
y=this.__hx;
}
if(!G&&E[o]){G=E[o][q];
}
if(!G&&E[y]){G=E[y][q];
}
if(!G&&E[this.__hv]){G=E[this.__hv][q];
}
if(!G){G=q;
}
if(s.length>0){var H=[];
for(var I=0;I<s.length;I++){var J=s[I];
if(J.translate){H[I]=J.translate();
}else{H[I]=J;
}}G=qx.lang.String.format(G,
H);
}
if(qx.core.Variant.isSet(c,
d)){G=new qx.locale.LocalizedString(G,
q,
s);
}return G;
}},
destruct:function(){this._disposeFields(j,
m);
}});
})();
(function(){var a="qx.client",
b="gecko",
c="div",
d="",
e="hidden",
f="auto",
g="value",
h="inherit",
i="text",
j="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul",
k="nowrap",
l="visible",
m="ellipsis",
n="normal",
o="label",
p="-1000px",
q="absolute",
r="px",
s="crop",
t="end",
u="100%",
v="qx.bom.Label",
w="opera",
x="block",
y="none",
z="mshtml|opera";
qx.Class.define(v,
{statics:{__hz:{fontFamily:1,
fontSize:1,
fontWeight:1,
fontStyle:1,
lineHeight:1},
__hA:function(){var A=document.createElement(c);
var B=A.style;
B.width=B.height=f;
B.left=B.top=p;
B.visibility=e;
B.position=q;
B.overflow=l;
B.whiteSpace=k;
if(qx.core.Variant.isSet(a,
b)){var C=document.createElementNS(j,
o);
for(var D in this.__hz){C.style[D]=h;
}A.appendChild(C);
}document.body.insertBefore(A,
document.body.firstChild);
return this._textElement=A;
},
__hB:function(){var A=qx.bom.Element.create(c);
var B=A.style;
B.width=B.height=f;
B.left=B.top=p;
B.visibility=e;
B.position=q;
B.overflow=l;
B.whiteSpace=n;
document.body.insertBefore(A,
document.body.firstChild);
return this._htmlElement=A;
},
__hC:function(E){var F={};
if(E){F.whiteSpace=n;
}else if(qx.core.Variant.isSet(a,
b)){F.display=x;
}else{F.overflow=e;
F.whiteSpace=k;
F.textOverflow=m;
if(qx.core.Variant.isSet(a,
w)){F.OTextOverflow=m;
}}F.userSelect=y;
return F;
},
create:function(G,
E,
H){if(!H){H=window;
}
if(E){var A=H.document.createElement(c);
A.useHtml=true;
}else if(qx.core.Variant.isSet(a,
b)){var A=H.document.createElement(c);
var I=H.document.createElementNS(j,
o);
I.style.cursor=h;
I.style.overflow=e;
I.style.maxWidth=u;
for(var D in this.__hz){I.style[D]=h;
}I.setAttribute(s,
t);
A.appendChild(I);
}else{var A=H.document.createElement(c);
qx.bom.element.Style.setStyles(A,
this.__hC(false));
}
if(G){this.setContent(A,
G);
}return A;
},
setContent:function(J,
K){K=K||d;
if(J.useHtml){J.innerHTML=K;
}else if(qx.core.Variant.isSet(a,
b)){J.firstChild.setAttribute(g,
K);
}else{qx.bom.element.Attribute.set(J,
i,
K);
}},
getContent:function(J){if(J.useHtml){return J.innerHTML;
}else if(qx.core.Variant.isSet(a,
b)){return J.firstChild.getAttribute(g)||d;
}else{return qx.bom.element.Attribute.get(J,
i);
}},
getHtmlSize:function(G,
F,
L){var J=this._htmlElement||this.__hB();
var M=this.__hz;
if(!F){F={};
}
for(var D in M){J.style[D]=F[D]||d;
}J.style.width=L!=null?L+r:f;
J.innerHTML=G;
return qx.bom.element.Dimension.getSize(J);
},
getTextSize:function(N,
F){var J=this._textElement||this.__hA();
var M=this.__hz;
if(!F){F={};
}
for(var D in M){J.style[D]=F[D]||d;
}if(qx.core.Variant.isSet(a,
b)){J.firstChild.setAttribute(g,
N);
}else if(qx.core.Variant.isSet(a,
z)){J.innerText=N;
}else{J.textContent=N;
}var O=qx.bom.element.Dimension.getSize(J);
if(qx.core.Variant.isSet(a,
b)){if(!qx.bom.client.Platform.WIN){O.width++;
}}return O;
}}});
})();
(function(){var a="qx.client",
b="qx.bom.element.Dimension";
qx.Class.define(b,
{statics:{getWidth:qx.core.Variant.select(a,
{"gecko":function(c){if(c.getBoundingClientRect){var d=c.getBoundingClientRect();
return Math.round(d.right)-Math.round(d.left);
}else{return c.offsetWidth;
}},
"default":function(c){return c.offsetWidth;
}}),
getHeight:qx.core.Variant.select(a,
{"gecko":function(c){if(c.getBoundingClientRect){var d=c.getBoundingClientRect();
return Math.round(d.bottom)-Math.round(d.top);
}else{return c.offsetHeight;
}},
"default":function(c){return c.offsetHeight;
}}),
getSize:qx.core.Variant.select(a,
{"gecko":function(c){if(c.getBoundingClientRect){var d=c.getBoundingClientRect();
return {width:Math.round(d.right)-Math.round(d.left),
height:Math.round(d.bottom)-Math.round(d.top)};
}else{return {width:c.offsetWidth,
height:c.offsetHeight};
}},
"default":function(c){return {width:c.offsetWidth,
height:c.offsetHeight};
}}),
getClientWidth:function(c){return c.clientWidth;
},
getClientHeight:function(c){return c.clientHeight;
},
getScrollWidth:function(c){return c.scrollWidth;
},
getScrollHeight:function(c){return c.scrollHeight;
}}});
})();
(function(){var a="content",
b="qx.html.Label";
qx.Class.define(b,
{extend:qx.html.Element,
members:{__hD:null,
_applyProperty:function(c,
d){arguments.callee.base.call(this,
c,
d);
if(c==a){var e=this.getDomElement();
qx.bom.Label.setContent(e,
d);
}},
_createDomElement:function(){var f=this.__hD;
var g=qx.bom.Label.create(this._content,
f);
return g;
},
_copyData:function(h){return arguments.callee.base.call(this,
true);
},
setRich:function(d){var e=this.getDomElement();
if(e){throw new Error("The label mode cannot be modified after initial creation");
}d=!!d;
if(this.__hD==d){return;
}this.__hD=d;
return this;
},
setContent:function(d){this._setProperty(a,
d);
return this;
},
getContent:function(){return this._getProperty(a);
}}});
})();
(function(){var a="keypress",
b="mouseup",
c="mousedown",
d="interval",
f="keydown",
g="keyup",
h="__hE",
j="Enter",
k="__hF",
l="__hG",
m="Up",
n="Escape",
o="blur",
p="qx.ui.menu.Manager",
q="Left",
r="Down",
s="Right",
t="singleton",
u="Space";
qx.Class.define(p,
{type:t,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this.__hE=[];
var v=qx.core.Init.getApplication().getRoot();
v.addListener(c,
this._onMouseDown,
this,
true);
v.addListener(b,
this._onMouseUp,
this);
v.addListener(f,
this._onKeyUpDown,
this,
true);
v.addListener(g,
this._onKeyUpDown,
this,
true);
v.addListener(a,
this._onKeyPress,
this,
true);
qx.bom.Element.addListener(window,
o,
this.hideAll,
this);
this.__hF=new qx.event.Timer;
this.__hF.addListener(d,
this._onOpenInterval,
this);
this.__hG=new qx.event.Timer;
this.__hG.addListener(d,
this._onCloseInterval,
this);
},
members:{__hH:null,
__hI:null,
__hF:null,
__hG:null,
__hE:null,
_getChild:function(w,
x,
y,
z){var A=w.getChildren();
var B=A.length;
var C;
for(var D=x;D<B&&D>=0;D+=y){C=A[D];
if(C.isEnabled()&&!C.isAnonymous()){return C;
}}
if(z){D=D==B?0:B-1;
for(;D!=x;D+=y){C=A[D];
if(C.isEnabled()&&!C.isAnonymous()){return C;
}}}return null;
},
_isInMenu:function(E){while(E){if(E instanceof qx.ui.menu.Menu){return true;
}E=E.getLayoutParent();
}return false;
},
add:function(F){{};
var G=this.__hE;
G.push(F);
F.setZIndex(1e6+G.length);
},
remove:function(F){{};
var G=this.__hE;
if(G){qx.lang.Array.remove(G,
F);
}},
hideAll:function(){var G=this.__hE;
if(G){for(var D=G.length-1;D>=0;D--){G[D].exclude();
}}},
getActiveMenu:function(){var G=this.__hE;
return G.length>0?G[G.length-1]:null;
},
scheduleOpen:function(w){this.cancelClose(w);
if(w.isVisible()){if(this.__hH){this.cancelOpen(this.__hH);
}}else if(this.__hH!=w){this.__hH=w;
this.__hF.restartWith(w.getOpenInterval());
}},
scheduleClose:function(w){this.cancelOpen(w);
if(!w.isVisible()){if(this.__hI){this.cancelClose(this.__hI);
}}else if(this.__hI!=w){this.__hI=w;
this.__hG.restartWith(w.getCloseInterval());
}},
cancelOpen:function(w){if(this.__hH==w){this.__hF.stop();
this.__hH=null;
}},
cancelClose:function(w){if(this.__hI==w){this.__hG.stop();
this.__hI=null;
}},
_onOpenInterval:function(H){this.__hF.stop();
this.__hH.open();
this.__hH=null;
},
_onCloseInterval:function(H){this.__hG.stop();
this.__hI.exclude();
this.__hI=null;
},
_onMouseDown:function(H){var I=H.getTarget();
if(I.getMenu&&I.getMenu()&&I.getMenu().isVisible()){return;
}if(this.__hE.length>0&&!this._isInMenu(I)){this.hideAll();
}},
_onMouseUp:function(H){var I=H.getTarget();
if(!(I instanceof qx.ui.menu.Menu)){this.hideAll();
}},
__hJ:{"Enter":1,
"Space":1},
__hK:{"Escape":1,
"Up":1,
"Down":1,
"Left":1,
"Right":1},
_onKeyUpDown:function(H){var w=this.getActiveMenu();
if(!w){return;
}var J=H.getKeyIdentifier();
if(this.__hK[J]||(this.__hJ[J]&&w.getSelectedButton())){H.stopPropagation();
}},
_onKeyPress:function(H){var w=this.getActiveMenu();
if(!w){return;
}var J=H.getKeyIdentifier();
var K=this.__hK[J];
var L=this.__hJ[J];
if(K){switch(J){case m:this._onKeyPressUp(w);
break;
case r:this._onKeyPressDown(w);
break;
case q:this._onKeyPressLeft(w);
break;
case s:this._onKeyPressRight(w);
break;
case n:this.hideAll();
break;
}H.stopPropagation();
}else if(L){var M=w.getSelectedButton();
if(M){switch(J){case j:this._onKeyPressEnter(w,
M,
H);
break;
case u:this._onKeyPressSpace(w,
M,
H);
break;
}H.stopPropagation();
}}},
_onKeyPressUp:function(w){var N=w.getSelectedButton();
var A=w.getChildren();
var x=N?w.indexOf(N)-1:A.length-1;
var O=this._getChild(w,
x,
-1,
true);
if(O){w.setSelectedButton(O);
}else{w.resetSelectedButton();
}},
_onKeyPressDown:function(w){var N=w.getSelectedButton();
var x=N?w.indexOf(N)+1:0;
var O=this._getChild(w,
x,
1,
true);
if(O){w.setSelectedButton(O);
}else{w.resetSelectedButton();
}},
_onKeyPressLeft:function(w){var P=w.getOpener();
if(!P){return;
}if(P instanceof qx.ui.menu.Button){var Q=P.getLayoutParent();
Q.resetOpenedButton();
Q.setSelectedButton(P);
}else if(P instanceof qx.ui.menubar.Button){var R=P.getToolBar().getMenuButtons();
var S=R.indexOf(P);
if(S===-1){return;
}var T=S==0?R[R.length-1]:R[S-1];
if(T!=P){T.open(true);
}}},
_onKeyPressRight:function(w){var N=w.getSelectedButton();
if(N){var U=N.getMenu();
if(U){w.setOpenedButton(N);
var V=this._getChild(U,
0,
1);
if(V){U.setSelectedButton(V);
}return;
}}else if(!w.getOpenedButton()){var V=this._getChild(w,
0,
1);
if(V){w.setSelectedButton(V);
if(V.getMenu()){w.setOpenedButton(V);
}return;
}}var P=w.getOpener();
if(P instanceof qx.ui.menu.Button&&N){while(P){P=P.getLayoutParent();
if(P instanceof qx.ui.menu.Menu){P=P.getOpener();
if(P instanceof qx.ui.menubar.Button){break;
}}else{break;
}}
if(!P){return;
}}if(P instanceof qx.ui.menubar.Button){var R=P.getToolBar().getMenuButtons();
var S=R.indexOf(P);
if(S===-1){return;
}var W=R[S+1];
if(!W){W=R[0];
}
if(W!=P){W.open(true);
}}},
_onKeyPressEnter:function(w,
M,
H){if(M.hasListener(a)){var X=H.clone();
X.setBubbles(false);
X.setTarget(M);
M.dispatchEvent(X);
}this.hideAll();
},
_onKeyPressSpace:function(w,
M,
H){if(M.hasListener(a)){var X=H.clone();
X.setBubbles(false);
X.setTarget(M);
M.dispatchEvent(X);
}}},
destruct:function(){var v=qx.core.Init.getApplication().getRoot();
if(v){v.removeListener(c,
this._onMouseDown,
this,
true);
v.removeListener(b,
this._onMouseUp,
this);
v.removeListener(f,
this._onKeyUpDown,
this,
true);
v.removeListener(g,
this._onKeyUpDown,
this,
true);
v.removeListener(a,
this._onKeyPress,
this,
true);
}this._disposeObjects(k,
l);
this._disposeArray(h);
}});
})();
(function(){var a="Integer",
b="qx.ui.core.Widget",
c="visible",
d="selected",
f="qx.ui.menu.Menu",
g="_applyOpenedButton",
h="_applyArrowColumnWidth",
i="_applyIconColumnWidth",
j="mouseover",
k="mouseout",
l="excluded",
m="_applyOpenInterval",
n="_applySpacingX",
o="_applyCloseInterval",
p="_applySelectedButton",
q="menu",
r="_applySpacingY";
qx.Class.define(f,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MPlacement,
qx.ui.core.MChildrenHandling],
construct:function(){arguments.callee.base.call(this);
this._setLayout(new qx.ui.menu.Layout);
this.getApplicationRoot().add(this);
this.addListener(j,
this._onMouseOver);
this.addListener(k,
this._onMouseOut);
this.initVisibility();
this.initKeepFocus();
this.initKeepActive();
},
properties:{appearance:{refine:true,
init:q},
allowGrowX:{refine:true,
init:false},
allowGrowY:{refine:true,
init:false},
visibility:{refine:true,
init:l},
keepFocus:{refine:true,
init:true},
keepActive:{refine:true,
init:true},
spacingX:{check:a,
apply:n,
init:0,
themeable:true},
spacingY:{check:a,
apply:r,
init:0,
themeable:true},
iconColumnWidth:{check:a,
init:0,
themeable:true,
apply:i},
arrowColumnWidth:{check:a,
init:0,
themeable:true,
apply:h},
selectedButton:{check:b,
nullable:true,
apply:p},
openedButton:{check:b,
nullable:true,
apply:g},
opener:{check:b,
nullable:true},
openInterval:{check:a,
themeable:true,
init:250,
apply:m},
closeInterval:{check:a,
themeable:true,
init:250,
apply:o}},
members:{__hL:null,
open:function(){this.placeToWidget(this.getOpener());
this.show();
},
addSeparator:function(){this.add(new qx.ui.menu.Separator);
},
getColumnSizes:function(){return this._getLayout().getColumnSizes();
},
_applyIconColumnWidth:function(s,
t){this._getLayout().setIconColumnWidth(s);
},
_applyArrowColumnWidth:function(s,
t){this._getLayout().setArrowColumnWidth(s);
},
_applySpacingX:function(s,
t){this._getLayout().setColumnSpacing(s);
},
_applySpacingY:function(s,
t){this._getLayout().setSpacing(s);
},
_applyVisibility:function(s,
t){arguments.callee.base.call(this,
s,
t);
var u=qx.ui.menu.Manager.getInstance();
if(s===c){u.add(this);
var v=this.getOpener();
var w=v.getLayoutParent();
if(w&&w instanceof qx.ui.menu.Menu){w.setOpenedButton(v);
}}else if(t===c){u.remove(this);
var v=this.getOpener();
var w=v.getLayoutParent();
if(w&&w instanceof qx.ui.menu.Menu&&w.getOpenedButton()==v){w.resetOpenedButton();
}this.resetOpenedButton();
this.resetSelectedButton();
}},
_applySelectedButton:function(s,
t){if(t){t.removeState(d);
}
if(s){s.addState(d);
}},
_applyOpenedButton:function(s,
t){if(t){t.getMenu().exclude();
}
if(s){s.getMenu().open();
}},
_onMouseOver:function(x){var u=qx.ui.menu.Manager.getInstance();
u.cancelClose(this);
var y=x.getTarget();
if(y.isEnabled()&&y instanceof qx.ui.menu.AbstractButton){this.setSelectedButton(y);
var z=y.getMenu&&y.getMenu();
if(z){u.scheduleOpen(z);
this.__hL=z;
}else{var A=this.getOpenedButton();
if(A){u.scheduleClose(A.getMenu());
}
if(this.__hL){u.cancelOpen(this.__hL);
this.__hL=null;
}}}else if(!this.getOpenedButton()){this.resetSelectedButton();
}},
_onMouseOut:function(x){var u=qx.ui.menu.Manager.getInstance();
if(!qx.ui.core.Widget.contains(this,
x.getRelatedTarget())){var A=this.getOpenedButton();
A?this.setSelectedButton(A):this.resetSelectedButton();
if(A){u.cancelClose(A.getMenu());
}if(this.__hL){u.cancelOpen(this.__hL);
}}}}});
})();
(function(){var a="Integer",
b="_applyLayoutChange",
c="qx.ui.menu.Layout";
qx.Class.define(c,
{extend:qx.ui.layout.VBox,
properties:{columnSpacing:{check:a,
init:0,
apply:b},
spanColumn:{check:a,
init:1,
nullable:true,
apply:b},
iconColumnWidth:{check:a,
init:0,
themeable:true,
apply:b},
arrowColumnWidth:{check:a,
init:0,
themeable:true,
apply:b}},
members:{__hM:null,
_computeSizeHint:function(){var d=this._getLayoutChildren();
var e,
f,
g;
var h=this.getSpanColumn();
var j=this.__hM=[0,
0,
0,
0];
var k=this.getColumnSpacing();
var m=0;
var n=0;
for(var o=0,
p=d.length;o<p;o++){e=d[o];
if(e.isAnonymous()){continue;
}f=e.getChildrenSizes();
for(var q=0;q<f.length;q++){if(h!=null&&q==h&&f[h+1]==0){m=Math.max(m,
f[q]);
}else{j[q]=Math.max(j[q],
f[q]);
}}var r=d[o].getInsets();
n=Math.max(n,
r.left+r.right);
}if(h!=null&&j[h]+k+j[h+1]<m){j[h]=m-j[h+1]-k;
}if(m==0){g=k*2;
}else{g=k*3;
}if(j[0]==0){j[0]=this.getIconColumnWidth();
}if(j[3]==0){j[3]=this.getArrowColumnWidth();
}return {height:arguments.callee.base.call(this).height,
width:qx.lang.Array.sum(j)+n+g};
},
getColumnSizes:function(){return this.__hM||null;
}}});
})();
(function(){var a="menu-separator",
b="qx.ui.menu.Separator";
qx.Class.define(b,
{extend:qx.ui.core.Widget,
properties:{appearance:{refine:true,
init:a},
anonymous:{refine:true,
init:true}}});
})();
(function(){var a="icon",
b="label",
c="arrow",
d="shortcut",
f="submenu",
g="String",
h="qx.ui.menu.Menu",
i="qx.ui.menu.AbstractButton",
j="keypress",
k="_applyIcon",
l="mouseup",
m="abstract",
n="_applyLabel",
o="_applyMenu";
qx.Class.define(i,
{extend:qx.ui.core.Widget,
type:m,
construct:function(){arguments.callee.base.call(this);
this._setLayout(new qx.ui.menu.ButtonLayout);
this.addListener(l,
this._onMouseUp);
this.addListener(j,
this._onKeyPress);
},
properties:{label:{check:g,
apply:n,
nullable:true},
menu:{check:h,
apply:o,
nullable:true},
icon:{check:g,
apply:k,
themeable:true,
nullable:true}},
members:{_createChildControlImpl:function(p){var q;
switch(p){case a:q=new qx.ui.basic.Image;
q.setAnonymous(true);
this._add(q,
{column:0});
break;
case b:q=new qx.ui.basic.Label;
q.setAnonymous(true);
this._add(q,
{column:1});
break;
case d:q=new qx.ui.basic.Label;
q.setAnonymous(true);
this._add(q,
{column:2});
break;
case c:q=new qx.ui.basic.Image;
q.setAnonymous(true);
this._add(q,
{column:3});
break;
}return q||arguments.callee.base.call(this,
p);
},
_forwardStates:{selected:1},
getChildrenSizes:function(){var r=0,
s=0,
t=0,
u=0;
if(this._isChildControlVisible(a)){var v=this.getChildControl(a);
r=v.getMarginLeft()+v.getSizeHint().width+v.getMarginRight();
}
if(this._isChildControlVisible(b)){var w=this.getChildControl(b);
s=w.getMarginLeft()+w.getSizeHint().width+w.getMarginRight();
}
if(this._isChildControlVisible(d)){var x=this.getChildControl(d);
t=x.getMarginLeft()+x.getSizeHint().width+x.getMarginRight();
}
if(this._isChildControlVisible(c)){var y=this.getChildControl(c);
u=y.getMarginLeft()+y.getSizeHint().width+y.getMarginRight();
}return [r,
s,
t,
u];
},
_onMouseUp:function(z){},
_onKeyPress:function(z){},
_applyIcon:function(A,
B){if(A){this._showChildControl(a).setSource(A);
}else{this._excludeChildControl(a);
}},
_applyLabel:function(A,
B){if(A){this._showChildControl(b).setContent(A);
}else{this._excludeChildControl(b);
}},
_applyMenu:function(A,
B){if(B){B.resetOpener();
B.removeState(f);
}
if(A){this._showChildControl(c);
A.setOpener(this);
A.addState(f);
}else{this._excludeChildControl(c);
}}},
destruct:function(){if(this.getMenu()){if(!qx.core.ObjectRegistry.inShutDown){this.getMenu().destroy();
}}}});
})();
(function(){var a="middle",
b="qx.ui.menu.ButtonLayout",
c="left";
qx.Class.define(b,
{extend:qx.ui.layout.Abstract,
members:{verifyLayoutProperty:null,
renderLayout:function(d,
e){var f=this._getLayoutChildren();
var g;
var h;
var j=[];
for(var k=0,
m=f.length;k<m;k++){g=f[k];
h=g.getLayoutProperties().column;
j[h]=g;
}var n=f[0].getLayoutParent().getLayoutParent();
var o=n.getColumnSizes();
var p=n.getSpacingX();
var q=0,
r=0;
var s=qx.ui.layout.Util;
for(var k=0,
m=o.length;k<m;k++){g=j[k];
if(g){var t=g.getSizeHint();
var r=s.computeVerticalAlignOffset(g.getAlignY()||a,
t.height,
e,
0,
0);
var u=s.computeHorizontalAlignOffset(g.getAlignX()||c,
t.width,
o[k],
g.getMarginLeft(),
g.getMarginRight());
g.renderLayout(q+u,
r,
t.width,
t.height);
}q+=o[k]+p;
}},
_computeSizeHint:function(){var f=this._getLayoutChildren();
var v=0;
for(var k=0,
m=f.length;k<m;k++){v=Math.max(v,
f[k].getSizeHint().height);
}return {width:0,
height:v};
}}});
})();
(function(){var a="shortcut",
b="qx.ui.menu.Button",
c="changeCommand",
d="menu-button";
qx.Class.define(b,
{extend:qx.ui.menu.AbstractButton,
include:qx.ui.core.MExecutable,
construct:function(f,
g,
h,
i){arguments.callee.base.call(this);
this.addListener(c,
this._onChangeCommand,
this);
if(f!=null){this.setLabel(f);
}
if(g!=null){this.setIcon(g);
}
if(h!=null){this.setCommand(h);
}
if(i!=null){this.setMenu(i);
}},
properties:{appearance:{refine:true,
init:d}},
members:{_onChangeCommand:function(j){this.getChildControl(a).setContent(j.getData().toString());
},
_onMouseUp:function(j){if(j.isLeftPressed()){this.execute();
if(this.getMenu()){j.stopPropagation();
}}},
_onKeyPress:function(j){this.execute();
}}});
})();
(function(){var a="qx.ui.core.MRemoteChildrenHandling";
qx.Mixin.define(a,
{members:{getChildren:function(){return this.getChildrenContainer().getChildren();
},
hasChildren:function(){return this.getChildrenContainer().hasChildren();
},
add:function(b,
c){return this.getChildrenContainer().add(b,
c);
},
remove:function(b){return this.getChildrenContainer().remove(b);
},
removeAll:function(){return this.getChildrenContainer().removeAll();
},
indexOf:function(b){return this.getChildrenContainer().indexOf(b);
},
addAt:function(b,
d,
c){this.getChildrenContainer().addAt(b,
d,
c);
},
addBefore:function(b,
e,
c){this.getChildrenContainer().addBefore(b,
e,
c);
},
addAfter:function(b,
f,
c){this.getChildrenContainer().addAfter(b,
f,
c);
},
removeAt:function(d){this.getChildrenContainer().removeAt(d);
}}});
})();
(function(){var a="container",
b="handle",
c="both",
d="Integer",
e="middle",
f="qx.ui.toolbar.Part",
g="icon",
h="label",
j="changeShow",
k="_applySpacing",
m="toolbar/part";
qx.Class.define(f,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MRemoteChildrenHandling],
construct:function(){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.HBox);
this._createChildControl(b);
},
properties:{appearance:{refine:true,
init:m},
show:{init:c,
check:[c,
h,
g],
inheritable:true,
event:j},
spacing:{nullable:true,
check:d,
themeable:true,
apply:k}},
members:{_createChildControlImpl:function(n){var o;
switch(n){case b:o=new qx.ui.basic.Image();
o.setAlignY(e);
this._add(o);
break;
case a:o=new qx.ui.toolbar.PartContainer;
this._add(o);
break;
}return o||arguments.callee.base.call(this,
n);
},
getChildrenContainer:function(){return this.getChildControl(a);
},
_applySpacing:function(p,
q){var r=this.getChildControl(a).getLayout();
p==null?r.resetSpacing():r.setSpacing(p);
},
addSeparator:function(){this.add(new qx.ui.toolbar.Separator);
},
getMenuButtons:function(){var s=this.getChildren();
var t=[];
var u;
for(var v=0,
w=s.length;v<w;v++){u=s[v];
if(u instanceof qx.ui.menubar.Button){t.push(u);
}}return t;
}}});
})();
(function(){var a="both",
b="toolbar/part/container",
c="icon",
d="changeShow",
e="qx.ui.toolbar.PartContainer",
f="label";
qx.Class.define(e,
{extend:qx.ui.container.Composite,
construct:function(){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.HBox);
},
properties:{appearance:{refine:true,
init:b},
show:{init:a,
check:[a,
f,
c],
inheritable:true,
event:d}}});
})();
(function(){var a="qx.ui.window.IWindowManager";
qx.Interface.define(a,
{members:{setDesktop:function(b){this.assertInterface(b,
qx.ui.window.IDesktop);
},
changeActiveWindow:function(c,
d){},
updateStack:function(){},
bringToFront:function(e){this.assertInstance(e,
qx.ui.window.Window);
},
sendToBack:function(e){this.assertInstance(e,
qx.ui.window.Window);
}}});
})();
(function(){var a="__hN",
b="qx.ui.window.Manager";
qx.Class.define(b,
{extend:qx.core.Object,
implement:qx.ui.window.IWindowManager,
members:{__hN:null,
setDesktop:function(c){this.__hN=c;
this.updateStack();
},
changeActiveWindow:function(d,
e){this.bringToFront(d);
},
_minZIndex:1e5,
updateStack:function(){qx.ui.core.queue.Widget.add(this);
},
syncWidget:function(){this.__hN.unblockContent();
var f=this.__hN.getWindows();
var g=this._minZIndex-1;
var h=false;
var j,
k;
for(var m=0,
n=f.length;m<n;m++){j=f[m];
if(!j.isVisible()){continue;
}g+=2;
j.setZIndex(g);
if(j.getModal()){this.__hN.blockContent(g-1);
}h=h||j.isActive();
k=j;
}
if(!h&&k){k.setActive(true);
}},
bringToFront:function(j){var f=this.__hN.getWindows();
var o=qx.lang.Array.remove(f,
j);
if(o){f.push(j);
this.updateStack();
}},
sendToBack:function(j){var f=this.__hN.getWindows();
var o=qx.lang.Array.remove(f,
j);
if(o){f.unshift(j);
this.updateStack();
}}},
destruct:function(){this._disposeObjects(a);
}});
})();
(function(){var a="qx.ui.window.IDesktop";
qx.Interface.define(a,
{members:{setWindowManager:function(b){this.assertInterface(b,
qx.ui.window.IWindowManager);
},
getWindows:function(){},
supportsMaximize:function(){},
blockContent:function(c){this.assertInteger(c);
},
unblockContent:function(){}}});
})();
(function(){var a="qx.ui.core.MRemoteLayoutHandling";
qx.Mixin.define(a,
{members:{setLayout:function(b){return this.getChildrenContainer().setLayout(b);
},
getLayout:function(){return this.getChildrenContainer().getLayout();
}}});
})();
(function(){var a="resize",
b="Boolean",
c="nw-resize",
d="mouseup",
f="mousedown",
g="w-resize",
h="losecapture",
i="se-resize",
j="resize-frame",
k="ne-resize",
l="n-resize",
m="sw-resize",
n="mouseout",
o="s-resize",
p="mousemove",
q="__hO",
r="move",
s="maximized",
t="Integer",
u="e-resize",
v="qx.ui.core.MResizable";
qx.Mixin.define(v,
{construct:function(){this.addListener(f,
this.__hY,
this,
true);
this.addListener(d,
this.__ia,
this);
this.addListener(p,
this.__ic,
this);
this.addListener(n,
this.__id,
this);
this.addListener(h,
this.__ib,
this);
},
properties:{resizable:{check:b,
init:true},
resizeAllEdges:{check:b,
init:true},
resizeSensitivity:{check:t,
init:5},
useResizeFrame:{check:b,
init:true}},
members:{__hO:null,
__hP:null,
__hQ:null,
__hR:null,
__hS:null,
__hT:function(){var w=this.__hO;
if(!w){w=this.__hO=new qx.ui.core.Widget();
w.setAppearance(j);
w.exclude();
qx.core.Init.getApplication().getRoot().add(w);
}return w;
},
__hU:function(){var x=this.__hS;
var w=this.__hT();
w.setUserBounds(x.left,
x.top,
x.width,
x.height);
w.show();
w.setZIndex(this.getZIndex()+1);
},
__hV:function(y){var z=this.__hP;
var A=this.getSizeHint();
var B=this.__hS;
var C=B.width;
var D=B.height;
var E=B.left;
var F=B.top;
var G;
if(z&1||z&2){G=y.getDocumentTop()-this.__hR;
if(z&1){D-=G;
}else{D+=G;
}
if(D<A.minHeight){D=A.minHeight;
}else if(D>A.maxHeight){D=A.maxHeight;
}
if(z&1){F+=B.height-D;
}}if(z&4||z&8){G=y.getDocumentLeft()-this.__hQ;
if(z&4){C-=G;
}else{C+=G;
}
if(C<A.minWidth){C=A.minWidth;
}else if(C>A.maxWidth){C=A.maxWidth;
}
if(z&4){E+=B.width-C;
}}var x=this.getBounds();
return {viewportLeft:E,
viewportTop:F,
parentLeft:x.left+E-B.left,
parentTop:x.top+F-B.top,
width:C,
height:D};
},
__hW:{1:l,
2:o,
4:g,
8:u,
5:c,
6:m,
9:k,
10:i},
__hX:function(y){if(!this.getResizable()){return;
}var H=this.getContentLocation();
var I=this.getResizeAllEdges();
var J=this.getResizeSensitivity();
var K=y.getDocumentLeft();
var L=y.getDocumentTop();
var z=0;
if(I&&Math.abs(H.top-L)<J){z+=1;
}else if(Math.abs(H.bottom-L)<J){z+=2;
}
if(I&&Math.abs(H.left-K)<J){z+=4;
}else if(Math.abs(H.right-K)<J){z+=8;
}this.__hP=z;
},
__hY:function(y){if(!this.__hP){return;
}this.addState(a);
this.capture();
this.__hQ=y.getDocumentLeft();
this.__hR=y.getDocumentTop();
var M=this.getContainerLocation();
var x=this.getBounds();
this.__hS={top:M.top,
left:M.left,
width:x.width,
height:x.height};
if(this.getUseResizeFrame()){this.__hU();
}y.stop();
},
__ia:function(y){if(!this.__hP){return;
}if(this.getUseResizeFrame()){this.__hT().exclude();
}var x=this.__hV(y);
this.setWidth(x.width);
this.setHeight(x.height);
if(this.getResizeAllEdges()){this.setLayoutProperties({left:x.parentLeft,
top:x.parentTop});
}this.__hP=0;
this.removeState(a);
this.resetCursor();
this.getApplicationRoot().resetGlobalCursor();
this.releaseCapture();
},
__ib:function(y){if(!this.__hP){return;
}this.resetCursor();
this.getApplicationRoot().resetGlobalCursor();
this.removeState(r);
if(this.getUseResizeFrame()){this.__hT().exclude();
}},
__ic:function(y){if(this.hasState(a)){var x=this.__hV(y);
if(this.getUseResizeFrame()){var w=this.__hT();
w.setUserBounds(x.viewportLeft,
x.viewportTop,
x.width,
x.height);
}else{this.setWidth(x.width);
this.setHeight(x.height);
if(this.getResizeAllEdges()){this.setLayoutProperties({left:x.parentLeft,
top:x.parentTop});
}}y.stop();
}else if(!this.hasState(s)){this.__hX(y);
var z=this.__hP;
var N=this.getApplicationRoot();
if(z){var O=this.__hW[z];
this.setCursor(O);
N.setGlobalCursor(O);
}else if(this.getCursor()){this.resetCursor();
N.resetGlobalCursor();
}}},
__id:function(y){if(this.getCursor()&&!this.hasState(a)){this.resetCursor();
this.getApplicationRoot().resetGlobalCursor();
}}},
destruct:function(){this._disposeObjects(q);
}});
})();
(function(){var a="move",
b="Boolean",
c="mouseup",
d="mousedown",
f="losecapture",
g="__ig",
h="__ie",
i="qx.ui.core.MMovable",
j="__if",
k="mousemove",
l="maximized",
m="move-frame";
qx.Mixin.define(i,
{properties:{movable:{check:b,
init:true},
useMoveFrame:{check:b,
init:false}},
members:{__ie:null,
__if:null,
__ig:null,
__ih:null,
__ii:null,
__ij:null,
__ik:null,
_activateMoveHandle:function(n){if(this.__ie){throw new Error("The move handle could not be redefined!");
}this.__ie=n;
n.addListener(d,
this._onMoveMouseDown,
this);
n.addListener(c,
this._onMoveMouseUp,
this);
n.addListener(k,
this._onMoveMouseMove,
this);
n.addListener(f,
this.__io,
this);
},
__il:function(){var o=this.__if;
if(!o){o=this.__if=new qx.ui.core.Widget();
o.setAppearance(m);
o.exclude();
qx.core.Init.getApplication().getRoot().add(o);
}return o;
},
__im:function(){var p=this.getBounds();
var o=this.__il();
o.setUserBounds(p.left,
p.top,
p.width,
p.height);
o.show();
o.setZIndex(this.getZIndex()+1);
},
__in:function(q){var r=this.__ig;
var s=Math.max(r.left,
Math.min(r.right,
q.getDocumentLeft()));
var t=Math.max(r.top,
Math.min(r.bottom,
q.getDocumentTop()));
var u=this.__ih+s;
var v=this.__ii+t;
return {viewportLeft:u,
viewportTop:v,
parentLeft:u-this.__ij,
parentTop:v-this.__ik};
},
_onMoveMouseDown:function(q){if(!this.getMovable()||this.hasState(l)){return;
}var w=this.getLayoutParent();
var x=w.getContentLocation();
var y=w.getBounds();
this.__ig={left:x.left,
top:x.top,
right:x.left+y.width,
bottom:x.top+y.height};
var z=this.getContainerLocation();
this.__ij=x.left;
this.__ik=x.top;
this.__ih=z.left-q.getDocumentLeft();
this.__ii=z.top-q.getDocumentTop();
this.addState(a);
this.__ie.capture();
if(this.getUseMoveFrame()){this.__im();
}q.stop();
},
_onMoveMouseMove:function(q){if(!this.hasState(a)){return;
}var A=this.__in(q);
if(this.getUseMoveFrame()){this.__il().setDomPosition(A.viewportLeft,
A.viewportTop);
}else{this.setDomPosition(A.parentLeft,
A.parentTop);
}},
_onMoveMouseUp:function(q){if(!this.hasState(a)){return;
}this.removeState(a);
this.__ie.releaseCapture();
var A=this.__in(q);
this.setLayoutProperties({left:A.parentLeft,
top:A.parentTop});
if(this.getUseMoveFrame()){this.__il().exclude();
}},
__io:function(q){if(!this.hasState(a)){return;
}this.removeState(a);
if(this.getUseMoveFrame()){this.__il().exclude();
}}},
destruct:function(){this._disposeObjects(j,
h);
this._disposeFields(g);
}});
})();
(function(){var a="Integer",
b="_applyContentPadding",
c="resetPaddingRight",
d="setPaddingBottom",
e="resetPaddingTop",
f="qx.ui.core.MContentPadding",
g="resetPaddingLeft",
h="setPaddingTop",
i="setPaddingRight",
j="resetPaddingBottom",
k="contentPaddingLeft",
l="setPaddingLeft",
m="contentPaddingTop",
n="shorthand",
o="contentPaddingRight",
p="contentPaddingBottom";
qx.Mixin.define(f,
{properties:{contentPaddingTop:{check:a,
init:0,
apply:b,
themeable:true},
contentPaddingRight:{check:a,
init:0,
apply:b,
themeable:true},
contentPaddingBottom:{check:a,
init:0,
apply:b,
themeable:true},
contentPaddingLeft:{check:a,
init:0,
apply:b,
themeable:true},
contentPadding:{group:[m,
o,
p,
k],
mode:n,
themeable:true}},
members:{__ip:{contentPaddingTop:h,
contentPaddingRight:i,
contentPaddingBottom:d,
contentPaddingLeft:l},
__iq:{contentPaddingTop:e,
contentPaddingRight:c,
contentPaddingBottom:j,
contentPaddingLeft:g},
_applyContentPadding:function(q,
r,
s){var t=this._getContentPaddingTarget();
if(q==null){var u=this.__iq[s];
t[u]();
}else{var v=this.__ip[s];
t[v](q);
}}}});
})();
(function(){var a="Boolean",
b="qx.event.type.Event",
c="captionbar",
d="maximize-button",
f="_applyCaptionBarChange",
g="restore-button",
h="minimize-button",
i="close-button",
j="execute",
k="pane",
l="title",
m="icon",
n="maximized",
o="statusbar-text",
p="statusbar",
q="String",
r="active",
s="beforeClose",
t="beforeMinimize",
u="mousedown",
v="changeStatus",
w="changeIcon",
x="excluded",
y="_applyCaption",
z="_applyActive",
A="beforeRestore",
B="normal",
C="minimize",
D="dblclick",
E="changeModal",
F="_applyShowStatusbar",
G="_applyStatus",
H="qx.ui.window.Window",
I="changeCaption",
J="_applyIcon",
K="focusout",
L="beforeMaximize",
M="maximize",
N="restore",
O="window",
P="close",
Q="changeActive",
R="minimized";
qx.Class.define(H,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MRemoteChildrenHandling,
qx.ui.core.MRemoteLayoutHandling,
qx.ui.core.MResizable,
qx.ui.core.MMovable,
qx.ui.core.MContentPadding],
construct:function(S,
T){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.VBox());
this._createChildControl(c);
this._createChildControl(k);
if(T!=null){this.setIcon(T);
}
if(S!=null){this.setCaption(S);
}this._updateCaptionBar();
this.addListener(u,
this._onWindowMouseDown,
this,
true);
this.addListener(K,
this._onWindowFocusOut,
this);
qx.core.Init.getApplication().getRoot().add(this);
this.initVisibility();
qx.ui.core.FocusHandler.getInstance().addRoot(this);
},
statics:{DEFAULT_MANAGER_CLASS:qx.ui.window.Manager},
events:{"beforeClose":b,
"close":b,
"beforeMinimize":b,
"minimize":b,
"beforeMaximize":b,
"maximize":b,
"beforeRestore":b,
"restore":b},
properties:{appearance:{refine:true,
init:O},
visibility:{refine:true,
init:x},
focusable:{refine:true,
init:true},
active:{check:a,
init:false,
apply:z,
event:Q},
modal:{check:a,
init:false,
event:E},
caption:{apply:y,
event:I,
nullable:true},
icon:{check:q,
nullable:true,
apply:J,
event:w,
themeable:true},
status:{check:q,
nullable:true,
apply:G,
event:v},
showClose:{check:a,
init:true,
apply:f,
themeable:true},
showMaximize:{check:a,
init:true,
apply:f,
themeable:true},
showMinimize:{check:a,
init:true,
apply:f,
themeable:true},
allowClose:{check:a,
init:true,
apply:f},
allowMaximize:{check:a,
init:true,
apply:f},
allowMinimize:{check:a,
init:true,
apply:f},
showStatusbar:{check:a,
init:false,
apply:F}},
members:{__ir:null,
__is:null,
getChildrenContainer:function(){return this.getChildControl(k);
},
_forwardStates:{active:true,
maximized:true},
setLayoutParent:function(U){{};
arguments.callee.base.call(this,
U);
},
_createChildControlImpl:function(V){var W;
switch(V){case p:W=new qx.ui.container.Composite(new qx.ui.layout.HBox());
this._add(W);
W.add(this.getChildControl(o));
break;
case o:W=new qx.ui.basic.Label();
W.setContent(this.getStatus());
break;
case k:W=new qx.ui.container.Composite();
this._add(W,
{flex:1});
break;
case c:var X=new qx.ui.layout.Grid();
X.setRowFlex(0,
1);
W=new qx.ui.container.Composite(X);
this._add(W);
W.addListener(D,
this._onCaptionMouseDblClick,
this);
this._activateMoveHandle(W);
break;
case m:W=new qx.ui.basic.Image(this.getIcon());
this.getChildControl(c).add(W,
{row:0,
column:0});
break;
case l:W=new qx.ui.basic.Label(this.getCaption());
W.setWidth(0);
W.setAllowGrowX(true);
var Y=this.getChildControl(c);
Y.getLayout().setColumnFlex(1,
1);
Y.add(W,
{row:0,
column:1});
break;
case h:W=new qx.ui.form.Button();
W.setFocusable(false);
W.addListener(j,
this._onMinimizeButtonClick,
this);
this.getChildControl(c).add(W,
{row:0,
column:2});
break;
case g:W=new qx.ui.form.Button();
W.setFocusable(false);
W.addListener(j,
this._onRestoreButtonClick,
this);
this.getChildControl(c).add(W,
{row:0,
column:3});
break;
case d:W=new qx.ui.form.Button();
W.setFocusable(false);
W.addListener(j,
this._onMaximizeButtonClick,
this);
this.getChildControl(c).add(W,
{row:0,
column:4});
break;
case i:W=new qx.ui.form.Button();
W.setFocusable(false);
W.addListener(j,
this._onCloseButtonClick,
this);
this.getChildControl(c).add(W,
{row:0,
column:6});
break;
}return W||arguments.callee.base.call(this,
V);
},
_updateCaptionBar:function(){var ba;
if(this.getIcon()){this._showChildControl(m);
}else{this._excludeChildControl(m);
}
if(this.getCaption()){this._showChildControl(l);
}else{this._excludeChildControl(l);
}
if(this.getShowMinimize()){this._showChildControl(h);
ba=this.getChildControl(h);
this.getAllowMinimize()?ba.resetEnabled():ba.setEnabled(false);
}else{this._excludeChildControl(h);
}
if(this.getShowMaximize()){if(this.isMaximized()){this._showChildControl(g);
this._excludeChildControl(d);
}else{this._showChildControl(d);
this._excludeChildControl(g);
}ba=this.getChildControl(d);
this.getAllowMaximize()?ba.resetEnabled():ba.setEnabled(false);
}else{this._excludeChildControl(d);
this._excludeChildControl(g);
}
if(this.getShowClose()){this._showChildControl(i);
ba=this.getChildControl(i);
this.getAllowClose()?ba.resetEnabled():ba.setEnabled(false);
}else{this._excludeChildControl(i);
}},
close:function(){if(this.fireNonBubblingEvent(s,
qx.event.type.Event,
[false,
true])){this.hide();
this.fireEvent(P);
}},
open:function(){this.show();
this.setActive(true);
this.focus();
},
center:function(){var U=this.getLayoutParent();
if(U){var bb=U.getBounds();
if(bb){var bc=this.getSizeHint();
var bd=Math.round((bb.width-bc.width)/2);
var be=Math.round((bb.height-bc.height)/2);
if(be<0){be=0;
}this.moveTo(bd,
be);
return;
}}{};
},
maximize:function(){if(this.isMaximized()){return;
}var U=this.getLayoutParent();
if(!U){return;
}
if(U.supportsMaximize()){if(this.fireNonBubblingEvent(L,
qx.event.type.Event,
[false,
true])){var bf=this.getLayoutProperties();
this.__is=bf.left===undefined?0:bf.left;
this.__ir=bf.top===undefined?0:bf.top;
this.setLayoutProperties({left:null,
top:null,
edge:0});
this.addState(n);
this._updateCaptionBar();
this.fireEvent(M);
}}},
minimize:function(){if(this.fireNonBubblingEvent(t,
qx.event.type.Event,
[false,
true])){this.hide();
this.fireEvent(C);
}},
restore:function(){if(!this.isMaximized()){return;
}
if(this.fireNonBubblingEvent(A,
qx.event.type.Event,
[false,
true])){var bd=this.__is;
var be=this.__ir;
this.setLayoutProperties({edge:null,
left:bd,
top:be});
this.removeState(n);
this._updateCaptionBar();
this.fireEvent(N);
}},
moveTo:function(bd,
be){if(this.isMaximized()){return;
}this.setLayoutProperties({left:bd,
top:be});
},
isMaximized:function(){return this.hasState(n);
},
getMode:function(){if(!this.isVisible()){return R;
}else{if(this.isMaximized()){return n;
}else{return B;
}}},
_applyActive:function(bg,
bh){if(bh){this.removeState(r);
}else{this.addState(r);
}},
_getContentPaddingTarget:function(){return this.getChildControl(k);
},
_applyShowStatusbar:function(bg,
bh){if(bg){this._showChildControl(p);
}else{this._excludeChildControl(p);
}},
_applyCaptionBarChange:function(bg,
bh){this._updateCaptionBar();
},
_applyStatus:function(bg,
bh){var bi=this.getChildControl(o,
true);
if(bi){bi.setContent(bg);
}},
_applyCaption:function(bg,
bh){this.getChildControl(l).setContent(bg);
},
_applyIcon:function(bg,
bh){this.getChildControl(m).setSource(bg);
},
_onWindowEventStop:function(bj){bj.stopPropagation();
},
_onWindowMouseDown:function(bj){this.setActive(true);
},
_onWindowFocusOut:function(bj){if(this.getModal()){return;
}var bk=bj.getRelatedTarget();
if(bk!=null&&!qx.ui.core.Widget.contains(this,
bk)){this.setActive(false);
}},
_onCaptionMouseDblClick:function(bj){if(this.getAllowMaximize()){this.isMaximized()?this.restore():this.maximize();
}},
_onMinimizeButtonClick:function(bj){this.minimize();
this.getChildControl(h).reset();
},
_onRestoreButtonClick:function(bj){this.restore();
this.getChildControl(g).reset();
},
_onMaximizeButtonClick:function(bj){this.maximize();
this.getChildControl(d).reset();
},
_onCloseButtonClick:function(bj){this.close();
this.getChildControl(i).reset();
}}});
})();
(function(){var a="left",
b="top",
c="_applyLayoutChange",
d="hAlign",
e="flex",
f="vAlign",
g="Integer",
h="__iB",
k="minWidth",
m="width",
n="__iw",
o="minHeight",
p="__ix",
q="qx.ui.layout.Grid",
r="__iA",
s="height",
t="maxHeight",
u="maxWidth",
v="__it",
w="__iu",
z="__iv";
qx.Class.define(q,
{extend:qx.ui.layout.Abstract,
construct:function(A,
B){arguments.callee.base.call(this);
this.__it=[];
this.__iu=[];
if(A){this.setSpacingX(A);
}
if(B){this.setSpacingY(B);
}},
properties:{spacingX:{check:g,
init:0,
apply:c},
spacingY:{check:g,
init:0,
apply:c}},
members:{__iv:null,
__it:null,
__iu:null,
__iw:null,
__ix:null,
__iy:null,
__iz:null,
__iA:null,
__iB:null,
verifyLayoutProperty:null,
__iC:function(){var C=[];
var D=[];
var E=[];
var F=0;
var G=0;
var H=this._getLayoutChildren();
for(var I=0,
J=H.length;I<J;I++){var K=H[I];
var L=K.getLayoutProperties();
var M=L.row;
var N=L.column;
L.colSpan=L.colSpan||1;
L.rowSpan=L.rowSpan||1;
if(M==null||N==null){throw new Error("The layout properties 'row' and 'column' must be defined!");
}
if(C[M]&&C[M][N]){throw new Error("There is already a widget in this cell ("+M+", "+N+")");
}
for(var O=N;O<N+L.colSpan;O++){for(var P=M;P<M+L.rowSpan;P++){if(C[P]==undefined){C[P]=[];
}C[P][O]=K;
G=Math.max(G,
O);
F=Math.max(F,
P);
}}
if(L.rowSpan>1){E.push(K);
}
if(L.colSpan>1){D.push(K);
}}for(var P=0;P<=F;P++){if(C[P]==undefined){C[P]=[];
}}this.__iv=C;
this.__iw=D;
this.__ix=E;
this.__iy=F;
this.__iz=G;
delete this._invalidChildrenCache;
},
_setRowData:function(M,
Q,
R){var S=this.__it[M];
if(!S){this.__it[M]={};
this.__it[M][Q]=R;
}else{S[Q]=R;
}},
_setColumnData:function(N,
Q,
R){var T=this.__iu[N];
if(!T){this.__iu[N]={};
this.__iu[N][Q]=R;
}else{T[Q]=R;
}},
setSpacing:function(U){this.setSpacingY(U);
this.setSpacingX(U);
},
setColumnAlign:function(N,
V,
W){{};
this._setColumnData(N,
d,
V);
this._setColumnData(N,
f,
W);
this._applyLayoutChange();
return this;
},
getColumnAlign:function(N){var T=this.__iu[N]||{};
return {vAlign:T.vAlign||b,
hAlign:T.hAlign||a};
},
setRowAlign:function(M,
V,
W){{};
this._setRowData(M,
d,
V);
this._setRowData(M,
f,
W);
this._applyLayoutChange();
return this;
},
getRowAlign:function(M){var S=this.__it[M]||{};
return {vAlign:S.vAlign||b,
hAlign:S.hAlign||a};
},
getCellWidget:function(M,
N){if(this._invalidChildrenCache){this.__iC();
}return this.__iv[M][N]||null;
},
getCellAlign:function(M,
N){var W=b;
var V=a;
var S=this.__it[M];
var T=this.__iu[N];
var X=this.__iv[M][N];
if(X){var Y={vAlign:X.getAlignY(),
hAlign:X.getAlignX()};
}else{Y={};
}if(Y.vAlign){W=Y.vAlign;
}else if(S&&S.vAlign){W=S.vAlign;
}else if(T&&T.vAlign){W=T.vAlign;
}if(Y.hAlign){V=Y.hAlign;
}else if(T&&T.hAlign){V=T.hAlign;
}else if(S&&S.hAlign){V=S.hAlign;
}return {vAlign:W,
hAlign:V};
},
setColumnFlex:function(N,
ba){this._setColumnData(N,
e,
ba);
this._applyLayoutChange();
return this;
},
getColumnFlex:function(N){var T=this.__iu[N]||{};
return T.flex!==undefined?T.flex:0;
},
setRowFlex:function(M,
ba){this._setRowData(M,
e,
ba);
this._applyLayoutChange();
return this;
},
getRowFlex:function(M){var S=this.__it[M]||{};
var bb=S.flex!==undefined?S.flex:0;
return bb;
},
setColumnMaxWidth:function(N,
bc){this._setColumnData(N,
u,
bc);
this._applyLayoutChange();
return this;
},
getColumnMaxWidth:function(N){var T=this.__iu[N]||{};
return T.maxWidth!==undefined?T.maxWidth:Infinity;
},
setColumnWidth:function(N,
bd){this._setColumnData(N,
m,
bd);
this._applyLayoutChange();
return this;
},
getColumnWidth:function(N){var T=this.__iu[N]||{};
return T.width!==undefined?T.width:null;
},
setColumnMinWidth:function(N,
be){this._setColumnData(N,
k,
be);
this._applyLayoutChange();
return this;
},
getColumnMinWidth:function(N){var T=this.__iu[N]||{};
return T.minWidth||0;
},
setRowMaxHeight:function(M,
bf){this._setRowData(M,
t,
bf);
this._applyLayoutChange();
return this;
},
getRowMaxHeight:function(M){var S=this.__it[M]||{};
return S.maxHeight||Infinity;
},
setRowHeight:function(M,
bg){this._setRowData(M,
s,
bg);
this._applyLayoutChange();
return this;
},
getRowHeight:function(M){var S=this.__it[M]||{};
return S.height!==undefined?S.height:null;
},
setRowMinHeight:function(M,
bh){this._setRowData(M,
o,
bh);
this._applyLayoutChange();
return this;
},
getRowMinHeight:function(M){var S=this.__it[M]||{};
return S.minHeight||0;
},
__iD:function(X){var bi=X.getSizeHint();
var bj=X.getMarginLeft()+X.getMarginRight();
var bk=X.getMarginTop()+X.getMarginBottom();
var bl={height:bi.height+bk,
width:bi.width+bj,
minHeight:bi.minHeight+bk,
minWidth:bi.minWidth+bj,
maxHeight:bi.maxHeight+bk,
maxWidth:bi.maxWidth+bj};
return bl;
},
_fixHeightsRowSpan:function(bm){var bn=this.getSpacingY();
for(var I=0,
J=this.__ix.length;I<J;I++){var X=this.__ix[I];
var bi=this.__iD(X);
var Y=X.getLayoutProperties();
var bo=Y.row;
var bp=bn*(Y.rowSpan-1);
var bq=bp;
var br={};
for(var bs=0;bs<Y.rowSpan;bs++){var M=Y.row+bs;
var bt=bm[M];
var bb=this.getRowFlex(M);
if(bb>0){br[M]={min:bt.minHeight,
value:bt.height,
max:bt.maxHeight,
flex:bb};
}bp+=bt.height;
bq+=bt.minHeight;
}if(bp<bi.height){var bu=qx.ui.layout.Util.computeFlexOffsets(br,
bi.height,
bp);
for(var bs=0;bs<Y.rowSpan;bs++){var bv=bu[bo+bs]?bu[bo+bs].offset:0;
bm[bo+bs].height+=bv;
}}if(bq<bi.minHeight){var bu=qx.ui.layout.Util.computeFlexOffsets(br,
bi.minHeight,
bq);
for(var bs=0;bs<Y.rowSpan;bs++){var bv=bu[bo+bs]?bu[bo+bs].offset:0;
bm[bo+bs].minHeight+=bv;
}}}},
_fixWidthsColSpan:function(bw){var bx=this.getSpacingX();
for(var I=0,
J=this.__iw.length;I<J;I++){var X=this.__iw[I];
var bi=this.__iD(X);
var Y=X.getLayoutProperties();
var by=Y.column;
var bz=bx*(Y.colSpan-1);
var bA=bz;
var bB={};
var bv;
for(var bs=0;bs<Y.colSpan;bs++){var bC=Y.column+bs;
var bD=bw[bC];
var bE=this.getColumnFlex(bC);
if(bE>0){bB[bC]={min:bD.minWidth,
value:bD.width,
max:bD.maxWidth,
flex:bE};
}bz+=bD.width;
bA+=bD.minWidth;
}if(bz<bi.width){var bF=qx.ui.layout.Util.computeFlexOffsets(bB,
bi.width,
bz);
for(var bs=0;bs<Y.colSpan;bs++){bv=bF[by+bs]?bF[by+bs].offset:0;
bw[by+bs].width+=bv;
}}if(bA<bi.minWidth){var bF=qx.ui.layout.Util.computeFlexOffsets(bB,
bi.minWidth,
bA);
for(var bs=0;bs<Y.colSpan;bs++){bv=bF[by+bs]?bF[by+bs].offset:0;
bw[by+bs].minWidth+=bv;
}}}},
_getRowHeights:function(){if(this.__iA!=null){return this.__iA;
}var bm=[];
var F=this.__iy;
var G=this.__iz;
for(var M=0;M<=F;M++){var bh=0;
var bg=0;
var bf=0;
for(var bC=0;bC<=G;bC++){var X=this.__iv[M][bC];
if(!X){continue;
}var bG=X.getLayoutProperties().rowSpan||0;
if(bG>1){continue;
}var bH=this.__iD(X);
if(this.getRowFlex(M)>0){bh=Math.max(bh,
bH.minHeight);
}else{bh=Math.max(bh,
bH.height);
}bg=Math.max(bg,
bH.height);
}var bh=Math.max(bh,
this.getRowMinHeight(M));
var bf=this.getRowMaxHeight(M);
if(this.getRowHeight(M)!==null){var bg=this.getRowHeight(M);
}else{var bg=Math.max(bh,
Math.min(bg,
bf));
}bm[M]={minHeight:bh,
height:bg,
maxHeight:bf};
}
if(this.__ix.length>0){this._fixHeightsRowSpan(bm);
}this.__iA=bm;
return bm;
},
_getColWidths:function(){if(this.__iB!=null){return this.__iB;
}var bw=[];
var G=this.__iz;
var F=this.__iy;
for(var bC=0;bC<=G;bC++){var bd=0;
var be=0;
var bc=Infinity;
for(var M=0;M<=F;M++){var X=this.__iv[M][bC];
if(!X){continue;
}var bI=X.getLayoutProperties().colSpan||0;
if(bI>1){continue;
}var bH=this.__iD(X);
if(this.getColumnFlex(bC)>0){be=Math.max(be,
bH.minWidth);
}else{be=Math.max(be,
bH.width);
}bd=Math.max(bd,
bH.width);
}var be=Math.max(be,
this.getColumnMinWidth(bC));
var bc=this.getColumnMaxWidth(bC);
if(this.getColumnWidth(bC)!==null){var bd=this.getColumnWidth(bC);
}else{var bd=Math.max(be,
Math.min(bd,
bc));
}bw[bC]={minWidth:be,
width:bd,
maxWidth:bc};
}
if(this.__iw.length>0){this._fixWidthsColSpan(bw);
}this.__iB=bw;
return bw;
},
_getColumnFlexOffsets:function(bd){var bi=this.getSizeHint();
var bJ=bd-bi.width;
if(bJ==0){return {};
}var bw=this._getColWidths();
var bK={};
for(var I=0,
J=bw.length;I<J;I++){var bC=bw[I];
var bE=this.getColumnFlex(I);
if((bE<=0)||(bC.width==bC.maxWidth&&bJ>0)||(bC.width==bC.minWidth&&bJ<0)){continue;
}bK[I]={min:bC.minWidth,
value:bC.width,
max:bC.maxWidth,
flex:bE};
}return qx.ui.layout.Util.computeFlexOffsets(bK,
bd,
bi.width);
},
_getRowFlexOffsets:function(bg){var bi=this.getSizeHint();
var bJ=bg-bi.height;
if(bJ==0){return {};
}var bm=this._getRowHeights();
var bK={};
for(var I=0,
J=bm.length;I<J;I++){var M=bm[I];
var bb=this.getRowFlex(I);
if((bb<=0)||(M.height==M.maxHeight&&bJ>0)||(M.height==M.minHeight&&bJ<0)){continue;
}bK[I]={min:M.minHeight,
value:M.height,
max:M.maxHeight,
flex:bb};
}return qx.ui.layout.Util.computeFlexOffsets(bK,
bg,
bi.height);
},
renderLayout:function(bL,
bM){if(this._invalidChildrenCache){this.__iC();
}var bN=qx.ui.layout.Util;
var bx=this.getSpacingX();
var bn=this.getSpacingY();
var bO=this._getColWidths();
var bP=this._getColumnFlexOffsets(bL);
var bw=[];
var G=this.__iz;
var F=this.__iy;
var bv;
for(var bC=0;bC<=G;bC++){bv=bP[bC]?bP[bC].offset:0;
bw[bC]=bO[bC].width+bv;
}var bQ=this._getRowHeights();
var bR=this._getRowFlexOffsets(bM);
var bm=[];
for(var M=0;M<=F;M++){bv=bR[M]?bR[M].offset:0;
bm[M]=bQ[M].height+bv;
}var bS=0;
for(var bC=0;bC<=G;bC++){var bT=0;
for(var M=0;M<=F;M++){var X=this.__iv[M][bC];
if(!X){bT+=bm[M]+bn;
continue;
}var Y=X.getLayoutProperties();
if(Y.row!==M||Y.column!==bC){bT+=bm[M]+bn;
continue;
}var bU=bx*(Y.colSpan-1);
for(var I=0;I<Y.colSpan;I++){bU+=bw[bC+I];
}var bV=bn*(Y.rowSpan-1);
for(var I=0;I<Y.rowSpan;I++){bV+=bm[M+I];
}var bW=X.getSizeHint();
var bX=X.getMarginTop();
var bY=X.getMarginLeft();
var ca=X.getMarginBottom();
var cb=X.getMarginRight();
var cc=Math.max(bW.minWidth,
Math.min(bU-bY-cb,
bW.maxWidth));
var cd=Math.max(bW.minHeight,
Math.min(bV-bX-ca,
bW.maxHeight));
var ce=this.getCellAlign(M,
bC);
var cf=bS+bN.computeHorizontalAlignOffset(ce.hAlign,
cc,
bU,
bY,
cb);
var cg=bT+bN.computeVerticalAlignOffset(ce.vAlign,
cd,
bV,
bX,
ca);
X.renderLayout(cf,
cg,
cc,
cd);
bT+=bm[M]+bn;
}bS+=bw[bC]+bx;
}},
invalidateLayoutCache:function(){arguments.callee.base.call(this);
this.__iB=null;
this.__iA=null;
},
_computeSizeHint:function(){if(this._invalidChildrenCache){this.__iC();
}var bw=this._getColWidths();
var be=0,
bd=0;
for(var I=0,
J=bw.length;I<J;I++){var bC=bw[I];
if(this.getColumnFlex(I)>0){be+=bC.minWidth;
}else{be+=bC.width;
}bd+=bC.width;
}var bm=this._getRowHeights();
var bh=0,
bg=0;
for(var I=0,
J=bm.length;I<J;I++){var M=bm[I];
if(this.getRowFlex(I)>0){bh+=M.minHeight;
}else{bh+=M.height;
}bg+=M.height;
}var A=this.getSpacingX()*(bw.length-1);
var B=this.getSpacingY()*(bm.length-1);
var bi={minWidth:be+A,
width:bd+A,
minHeight:bh+B,
height:bg+B};
return bi;
}},
destruct:function(){this._disposeFields(z,
v,
w,
n,
p,
h,
r);
}});
})();
(function(){var a="qx.ui.window.Desktop";
qx.Class.define(a,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MChildrenHandling,
qx.ui.window.MDesktop,
qx.ui.core.MBlocker],
implement:qx.ui.window.IDesktop,
construct:function(b){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.Canvas());
this.setWindowManager(b);
}});
})();
(function(){var a="qx.ui.layout.Grow";
qx.Class.define(a,
{extend:qx.ui.layout.Abstract,
members:{verifyLayoutProperty:null,
renderLayout:function(b,
c){var d=this._getLayoutChildren();
var e,
f,
g,
h;
for(var j=0,
k=d.length;j<k;j++){e=d[j];
f=e.getSizeHint();
g=b;
if(g<f.minWidth){g=f.minWidth;
}else if(g>f.maxWidth){g=f.maxWidth;
}h=c;
if(h<f.minHeight){h=f.minHeight;
}else if(h>f.maxHeight){h=f.maxHeight;
}e.renderLayout(0,
0,
g,
h);
}},
_computeSizeHint:function(){var d=this._getLayoutChildren();
var e,
f;
var m=0,
n=0;
for(var j=0,
k=d.length;j<k;j++){e=d[j];
f=e.getSizeHint();
m=Math.max(m,
f.width);
n=Math.max(n,
f.height);
}return {width:m,
height:n};
}}});
})();
(function(){var a="inherit",
b="toolbar-button",
c="keydown",
d="qx.ui.toolbar.Button",
e="keyup";
qx.Class.define(d,
{extend:qx.ui.form.Button,
construct:function(f,
g,
h){arguments.callee.base.call(this,
f,
g,
h);
this.removeListener(c,
this._onKeyDown);
this.removeListener(e,
this._onKeyUp);
},
properties:{appearance:{refine:true,
init:b},
show:{refine:true,
init:a},
focusable:{refine:true,
init:false}}});
})();
(function(){var a="execute",
b="http://localhost:8000/api/json/",
c='createconnection',
d="OK",
e="spamfighter/icon/22/actions/dialog-cancel.png",
f="__iG",
g="Тип авторизации:",
h="spamfighter.ui.NewServer",
i="Новое соединение",
j="Доверительная",
k="__iF",
l="default",
m="spamfighter/icon/22/actions/dialog-apply.png",
n="spamfighter/icon/22/actions/document-new.png",
o="URL сервера:",
p='qx.event.type.Data',
q="right",
r="Отмена",
s="__iE",
t='top',
u='right';
qx.Class.define(h,
{extend:qx.ui.window.Window,
construct:function(){arguments.callee.base.call(this,
i,
n);
this.set({'showMaximize':false,
'showMinimize':false});
var v=new qx.ui.layout.Grid(10,
10);
v.setColumnAlign(0,
u,
t);
v.setColumnWidth(1,
200);
this.setLayout(v);
this.add(new qx.ui.basic.Label(o),
{row:0,
column:0});
this.__iE=new qx.ui.form.TextField(b);
this.add(this.__iE,
{row:0,
column:1});
this.add(new qx.ui.basic.Label(g),
{row:1,
column:0});
this.__iF=new qx.ui.form.SelectBox();
this.__iF.add(new qx.ui.form.ListItem(j));
this.add(this.__iF,
{row:1,
column:1});
var w=new qx.ui.layout.HBox().set({spacing:4,
alignX:q});
var x=new qx.ui.container.Composite(w).set({paddingTop:8});
this.add(x,
{row:2,
column:0,
colSpan:2});
this.__iG=new qx.ui.form.Button(d,
m);
this.__iG.addState(l);
x.add(this.__iG);
var y=new qx.ui.form.Button(r,
e);
x.add(y);
this.__iG.addListener(a,
this._OkClicked,
this);
y.addListener(a,
this._CancelClicked,
this);
},
destruct:function(){this._disposeFields(s,
k,
f);
},
events:{createconnection:p},
members:{__iE:null,
__iF:null,
__iG:null,
_OkClicked:function(){this.__iG.setEnabled(false);
var z=new spamfighter.model.Server(this.__iE.getValue());
var A=this;
z.getVersion().addErrback(function(B){alert("Не удалось подключиться к серверу по указанному URL: "+B);
A.__iG.setEnabled(true);
A.__iE.focus();
return B;
}).addCallback(function(_){A.fireDataEvent(c,
z);
A.destroy();
});
},
_CancelClicked:function(){this.destroy();
}}});
})();
(function(){var a="none",
b="qx.client",
c="color",
d="qx.event.type.Data",
f="readonly",
g="changeValue",
h="readOnly",
i="text",
j="_applyTextAlign",
k="Boolean",
l="gecko",
m="A",
n="string",
o="change",
p="textAlign",
q="center",
r="disabled",
s="_applyReadOnly",
t="resize",
u="qx.ui.form.AbstractField",
v="transparent",
w="off",
x="spellcheck",
y="on",
z="false",
A="right",
B="abstract",
C="block",
D="changeName",
E="webkit",
F="String",
G="qxKeepFocus",
H="left";
qx.Class.define(u,
{extend:qx.ui.core.Widget,
implement:qx.ui.form.IFormElement,
type:B,
construct:function(I){arguments.callee.base.call(this);
if(I!=null){this.setValue(I);
}this.getContentElement().addListener(o,
this._onChangeContent,
this);
},
events:{"input":d,
"changeValue":d},
properties:{name:{check:F,
nullable:true,
event:D},
textAlign:{check:[H,
q,
A],
nullable:true,
themeable:true,
apply:j},
readOnly:{check:k,
apply:s,
init:false},
selectable:{refine:true,
init:true},
focusable:{refine:true,
init:true}},
members:{getFocusElement:function(){return this.getContentElement();
},
_createInputElement:function(){return new qx.html.Input(i);
},
_createContentElement:function(){var J=this._createInputElement();
if(qx.core.Variant.isSet(b,
l)){J.setAttribute(x,
z);
}J.setStyles({"border":a,
"padding":0,
"margin":0,
"display":C,
"background":v,
"outline":a,
"appearance":a});
if(qx.core.Variant.isSet(b,
E)){J.setStyle(t,
a);
}return J;
},
_applyEnabled:function(I,
K){arguments.callee.base.call(this,
I,
K);
this.getContentElement().setAttribute(r,
I===false);
},
__iH:{width:16,
height:16},
_getContentHint:function(){return {width:this.__iH.width*10,
height:this.__iH.height||16};
},
_applyFont:function(I,
K){var L;
if(I){var M=qx.theme.manager.Font.getInstance().resolve(I);
L=M.getStyles();
}else{L=qx.bom.Font.getDefaultStyles();
}this.getContentElement().setStyles(L);
if(I){this.__iH=qx.bom.Label.getTextSize(m,
L);
}else{delete this.__iH;
}qx.ui.core.queue.Layout.add(this);
},
_applyTextColor:function(I,
K){if(I){this.getContentElement().setStyle(c,
qx.theme.manager.Color.getInstance().resolve(I));
}else{this.getContentElement().removeStyle(c);
}},
tabFocus:function(){arguments.callee.base.call(this);
this.selectAll();
},
_getTextSize:function(){return this.__iH;
},
setValue:function(I){if(typeof I===n||I instanceof String){var N=this.getContentElement();
if(N.getValue()!=I){N.setValue(I);
this.fireNonBubblingEvent(g,
qx.event.type.Data,
[I]);
}return I;
}throw new Error("Invalid value type: "+I);
},
getValue:function(){return this.getContentElement().getValue();
},
_onChangeContent:function(O){this.fireNonBubblingEvent(g,
qx.event.type.Data,
[O.getData()]);
},
getSelection:function(){return this.getContentElement().getSelection();
},
getSelectionLength:function(){return this.getContentElement().getSelectionLength();
},
setSelection:function(P,
Q){this.getContentElement().setSelection(P,
Q);
},
clearSelection:function(){this.getContentElement().clearSelection();
},
selectAll:function(){this.setSelection(0);
},
_applyTextAlign:function(I,
K){this.getContentElement().setStyle(p,
I);
},
_applyReadOnly:function(I,
K){var R=this.getContentElement();
R.setAttribute(h,
I);
R.setAttribute(G,
I?y:w);
if(I){this.addState(f);
this.setFocusable(false);
}else{this.removeState(f);
this.setFocusable(true);
}}}});
})();
(function(){var a="input",
b="text",
c="qx.ui.form.TextField",
d="",
f="_applyMaxLength",
g="textfield",
h="Integer",
i="maxLength",
j="qx.event.type.Data";
qx.Class.define(c,
{extend:qx.ui.form.AbstractField,
properties:{maxLength:{check:h,
apply:f,
nullable:true},
appearance:{refine:true,
init:g},
allowGrowY:{refine:true,
init:false},
allowShrinkY:{refine:true,
init:false}},
events:{"input":j},
members:{_createInputElement:function(){var k=new qx.html.Input(b);
k.addListener(a,
this._onHtmlInput,
this);
return k;
},
_onHtmlInput:function(l){this.fireDataEvent(a,
l.getData());
},
_applyMaxLength:function(m,
n){this.getContentElement().setAttribute(i,
m==null?d:m);
}}});
})();
(function(){var a="wrap",
b="value",
c="textarea",
d="",
e="input",
f="qx.html.Input",
g="select";
qx.Class.define(f,
{extend:qx.html.Element,
construct:function(h){arguments.callee.base.call(this);
this.__iI=h;
if(h===g||h===c){this.setNodeName(h);
}else{this.setNodeName(e);
}},
members:{__iI:null,
_createDomElement:function(){return qx.bom.Input.create(this.__iI);
},
_applyProperty:function(i,
j){arguments.callee.base.call(this,
i,
j);
var k=this.getDomElement();
if(i===b){qx.bom.Input.setValue(k,
j);
}else if(i===a){qx.bom.Input.setWrap(k,
j);
}},
setValue:function(j){var k=this.getDomElement();
if(k){if(k.value!=j){qx.bom.Input.setValue(k,
j);
}}else{this._setProperty(b,
j);
}return this;
},
getValue:function(){var k=this.getDomElement();
if(k){return qx.bom.Input.getValue(k);
}return this._getProperty(b)||d;
},
setWrap:function(l){if(this.__iI===c){this._setProperty(a,
l);
}else{throw new Error("Text wrapping is only support by textareas!");
}return this;
},
getWrap:function(){if(this.__iI===c){return this._getProperty(a);
}else{throw new Error("Text wrapping is only support by textareas!");
}}}});
})();
(function(){var a="change",
b="input",
c="checkbox",
d="radio",
f="textarea",
g="text",
h="qx.client",
j="propertychange",
k="keypress",
m="select-multiple",
n="checked",
p="value",
q="select",
r="qx.event.handler.Input",
s="Enter";
qx.Class.define(r,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
construct:function(){arguments.callee.base.call(this);
this._onChangeCheckedWrapper=qx.lang.Function.listener(this._onChangeChecked,
this);
this._onChangeValueWrapper=qx.lang.Function.listener(this._onChangeValue,
this);
this._onInputWrapper=qx.lang.Function.listener(this._onInput,
this);
this._onPropertyWrapper=qx.lang.Function.listener(this._onProperty,
this);
},
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{input:1,
change:1},
TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:false},
members:{canHandleEvent:function(t,
u){var v=t.tagName.toLowerCase();
if(u===b&&(v===b||v===f)){return true;
}
if(u===a&&(v===b||v===f||v===q)){return true;
}return false;
},
registerEvent:qx.core.Variant.select(h,
{"mshtml":function(t,
u,
w){if(!t.__iJ){var x=t.tagName.toLowerCase();
var y=t.type;
if(y===g||x===f||y===c||y===d){qx.bom.Event.addNativeListener(t,
j,
this._onPropertyWrapper);
}
if(y!==c&&y!==d){qx.bom.Event.addNativeListener(t,
a,
this._onChangeValueWrapper);
}this.__iK(t,
y);
t.__iJ=true;
}},
"default":function(t,
u,
w){if(u===b){qx.bom.Event.addNativeListener(t,
b,
this._onInputWrapper);
}else if(u===a){if(t.type===d||t.type===c){qx.bom.Event.addNativeListener(t,
a,
this._onChangeCheckedWrapper);
}else{qx.bom.Event.addNativeListener(t,
a,
this._onChangeValueWrapper);
}this.__iK(t,
t.type);
}}}),
unregisterEvent:qx.core.Variant.select(h,
{"mshtml":function(t,
u){if(!t.__iJ){var x=t.tagName.toLowerCase();
var y=t.type;
if(y===g||x===f||y===c||y===d){qx.bom.Event.removeNativeListener(t,
j,
this._onPropertyWrapper);
}
if(y!==c&&y!==d){qx.bom.Event.removeNativeListener(t,
a,
this._onChangeValueWrapper);
}delete t.__iJ;
}},
"default":function(t,
u){if(u===b){qx.bom.Event.removeNativeListener(t,
b,
this._onInputWrapper);
}else if(u===a){if(t.type===d||t.type===c){qx.bom.Event.removeNativeListener(t,
a,
this._onChangeCheckedWrapper);
}else{qx.bom.Event.removeNativeListener(t,
a,
this._onChangeValueWrapper);
}}}}),
__iK:qx.core.Variant.select(h,
{"mshtml|opera":function(t,
y){if(y===g){qx.event.Registration.addListener(t,
k,
function(z){if(z.getKeyIdentifier()===s){qx.event.Registration.fireEvent(t,
a,
qx.event.type.Data,
[t.value]);
}});
}},
"default":function(t,
y){}}),
_onInput:function(z){var t=z.target;
qx.event.Registration.fireEvent(t,
b,
qx.event.type.Data,
[t.value]);
},
_onChangeValue:function(z){var t=z.target||z.srcElement;
var A=t.value;
if(t.type===m){var A=[];
for(var B=0,
C=t.options,
D=C.length;B<D;B++){if(C[B].selected){A.push(C[B].value);
}}}qx.event.Registration.fireEvent(t,
a,
qx.event.type.Data,
[A]);
},
_onChangeChecked:function(z){var t=z.target;
if(t.type===d){if(t.checked){qx.event.Registration.fireEvent(t,
a,
qx.event.type.Data,
[t.value]);
}}else{qx.event.Registration.fireEvent(t,
a,
qx.event.type.Data,
[t.checked]);
}},
_onProperty:qx.core.Variant.select(h,
{"mshtml":function(z){var t=z.target||z.srcElement;
var E=z.propertyName;
if(E===p&&(t.type===g||t.tagName.toLowerCase()===f)){if(!t.__inValueSet){qx.event.Registration.fireEvent(t,
b,
qx.event.type.Data,
[t.value]);
}}else if(E===n){if(t.type===c){qx.event.Registration.fireEvent(t,
a,
qx.event.type.Data,
[t.checked]);
}else if(t.checked){qx.event.Registration.fireEvent(t,
a,
qx.event.type.Data,
[t.value]);
}}},
"default":function(){}})},
defer:function(F){qx.event.Registration.addHandler(F);
}});
})();
(function(){var a="soft",
b="qx.client",
c="off",
d="",
e="input",
f="nowrap",
g="select",
h="qx.bom.Input",
i="normal",
j="textarea",
k="auto",
l='wrap';
qx.Class.define(h,
{statics:{__iL:{text:1,
textarea:1,
select:1,
checkbox:1,
radio:1,
password:1,
hidden:1,
submit:1,
image:1,
file:1,
search:1,
reset:1,
button:1},
create:function(m,
n,
o){{};
var n=n?qx.lang.Object.copy(n):{};
var p;
if(m===j||m===g){p=m;
}else{p=e;
n.type=m;
}return qx.bom.Element.create(p,
n,
o);
},
setValue:qx.core.Variant.select(b,
{"mshtml":function(q,
r){q.__iM=true;
q.value=r;
q.__iM=null;
},
"default":function(q,
r){q.value=r;
}}),
getValue:function(q){return q.value;
},
setWrap:qx.core.Variant.select(b,
{"mshtml":function(q,
s){q.wrap=s?a:c;
},
"gecko":function(q,
s){var t=s?a:c;
var u=s?d:k;
q.setAttribute(l,
t);
q.style.overflow=u;
},
"default":function(q,
s){q.style.whiteSpace=s?i:f;
}})}});
})();
(function(){var a="popup",
b="list",
c="mousewheel",
d="changeVisibility",
f="PageUp",
g="blur",
h="mousedown",
i="one",
j="Escape",
k="_applyMaxListHeight",
l="qx.event.type.Data",
m="PageDown",
n="changeSelection",
o="middle",
p="String",
q="resize",
r="qx.ui.form.AbstractSelectBox",
s="keypress",
t="mouseup",
u="abstract",
v="changeName",
w="Number";
qx.Class.define(r,
{extend:qx.ui.core.Widget,
include:qx.ui.core.MRemoteChildrenHandling,
type:u,
construct:function(){arguments.callee.base.call(this);
var x=new qx.ui.layout.HBox();
this._setLayout(x);
x.setAlignY(o);
this.addListener(s,
this._onKeyPress);
this.addListener(g,
this.close,
this);
var y=qx.core.Init.getApplication().getRoot();
y.addListener(c,
this._onMousewheel,
this,
true);
this.addListener(q,
this._onResize,
this);
},
properties:{focusable:{refine:true,
init:true},
width:{refine:true,
init:120},
name:{check:p,
nullable:true,
event:v},
maxListHeight:{check:w,
apply:k,
nullable:true,
init:200}},
events:{"changeValue":l},
members:{_createChildControlImpl:function(z){var A;
switch(z){case b:A=new qx.ui.form.List().set({focusable:false,
keepFocus:true,
height:null,
width:null,
maxHeight:this.getMaxListHeight(),
selectionMode:i,
quickSelection:true});
A.addListener(n,
this._onListChangeSelection,
this);
A.addListener(h,
this._onListMouseDown,
this);
break;
case a:A=new qx.ui.popup.Popup(new qx.ui.layout.VBox);
A.setAutoHide(false);
A.setKeepActive(true);
A.addListener(t,
this.close,
this);
A.add(this.getChildControl(b));
A.addListener(d,
this._onPopupChangeVisibility,
this);
break;
}return A||arguments.callee.base.call(this,
z);
},
_applyMaxListHeight:function(B,
C){this.getChildControl(b).setMaxHeight(B);
},
getChildrenContainer:function(){return this.getChildControl(b);
},
open:function(){var D=this.getChildControl(a);
D.placeToWidget(this,
true);
D.show();
},
close:function(){this.getChildControl(a).hide();
},
toggle:function(){var E=this.getChildControl(a).isVisible();
if(E){this.close();
}else{this.open();
}},
_onKeyPress:function(F){var G=F.getKeyIdentifier();
var H=this.getChildControl(a);
if(H.isHidden()&&(G==m||G==f)){F.stopPropagation();
}else if(!H.isHidden()&&G==j){this.close();
F.stop();
}else{this.getChildControl(b).handleKeyPress(F);
}},
_onMousewheel:function(F){var I=F.getTarget();
var D=this.getChildControl(a);
if(qx.ui.core.Widget.contains(D,
I)){return;
}this.close();
},
_onResize:function(F){this.getChildControl(a).setMinWidth(F.getData().width);
},
_onListChangeSelection:function(F){throw new Error("Abstract method: _onListChangeSelection()");
},
_onListMouseDown:function(F){throw new Error("Abstract method: _onListMouseDown()");
},
_onPopupChangeVisibility:function(F){throw new Error("Abstract method: _onPopupChangeVisibility()");
}},
destruct:function(){var y=qx.core.Init.getApplication().getRoot();
if(y){y.removeListener(c,
this._onMousewheel,
this,
true);
}}});
})();
(function(){var a="qx.ui.core.ISingleSelection",
b="qx.event.type.Data";
﻿;
qx.Interface.define(a,
{events:{"changeSelection":b},
members:{getSelected:function(){return true;
},
setSelected:function(c){return arguments.length==1;
},
resetSelection:function(){return true;
},
isSelected:function(c){return arguments.length==1;
},
isSelectionEmpty:function(){return true;
},
getSelectables:function(){return true;
}}});
})();
(function(){var a="list",
b="pressed",
c="abandoned",
d="popup",
f="atom",
g="hovered",
h="changeValue",
i="arrow",
j="",
k="spacer",
l="Enter",
m="__iN",
n="mouseout",
o="Space",
p="key",
q="mousewheel",
r="keyinput",
s="qx.ui.form.ListItem",
t="changeSelection",
u="quick",
v="qx.ui.form.SelectBox",
w="mouseover",
x="selectbox",
y="_applySelected",
z="click",
A=" ";
qx.Class.define(v,
{extend:qx.ui.form.AbstractSelectBox,
implement:[qx.ui.form.IFormElement,
qx.ui.core.ISingleSelection],
construct:function(){arguments.callee.base.call(this);
this._createChildControl(f);
this._createChildControl(k);
this._createChildControl(i);
this.addListener(w,
this._onMouseOver,
this);
this.addListener(n,
this._onMouseOut,
this);
this.addListener(z,
this._onClick,
this);
this.addListener(q,
this._onMouseWheel,
this);
this.addListener(r,
this._onKeyInput,
this);
},
properties:{appearance:{refine:true,
init:x},
selected:{check:s,
apply:y,
event:t}},
members:{__iN:null,
_createChildControlImpl:function(B){var C;
switch(B){case k:C=new qx.ui.core.Spacer();
this._add(C,
{flex:1});
break;
case f:C=new qx.ui.basic.Atom(A);
C.setCenter(false);
C.setAnonymous(true);
this._add(C,
{flex:1});
break;
case i:C=new qx.ui.basic.Image();
C.setAnonymous(true);
this._add(C);
break;
}return C||arguments.callee.base.call(this,
B);
},
_forwardStates:{focused:true},
_applySelected:function(D,
E){var F=this.getChildControl(a);
if(F.getSelected()!=D){F.setSelected(D);
}var G=this.getChildControl(f);
var H=D?D.getLabel():j;
H==null?G.resetLabel():G.setLabel(H);
var I=D?D.getIcon():j;
I==null?G.resetIcon():G.setIcon(I);
if(this.hasListener(h)){this.fireDataEvent(h,
F.getValue());
}},
setValue:function(D){this.getChildControl(a).setValue(D);
},
getValue:function(){var J=this.getSelected();
return J?J.getFormValue():null;
},
resetSelection:function(){var K=this.getChildControl(a).getChildren()[0];
if(K){this.setSelected(K);
}},
isSelected:function(J){var L=this.getChildControl(a).getChildren();
if(L.length>0){return this.getSelected()===J;
}else{return false;
}},
isSelectionEmpty:function(){var L=this.getChildControl(a).getChildren();
if(L.length>0){return this.getSelected()?false:true;
}else{return true;
}},
getSelectables:function(){return this.getChildControl(a).getChildren();
},
_onMouseOver:function(M){if(!this.isEnabled()||M.getTarget()!==this){return;
}
if(this.hasState(c)){this.removeState(c);
this.addState(b);
}this.addState(g);
},
_onMouseOut:function(M){if(!this.isEnabled()||M.getTarget()!==this){return;
}this.removeState(g);
if(this.hasState(b)){this.removeState(b);
this.addState(c);
}},
_onClick:function(M){this.toggle();
},
_onMouseWheel:function(M){if(this.getChildControl(d).isVisible()){return;
}var N=M.getWheelDelta()>0?1:-1;
var O=this.getChildren();
var P=this.getSelected();
if(!P){P=O[0];
}var Q=O.indexOf(P)+N;
var R=O.length-1;
if(Q<0){Q=0;
}else if(Q>=R){Q=R;
}this.setSelected(O[Q]);
M.stopPropagation();
},
_onKeyPress:function(M){var S=M.getKeyIdentifier();
if(S==l||S==o){if(this.__iN){this.setSelected(this.__iN);
this.__iN=null;
}this.toggle();
}else{arguments.callee.base.call(this,
M);
}},
_onKeyInput:function(M){var T=M.clone();
T.setTarget(this._list);
T.setBubbles(false);
this.getChildControl(a).dispatchEvent(T);
},
_onListMouseDown:function(M){if(this.__iN){this.setSelected(this.__iN);
this.__iN=null;
}},
_onListChangeSelection:function(M){var U=M.getData();
if(U.length>0){var V=this.getChildControl(d);
var F=this.getChildControl(a);
var W=F.getSelectionContext();
if(V.isVisible()&&(W==u||W==p)){this.__iN=U[0];
}else{this.setSelected(U[0]);
this.__iN=null;
}}else{this.resetSelected();
}},
_onPopupChangeVisibility:function(M){var V=this.getChildControl(d);
if(!V.isVisible()){var F=this.getChildControl(a);
if(F.hasChildren()){F.setSelected(this.getSelected());
}}}},
destruct:function(){this._disposeFields(m);
}});
})();
(function(){var a="scrollbar-y",
b="scrollbar-x",
c="pane",
d="auto",
f="corner",
g="on",
h="changeVisibility",
i="scroll",
j="_computeScrollbars",
k="off",
l="scrollY",
m="abstract",
n="update",
o="scrollX",
p="mousewheel",
q="scrollbarY",
r="scrollbarX",
s="horizontal",
t="scrollarea",
u="qx.ui.core.AbstractScrollArea",
v="vertical";
qx.Class.define(u,
{extend:qx.ui.core.Widget,
type:m,
construct:function(){arguments.callee.base.call(this);
var w=new qx.ui.layout.Grid();
w.setColumnFlex(0,
1);
w.setRowFlex(0,
1);
this._setLayout(w);
this.addListener(p,
this._onMouseWheel,
this);
},
properties:{appearance:{refine:true,
init:t},
width:{refine:true,
init:100},
height:{refine:true,
init:200},
scrollbarX:{check:[d,
g,
k],
init:d,
apply:j},
scrollbarY:{check:[d,
g,
k],
init:d,
apply:j},
scrollbar:{group:[r,
q]}},
members:{_createChildControlImpl:function(x){var y;
switch(x){case c:y=new qx.ui.core.ScrollPane();
y.addListener(n,
this._computeScrollbars,
this);
y.addListener(o,
this._onScrollPaneX,
this);
y.addListener(l,
this._onScrollPaneY,
this);
this._add(y,
{row:0,
column:0});
break;
case b:y=new qx.ui.core.ScrollBar(s);
y.setMinWidth(0);
y.exclude();
y.addListener(i,
this._onScrollBarX,
this);
y.addListener(h,
this._onChangeScrollbarXVisibility,
this);
this._add(y,
{row:1,
column:0});
break;
case a:y=new qx.ui.core.ScrollBar(v);
y.setMinHeight(0);
y.exclude();
y.addListener(i,
this._onScrollBarY,
this);
y.addListener(h,
this._onChangeScrollbarYVisibility,
this);
this._add(y,
{row:0,
column:1});
break;
case f:y=new qx.ui.core.Widget();
y.setWidth(0);
y.setHeight(0);
y.exclude();
this._add(y,
{row:1,
column:1});
break;
}return y||arguments.callee.base.call(this,
x);
},
getPaneSize:function(){return this.getChildControl(c).getBounds();
},
getItemTop:function(z){return this.getChildControl(c).getItemTop(z);
},
getItemBottom:function(z){return this.getChildControl(c).getItemBottom(z);
},
getItemLeft:function(z){return this.getChildControl(c).getItemLeft(z);
},
getItemRight:function(z){return this.getChildControl(c).getItemRight(z);
},
scrollToX:function(A){qx.ui.core.queue.Manager.flush();
this.getChildControl(b).scrollTo(A);
},
scrollByX:function(A){qx.ui.core.queue.Manager.flush();
this.getChildControl(b).scrollBy(A);
},
getScrollX:function(){var B=this.getChildControl(b,
true);
return B?B.getPosition():0;
},
scrollToY:function(A){qx.ui.core.queue.Manager.flush();
this.getChildControl(a).scrollTo(A);
},
scrollByY:function(A){qx.ui.core.queue.Manager.flush();
this.getChildControl(a).scrollBy(A);
},
getScrollY:function(){var B=this.getChildControl(a,
true);
return B?B.getPosition():0;
},
_onScrollBarX:function(C){this.getChildControl(c).scrollToX(C.getData());
},
_onScrollBarY:function(C){this.getChildControl(c).scrollToY(C.getData());
},
_onScrollPaneX:function(C){this.scrollToX(C.getData());
},
_onScrollPaneY:function(C){this.scrollToY(C.getData());
},
_onMouseWheel:function(C){var D=this._isChildControlVisible(b);
var E=this._isChildControlVisible(a);
var B=(E)?this.getChildControl(a,
true):(D?this.getChildControl(b,
true):null);
if(B){B.scrollBySteps(C.getWheelDelta());
}C.stop();
},
_onChangeScrollbarXVisibility:function(C){var D=this._isChildControlVisible(b);
var E=this._isChildControlVisible(a);
if(!D){this.scrollToX(0);
}D&&E?this._showChildControl(f):this._excludeChildControl(f);
},
_onChangeScrollbarYVisibility:function(C){var D=this._isChildControlVisible(b);
var E=this._isChildControlVisible(a);
if(!E){this.scrollToY(0);
}D&&E?this._showChildControl(f):this._excludeChildControl(f);
},
_computeScrollbars:function(){var F=this.getChildControl(c);
var G=F.getChild();
if(!G){this._excludeChildControl(b);
this._excludeChildControl(a);
return;
}var H=this.getInnerSize();
var I=F.getBounds();
var J=F.getScrollSize();
if(!I||!J){return;
}var K=this.getScrollbarX();
var L=this.getScrollbarY();
if(K===d&&L===d){var D=J.width>H.width;
var E=J.height>H.height;
if((D||E)&&!(D&&E)){if(D){E=J.height>I.height;
}else if(E){D=J.width>I.width;
}}}else{var D=K===g;
var E=L===g;
if(J.width>(D?I.width:H.width)&&K===d){D=true;
}
if(J.height>(D?I.height:H.height)&&L===d){E=true;
}}if(D){var M=this.getChildControl(b);
M.show();
M.setMaximum(Math.max(0,
J.width-I.width-1));
M.setKnobFactor(I.width/J.width);
}else{this._excludeChildControl(b);
}
if(E){var N=this.getChildControl(a);
N.show();
N.setMaximum(Math.max(0,
J.height-I.height-1));
N.setKnobFactor(I.height/J.height);
}else{this._excludeChildControl(a);
}}}});
})();
(function(){var a="qx.ui.core.IMultiSelection",
b="qx.event.type.Data";
﻿;
qx.Interface.define(a,
{events:{"changeSelection":b},
members:{getSelection:function(){return true;
},
setSelection:function(c){return arguments.length==1;
},
resetSelection:function(){return true;
},
isSelected:function(d){return arguments.length==1;
},
isSelectionEmpty:function(){return true;
},
selectAll:function(){return true;
},
addToSelection:function(d){return arguments.length==1;
},
removeFromSelection:function(d){return arguments.length==1;
},
getSelectables:function(){return true;
}}});
})();
(function(){var a="Boolean",
b="changeSelection",
c="single",
d="mousedown",
f="one",
g="qx.event.type.Data",
h="_applyDragSelection",
i="Use 'setSelection' instead!",
j="__iO",
k="mousemove",
l="addItem",
m="Use 'setSelected' instead!",
n="multi",
o="_applyQuickSelection",
p="mouseup",
q="mouseover",
r="keypress",
s="_applySelectionMode",
t="additive",
u="qx.ui.core.MSelectionHandling",
v="Use 'resetSelection' instead!",
w="losecapture",
x="removeItem",
y="Use 'getSelected' instead!";
qx.Mixin.define(u,
{construct:function(){var z=this.SELECTION_MANAGER;
var A=this.__iO=new z(this);
this.addListener(d,
A.handleMouseDown,
A);
this.addListener(p,
A.handleMouseUp,
A);
this.addListener(q,
A.handleMouseOver,
A);
this.addListener(k,
A.handleMouseMove,
A);
this.addListener(w,
A.handleLoseCapture,
A);
this.addListener(r,
A.handleKeyPress,
A);
this.addListener(l,
A.handleAddItem,
A);
this.addListener(x,
A.handleRemoveItem,
A);
A.addListener(b,
this._onSelectionChange,
this);
},
events:{"changeSelection":g},
properties:{selectionMode:{check:[c,
n,
t,
f],
init:c,
apply:s},
dragSelection:{check:a,
init:false,
apply:h},
quickSelection:{check:a,
init:false,
apply:o}},
members:{__iO:null,
selectAll:function(){this.__iO.selectAll();
},
select:function(B){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
m);
this.setSelected(B);
},
setSelected:function(B){this.__iO.selectItem(B);
},
isSelected:function(B){return this.__iO.isItemSelected(B);
},
addToSelection:function(B){this.__iO.addItem(B);
},
removeFromSelection:function(B){this.__iO.removeItem(B);
},
selectRange:function(C,
D){this.__iO.selectItemRange(C,
D);
},
clearSelection:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
v);
this.resetSelection();
},
resetSelection:function(){this.__iO.clearSelection();
},
replaceSelection:function(E){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
i);
this.setSelection(E);
},
setSelection:function(E){this.__iO.replaceSelection(E);
},
getSelectedItem:function(){qx.log.Logger.deprecatedMethodWarning(arguments.callee,
y);
return this.getSelected();
},
getSelected:function(){return this.__iO.getSelectedItem();
},
getSelection:function(){return this.__iO.getSelection();
},
getSortedSelection:function(){return this.__iO.getSortedSelection();
},
isSelectionEmpty:function(){return this.__iO.isSelectionEmpty();
},
getSelectionContext:function(){return this.__iO.getSelectionContext();
},
_getManager:function(){return this.__iO;
},
getSelectables:function(){return this.__iO.getSelectables();
},
_applySelectionMode:function(F,
G){this.__iO.setMode(F);
},
_applyDragSelection:function(F,
G){this.__iO.setDrag(F);
},
_applyQuickSelection:function(F,
G){this.__iO.setQuick(F);
},
_onSelectionChange:function(H){this.fireDataEvent(b,
H.getData());
}},
destruct:function(){this._disposeObjects(j);
}});
})();
(function(){var c="one",
d="single",
f="additive",
g="multi",
h="selected",
j="PageUp",
k="under",
m="Left",
n="lead",
o="Down",
p="Up",
q="Boolean",
r="PageDown",
s="anchor",
t="End",
u="Home",
v="Right",
w="right",
x="click",
y="above",
z="left",
A="Escape",
B="A",
C="Space",
D="_applyMode",
E="interval",
F="changeSelection",
G="__jh",
H="qx.event.type.Data",
I="quick",
J="__iS",
K="key",
L="__ji",
M="__iP",
N="abstract",
O="__jj",
P="drag",
Q="qx.ui.core.selection.Abstract";
qx.Class.define(Q,
{type:N,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this.__iP={};
},
events:{"changeSelection":H},
properties:{mode:{check:[d,
g,
f,
c],
init:d,
apply:D},
drag:{check:q,
init:false},
quick:{check:q,
init:false}},
members:{__iQ:0,
__iR:0,
__iS:null,
__iT:null,
__iU:null,
__iV:null,
__iW:null,
__iX:null,
__iY:null,
__ja:null,
__jb:null,
__jc:null,
__jd:null,
__je:null,
__jf:null,
__jg:null,
__jh:null,
__iP:null,
__ji:null,
__jj:null,
getSelectionContext:function(){return this.__jg;
},
selectAll:function(){var R=this.getMode();
if(R==d||R==c){throw new Error("Can not select all items in selection mode: "+R);
}this._selectAllItems();
this._fireChange();
},
selectItem:function(S){this._setSelectedItem(S);
var R=this.getMode();
if(R!==d&&R!==c){this._setLeadItem(S);
this._setAnchorItem(S);
}this._scrollItemIntoView(S);
this._fireChange();
},
addItem:function(S){var R=this.getMode();
if(R===d||R===c){this._setSelectedItem(S);
}else{if(!this._getAnchorItem()){this._setAnchorItem(S);
}this._setLeadItem(S);
this._addToSelection(S);
}this._scrollItemIntoView(S);
this._fireChange();
},
removeItem:function(S){this._removeFromSelection(S);
if(this.getMode()===c&&this.isSelectionEmpty()){var T=this._getFirstSelectable();
if(T){this.addItem(T);
}}
if(this._getLeadItem()==S){this._setLeadItem(null);
}
if(this._getAnchorItem()==S){this._setAnchorItem(null);
}this._fireChange();
},
selectItemRange:function(U,
V){var R=this.getMode();
if(R==d||R==c){throw new Error("Can not select items in selection mode: "+R);
}this._selectItemRange(U,
V);
this._setAnchorItem(U);
this._setLeadItem(V);
this._scrollItemIntoView(V);
this._fireChange();
},
clearSelection:function(){if(this.getMode()==c){return;
}this._clearSelection();
this._setLeadItem(null);
this._setAnchorItem(null);
this._fireChange();
},
replaceSelection:function(W){var X=[];
for(var Y=0;Y<W.length;Y++){if(this._isSelectable(W[Y])){X.push(W[Y]);
}}W=X;
this._clearSelection();
this._setLeadItem(null);
this._setAnchorItem(null);
for(var Y=0,
ba=W.length;Y<ba;Y++){this._addToSelection(W[Y]);
}if(ba>0){this._scrollItemIntoView(W[ba-1]);
}else if(this.getMode()==c){var bb=this._getFirstSelectable();
if(bb){this._addToSelection(bb);
}}this._fireChange();
},
getSelectedItem:function(){var R=this.getMode();
if(R===d||R===c){return this._getSelectedItem()||null;
}throw new Error("The method getSelectedItem() is only supported in 'single' and 'one' selection mode!");
},
getSelection:function(){return qx.lang.Object.getValues(this.__iP);
},
getSortedSelection:function(){var bc=this.getSelectables();
var bd=qx.lang.Object.getValues(this.__iP);
bd.sort(function(be,
bf){return bc.indexOf(be)-bc.indexOf(bf);
});
return bd;
},
isItemSelected:function(S){var bg=this._selectableToHashCode(S);
return this.__iP[bg]!==undefined;
},
isSelectionEmpty:function(){return qx.lang.Object.isEmpty(this.__iP);
},
_setLeadItem:function(bh){var bi=this.__jh;
if(bi!==null){this._styleSelectable(bi,
n,
false);
}
if(bh!==null){this._styleSelectable(bh,
n,
true);
}this.__jh=bh;
},
_getLeadItem:function(){return this.__jh!==null?this.__jh:null;
},
_setAnchorItem:function(bh){var bi=this.__ji;
if(bi){this._styleSelectable(bi,
s,
false);
}
if(bh){this._styleSelectable(bh,
s,
true);
}this.__ji=bh;
},
_getAnchorItem:function(){return this.__ji!==null?this.__ji:null;
},
_isSelectable:function(S){throw new Error("Abstract method call: _isSelectable()");
},
_getSelectableFromMouseEvent:function(bj){var bk=bj.getTarget();
return this._isSelectable(bk)?bk:null;
},
_selectableToHashCode:function(S){throw new Error("Abstract method call: _selectableToHashCode()");
},
_styleSelectable:function(S,
bl,
bm){throw new Error("Abstract method call: _styleSelectable()");
},
_capture:function(){throw new Error("Abstract method call: _capture()");
},
_releaseCapture:function(){throw new Error("Abstract method call: _releaseCapture()");
},
_getLocation:function(){throw new Error("Abstract method call: _getLocation()");
},
_getDimension:function(){throw new Error("Abstract method call: _getDimension()");
},
_getSelectableLocationX:function(S){throw new Error("Abstract method call: _getSelectableLocationX()");
},
_getSelectableLocationY:function(S){throw new Error("Abstract method call: _getSelectableLocationY()");
},
_getScroll:function(){throw new Error("Abstract method call: _getScroll()");
},
_scrollBy:function(bn,
bo){throw new Error("Abstract method call: _scrollBy()");
},
_scrollItemIntoView:function(S){throw new Error("Abstract method call: _scrollItemIntoView()");
},
getSelectables:function(){throw new Error("Abstract method call: getSelectables()");
},
_getSelectableRange:function(bp,
bq){throw new Error("Abstract method call: _getSelectableRange()");
},
_getFirstSelectable:function(){throw new Error("Abstract method call: _getFirstSelectable()");
},
_getLastSelectable:function(){throw new Error("Abstract method call: _getLastSelectable()");
},
_getRelatedSelectable:function(S,
br){throw new Error("Abstract method call: _getRelatedSelectable()");
},
_getPage:function(bs,
bt){throw new Error("Abstract method call: _getPage()");
},
_applyMode:function(bh,
bi){this._setLeadItem(null);
this._setAnchorItem(null);
this._clearSelection();
if(bh===c){var T=this._getFirstSelectable();
if(T){this._setSelectedItem(T);
this._scrollItemIntoView(T);
}}this._fireChange();
},
handleMouseOver:function(bj){if(!this.getQuick()){return;
}var R=this.getMode();
if(R!==c&&R!==d){return;
}var S=this._getSelectableFromMouseEvent(bj);
if(S===null){return;
}this._setSelectedItem(S);
this._fireChange(I);
},
handleMouseDown:function(bj){var S=this._getSelectableFromMouseEvent(bj);
if(S===null){return;
}var bu=bj.isCtrlPressed()||(qx.bom.client.Platform.MAC&&bj.isMetaPressed());
var bv=bj.isShiftPressed();
if(this.isItemSelected(S)&&!bv&&!bu&&!this.getDrag()){this.__jj=S;
return;
}else{this.__jj=null;
}this._scrollItemIntoView(S);
switch(this.getMode()){case d:case c:this._setSelectedItem(S);
break;
case f:this._setLeadItem(S);
this._setAnchorItem(S);
this._toggleInSelection(S);
break;
case g:this._setLeadItem(S);
if(bv){var bw=this._getAnchorItem();
if(bw===null){bw=this._getFirstSelectable();
this._setAnchorItem(bw);
}this._selectItemRange(bw,
S,
bu);
}else if(bu){this._setAnchorItem(S);
this._toggleInSelection(S);
}else{this._setAnchorItem(S);
this._setSelectedItem(S);
}break;
}var R=this.getMode();
if(this.getDrag()&&R!==d&&R!==c&&!bv&&!bu){this.__iW=this._getLocation();
this.__iT=this._getScroll();
this.__iX=bj.getDocumentLeft()+this.__iT.left;
this.__iY=bj.getDocumentTop()+this.__iT.top;
this.__ja=true;
this._capture();
}this._fireChange(x);
},
handleMouseUp:function(bj){var bu=bj.isCtrlPressed()||(qx.bom.client.Platform.MAC&&bj.isMetaPressed());
var bv=bj.isShiftPressed();
if(!bu&&!bv&&this.__jj){var S=this._getSelectableFromMouseEvent(bj);
if(S===null||!this.isItemSelected(S)){return;
}var R=this.getMode();
if(R===f){this._removeFromSelection(S);
}else{this._setSelectedItem(S);
if(this.getMode()===g){this._setLeadItem(S);
this._setAnchorItem(S);
}}}this._cleanup();
},
handleLoseCapture:function(bj){this._cleanup();
},
handleMouseMove:function(bj){if(!this.__ja){return;
}this.__jb=bj.getDocumentLeft();
this.__jc=bj.getDocumentTop();
var bx=this.__jb+this.__iT.left;
if(bx>this.__iX){this.__jd=1;
}else if(bx<this.__iX){this.__jd=-1;
}else{this.__jd=0;
}var by=this.__jc+this.__iT.top;
if(by>this.__iY){this.__je=1;
}else if(by<this.__iY){this.__je=-1;
}else{this.__je=0;
}var bz=this.__iW;
if(this.__jb<bz.left){this.__iQ=this.__jb-bz.left;
}else if(this.__jb>bz.right){this.__iQ=this.__jb-bz.right;
}else{this.__iQ=0;
}
if(this.__jc<bz.top){this.__iR=this.__jc-bz.top;
}else if(this.__jc>bz.bottom){this.__iR=this.__jc-bz.bottom;
}else{this.__iR=0;
}if(!this.__iS){this.__iS=new qx.event.Timer(100);
this.__iS.addListener(E,
this._onInterval,
this);
}this.__iS.start();
this._autoSelect();
},
handleAddItem:function(bA){var S=bA.getData();
if(this.getMode()===c&&this.isSelectionEmpty()){this.addItem(S);
}},
handleRemoveItem:function(bA){this.removeItem(bA.getData());
},
_cleanup:function(){if(!this.getDrag()&&this.__ja){return;
}if(this.__jf){this._fireChange(x);
}delete this.__ja;
delete this.__iU;
delete this.__iV;
this._releaseCapture();
if(this.__iS){this.__iS.stop();
}},
_onInterval:function(bA){this._scrollBy(this.__iQ,
this.__iR);
this.__iT=this._getScroll();
this._autoSelect();
},
_autoSelect:function(){var bB=this._getDimension();
var bC=Math.max(0,
Math.min(this.__jb-this.__iW.left,
bB.width))+this.__iT.left;
var bD=Math.max(0,
Math.min(this.__jc-this.__iW.top,
bB.height))+this.__iT.top;
if(this.__iU===bC&&this.__iV===bD){return;
}this.__iU=bC;
this.__iV=bD;
var bw=this._getAnchorItem();
var bE=this.__jd,
bF=bw;
var bG,
bH,
bI=0;
while(bE!==0){bG=bE>0?this._getRelatedSelectable(bF,
w):this._getRelatedSelectable(bF,
z);
if(bG!==null){bH=this._getSelectableLocationX(bG);
if((bE>0&&bH.left<=bC)||(bE<0&&bH.right>=bC)){bF=bG;
bI++;
continue;
}}break;
}var bJ=this.__je,
bK=bw;
var bL,
bM,
bN=0;
while(bJ!==0){bL=bJ>0?this._getRelatedSelectable(bK,
k):this._getRelatedSelectable(bK,
y);
if(bL!==null){bM=this._getSelectableLocationY(bL);
if((bJ>0&&bM.top<=bD)||(bJ<0&&bM.bottom>=bD)){bK=bL;
bN++;
continue;
}}break;
}var bs=bI>bN?bF:bK;
var R=this.getMode();
if(R===g){this._selectItemRange(bw,
bs);
}else if(R===f){if(this.isItemSelected(bw)){this._selectItemRange(bw,
bs,
true);
}else{this._deselectItemRange(bw,
bs);
}this._setAnchorItem(bs);
}this._fireChange(P);
},
__jk:{Home:1,
Down:1,
Right:1,
PageDown:1,
End:1,
Up:1,
Left:1,
PageUp:1},
handleKeyPress:function(bj){var bO,
bP;
var bQ=bj.getKeyIdentifier();
var R=this.getMode();
var bu=bj.isCtrlPressed()||(qx.bom.client.Platform.MAC&&bj.isMetaPressed());
var bv=bj.isShiftPressed();
var bR=false;
if(bQ===B&&bu){if(R!==d&&R!==c){this._selectAllItems();
bR=true;
}}else if(bQ===A){if(R!==d&&R!==c){this._clearSelection();
bR=true;
}}else if(bQ===C){var bs=this._getLeadItem();
if(bs&&!bv){if(bu||R===f){this._toggleInSelection(bs);
}else{this._setSelectedItem(bs);
}bR=true;
}}else if(this.__jk[bQ]){bR=true;
if(R===d||R==c){bO=this._getSelectedItem();
}else{bO=this._getLeadItem();
}var T=this._getFirstSelectable();
var bS=this._getLastSelectable();
if(bO!==null){switch(bQ){case u:bP=T;
break;
case t:bP=bS;
break;
case p:bP=this._getRelatedSelectable(bO,
y);
break;
case o:bP=this._getRelatedSelectable(bO,
k);
break;
case m:bP=this._getRelatedSelectable(bO,
z);
break;
case v:bP=this._getRelatedSelectable(bO,
w);
break;
case j:bP=this._getPage(bO,
true);
break;
case r:bP=this._getPage(bO,
false);
break;
}}else{switch(bQ){case u:case o:case v:case r:bP=T;
break;
case t:case p:case m:case j:bP=bS;
break;
}}if(bP!==null){switch(R){case d:case c:this._setSelectedItem(bP);
break;
case f:this._setLeadItem(bP);
break;
case g:if(bv){var bw=this._getAnchorItem();
if(bw===null){this._setAnchorItem(bw=this._getFirstSelectable());
}this._setLeadItem(bP);
this._selectItemRange(bw,
bP,
bu);
}else{this._setAnchorItem(bP);
this._setLeadItem(bP);
if(!bu){this._setSelectedItem(bP);
}}break;
}this._scrollItemIntoView(bP);
}}
if(bR){bj.stop();
this._fireChange(K);
}},
_selectAllItems:function(){var bT=this.getSelectables();
for(var Y=0,
ba=bT.length;Y<ba;Y++){this._addToSelection(bT[Y]);
}},
_clearSelection:function(){var bU=this.__iP;
for(var bg in bU){this._removeFromSelection(bU[bg]);
}this.__iP={};
},
_selectItemRange:function(bp,
bq,
bV){var bT=this._getSelectableRange(bp,
bq);
if(!bV){var bW=this.__iP;
var bX=this.__jl(bT);
for(var bg in bW){if(!bX[bg]){this._removeFromSelection(bW[bg]);
}}}for(var Y=0,
ba=bT.length;Y<ba;Y++){this._addToSelection(bT[Y]);
}},
_deselectItemRange:function(bp,
bq){var bT=this._getSelectableRange(bp,
bq);
for(var Y=0,
ba=bT.length;Y<ba;Y++){this._removeFromSelection(bT[Y]);
}},
__jl:function(bT){var bX={};
var S;
for(var Y=0,
ba=bT.length;Y<ba;Y++){S=bT[Y];
bX[this._selectableToHashCode(S)]=S;
}return bX;
},
_getSelectedItem:function(){for(var bg in this.__iP){return this.__iP[bg];
}return null;
},
_setSelectedItem:function(S){if(this._isSelectable(S)){this._clearSelection();
this._addToSelection(S);
}},
_addToSelection:function(S){var bg=this._selectableToHashCode(S);
if(!this.__iP[bg]){if(this._isSelectable(S)){this.__iP[bg]=S;
this._styleSelectable(S,
h,
true);
this.__jf=true;
}}},
_toggleInSelection:function(S){var bg=this._selectableToHashCode(S);
if(!this.__iP[bg]){this.__iP[bg]=S;
this._styleSelectable(S,
h,
true);
}else{delete this.__iP[bg];
this._styleSelectable(S,
h,
false);
}this.__jf=true;
},
_removeFromSelection:function(S){var bg=this._selectableToHashCode(S);
if(this.__iP[bg]!==null){delete this.__iP[bg];
this._styleSelectable(S,
h,
false);
this.__jf=true;
}},
_fireChange:function(bY){if(this.__jf){this.__jg=bY||null;
this.fireDataEvent(F,
this.getSelection());
delete this.__jf;
}}},
destruct:function(){this._disposeObjects(J);
this._disposeFields(M,
O,
L,
G);
}});
})();
(function(){var a="vertical",
b="under",
c="__jm",
d="above",
e="qx.ui.core.selection.Widget",
f="left",
g="right";
qx.Class.define(e,
{extend:qx.ui.core.selection.Abstract,
construct:function(h){arguments.callee.base.call(this);
this.__jm=h;
},
members:{__jm:null,
_isSelectable:function(j){return j.isEnabled()&&j.getLayoutParent()===this.__jm;
},
_selectableToHashCode:function(j){return j.$$hash;
},
_styleSelectable:function(j,
k,
m){m?j.addState(k):j.removeState(k);
},
_capture:function(){this.__jm.capture();
},
_releaseCapture:function(){this.__jm.releaseCapture();
},
_getWidget:function(){return this.__jm;
},
_getLocation:function(){var n=this.__jm.getContentElement().getDomElement();
return n?qx.bom.element.Location.get(n):null;
},
_getDimension:function(){return this.__jm.getInnerSize();
},
_getSelectableLocationX:function(j){var o=j.getBounds();
if(o){return {left:o.left,
right:o.left+o.width};
}},
_getSelectableLocationY:function(j){var o=j.getBounds();
if(o){return {top:o.top,
bottom:o.top+o.height};
}},
_getScroll:function(){return {left:0,
top:0};
},
_scrollBy:function(p,
q){},
_scrollItemIntoView:function(j){this.__jm.scrollChildIntoView(j);
},
getSelectables:function(){var r=this.__jm.getChildren();
var s=[];
var t;
for(var u=0,
v=r.length;u<v;u++){t=r[u];
if(t.isEnabled()){s.push(t);
}}return s;
},
_getSelectableRange:function(w,
x){if(w===x){return [w];
}var r=this.__jm.getChildren();
var s=[];
var y=false;
var t;
for(var u=0,
v=r.length;u<v;u++){t=r[u];
if(t===w||t===x){if(y){s.push(t);
break;
}else{y=true;
}}
if(y&&t.isEnabled()){s.push(t);
}}return s;
},
_getFirstSelectable:function(){var r=this.__jm.getChildren();
for(var u=0,
v=r.length;u<v;u++){if(r[u].isEnabled()){return r[u];
}}return null;
},
_getLastSelectable:function(){var r=this.__jm.getChildren();
for(var u=r.length-1;u>0;u--){if(r[u].isEnabled()){return r[u];
}}return null;
},
_getRelatedSelectable:function(j,
z){var A=this.__jm.getOrientation()===a;
var r=this.__jm.getChildren();
var B=r.indexOf(j);
var C;
if((A&&z===d)||(!A&&z===f)){for(var u=B-1;u>=0;u--){C=r[u];
if(C.isEnabled()){return C;
}}}else if((A&&z===b)||(!A&&z===g)){for(var u=B+1;u<r.length;u++){C=r[u];
if(C.isEnabled()){return C;
}}}return null;
},
_getPage:function(D,
E){if(E){return this._getFirstSelectable();
}else{return this._getLastSelectable();
}}},
destruct:function(){this._disposeFields(c);
}});
})();
(function(){var a="qx.ui.core.selection.ScrollArea";
qx.Class.define(a,
{extend:qx.ui.core.selection.Widget,
members:{_isSelectable:function(b){return b.isEnabled()&&b.getLayoutParent()===this._getWidget().getChildrenContainer();
},
_getDimension:function(){return this._getWidget().getPaneSize();
},
_getScroll:function(){var c=this._getWidget();
return {left:c.getScrollX(),
top:c.getScrollY()};
},
_scrollBy:function(d,
e){var c=this._getWidget();
c.scrollByX(d);
c.scrollByY(e);
},
_getPage:function(f,
g){var h=this.getSelectables();
var j=h.length;
var k=h.indexOf(f);
if(k===-1){throw new Error("Invalid lead item: "+f);
}var c=this._getWidget();
var l=c.getScrollY();
var m=c.getInnerSize().height;
var n,
o,
p;
if(g){var q=l;
var r=k;
while(1){for(;r>=0;r--){n=c.getItemTop(h[r]);
if(n<q){p=r+1;
break;
}}if(p==null){var s=this._getFirstSelectable();
return s==f?null:s;
}if(p>=k){q-=m+l-c.getItemBottom(f);
p=null;
continue;
}return h[p];
}}else{var t=m+l;
var r=k;
while(1){for(;r<j;r++){o=c.getItemBottom(h[r]);
if(o>t){p=r-1;
break;
}}if(p==null){var u=this._getLastSelectable();
return u==f?null:u;
}if(p<=k){t+=c.getItemTop(f)-l;
p=null;
continue;
}return h[p];
}}}}});
})();
(function(){var a="qx.event.type.Data",
b="horizontal",
c="changeValue",
d="vertical",
f="",
g=",",
h="qx.ui.form.List",
j="__jn",
k="Boolean",
m="one",
n="action",
o="addChildWidget",
p="_applySpacing",
q="Enter",
r="Integer",
s="list",
t="keyinput",
u="changeSelection",
v="addItem",
w="removeChildWidget",
x="_applyOrientation",
y="single",
z="keypress",
A="changeName",
B="String",
C="pane",
D="removeItem";
qx.Class.define(h,
{extend:qx.ui.core.AbstractScrollArea,
implement:[qx.ui.form.IFormElement,
qx.ui.core.ISingleSelection,
qx.ui.core.IMultiSelection],
include:[qx.ui.core.MRemoteChildrenHandling,
qx.ui.core.MSelectionHandling],
construct:function(E){arguments.callee.base.call(this);
this.__jn=new qx.ui.container.Composite();
this.__jn.addListener(o,
this._onAddChild,
this);
this.__jn.addListener(w,
this._onRemoveChild,
this);
this.getChildControl(C).add(this.__jn);
if(E){this.setOrientation(b);
}else{this.initOrientation();
}this.addListener(z,
this._onKeyPress);
this.addListener(t,
this._onKeyInput);
this.addListener(u,
this._onChangeSelection);
this.__jo=f;
},
events:{addItem:a,
removeItem:a,
changeValue:a},
properties:{appearance:{refine:true,
init:s},
focusable:{refine:true,
init:true},
orientation:{check:[b,
d],
init:d,
apply:x},
spacing:{check:r,
init:0,
apply:p,
themeable:true},
enableInlineFind:{check:k,
init:true},
name:{check:B,
nullable:true,
event:A}},
members:{__jo:null,
__jp:null,
__jn:null,
SELECTION_MANAGER:qx.ui.core.selection.ScrollArea,
getChildrenContainer:function(){return this.__jn;
},
_onAddChild:function(F){this.fireDataEvent(v,
F.getData());
},
_onRemoveChild:function(F){this.fireDataEvent(D,
F.getData());
},
getValue:function(){var G=this.getSelection();
var H=[];
var I;
for(var J=0,
K=G.length;J<K;J++){I=G[J].getValue();
if(I==null){I=G[J].getLabel();
}H.push(I);
}return H.join(g);
},
setValue:function(I){var L=I.split(g);
var H=[];
var M;
for(var J=0,
K=L.length;J<K;J++){M=this.findItem(L[J]);
if(M){H.push(M);
}}this.setSelection(H);
},
handleKeyPress:function(F){if(!this._onKeyPress(F)){this._getManager().handleKeyPress(F);
}},
_applyOrientation:function(I,
N){var E=I===b;
var O=E?new qx.ui.layout.HBox():new qx.ui.layout.VBox();
var P=this.__jn;
P.setLayout(O);
P.setAllowGrowX(!E);
P.setAllowGrowY(E);
this._applySpacing(this.getSpacing());
},
_applySpacing:function(I,
N){this.__jn.getLayout().setSpacing(I);
},
_onKeyPress:function(F){if(F.getKeyIdentifier()==q&&!F.isAltPressed()){var Q=this.getSelection();
for(var J=0;J<Q.length;J++){Q[J].fireEvent(n);
}return true;
}return false;
},
_onChangeSelection:function(){if(this.hasListener(c)){this.fireDataEvent(c,
this.getValue());
}},
_onKeyInput:function(F){if(!this.getEnableInlineFind()){return;
}var R=this.getSelectionMode();
if(!(R===y||R===m)){return;
}if(((new Date).valueOf()-this.__jp)>1000){this.__jo=f;
}this.__jo+=F.getChar();
var S=this.findItemByLabelFuzzy(this.__jo);
if(S){this.setSelected(S);
}this.__jp=(new Date).valueOf();
F.preventDefault();
},
findItemByLabelFuzzy:function(T){T=T.toLowerCase();
var Q=this.getChildren();
for(var J=0,
K=Q.length;J<K;J++){var U=Q[J].getLabel();
if(U&&U.toLowerCase().indexOf(T)==0){return Q[J];
}}return null;
},
findItem:function(T){T=T.toLowerCase();
var Q=this.getChildren();
var M;
for(var J=0,
K=Q.length;J<K;J++){M=Q[J];
if(M.getFormValue().toLowerCase()==T){return M;
}}return null;
}},
destruct:function(){this._disposeObjects(j);
}});
})();
(function(){var a="resize",
b="scrollY",
c="typeof value=='number'&&value>=0&&value<=this.getScrollMaxX()",
d="update",
f="scrollX",
g="_applyScrollX",
h="_applyScrollY",
i="appear",
j="qx.ui.core.ScrollPane",
k="qx.event.type.Event",
l="typeof value=='number'&&value>=0&&value<=this.getScrollMaxY()",
m="scroll";
qx.Class.define(j,
{extend:qx.ui.core.Widget,
construct:function(){arguments.callee.base.call(this);
this.set({minWidth:0,
minHeight:0});
this._setLayout(new qx.ui.layout.Grow());
this.addListener(a,
this._onUpdate);
var n=this.getContentElement();
n.addListener(m,
this._onScroll,
this);
n.addListener(i,
this._onAppear,
this);
},
events:{update:k},
properties:{scrollX:{check:c,
apply:g,
event:f,
init:0},
scrollY:{check:l,
apply:h,
event:b,
init:0}},
members:{add:function(o){var p=this._getChildren()[0];
if(p){this._remove(p);
p.removeListener(a,
this._onUpdate,
this);
}
if(o){this._add(o);
o.addListener(a,
this._onUpdate,
this);
}},
remove:function(o){if(o){this._remove(o);
o.removeListener(a,
this._onUpdate,
this);
}},
getChild:function(){return this._getChildren()[0]||null;
},
_onUpdate:function(q){this.fireEvent(d);
},
_onScroll:function(q){var n=this.getContentElement();
this.setScrollX(n.getScrollX());
this.setScrollY(n.getScrollY());
},
_onAppear:function(q){var n=this.getContentElement();
var r=this.getScrollX();
var s=n.getScrollX();
if(r!=s){n.scrollToX(r);
}var t=this.getScrollY();
var u=n.getScrollY();
if(t!=u){n.scrollToY(t);
}},
getItemTop:function(v){var w=0;
do{w+=v.getBounds().top;
v=v.getLayoutParent();
}while(v&&v!==this);
return w;
},
getItemBottom:function(v){return this.getItemTop(v)+v.getBounds().height;
},
getItemLeft:function(v){var z=0;
var A;
do{z+=v.getBounds().left;
A=v.getLayoutParent();
if(A){z+=A.getInsets().left;
}v=A;
}while(v&&v!==this);
return z;
},
getItemRight:function(v){return this.getItemLeft(v)+v.getBounds().width;
},
getScrollSize:function(){return this.getChild().getBounds();
},
getScrollMaxX:function(){var B=this.getBounds();
var C=this.getScrollSize();
if(B&&C){return Math.max(0,
C.width-B.width);
}return 0;
},
getScrollMaxY:function(){var B=this.getBounds();
var C=this.getScrollSize();
if(B&&C){return Math.max(0,
C.height-B.height);
}return 0;
},
scrollToX:function(D){var E=this.getScrollMaxX();
if(D<0){D=0;
}else if(D>E){D=E;
}this.setScrollX(D);
},
scrollToY:function(D){var E=this.getScrollMaxY();
if(D<0){D=0;
}else if(D>E){D=E;
}this.setScrollY(D);
},
scrollByX:function(F){this.scrollToX(this.getScrollX()+F);
},
scrollByY:function(G){this.scrollToY(this.getScrollY()+G);
},
_applyScrollX:function(D){this.getContentElement().scrollToX(D);
},
_applyScrollY:function(D){this.getContentElement().scrollToY(D);
}}});
})();
(function(){var a="slider",
b="horizontal",
c="button-begin",
d="button-end",
f="vertical",
g="Integer",
h="execute",
i="right",
j="left",
k="down",
l="up",
m="PositiveNumber",
n="changeValue",
o="typeof value==='number'&&value>=0&&value<=this.getMaximum()",
p="_applyKnobFactor",
q="_applyOrientation",
r="qx.ui.core.ScrollBar",
s="_applyPageStep",
t="PositiveInteger",
u="scroll",
v="_applyPosition",
w="scrollbar",
x="_applyMaximum";
qx.Class.define(r,
{extend:qx.ui.core.Widget,
construct:function(y){arguments.callee.base.call(this);
this._createChildControl(c);
this._createChildControl(a);
this._createChildControl(d);
if(y!=null){this.setOrientation(y);
}else{this.initOrientation();
}},
properties:{appearance:{refine:true,
init:w},
orientation:{check:[b,
f],
init:b,
apply:q},
maximum:{check:t,
apply:x,
init:100},
position:{check:o,
init:0,
apply:v,
event:u},
singleStep:{check:g,
init:20},
pageStep:{check:g,
init:10,
apply:s},
knobFactor:{check:m,
apply:p,
nullable:true}},
members:{_createChildControlImpl:function(z){var A;
switch(z){case a:A=new qx.ui.core.ScrollSlider;
A.setPageStep(100);
A.setFocusable(false);
A.addListener(n,
this._onChangeSliderValue,
this);
this._add(A,
{flex:1});
break;
case c:A=new qx.ui.form.RepeatButton;
A.setFocusable(false);
A.addListener(h,
this._onExecuteBegin,
this);
this._add(A);
break;
case d:A=new qx.ui.form.RepeatButton;
A.setFocusable(false);
A.addListener(h,
this._onExecuteEnd,
this);
this._add(A);
break;
}return A||arguments.callee.base.call(this,
z);
},
_applyMaximum:function(B){this.getChildControl(a).setMaximum(B);
},
_applyPosition:function(B){this.getChildControl(a).setValue(B);
},
_applyKnobFactor:function(B){this.getChildControl(a).setKnobFactor(B);
},
_applyPageStep:function(B){this.getChildControl(a).setPageStep(B);
},
_applyOrientation:function(B,
C){var D=this._getLayout();
if(D){D.dispose();
}if(B===b){this._setLayout(new qx.ui.layout.HBox());
this.setAllowStretchX(true);
this.setAllowStretchY(false);
this.replaceState(f,
b);
this.getChildControl(c).replaceState(l,
j);
this.getChildControl(d).replaceState(k,
i);
}else{this._setLayout(new qx.ui.layout.VBox());
this.setAllowStretchX(false);
this.setAllowStretchY(true);
this.replaceState(b,
f);
this.getChildControl(c).replaceState(j,
l);
this.getChildControl(d).replaceState(i,
k);
}this.getChildControl(a).setOrientation(B);
},
scrollTo:function(E){this.getChildControl(a).slideTo(E);
},
scrollBy:function(F){this.getChildControl(a).slideBy(F);
},
scrollBySteps:function(G){var H=this.getSingleStep();
this.getChildControl(a).slideBy(G*H);
},
_onExecuteBegin:function(I){this.scrollBy(-this.getSingleStep());
},
_onExecuteEnd:function(I){this.scrollBy(this.getSingleStep());
},
_onChangeSliderValue:function(I){this.setPosition(I.getData());
}}});
})();
(function(){var a="knob",
b="horizontal",
c="vertical",
d="Integer",
f="px",
g="mousemove",
h="resize",
i="left",
j="top",
k="mouseup",
l="slider",
m="PageUp",
n="mousedown",
o="height",
p="changeValue",
q="Left",
r="Down",
s="Up",
t="dblclick",
u="qx.ui.form.Slider",
v="PageDown",
w="mousewheel",
x="interval",
y="_applyValue",
z="_applyKnobFactor",
A="End",
B="String",
C="width",
D="_applyOrientation",
E="Home",
F="floor",
G="_applyMinimum",
H="click",
I="Right",
J="keypress",
K="ceil",
L="changeName",
M="losecapture",
N="contextmenu",
O="_applyMaximum",
P="Number",
Q="typeof value==='number'&&value>=this.getMinimum()&&value<=this.getMaximum()";
qx.Class.define(u,
{extend:qx.ui.core.Widget,
implement:qx.ui.form.IFormElement,
construct:function(R){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.Canvas());
this.addListener(J,
this._onKeyPress);
this.addListener(w,
this._onMouseWheel);
this.addListener(n,
this._onMouseDown);
this.addListener(k,
this._onMouseUp);
this.addListener(M,
this._onMouseUp);
this.addListener(h,
this._onUpdate);
this.addListener(N,
this._onStopEvent);
this.addListener(H,
this._onStopEvent);
this.addListener(t,
this._onStopEvent);
if(R!=null){this.setOrientation(R);
}else{this.initOrientation();
}},
properties:{appearance:{refine:true,
init:l},
focusable:{refine:true,
init:true},
orientation:{check:[b,
c],
init:b,
apply:D},
name:{check:B,
nullable:true,
event:L},
value:{check:Q,
init:0,
apply:y,
event:p},
minimum:{check:d,
init:0,
apply:G},
maximum:{check:d,
init:100,
apply:O},
singleStep:{check:d,
init:1},
pageStep:{check:d,
init:10},
knobFactor:{check:P,
apply:z,
nullable:true}},
members:{__jq:null,
__jr:null,
__js:null,
__jt:null,
__ju:null,
__jv:null,
__jw:null,
__jx:null,
__jy:null,
_createChildControlImpl:function(S){var T;
switch(S){case a:T=new qx.ui.core.Widget();
T.addListener(h,
this._onUpdate,
this);
this._add(T);
break;
}return T||arguments.callee.base.call(this,
S);
},
_onMouseWheel:function(U){var V=U.getWheelDelta()>0?1:-1;
this.slideBy(V*this.getSingleStep());
U.stop();
},
_onKeyPress:function(U){var W=this.getOrientation()===b;
var X=W?q:s;
var Y=W?I:r;
switch(U.getKeyIdentifier()){case Y:this.slideForward();
break;
case X:this.slideBack();
break;
case v:this.slidePageForward();
break;
case m:this.slidePageBack();
break;
case E:this.slideToBegin();
break;
case A:this.slideToEnd();
break;
default:return;
}U.stop();
},
_onMouseDown:function(U){if(this.__jt){return;
}var W=this.__jA;
var ba=this.getChildControl(a);
var bb=W?i:j;
var bc=W?U.getDocumentLeft():U.getDocumentTop();
var bd=this.__jq=qx.bom.element.Location.get(this.getContentElement().getDomElement())[bb];
var be=this.__jr=qx.bom.element.Location.get(ba.getContainerElement().getDomElement())[bb];
if(U.getTarget()===ba){this.__jt=true;
this.__ju=bc+bd-be;
}else{this.__jv=true;
this.__jw=bc<=be?-1:1;
this.__jB(U);
this._onInterval();
if(!this.__jy){this.__jy=new qx.event.Timer(100);
this.__jy.addListener(x,
this._onInterval,
this);
}this.__jy.start();
}this.addListener(g,
this._onMouseMove);
this.capture();
U.stopPropagation();
},
_onMouseUp:function(U){if(this.__jt){this.releaseCapture();
delete this.__jt;
delete this.__ju;
}else if(this.__jv){this.__jy.stop();
this.releaseCapture();
delete this.__jv;
delete this.__jw;
delete this.__jx;
}this.removeListener(g,
this._onMouseMove);
if(U.getType()===k){U.stopPropagation();
}},
_onMouseMove:function(U){if(this.__jt){var bf=this.__jA?U.getDocumentLeft():U.getDocumentTop();
var bg=bf-this.__ju;
this.slideTo(this._positionToValue(bg));
}else if(this.__jv){this.__jB(U);
}U.stopPropagation();
},
_onInterval:function(U){var bh=this.getValue()+(this.__jw*this.getPageStep());
if(bh<this.getMinimum()){bh=this.getMinimum();
}else if(bh>this.getMaximum()){bh=this.getMaximum();
}var bi=this.__jw==-1;
if((bi&&bh<=this.__jx)||(!bi&&bh>=this.__jx)){bh=this.__jx;
}this.slideTo(bh);
},
_onUpdate:function(U){var bj=this.getInnerSize();
var bk=this.getChildControl(a).getBounds();
var bl=this.__jA?C:o;
this._updateKnobSize();
this.__jz=bj[bl]-bk[bl];
this.__js=bk[bl];
this._updateKnobPosition();
},
__jA:false,
__jz:0,
__jB:function(U){var W=this.__jA;
var bc=W?U.getDocumentLeft():U.getDocumentTop();
var bd=this.__jq;
var be=this.__jr;
var bk=this.__js;
var bg=bc-bd;
if(bc>=be){bg-=bk;
}var bh=this._positionToValue(bg);
var bm=this.getMinimum();
var bn=this.getMaximum();
if(bh<bm){bh=bm;
}else if(bh>bn){bh=bn;
}else{var bo=this.getValue();
var bp=this.getPageStep();
var bq=this.__jw<0?F:K;
bh=bo+(Math[bq]((bh-bo)/bp)*bp);
}if(this.__jx==null||(this.__jw==-1&&bh<=this.__jx)||(this.__jw==1&&bh>=this.__jx)){this.__jx=bh;
}},
_positionToValue:function(bg){var br=this.__jz;
if(br==null||br==0){return 0;
}var bs=bg/br;
if(bs<0){bs=0;
}else if(bs>1){bs=1;
}var bt=this.getMaximum()-this.getMinimum();
return this.getMinimum()+Math.round(bt*bs);
},
_valueToPosition:function(bh){var br=this.__jz;
if(br==null){return 0;
}var bt=this.getMaximum()-this.getMinimum();
if(bt==0){return 0;
}var bh=bh-this.getMinimum();
var bs=bh/bt;
if(bs<0){bs=0;
}else if(bs>1){bs=1;
}return Math.round(br*bs);
},
_updateKnobPosition:function(){this._setKnobPosition(this._valueToPosition(this.getValue()));
},
_setKnobPosition:function(bg){var bu=this.getChildControl(a).getContainerElement();
if(this.__jA){bu.setStyle(i,
bg+f,
true);
}else{bu.setStyle(j,
bg+f,
true);
}},
_updateKnobSize:function(){var bv=this.getKnobFactor();
if(bv==null){return;
}var br=this.getInnerSize();
if(br==null){return;
}if(this.__jA){this.getChildControl(a).setWidth(Math.round(bv*br.width));
}else{this.getChildControl(a).setHeight(Math.round(bv*br.height));
}},
slideToBegin:function(){this.slideTo(this.getMinimum());
},
slideToEnd:function(){this.slideTo(this.getMaximum());
},
slideForward:function(){this.slideBy(this.getSingleStep());
},
slideBack:function(){this.slideBy(-this.getSingleStep());
},
slidePageForward:function(){this.slideBy(this.getPageStep());
},
slidePageBack:function(){this.slideBy(-this.getPageStep());
},
slideBy:function(bw){this.slideTo(this.getValue()+bw);
},
slideTo:function(bh){if(bh<this.getMinimum()){bh=this.getMinimum();
}else if(bh>this.getMaximum()){bh=this.getMaximum();
}else{bh=this.getMinimum()+Math.round((bh-this.getMinimum())/this.getSingleStep())*this.getSingleStep();
}this.setValue(bh);
},
_applyOrientation:function(bh,
bo){var ba=this.getChildControl(a);
this.__jA=bh===b;
if(this.__jA){this.removeState(c);
ba.removeState(c);
this.addState(b);
ba.addState(b);
ba.setLayoutProperties({top:0,
right:null,
bottom:0});
}else{this.removeState(b);
ba.removeState(b);
this.addState(c);
ba.addState(c);
ba.setLayoutProperties({right:0,
bottom:null,
left:0});
}this._updateKnobPosition();
},
_applyKnobFactor:function(bh,
bo){if(bh!=null){this._updateKnobSize();
}else{if(this.__jA){this.getChildControl(a).resetWidth();
}else{this.getChildControl(a).resetHeight();
}}},
_applyValue:function(bh,
bo){this._updateKnobPosition();
},
_applyMinimum:function(bh,
bo){if(this.getValue()<bh){this.setValue(bh);
}this._updateKnobPosition();
},
_applyMaximum:function(bh,
bo){if(this.getValue()>bh){this.setValue(bh);
}this._updateKnobPosition();
}}});
})();
(function(){var a="mousewheel",
b="qx.ui.core.ScrollSlider",
c="keypress";
qx.Class.define(b,
{extend:qx.ui.form.Slider,
construct:function(d){arguments.callee.base.call(this,
d);
this.removeListener(c,
this._onKeyPress);
this.removeListener(a,
this._onMouseWheel);
}});
})();
(function(){var a="pressed",
b="abandoned",
c="Integer",
d="hovered",
f="qx.event.type.Event",
g="Enter",
h="Space",
i="press",
j="qx.ui.form.RepeatButton",
k="release",
l="interval",
m="__jC",
n="execute";
qx.Class.define(j,
{extend:qx.ui.form.Button,
construct:function(o,
p){arguments.callee.base.call(this,
o,
p);
this.__jC=new qx.event.Timer(this.getInterval());
this.__jC.addListener(l,
this._onInterval,
this);
},
events:{"execute":f,
"press":f,
"release":f},
properties:{interval:{check:c,
init:100},
firstInterval:{check:c,
init:500},
minTimer:{check:c,
init:20},
timerDecrease:{check:c,
init:2}},
members:{__jD:null,
__jE:null,
__jC:null,
press:function(){if(this.isEnabled()){if(!this.hasState(a)){this.__jF();
}this.removeState(b);
this.addState(a);
}},
release:function(q){if(!this.isEnabled()){return;
}if(this.hasState(a)){if(!this.__jE){this.execute();
}}this.removeState(a);
this.removeState(b);
this.__jG();
},
_applyEnabled:function(r,
s){arguments.callee.base.call(this,
r,
s);
if(!r){this.removeState(a);
this.removeState(b);
this.__jG();
}},
_onMouseOver:function(t){if(!this.isEnabled()||t.getTarget()!==this){return;
}
if(this.hasState(b)){this.removeState(b);
this.addState(a);
this.__jC.start();
}this.addState(d);
},
_onMouseOut:function(t){if(!this.isEnabled()||t.getTarget()!==this){return;
}this.removeState(d);
if(this.hasState(a)){this.removeState(a);
this.addState(b);
this.__jC.stop();
this.__jD=this.getInterval();
}},
_onMouseDown:function(t){if(!t.isLeftPressed()){return;
}this.capture();
this.__jF();
t.stopPropagation();
},
_onMouseUp:function(t){this.releaseCapture();
if(!this.hasState(b)){this.addState(d);
if(this.hasState(a)&&!this.__jE){this.execute();
}}this.__jG();
t.stopPropagation();
},
_onKeyUp:function(t){switch(t.getKeyIdentifier()){case g:case h:if(this.hasState(a)){if(!this.__jE){this.execute();
}this.removeState(a);
this.removeState(b);
t.stopPropagation();
this.__jG();
}}},
_onKeyDown:function(t){switch(t.getKeyIdentifier()){case g:case h:this.removeState(b);
this.addState(a);
t.stopPropagation();
this.__jF();
}},
_onInterval:function(t){this.__jC.stop();
if(this.__jD==null){this.__jD=this.getInterval();
}this.__jD=(Math.max(this.getMinTimer(),
this.__jD-this.getTimerDecrease()));
this.__jC.restartWith(this.__jD);
this.__jE=true;
this.fireEvent(n);
},
__jF:function(){this.fireEvent(i);
this.__jE=false;
this.__jC.setInterval(this.getFirstInterval());
this.__jC.start();
this.removeState(b);
this.addState(a);
},
__jG:function(){this.fireEvent(k);
this.__jC.stop();
this.__jD=null;
this.removeState(b);
this.removeState(a);
}},
destruct:function(){this._disposeObjects(m);
}});
})();
(function(){var a="qx.ui.popup.Popup",
b="visible",
c="excluded",
d="popup",
e="Boolean";
qx.Class.define(a,
{extend:qx.ui.container.Composite,
include:qx.ui.core.MPlacement,
construct:function(f){arguments.callee.base.call(this,
f);
qx.core.Init.getApplication().getRoot().add(this);
this.initVisibility();
},
properties:{appearance:{refine:true,
init:d},
visibility:{refine:true,
init:c},
autoHide:{check:e,
init:true}},
members:{_applyVisibility:function(g,
h){arguments.callee.base.call(this,
g,
h);
var i=qx.ui.popup.Manager.getInstance();
g===b?i.add(this):i.remove(this);
}},
destruct:function(){qx.ui.popup.Manager.getInstance().remove(this);
}});
})();
(function(){var a="mousedown",
b="__jH",
c="blur",
d="singleton",
f="qx.ui.popup.Manager";
qx.Class.define(f,
{type:d,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this.__jH={};
var g=qx.core.Init.getApplication().getRoot();
g.addListener(a,
this.__jJ,
this,
true);
qx.bom.Element.addListener(window,
c,
this.hideAll,
this);
},
members:{__jH:null,
add:function(h){{};
this.__jH[h.$$hash]=h;
this.__jI();
},
remove:function(h){{};
var i=this.__jH;
if(i){delete i[h.$$hash];
this.__jI();
}},
hideAll:function(){var i=this.__jH;
if(i){for(var j in i){i[j].exclude();
}}},
__jI:function(){var k=1e6;
var i=this.__jH;
for(var j in i){i[j].setZIndex(k++);
}},
__jJ:function(l){var m=l.getTarget();
var i=this.__jH;
for(var j in i){var h=i[j];
if(!h.getAutoHide()||m==h||qx.ui.core.Widget.contains(h,
m)){continue;
}h.exclude();
}}},
destruct:function(){var g=qx.core.Init.getApplication().getRoot();
if(g){g.removeListener(a,
this.__jJ,
this,
true);
}this._disposeMap(b);
}});
})();
(function(){var a="listitem",
b="qx.ui.form.RadioGroup",
c="_applyManager",
d="qx.ui.form.ListItem",
e="qx.event.type.Event",
f="changeValue",
g="String";
qx.Class.define(d,
{extend:qx.ui.basic.Atom,
construct:function(h,
i,
j){arguments.callee.base.call(this,
h,
i);
if(j!=null){this.setValue(j);
}},
events:{"action":e},
properties:{appearance:{refine:true,
init:a},
manager:{check:b,
nullable:true,
apply:c},
value:{check:g,
nullable:true,
event:f}},
members:{_applyManager:function(j,
k){if(k){k.remove(this);
}
if(j){j.add(this);
}},
getFormValue:function(){var j=this.getValue();
if(j==null){j=this.getLabel();
}return j;
}}});
})();
(function(){var a="__jN",
b="spamfighter.model.Server",
c="__jM",
d="__jL",
e='sf.info.version',
f="__jK";
qx.Class.define(b,
{extend:qx.core.Object,
construct:function(g){this.__jK=g;
this.__jL=new spamfighter.model.API(this.__jK);
this.__jM=null;
this.__jN=null;
},
destruct:function(){this._disposeFields(f,
c);
this._disposeObjects(d,
a);
},
members:{__jK:null,
__jL:null,
__jM:null,
__jN:null,
getUrl:function(){return this.__jK;
},
getVersion:function(){if(this.__jM!=null)return spamfighter.lib.Deferred.succeed(this.__jM);
if(this.__jN!=null)return this.__jN;
var h=this;
return this.__jN=this.__jL.call(e,
{}).addCallback(function(i){h.__jM=i.version;
h.__jN=null;
return h.__jM;
});
},
getAPI:function(){return this.__jL;
},
getRootDomain:function(){return new spamfighter.model.Domain(this,
null);
},
getPartnerAuth:function(){return {partner:null};
}}});
})();
(function(){var a="__jO",
b="spamfighter.model.API";
qx.Class.define(b,
{extend:qx.core.Object,
construct:function(c){this.__jO=c;
},
destruct:function(){this._disposeFields(a);
},
members:{__jO:null,
call:function(e,
f){this.debug("API: call "+e+" with params: ");
this.debug(f);
var g=new spamfighter.lib.Deferred();
var h=new qx.io.remote.Rpc();
h.setTimeout(10000);
h.setUrl(this.__jO);
h.callAsync(function(i,
j,
k){if(j==null)g.callback(i);
else g.errback(new spamfighter.model.APIError(j.code,
j.message));
},
e,
f);
var l=this;
g.addCallback(function(i){l.debug("API: result:");
l.debug(i);
return i;
});
return g;
}}});
})();
(function(){var a="Deferred instances can only be chained if they are the result of a callback",
b="spamfighter.lib.Deferred",
c="__jP",
e="chain",
g="Already fired",
h="results";
qx.Class.define(b,
{extend:qx.core.Object,
construct:function(){this.chain=[];
this.fired=-1;
this.paused=0;
this.results=[null,
null];
this.chained=false;
},
destruct:function(){this._disposeArray(e);
this._disposeArray(h);
this._disposeFields(c);
},
members:{chain:null,
fired:null,
paused:null,
results:null,
chained:null,
__jP:null,
_resback:function(i){this.fired=((i instanceof Error)?1:0);
this.results[this.fired]=i;
this._fire();
},
_check:function(){qx.core.Assert.assert(this.fired==-1,
g);
},
callback:function(i){this._check();
qx.core.Assert.assertFalse(i instanceof spamfighter.lib.Deferred,
a);
this._resback(i);
},
errback:function(i){this._check();
qx.core.Assert.assertFalse(i instanceof spamfighter.lib.Deferred,
a);
if(!(i instanceof Error))i=new Error(i);
this._resback(i);
},
addBoth:function(j){qx.core.Assert.assert(arguments.length==1);
return this.addCallbacks(j,
j);
},
addCallback:function(j){qx.core.Assert.assert(arguments.length==1);
return this.addCallbacks(j,
null);
},
addErrback:function(j){qx.core.Assert.assert(arguments.length==1);
return this.addCallbacks(null,
j);
},
addCallbacks:function(k,
l){if(this.chained){throw new Error("Chained Deferreds can not be re-used");
}this.chain.push([k,
l]);
if(this.fired>=0){this._fire();
}return this;
},
_fire:function(){var m=this.chain;
var n=this.fired;
var i=this.results[n];
var o=this;
var k=null;
if(o.__jP!=null){o.__jP.stop();
o.__jP=null;
}
while(m.length>0&&this.paused===0){var p=m.shift();
var q=p[n];
if(q===null){continue;
}
try{i=q(i);
n=((i instanceof Error)?1:0);
if(i instanceof spamfighter.lib.Deferred){k=function(i){o._resback(i);
o.paused--;
if((o.paused===0)&&(o.fired>=0)){o._fire();
}};
this.paused++;
}}catch(err){n=1;
if(!(err instanceof Error)){err=new Error(err);
}i=err;
}}this.fired=n;
this.results[n]=i;
if(k&&this.paused){i.addBoth(k);
i.chained=true;
}
if(this.fired==1){o.__jP=qx.event.Timer.once(this.__jQ,
this,
1000);
o.__jP.start();
}},
__jQ:function(){this.warn("Unhandled error in Deferred (possibly?):");
this.warn(this.results[this.fired]);
o.__jP=null;
}},
statics:{succeed:function(r){var s=new spamfighter.lib.Deferred();
s.callback.apply(s,
arguments);
return s;
},
fail:function(r){var s=new spamfighter.lib.Deferred();
s.errback.apply(s,
arguments);
return s;
}}});
})();
(function(){var a="",
b="!",
c="'!",
d="Expected '",
f="number",
g=",",
h="'",
j="' but found ",
k="The value '",
l="function",
m="Expected value to be an array but found ",
n="' to implement the interface '",
o="Expected value to be an integer >= 0 but found ",
p="' to be not equal with '",
q="' to '",
r="Expected value to be the CSS color '%1' (rgb(%2)), but found value '%3', which cannot be converted to a CSS color!",
s="Expected value to be a map but found ",
t="The function did not raise an exception!",
u="Expected value to be undefined but found ",
v="Called assertFalse with 'true'",
w="Expected value to be null but found ",
x="Expected object '",
y="string",
z="Called assert with 'false'",
A="Assertion error! ",
B="Expected value to be a string but found ",
C="' but found '",
D="' must must be a key of the map '",
E="The String '",
F="Expected value not to be undefined but found ",
G="Event (",
H=": ",
I="The raised exception does not have the expected type! ",
J=") not fired.",
K="qx.core.Assert",
L="Called assertTrue with 'false'",
M="Expected value to be typeof object but found ",
N="' (identical) but found '",
O="' must have any of the values defined in the array '",
P="Expected value to be a number but found ",
Q="Expected value to be the CSS color '%1' (rgb(%2)), but found value '%3' (rgb(%4))!",
R="Expected value not to be null but found ",
S="Expected value to be a qooxdoo widget but found ",
T="Expected value to be a qooxdoo object but found ",
U="' arguments.",
V="Expected value '%1' to be in the range '%2'..'%3'!",
W="' does not match the regular expression '",
X="' to be not identical with '",
Y="' arguments but found '",
ba=", ",
bb="qx.core.AssertionError",
bc="Expected value to be a boolean but found ",
bd="boolean",
be="Expected value to be typeof '",
bf="Expected value to be typeof function but found ",
bg="Expected value to be an integer but found ",
bh="Called fail().",
bi="Expected value to be a DOM element but found  '%1'!",
bj="function Array(",
bk="Expected value to be a number >= 0 but found ",
bl="Expected value to be instanceof '",
bm="Wrong number of arguments given. Expected '",
bn="object";
qx.Class.define(K,
{statics:{__jR:function(bo,
bp,
bq){if(!bo){var br=A+bp+H+bq;
qx.log.Logger.error(br);
if(qx.Class.isDefined(bb)){var bs=new qx.core.AssertionError(bp,
bq);
qx.log.Logger.error("Stack trace: \n"+bs.getStackTrace());
throw bs;
}else{throw new Error(br);
}}},
assert:function(bo,
bq){this.__jR(bo==true,
bq||a,
z);
},
fail:function(bq){this.__jR(false,
bq||a,
bh);
},
assertTrue:function(bt,
bq){this.__jR(bt===true,
bq||a,
L);
},
assertFalse:function(bt,
bq){this.__jR(bt===false,
bq||a,
v);
},
assertEquals:function(bu,
bv,
bq){this.__jR(bu==bv,
bq||a,
d+bu+C+bv+c);
},
assertNotEquals:function(bu,
bv,
bq){this.__jR(bu!=bv,
bq||a,
d+bu+p+bv+c);
},
assertIdentical:function(bu,
bv,
bq){this.__jR(bu===bv,
bq||a,
d+bu+N+bv+c);
},
assertNotIdentical:function(bu,
bv,
bq){this.__jR(bu!==bv,
bq||a,
d+bu+X+bv+c);
},
assertNotUndefined:function(bt,
bq){this.__jR(bt!==undefined,
bq||a,
F+bt+b);
},
assertUndefined:function(bt,
bq){this.__jR(bt===undefined,
bq||a,
u+bt+b);
},
assertNotNull:function(bt,
bq){this.__jR(bt!==null,
bq||a,
R+bt+b);
},
assertNull:function(bt,
bq){this.__jR(bt===null,
bq||a,
w+bt+b);
},
assertJsonEquals:function(bu,
bv,
bq){this.assertEquals(qx.util.Json.stringify(bu),
qx.util.Json.stringify(bv),
bq);
},
assertMatch:function(bw,
bx,
bq){this.assertString(bw);
this.__jR(bw.search(bx)>=0?true:false,
bq||a,
E+bw+W+bx.toString()+c);
},
assertArgumentsCount:function(by,
bz,
bA,
bq){var bB=by.length;
this.__jR((bB>=bz&&bB<=bA),
bq||a,
bm+bz+q+bA+Y+arguments.length+U);
},
assertEventFired:function(bC,
bD,
bE,
bF,
bq){var bG=false;
var bH=function(bI){if(bF){bF.call(bC,
bI);
}bG=true;
};
var bJ=bC.addListener(bD,
bH,
bC);
bE.call();
this.__jR(bG===true,
bq||a,
G+bD+J);
bC.removeListenerById(bJ);
},
assertException:function(bK,
bL,
bx,
bq){var bL=bL||Error;
var bM;
qx.log.Logger.warn("This exception is expected: "+bL.classname);
try{bK();
}catch(ex){bM=ex;
}
if(bM==null){this.__jR(false,
bq||a,
t);
}this.__jR(bM instanceof bL,
bq||a,
I+bL);
if(bx){this.assertMatch(bM.toString(),
bx,
bq);
}},
assertInArray:function(bt,
bN,
bq){this.__jR(bN.indexOf(bt)!==-1,
bq||a,
k+bt+O+bN.join(ba)+h);
},
assertArrayEquals:function(bu,
bv,
bq){this.assertArray(bu,
bq);
this.assertArray(bv,
bq);
this.assertEquals(bu.length,
bv.length,
bq);
for(var bO=0;bO<bu.length;bO++){this.assertIdentical(bu[bO],
bv[bO],
bq);
}},
assertKeyInMap:function(bt,
bP,
bq){this.__jR(bP[bt]!==undefined,
bq||a,
k+bt+D+qx.util.Json.stringify(bP)+h);
},
assertFunction:function(bt,
bq){this.__jR(typeof bt===l,
bq||a,
bf+bt+b);
},
assertString:function(bt,
bq){this.__jR(typeof bt===y||bt instanceof String,
bq||a,
B+bt+b);
},
assertBoolean:function(bt,
bq){this.__jR(typeof bt===bd||bt instanceof Boolean,
bq||a,
bc+bt+b);
},
assertNumber:function(bt,
bq){this.__jR((typeof bt===f||bt instanceof Number)&&isFinite(bt),
bq||a,
P+bt+b);
},
assertPositiveNumber:function(bt,
bq){this.__jR((typeof bt===f||bt instanceof Number)&&isFinite(bt)&&bt>=0,
bq||a,
bk+bt+b);
},
assertInteger:function(bt,
bq){this.__jR(((typeof bt===f||bt instanceof Number)&&isFinite(bt)&&bt%1===0),
bq||a,
bg+bt+b);
},
assertPositiveInteger:function(bt,
bq){this.__jR(((typeof bt===f||bt instanceof Number)&&isFinite(bt)&&bt%1===0&&bt>=0),
bq||a,
o+bt+b);
},
assertInRange:function(bt,
bQ,
bR,
bq){this.__jR(bt>=bQ&&bt<=bR,
bq||a,
qx.lang.String.format(V,
[bt,
bQ,
bR]));
},
assertObject:function(bt,
bq){this.__jR(typeof bt===bn&&bt!==null,
bq||a,
M+bt+b);
},
assertArray:function(bt,
bq){this.__jR(bt instanceof Array||bt.constructor.toString().indexOf(bj)===0||bt.$$isArray,
bq||a,
m+bt+b);
},
assertMap:function(bt,
bq){var bS=({}).constructor;
this.__jR(bt&&bt.constructor===bS,
bq||a,
s+bt+b);
},
assertType:function(bt,
bT,
bq){this.__jR(typeof (bt)===bT,
bq||a,
be+bT+j+bt+b);
},
assertInstance:function(bt,
bU,
bq){var bV=bU.classname||bU+a;
this.__jR(bt instanceof bU,
bq||a,
bl+bV+j+bt+b);
},
assertInterface:function(bt,
bW,
bq){this.__jR(qx.Class.implementsInterface(bt,
bW),
bq||a,
x+bt+n+bW+c);
},
assertCssColor:function(bu,
bt,
bq){var bX=qx.util.ColorUtil;
var bY=bX.stringToRgb(bu);
try{var ca=bX.stringToRgb(bt);
}catch(ex){this.__jR(false,
bq||a,
qx.lang.String.format(r,
[bu,
bY.join(g),
bt]));
}this.__jR(bY[0]==ca[0]&&bY[1]==ca[1]&&bY[2]==ca[2],
bq||a,
qx.lang.String.format(Q,
[bu,
bY.join(g),
bt,
ca.join(g)]));
},
assertElement:function(bt,
bq){this.__jR(qx.dom.Node.isElement(bt),
bq||a,
qx.lang.String.format(bi,
[bt]));
},
assertQxObject:function(bt,
bq){this.__jR(bt instanceof qx.core.Object,
bq||a,
T+bt+b);
},
assertQxWidget:function(bt,
bq){this.__jR(bt instanceof qx.ui.core.Widget,
bq||a,
S+bt+b);
}}});
})();
(function(){var a="qx.core.AssertionError";
qx.Class.define(a,
{extend:qx.core.BaseError,
construct:function(b,
c){qx.core.BaseError.call(this,
b,
c);
this.__jS=qx.dev.StackTrace.getStackTrace();
},
members:{__jS:null,
getStackTrace:function(){return this.__jS;
}}});
})();
(function(){var c=",",
d="",
e="string",
f="null",
g='"',
h="qx.jsonDebugging",
j='\\u00',
k="new Date(Date.UTC(",
m="__jX",
n=")",
o='\\\\',
p='\\f',
q="Object",
r='\\"',
s="))",
t="__kf",
u="}",
v='(',
w=":",
x="{",
y='\\r',
z="__jV",
A="__jU",
B='\\t',
C="(",
D="]",
E="[",
F="__kg",
G="qx.jsonEncodeUndefined",
H='\\b',
I="qx.util.Json",
J=')',
K='\\n',
L="Date",
M="__jW",
N="Array";
qx.Class.define(I,
{statics:{BEAUTIFYING_INDENT:"  ",
BEAUTIFYING_LINE_END:"\n",
__jT:{"function":A,
"boolean":z,
"number":M,
"string":m,
"object":t,
"undefined":F},
__jU:function(O){return String(O);
},
__jV:function(O){return String(O);
},
__jW:function(O){return isFinite(O)?String(O):f;
},
__jX:function(O){var P;
if(/["\\\x00-\x1f]/.test(O)){P=O.replace(/([\x00-\x1f\\"])/g,
qx.util.Json.__ka);
}else{P=O;
}return g+P+g;
},
__jY:{'\b':H,
'\t':B,
'\n':K,
'\f':p,
'\r':y,
'"':r,
'\\':o},
__ka:function(Q,
R){var P=qx.util.Json.__jY[R];
if(P){return P;
}P=R.charCodeAt();
return j+Math.floor(P/16).toString(16)+(P%16).toString(16);
},
__kb:function(O){var S=[],
T=true,
U,
V;
var W=qx.util.Json.__kh;
S.push(E);
if(W){qx.util.Json.__kc+=qx.util.Json.BEAUTIFYING_INDENT;
S.push(qx.util.Json.__kc);
}
for(var X=0,
Y=O.length;X<Y;X++){V=O[X];
U=this.__jT[typeof V];
if(U){V=this[U](V);
if(typeof V==e){if(!T){S.push(c);
if(W){S.push(qx.util.Json.__kc);
}}S.push(V);
T=false;
}}}
if(W){qx.util.Json.__kc=qx.util.Json.__kc.substring(0,
qx.util.Json.__kc.length-qx.util.Json.BEAUTIFYING_INDENT.length);
S.push(qx.util.Json.__kc);
}S.push(D);
return S.join(d);
},
__kd:function(O){var ba=O.getUTCFullYear()+c+O.getUTCMonth()+c+O.getUTCDate()+c+O.getUTCHours()+c+O.getUTCMinutes()+c+O.getUTCSeconds()+c+O.getUTCMilliseconds();
return k+ba+s;
},
__ke:function(O){var S=[],
T=true,
U,
V;
var W=qx.util.Json.__kh;
S.push(x);
if(W){qx.util.Json.__kc+=qx.util.Json.BEAUTIFYING_INDENT;
S.push(qx.util.Json.__kc);
}
for(var bb in O){V=O[bb];
U=this.__jT[typeof V];
if(U){V=this[U](V);
if(typeof V==e){if(!T){S.push(c);
if(W){S.push(qx.util.Json.__kc);
}}S.push(this.__jX(bb),
w,
V);
T=false;
}}}
if(W){qx.util.Json.__kc=qx.util.Json.__kc.substring(0,
qx.util.Json.__kc.length-qx.util.Json.BEAUTIFYING_INDENT.length);
S.push(qx.util.Json.__kc);
}S.push(u);
return S.join(d);
},
__kf:function(O){if(O){var bc=O.constructor.name;
if(O instanceof Array||bc==N){return this.__kb(O);
}else if(O instanceof Date||bc==L){return this.__kd(O);
}else if(O instanceof Object||bc==q){return this.__ke(O);
}return d;
}return f;
},
__kg:function(O){if(qx.core.Setting.get(G)){return f;
}},
stringify:function(V,
W){this.__kh=W;
this.__kc=this.BEAUTIFYING_LINE_END;
var P=this[this.__jT[typeof V]](V);
if(typeof P!=e){P=null;
}if(qx.core.Setting.get(h)){qx.log.Logger.debug(this,
"JSON request: "+P);
}return P;
},
parse:function(bd){if(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(bd.replace(/"(\\.|[^"\\])*"/g,
d))){throw new Error("Could not parse JSON string!");
}
try{return eval(C+bd+n);
}catch(ex){throw new Error("Could not evaluate JSON string: "+ex.message);
}},
parseQx:function(bd){if(qx.core.Setting.get(h)){qx.log.Logger.debug(this,
"JSON response: "+bd);
}var V=(bd&&bd.length>0)?eval(v+bd+J):null;
return V;
}},
settings:{"qx.jsonEncodeUndefined":true,
"qx.jsonDebugging":false}});
})();
(function(){var a=": ",
b="qx.event.type.Event",
c="failed",
d="String",
e="Boolean",
f="application/json",
g="aborted",
h="completed",
j="Content-Type",
k="timeout",
l=")",
m="application/x-www-form-urlencoded",
n="?instanceId=",
o="Integer",
p="Object",
q="qx.io.remote.Rpc",
r="error",
s=" error ",
t="Aborted",
u="Local error ",
v="refreshSession",
w="Application error ",
x="",
y="Transport error ",
z="(",
A="/.qxrpc",
B="Local time-out expired",
C="POST",
D="result",
E="UNEXPECTED origin ",
F="Server error ",
G="id";
qx.Class.define(q,
{extend:qx.core.Object,
construct:function(H,
I){arguments.callee.base.call(this);
if(H!==undefined){this.setUrl(H);
}
if(I!=null){this.setServiceName(I);
}
if(qx.core.ServerSettings){this.__ki=qx.core.ServerSettings.serverPathSuffix;
}},
events:{"completed":b,
"aborted":b,
"failed":b,
"timeout":b},
statics:{origin:{server:1,
application:2,
transport:3,
local:4},
localError:{timeout:1,
abort:2},
makeServerURL:function(J){var K=null;
if(qx.core.ServerSettings){K=qx.core.ServerSettings.serverPathPrefix+A+qx.core.ServerSettings.serverPathSuffix;
if(J!=null){K+=n+J;
}}return K;
}},
properties:{timeout:{check:o,
nullable:true},
crossDomain:{check:e,
init:false},
url:{check:d,
nullable:true},
serviceName:{check:d,
nullable:true},
serverData:{check:p,
nullable:true},
username:{check:d,
nullable:true},
password:{check:d,
nullable:true},
useBasicHttpAuth:{check:e,
nullable:true}},
members:{__kj:null,
__ki:null,
_callInternal:function(L,
M,
N){var O=this;
var P=(M==0?0:1);
var Q=(N?v:L[P]);
var R=L[0];
var S=[];
var T=this;
for(var U=P+1;U<L.length;++U){S.push(L[U]);
}var V=new qx.io.remote.Request(this.getUrl(),
C,
f);
var W={"service":(N?null:this.getServiceName()),
"method":Q,
"id":V.getSequenceNumber(),
"params":S};
var X=this.getServerData();
if(X!==null){W.server_data=X;
}V.setCrossDomain(this.getCrossDomain());
if(this.getUsername()){V.setUseBasicHttpAuth(this.getUseBasicHttpAuth());
V.setUsername(this.getUsername());
V.setPassword(this.getPassword());
}V.setTimeout(this.getTimeout());
var Y=null;
var ba=null;
var bb=null;
var bc=null;
var bd=function(be,
T){switch(M){case 0:break;
case 1:R(bb,
Y,
ba);
break;
case 2:if(!Y){T.fireDataEvent(be,
bc);
}else{Y.id=ba;
if(L[0]){T.fireDataEvent(c,
Y);
}else{T.fireDataEvent(be,
Y);
}}}};
var bf=function(bg){bg.toString=function(){switch(bg.origin){case qx.io.remote.Rpc.origin.server:return F+bg.code+a+bg.message;
case qx.io.remote.Rpc.origin.application:return w+bg.code+a+bg.message;
case qx.io.remote.Rpc.origin.transport:return y+bg.code+a+bg.message;
case qx.io.remote.Rpc.origin.local:return u+bg.code+a+bg.message;
default:return (E+bg.origin+s+bg.code+a+bg.message);
}};
};
var bh=function(bi,
bj,
bk){var Y=new Object();
Y.origin=bi;
Y.code=bj;
Y.message=bk;
bf(Y);
return Y;
};
V.addListener(c,
function(bl){var bj=bl.getStatusCode();
Y=bh(qx.io.remote.Rpc.origin.transport,
bj,
qx.io.remote.Exchange.statusCodeToString(bj));
ba=this.getSequenceNumber();
bd(c,
T);
});
V.addListener(k,
function(bl){this.debug("TIMEOUT OCCURRED");
Y=bh(qx.io.remote.Rpc.origin.local,
qx.io.remote.Rpc.localError.timeout,
B);
ba=this.getSequenceNumber();
bd(k,
T);
});
V.addListener(g,
function(bl){Y=bh(qx.io.remote.Rpc.origin.local,
qx.io.remote.Rpc.localError.abort,
t);
ba=this.getSequenceNumber();
bd(g,
T);
});
V.addListener(h,
function(bl){bc=bl.getContent();
ba=bc[G];
if(ba!=this.getSequenceNumber()){this.warn("Received id ("+ba+") does not match requested id "+"("+this.getSequenceNumber()+")!");
}var be=h;
var bm=bc[r];
if(bm!=null){bb=null;
bf(bm);
Y=bm;
be=c;
}else{bb=bc[D];
if(N){bb=eval(z+bb+l);
var bn=qx.core.ServerSettings.serverPathSuffix;
if(O.__ki!=bn){O.__kj=O.__ki;
O.__ki=bn;
}O.setUrl(O.fixUrl(O.getUrl()));
}}bd(be,
T);
});
V.setData(qx.util.Json.stringify(W));
V.setAsynchronous(M>0);
if(V.getCrossDomain()){V.setRequestHeader(j,
m);
}else{V.setRequestHeader(j,
f);
}V.send();
if(M==0){if(Y!=null){var bo=new Error(Y.toString());
bo.rpcdetails=Y;
throw bo;
}return bb;
}else{return V;
}},
fixUrl:function(H){if(this.__kj==null||this.__ki==null||this.__kj==x||this.__kj==this.__ki){return H;
}var bp=H.indexOf(this.__kj);
if(bp==-1){return H;
}return (H.substring(0,
bp)+this.__ki+H.substring(bp+this.__kj.length));
},
callSync:function(bq){return this._callInternal(arguments,
0);
},
callAsync:function(R,
bq){return this._callInternal(arguments,
1);
},
callAsyncListeners:function(br,
bq){return this._callInternal(arguments,
2);
},
refreshSession:function(R){if(this.getCrossDomain()){if(qx.core.ServerSettings&&qx.core.ServerSettings.serverPathSuffix){var bs=(new Date()).getTime()-qx.core.ServerSettings.lastSessionRefresh;
if(bs/1000>(qx.core.ServerSettings.sessionTimeoutInSeconds-30)){this._callInternal([R],
1,
true);
}else{R(true);
}}else{R(false);
}}else{R(true);
}},
abort:function(bt){bt.abort();
}}});
})();
(function(){var a="Boolean",
b="qx.event.type.Event",
c="queued",
d="String",
f="sending",
g="qx.io.remote.Response",
h="receiving",
i="aborted",
j="failed",
k="nocache",
l="completed",
m="configured",
n="timeout",
o="GET",
p="Pragma",
q="no-url-params-on-post",
r="POST",
s="no-cache",
t="Cache-Control",
u="Content-Type",
w="text/plain",
x="application/xml",
y="application/json",
z="text/html",
A="application/x-www-form-urlencoded",
B="qx.io.remote.Exchange",
C="Integer",
D="X-Qooxdoo-Response-Type",
E="__kn",
F="HEAD",
G="qx.io.remote.Request",
H="_applyResponseType",
I="_applyState",
J="text/javascript",
K="changeState",
L="PUT",
M="_applyProhibitCaching",
N="__kl",
O="",
P="__kk",
Q="_applyMethod",
R="DELETE",
S="boolean",
T="__km";
qx.Class.define(G,
{extend:qx.core.Object,
construct:function(U,
V,
W){arguments.callee.base.call(this);
this.__kk={};
this.__kl={};
this.__km={};
this.__kn={};
if(U!==undefined){this.setUrl(U);
}
if(V!==undefined){this.setMethod(V);
}
if(W!==undefined){this.setResponseType(W);
}this.setProhibitCaching(true);
this.__ko=++qx.io.remote.Request.__ko;
},
events:{"created":b,
"configured":b,
"sending":b,
"receiving":b,
"completed":g,
"aborted":g,
"failed":g,
"timeout":g},
statics:{__ko:0},
properties:{url:{check:d,
init:O},
method:{check:[o,
r,
L,
F,
R],
apply:Q,
init:o},
asynchronous:{check:a,
init:true},
data:{check:d,
nullable:true},
username:{check:d,
nullable:true},
password:{check:d,
nullable:true},
state:{check:[m,
c,
f,
h,
l,
i,
n,
j],
init:m,
apply:I,
event:K},
responseType:{check:[w,
J,
y,
x,
z],
init:w,
apply:H},
timeout:{check:C,
nullable:true},
prohibitCaching:{check:function(X){return typeof X==S||X===q;
},
init:true,
apply:M},
crossDomain:{check:a,
init:false},
fileUpload:{check:a,
init:false},
transport:{check:B,
nullable:true},
useBasicHttpAuth:{check:a,
init:false}},
members:{__kk:null,
__kl:null,
__km:null,
__kn:null,
__ko:null,
send:function(){qx.io.remote.RequestQueue.getInstance().add(this);
},
abort:function(){qx.io.remote.RequestQueue.getInstance().abort(this);
},
reset:function(){switch(this.getState()){case f:case h:this.error("Aborting already sent request!");
case c:this.abort();
break;
}},
isConfigured:function(){return this.getState()===m;
},
isQueued:function(){return this.getState()===c;
},
isSending:function(){return this.getState()===f;
},
isReceiving:function(){return this.getState()===h;
},
isCompleted:function(){return this.getState()===l;
},
isAborted:function(){return this.getState()===i;
},
isTimeout:function(){return this.getState()===n;
},
isFailed:function(){return this.getState()===j;
},
__kp:function(Y){var ba=Y.clone();
ba.setTarget(this);
this.dispatchEvent(ba);
},
_onqueued:function(Y){this.setState(c);
this.__kp(Y);
},
_onsending:function(Y){this.setState(f);
this.__kp(Y);
},
_onreceiving:function(Y){this.setState(h);
this.__kp(Y);
},
_oncompleted:function(Y){this.setState(l);
this.__kp(Y);
this.dispose();
},
_onaborted:function(Y){this.setState(i);
this.__kp(Y);
this.dispose();
},
_ontimeout:function(Y){this.setState(n);
this.__kp(Y);
this.dispose();
},
_onfailed:function(Y){this.setState(j);
this.__kp(Y);
this.dispose();
},
_applyState:function(bb,
bc){{};
},
_applyProhibitCaching:function(bb,
bc){if(!bb){this.removeParameter(k);
this.removeRequestHeader(p);
this.removeRequestHeader(t);
return;
}if(bb!==q||this.getMethod()!=qx.net.Http.METHOD_POST){this.setParameter(k,
new Date().valueOf());
}else{this.removeParameter(k);
}this.setRequestHeader(p,
s);
this.setRequestHeader(t,
s);
},
_applyMethod:function(bb,
bc){if(bb===r){this.setRequestHeader(u,
A);
}else{this.removeRequestHeader(u);
}var bd=this.getProhibitCaching();
this._applyProhibitCaching(bd,
bd);
},
_applyResponseType:function(bb,
bc){this.setRequestHeader(D,
bb);
},
setRequestHeader:function(be,
bf){this.__kk[be]=bf;
},
removeRequestHeader:function(be){delete this.__kk[be];
},
getRequestHeader:function(be){return this.__kk[be]||null;
},
getRequestHeaders:function(){return this.__kk;
},
setParameter:function(be,
bf,
bg){if(bg){this.__km[be]=bf;
}else{this.__kl[be]=bf;
}},
removeParameter:function(be,
bh){if(bh){delete this.__km[be];
}else{delete this.__kl[be];
}},
getParameter:function(be,
bh){if(bh){return this.__km[be]||null;
}else{return this.__kl[be]||null;
}},
getParameters:function(bh){return (bh?this.__km:this.__kl);
},
setFormField:function(be,
bf){this.__kn[be]=bf;
},
removeFormField:function(be){delete this.__kn[be];
},
getFormField:function(be){return this.__kn[be]||null;
},
getFormFields:function(){return this.__kn;
},
getSequenceNumber:function(){return this.__ko;
}},
destruct:function(){this.setTransport(null);
this._disposeFields(P,
N,
T,
E);
}});
})();
(function(){var a="Integer",
b="sending",
c="failed",
d="timeout",
f="completed",
g="aborted",
h="__kr",
j="_applyEnabled",
k="Boolean",
l="interval",
m="qx.io.remote.RequestQueue",
n="queued",
o="__kt",
p="__kq",
q="receiving",
r="singleton";
qx.Class.define(m,
{type:r,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this.__kq=[];
this.__kr=[];
this.__ks=0;
this.__kt=new qx.event.Timer(500);
this.__kt.addListener(l,
this._oninterval,
this);
},
properties:{enabled:{init:true,
check:k,
apply:j},
maxTotalRequests:{check:a,
nullable:true},
maxConcurrentRequests:{check:a,
init:3},
defaultTimeout:{check:a,
init:5000}},
members:{__kq:null,
__kr:null,
__ks:null,
__kt:null,
_debug:function(){var s;
},
_check:function(){this._debug();
if(this.__kr.length==0&&this.__kq.length==0){this.__kt.stop();
}if(!this.getEnabled()){return;
}if(this.__kr.length>=this.getMaxConcurrentRequests()||this.__kq.length==0){return;
}if(this.getMaxTotalRequests()!=null&&this.__ks>=this.getMaxTotalRequests()){return;
}var t=this.__kq.shift();
var u=new qx.io.remote.Exchange(t);
this.__ks++;
this.__kr.push(u);
this._debug();
u.addListener(b,
t._onsending,
t);
u.addListener(q,
t._onreceiving,
t);
u.addListener(f,
t._oncompleted,
t);
u.addListener(g,
t._onaborted,
t);
u.addListener(d,
t._ontimeout,
t);
u.addListener(c,
t._onfailed,
t);
u.addListener(b,
this._onsending,
this);
u.addListener(f,
this._oncompleted,
this);
u.addListener(g,
this._oncompleted,
this);
u.addListener(d,
this._oncompleted,
this);
u.addListener(c,
this._oncompleted,
this);
u._start=(new Date).valueOf();
u.send();
if(this.__kq.length>0){this._check();
}},
_remove:function(u){qx.lang.Array.remove(this.__kr,
u);
u.dispose();
this._check();
},
__ku:0,
_onsending:function(v){{};
},
_oncompleted:function(v){{};
this._remove(v.getTarget());
},
_oninterval:function(v){var w=this.__kr;
if(w.length==0){this.__kt.stop();
return;
}var x=(new Date).valueOf();
var u;
var t;
var y=this.getDefaultTimeout();
var z;
var A;
for(var B=w.length-1;B>=0;B--){u=w[B];
t=u.getRequest();
if(t.isAsynchronous()){z=t.getTimeout();
if(z==0){continue;
}
if(z==null){z=y;
}A=x-u._start;
if(A>z){this.warn("Timeout: transport "+u.toHashCode());
this.warn(A+"ms > "+z+"ms");
u.timeout();
}}}},
_applyEnabled:function(C,
D){if(C){this._check();
}this.__kt.setEnabled(C);
},
add:function(t){t.setState(n);
this.__kq.push(t);
this._check();
if(this.getEnabled()){this.__kt.start();
}},
abort:function(t){var u=t.getTransport();
if(u){u.abort();
}else if(qx.lang.Array.contains(this.__kq,
t)){qx.lang.Array.remove(this.__kq,
t);
}}},
destruct:function(){this._disposeArray(h);
this._disposeObjects(o);
this._disposeFields(p);
}});
})();
(function(){var a="sending",
b="completed",
c="receiving",
d="aborted",
f="failed",
g="timeout",
h="qx.io.remote.Response",
j="Connection dropped",
k="configured",
m="qx.event.type.Event",
n="Proxy authentication required",
o="qx.io.remote.transport.Abstract",
p="MSHTML-specific HTTP status code",
q="Not available",
r="Precondition failed",
s="Server error",
t="Moved temporarily",
u="qx.io.remote.Exchange",
v="Bad gateway",
w="Gone",
x="See other",
y="Partial content",
z="Server timeout",
A="qx.io.remote.transport.Script",
B="HTTP version not supported",
C="Unauthorized",
D="Multiple choices",
E="Payment required",
F="Not implemented",
G="Request-URL too large",
H="Length required",
I="_applyState",
J="changeState",
K="Not modified",
L="qx.io.remote.Request",
M="Connection closed by server",
N="Moved permanently",
O="_applyImplementation",
P="Method not allowed",
Q="Forbidden",
R="Use proxy",
S="Ok",
T="Not found",
U="Not acceptable",
V="Request time-out",
W="Bad request",
X="Conflict",
Y="No content",
ba="qx.io.remote.transport.XmlHttp",
bb="qx.io.remote.transport.Iframe",
bc="Request entity too large",
bd="Unknown status code",
be="Unsupported media type",
bf="Gateway time-out",
bg="created",
bh="Out of resources",
bi="undefined";
qx.Class.define(u,
{extend:qx.core.Object,
construct:function(bj){arguments.callee.base.call(this);
this.setRequest(bj);
bj.setTransport(this);
},
events:{"sending":m,
"receiving":m,
"completed":h,
"aborted":h,
"failed":h,
"timeout":h},
statics:{typesOrder:[ba,
bb,
A],
typesReady:false,
typesAvailable:{},
typesSupported:{},
registerType:function(bk,
bl){qx.io.remote.Exchange.typesAvailable[bl]=bk;
},
initTypes:function(){if(qx.io.remote.Exchange.typesReady){return;
}
for(var bl in qx.io.remote.Exchange.typesAvailable){var bm=qx.io.remote.Exchange.typesAvailable[bl];
if(bm.isSupported()){qx.io.remote.Exchange.typesSupported[bl]=bm;
}}qx.io.remote.Exchange.typesReady=true;
if(qx.lang.Object.isEmpty(qx.io.remote.Exchange.typesSupported)){throw new Error("No supported transport types were found!");
}},
canHandle:function(bn,
bo,
bp){if(!qx.lang.Array.contains(bn.handles.responseTypes,
bp)){return false;
}
for(var bq in bo){if(!bn.handles[bq]){return false;
}}return true;
},
_nativeMap:{0:bg,
1:k,
2:a,
3:c,
4:b},
wasSuccessful:function(br,
bs,
bt){if(bt){switch(br){case null:case 0:return true;
case -1:return bs<4;
default:return typeof br===bi;
}}else{switch(br){case -1:{};
return bs<4;
case 200:case 304:return true;
case 201:case 202:case 203:case 204:case 205:return true;
case 206:{};
return bs!==4;
case 300:case 301:case 302:case 303:case 305:case 400:case 401:case 402:case 403:case 404:case 405:case 406:case 407:case 408:case 409:case 410:case 411:case 412:case 413:case 414:case 415:case 500:case 501:case 502:case 503:case 504:case 505:{};
return false;
case 12002:case 12007:case 12029:case 12030:case 12031:case 12152:case 13030:{};
return false;
default:if(br>206&&br<300){return true;
}qx.log.Logger.debug(this,
"Unknown status code: "+br+" ("+bs+")");
return false;
}}},
statusCodeToString:function(br){switch(br){case -1:return q;
case 200:return S;
case 304:return K;
case 206:return y;
case 204:return Y;
case 300:return D;
case 301:return N;
case 302:return t;
case 303:return x;
case 305:return R;
case 400:return W;
case 401:return C;
case 402:return E;
case 403:return Q;
case 404:return T;
case 405:return P;
case 406:return U;
case 407:return n;
case 408:return V;
case 409:return X;
case 410:return w;
case 411:return H;
case 412:return r;
case 413:return bc;
case 414:return G;
case 415:return be;
case 500:return s;
case 501:return F;
case 502:return v;
case 503:return bh;
case 504:return bf;
case 505:return B;
case 12002:return z;
case 12029:return j;
case 12030:return j;
case 12031:return j;
case 12152:return M;
case 13030:return p;
default:return bd;
}}},
properties:{request:{check:L,
nullable:true},
implementation:{check:o,
nullable:true,
apply:O},
state:{check:[k,
a,
c,
b,
d,
g,
f],
init:k,
event:J,
apply:I}},
members:{send:function(){var bj=this.getRequest();
if(!bj){return this.error("Please attach a request object first");
}qx.io.remote.Exchange.initTypes();
var bu=qx.io.remote.Exchange.typesOrder;
var bv=qx.io.remote.Exchange.typesSupported;
var bp=bj.getResponseType();
var bo={};
if(bj.getAsynchronous()){bo.asynchronous=true;
}else{bo.synchronous=true;
}
if(bj.getCrossDomain()){bo.crossDomain=true;
}
if(bj.getFileUpload()){bo.fileUpload=true;
}for(var bw in bj.getFormFields()){bo.programaticFormFields=true;
break;
}var bx,
by;
for(var bz=0,
bA=bu.length;bz<bA;bz++){bx=bv[bu[bz]];
if(bx){if(!qx.io.remote.Exchange.canHandle(bx,
bo,
bp)){continue;
}
try{{};
by=new bx;
this.setImplementation(by);
by.setUseBasicHttpAuth(bj.getUseBasicHttpAuth());
by.send();
return true;
}catch(ex){this.error("Request handler throws error");
this.error(ex);
return;
}}}this.error("There is no transport implementation available to handle this request: "+bj);
},
abort:function(){var bB=this.getImplementation();
if(bB){{};
bB.abort();
}else{{};
this.setState(d);
}},
timeout:function(){var bB=this.getImplementation();
if(bB){this.warn("Timeout: implementation "+bB.toHashCode());
bB.timeout();
}else{this.warn("Timeout: forcing state to timeout");
this.setState(g);
}if(this.getRequest()){this.getRequest().setTimeout(0);
}},
_onsending:function(bC){this.setState(a);
},
_onreceiving:function(bC){this.setState(c);
},
_oncompleted:function(bC){this.setState(b);
},
_onabort:function(bC){this.setState(d);
},
_onfailed:function(bC){this.setState(f);
},
_ontimeout:function(bC){this.setState(g);
},
_applyImplementation:function(bD,
bE){if(bE){bE.removeListener(a,
this._onsending,
this);
bE.removeListener(c,
this._onreceiving,
this);
bE.removeListener(b,
this._oncompleted,
this);
bE.removeListener(d,
this._onabort,
this);
bE.removeListener(g,
this._ontimeout,
this);
bE.removeListener(f,
this._onfailed,
this);
}
if(bD){var bj=this.getRequest();
bD.setUrl(bj.getUrl());
bD.setMethod(bj.getMethod());
bD.setAsynchronous(bj.getAsynchronous());
bD.setUsername(bj.getUsername());
bD.setPassword(bj.getPassword());
bD.setParameters(bj.getParameters());
bD.setFormFields(bj.getFormFields());
bD.setRequestHeaders(bj.getRequestHeaders());
bD.setData(bj.getData());
bD.setResponseType(bj.getResponseType());
bD.addListener(a,
this._onsending,
this);
bD.addListener(c,
this._onreceiving,
this);
bD.addListener(b,
this._oncompleted,
this);
bD.addListener(d,
this._onabort,
this);
bD.addListener(g,
this._ontimeout,
this);
bD.addListener(f,
this._onfailed,
this);
}},
_applyState:function(bD,
bE){{};
switch(bD){case a:this.fireEvent(a);
break;
case c:this.fireEvent(c);
break;
case b:case d:case g:case f:var bn=this.getImplementation();
if(!bn){break;
}
if(this.hasListener(bD)){var bF=qx.event.Registration.createEvent(bD,
qx.io.remote.Response);
if(bD==b){var bG=bn.getResponseContent();
bF.setContent(bG);
if(bG===null){{};
bD=f;
}}bF.setStatusCode(bn.getStatusCode());
bF.setResponseHeaders(bn.getResponseHeaders());
this.dispatchEvent(bF);
}this.setImplementation(null);
bn.dispose();
break;
}}},
settings:{"qx.ioRemoteDebug":false,
"qx.ioRemoteDebugData":false},
destruct:function(){var bn=this.getImplementation();
if(bn){this.setImplementation(null);
bn.dispose();
}this.setRequest(null);
}});
})();
(function(){var a="qx.event.type.Event",
b="String",
c="failed",
d="timeout",
e="created",
f="aborted",
g="sending",
h="configured",
i="receiving",
j="completed",
k="Object",
l="Boolean",
m="abstract",
n="_applyState",
o="changeState",
p="qx.io.remote.transport.Abstract";
qx.Class.define(p,
{type:m,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
},
events:{"created":a,
"configured":a,
"sending":a,
"receiving":a,
"completed":a,
"aborted":a,
"failed":a,
"timeout":a},
properties:{url:{check:b,
nullable:true},
method:{check:b,
nullable:true},
asynchronous:{check:l,
nullable:true},
data:{check:b,
nullable:true},
username:{check:b,
nullable:true},
password:{check:b,
nullable:true},
state:{check:[e,
h,
g,
i,
j,
f,
d,
c],
init:e,
event:o,
apply:n},
requestHeaders:{check:k,
nullable:true},
parameters:{check:k,
nullable:true},
formFields:{check:k,
nullable:true},
responseType:{check:b,
nullable:true},
useBasicHttpAuth:{check:l,
nullable:true}},
members:{send:function(){throw new Error("send is abstract");
},
abort:function(){{};
this.setState(f);
},
timeout:function(){{};
this.setState(d);
},
failed:function(){{};
this.setState(c);
},
setRequestHeader:function(q,
r){throw new Error("setRequestHeader is abstract");
},
getResponseHeader:function(q){throw new Error("getResponseHeader is abstract");
},
getResponseHeaders:function(){throw new Error("getResponseHeaders is abstract");
},
getStatusCode:function(){throw new Error("getStatusCode is abstract");
},
getStatusText:function(){throw new Error("getStatusText is abstract");
},
getResponseText:function(){throw new Error("getResponseText is abstract");
},
getResponseXml:function(){throw new Error("getResponseXml is abstract");
},
getFetchedLength:function(){throw new Error("getFetchedLength is abstract");
},
_applyState:function(s,
t){{};
switch(s){case e:this.fireEvent(e);
break;
case h:this.fireEvent(h);
break;
case g:this.fireEvent(g);
break;
case i:this.fireEvent(i);
break;
case j:this.fireEvent(j);
break;
case f:this.fireEvent(f);
break;
case c:this.fireEvent(c);
break;
case d:this.fireEvent(d);
break;
}return true;
}}});
})();
(function(){var a="completed",
b="failed",
c="=",
d="aborted",
f="",
g="&",
h="timeout",
j="application/xml",
k="qx.io.remote.transport.XmlHttp",
m="application/json",
n="text/html",
o="qx.client",
p="receiving",
q="text/plain",
r="text/javascript",
t="sending",
u="configured",
v="?",
w="created",
x='Referer',
y='Basic ',
z="\n</pre>",
A="string",
B='Authorization',
C="<pre>Could not execute json: \n",
D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
E=':',
F="parseerror",
G="__kv",
H="file:",
I="webkit",
J="object";
qx.Class.define(k,
{extend:qx.io.remote.transport.Abstract,
construct:function(){arguments.callee.base.call(this);
this.__kv=qx.io.remote.transport.XmlHttp.createRequestObject();
this.__kv.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,
this);
},
statics:{handles:{synchronous:true,
asynchronous:true,
crossDomain:false,
fileUpload:false,
programaticFormFields:false,
responseTypes:[q,
r,
m,
j,
n]},
requestObjects:[],
requestObjectCount:0,
createRequestObject:qx.core.Variant.select(o,
{"default":function(){return new XMLHttpRequest;
},
"mshtml":function(){if(window.ActiveXObject&&qx.xml.Document.XMLHTTP){return new ActiveXObject(qx.xml.Document.XMLHTTP);
}
if(window.XMLHttpRequest){return new XMLHttpRequest;
}}}),
isSupported:function(){return !!this.createRequestObject();
},
__kw:function(){}},
members:{__kx:false,
__ky:0,
__kv:null,
getRequest:function(){return this.__kv;
},
send:function(){this.__ky=0;
var K=this.getRequest();
var L=this.getMethod();
var M=this.getAsynchronous();
var N=this.getUrl();
var O=(window.location.protocol===H&&!(/^http(s){0,1}\:/.test(N)));
this.__kx=O;
var P=this.getParameters(false);
var Q=[];
for(var R in P){var S=P[R];
if(S instanceof Array){for(var T=0;T<S.length;T++){Q.push(encodeURIComponent(R)+c+encodeURIComponent(S[T]));
}}else{Q.push(encodeURIComponent(R)+c+encodeURIComponent(S));
}}
if(Q.length>0){N+=(N.indexOf(v)>=0?g:v)+Q.join(g);
}if(this.getData()===null){var P=this.getParameters(true);
var Q=[];
for(var R in P){var S=P[R];
if(S instanceof Array){for(var T=0;T<S.length;T++){Q.push(encodeURIComponent(R)+c+encodeURIComponent(S[T]));
}}else{Q.push(encodeURIComponent(R)+c+encodeURIComponent(S));
}}
if(Q.length>0){this.setData(Q.join(g));
}}var U=function(V){var W=D;
var X=f;
var Y,
ba,
bb;
var bc,
bd,
be,
bf;
var T=0;
do{Y=V.charCodeAt(T++);
ba=V.charCodeAt(T++);
bb=V.charCodeAt(T++);
bc=Y>>2;
bd=((Y&3)<<4)|(ba>>4);
be=((ba&15)<<2)|(bb>>6);
bf=bb&63;
if(isNaN(ba)){be=bf=64;
}else if(isNaN(bb)){bf=64;
}X+=W.charAt(bc)+W.charAt(bd)+W.charAt(be)+W.charAt(bf);
}while(T<V.length);
return X;
};
K.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,
this);
try{if(this.getUsername()){if(this.getUseBasicHttpAuth()){K.open(L,
N,
M);
K.setRequestHeader(B,
y+U(this.getUsername()+E+this.getPassword()));
}else{K.open(L,
N,
M,
this.getUsername(),
this.getPassword());
}}else{K.open(L,
N,
M);
}}catch(ex){this.error("Failed with exception: "+ex);
this.failed();
return;
}if(!qx.core.Variant.isSet(o,
I)){K.setRequestHeader(x,
window.location.href);
}var bg=this.getRequestHeaders();
for(var R in bg){K.setRequestHeader(R,
bg[R]);
}try{{};
K.send(this.getData());
}catch(ex){if(O){this.failedLocally();
}else{this.error("Failed to send data: "+ex,
"send");
this.failed();
}return;
}if(!M){this._onreadystatechange();
}},
failedLocally:function(){if(this.getState()===b){return;
}this.warn("Could not load from file: "+this.getUrl());
this.failed();
},
_onreadystatechange:function(bh){switch(this.getState()){case a:case d:case b:case h:{};
return;
}var bi=this.getReadyState();
if(bi==4){if(!qx.io.remote.Exchange.wasSuccessful(this.getStatusCode(),
bi,
this.__kx)){return this.failed();
}}while(this.__ky<bi){this.setState(qx.io.remote.Exchange._nativeMap[++this.__ky]);
}},
getReadyState:function(){var bi=null;
try{bi=this.__kv.readyState;
}catch(ex){}return bi;
},
setRequestHeader:function(bj,
bk){this.__kv.setRequestHeader(bj,
bk);
},
getResponseHeader:function(bj){var bl=null;
try{this.getRequest().getResponseHeader(bj)||null;
}catch(ex){}return bl;
},
getStringResponseHeaders:function(){var bm=null;
try{var bn=this.__kv.getAllResponseHeaders();
if(bn){bm=bn;
}}catch(ex){}return bm;
},
getResponseHeaders:function(){var bm=this.getStringResponseHeaders();
var bo={};
if(bm){var bp=bm.split(/[\r\n]+/g);
for(var T=0,
bq=bp.length;T<bq;T++){var br=bp[T].match(/^([^:]+)\s*:\s*(.+)$/i);
if(br){bo[br[1]]=br[2];
}}}return bo;
},
getStatusCode:function(){var bs=-1;
try{bs=this.getRequest().status;
}catch(ex){}return bs;
},
getStatusText:function(){var bt=f;
try{bt=this.getRequest().statusText;
}catch(ex){}return bt;
},
getResponseText:function(){var bu=null;
var bv=this.getStatusCode();
var bi=this.getReadyState();
if(qx.io.remote.Exchange.wasSuccessful(bv,
bi,
this.__kx)){try{bu=this.getRequest().responseText;
}catch(ex){}}return bu;
},
getResponseXml:function(){var bw=null;
var bv=this.getStatusCode();
var bi=this.getReadyState();
if(qx.io.remote.Exchange.wasSuccessful(bv,
bi,
this.__kx)){try{bw=this.getRequest().responseXML;
}catch(ex){}}if(typeof bw==J&&bw!=null){if(!bw.documentElement){var bx=String(this.getRequest().responseText).replace(/<\?xml[^\?]*\?>/,
f);
bw.loadXML(bx);
}if(!bw.documentElement){throw new Error("Missing Document Element!");
}
if(bw.documentElement.tagName==F){throw new Error("XML-File is not well-formed!");
}}else{throw new Error("Response was not a valid xml document ["+this.getRequest().responseText+"]");
}return bw;
},
getFetchedLength:function(){var by=this.getResponseText();
return typeof by==A?by.length:0;
},
getResponseContent:function(){if(this.getState()!==a){{};
return null;
}{};
var by=this.getResponseText();
switch(this.getResponseType()){case q:case n:{};
return by;
case m:{};
try{if(by&&by.length>0){var bz=qx.util.Json.parseQx(by);
return (bz===0?0:(bz||null));
}else{return null;
}}catch(ex){this.error("Could not execute json: ["+by+"]",
ex);
return C+by+z;
}case r:{};
try{if(by&&by.length>0){var bz=window.eval(by);
return (bz===0?0:(bz||null));
}else{return null;
}}catch(ex){this.error("Could not execute javascript: ["+by+"]",
ex);
return null;
}case j:by=this.getResponseXml();
{};
return (by===0?0:(by||null));
default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");
return null;
}},
_applyState:function(S,
bA){{};
switch(S){case w:this.fireEvent(w);
break;
case u:this.fireEvent(u);
break;
case t:this.fireEvent(t);
break;
case p:this.fireEvent(p);
break;
case a:this.fireEvent(a);
break;
case b:this.fireEvent(b);
break;
case d:this.getRequest().abort();
this.fireEvent(d);
break;
case h:this.getRequest().abort();
this.fireEvent(h);
break;
}}},
defer:function(bB,
bC){qx.io.remote.Exchange.registerType(qx.io.remote.transport.XmlHttp,
k);
},
destruct:function(){var K=this.getRequest();
if(K){K.onreadystatechange=qx.io.remote.transport.XmlHttp.__kw;
switch(K.readyState){case 1:case 2:case 3:K.abort();
}}this._disposeFields(G);
}});
})();
(function(){var a="qx.client",
b="",
c="mshtml",
d="'",
e="SelectionLanguage",
f="qx.xml.Document",
g=" />",
h="MSXML2.DOMDocument.3.0",
j='<\?xml version="1.0" encoding="utf-8"?>\n<',
k="MSXML2.XMLHTTP.3.0",
m="MSXML2.XMLHTTP.6.0",
n=" xmlns='",
o="text/xml",
p="XPath",
q="MSXML2.DOMDocument.6.0";
qx.Bootstrap.define(f,
{statics:{DOMDOC:null,
XMLHTTP:null,
create:qx.core.Variant.select(a,
{"mshtml":function(r,
s){var t=new ActiveXObject(this.DOMDOC);
t.setProperty(e,
p);
if(s){var u=j;
u+=s;
if(r){u+=n+r+d;
}u+=g;
t.loadXML(u);
}return t;
},
"default":function(r,
s){return document.implementation.createDocument(r||b,
s||b,
null);
}}),
fromString:qx.core.Variant.select(a,
{"mshtml":function(u){var v=qx.xml.Document.create();
v.loadXML(u);
return v;
},
"default":function(u){var w=new DOMParser();
return w.parseFromString(u,
o);
}})},
defer:function(x){if(qx.core.Variant.isSet(a,
c)){var y=[q,
h];
var z=[m,
k];
for(var A=0,
B=y.length;A<B;A++){try{new ActiveXObject(y[A]);
new ActiveXObject(z[A]);
}catch(ex){continue;
}x.DOMDOC=y[A];
x.XMLHTTP=z[A];
break;
}}}});
})();
(function(){var a="=",
b="&",
c="application/xml",
d="application/json",
f="text/html",
g="qx.client",
h="textarea",
j="none",
k="text/plain",
l="text/javascript",
m="",
n="completed",
o="?",
p="qx.io.remote.transport.Iframe",
q="__kA",
r="gecko",
s="frame_",
t="aborted",
u="_data_",
v="pre",
w="javascript:void(0)",
x="sending",
y="form",
z="failed",
A='<iframe name="',
B="mshtml",
C="form_",
D='"></iframe>',
E="iframe",
F="__kz",
G="timeout",
H="qx/static/blank.gif";
qx.Class.define(p,
{extend:qx.io.remote.transport.Abstract,
construct:function(){arguments.callee.base.call(this);
var I=(new Date).valueOf();
var J=s+I;
var K=C+I;
if(qx.core.Variant.isSet(g,
B)){this.__kz=document.createElement(A+J+D);
}else{this.__kz=document.createElement(E);
}this.__kz.src=w;
this.__kz.id=this.__kz.name=J;
this.__kz.onload=qx.lang.Function.bind(this._onload,
this);
this.__kz.style.display=j;
document.body.appendChild(this.__kz);
this.__kA=document.createElement(y);
this.__kA.target=J;
this.__kA.id=this.__kA.name=K;
this.__kA.style.display=j;
document.body.appendChild(this.__kA);
this.__kB=document.createElement(h);
this.__kB.id=this.__kB.name=u;
this.__kA.appendChild(this.__kB);
this.__kz.onreadystatechange=qx.lang.Function.bind(this._onreadystatechange,
this);
},
statics:{handles:{synchronous:false,
asynchronous:true,
crossDomain:false,
fileUpload:true,
programaticFormFields:true,
responseTypes:[k,
l,
d,
c,
f]},
isSupported:function(){return true;
},
_numericMap:{"uninitialized":1,
"loading":2,
"loaded":2,
"interactive":3,
"complete":4}},
members:{__kB:null,
__kC:0,
__kA:null,
__kz:null,
send:function(){var L=this.getMethod();
var M=this.getUrl();
var N=this.getParameters(false);
var O=[];
for(var P in N){var Q=N[P];
if(Q instanceof Array){for(var R=0;R<Q.length;R++){O.push(encodeURIComponent(P)+a+encodeURIComponent(Q[R]));
}}else{O.push(encodeURIComponent(P)+a+encodeURIComponent(Q));
}}
if(O.length>0){M+=(M.indexOf(o)>=0?b:o)+O.join(b);
}if(this.getData()===null){var N=this.getParameters(true);
var O=[];
for(var P in N){var Q=N[P];
if(Q instanceof Array){for(var R=0;R<Q.length;R++){O.push(encodeURIComponent(P)+a+encodeURIComponent(Q[R]));
}}else{O.push(encodeURIComponent(P)+a+encodeURIComponent(Q));
}}
if(O.length>0){this.setData(O.join(b));
}}var S=this.getFormFields();
for(var P in S){var T=document.createElement(h);
T.name=P;
T.appendChild(document.createTextNode(S[P]));
this.__kA.appendChild(T);
}this.__kA.action=M;
this.__kA.method=L;
this.__kB.appendChild(document.createTextNode(this.getData()));
this.__kA.submit();
this.setState(x);
},
_onload:function(U){if(this.__kA.src){return;
}this._switchReadyState(qx.io.remote.transport.Iframe._numericMap.complete);
},
_onreadystatechange:function(U){this._switchReadyState(qx.io.remote.transport.Iframe._numericMap[this.__kz.readyState]);
},
_switchReadyState:function(V){switch(this.getState()){case n:case t:case z:case G:this.warn("Ignore Ready State Change");
return;
}while(this.__kC<V){this.setState(qx.io.remote.Exchange._nativeMap[++this.__kC]);
}},
setRequestHeader:function(W,
X){},
getResponseHeader:function(W){return null;
},
getResponseHeaders:function(){return {};
},
getStatusCode:function(){return 200;
},
getStatusText:function(){return m;
},
getIframeWindow:function(){return qx.bom.Iframe.getWindow(this.__kz);
},
getIframeDocument:function(){return qx.bom.Iframe.getDocument(this.__kz);
},
getIframeBody:function(){return qx.bom.Iframe.getBody(this.__kz);
},
getIframeTextContent:function(){var Y=this.getIframeBody();
if(!Y){return null;
}
if(!Y.firstChild){return m;
}if(Y.firstChild.tagName&&Y.firstChild.tagName.toLowerCase()==v){return Y.firstChild.innerHTML;
}else{return Y.innerHTML;
}},
getIframeHtmlContent:function(){var Y=this.getIframeBody();
return Y?Y.innerHTML:null;
},
getFetchedLength:function(){return 0;
},
getResponseContent:function(){if(this.getState()!==n){{};
return null;
}{};
var ba=this.getIframeTextContent();
switch(this.getResponseType()){case k:{};
return ba;
break;
case f:ba=this.getIframeHtmlContent();
{};
return ba;
break;
case d:ba=this.getIframeHtmlContent();
{};
try{return ba&&ba.length>0?qx.util.Json.parseQx(ba):null;
}catch(ex){return this.error("Could not execute json: ("+ba+")",
ex);
}case l:ba=this.getIframeHtmlContent();
{};
try{return ba&&ba.length>0?window.eval(ba):null;
}catch(ex){return this.error("Could not execute javascript: ("+ba+")",
ex);
}case c:ba=this.getIframeDocument();
{};
return ba;
default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");
return null;
}}},
defer:function(bb,
bc,
bd){qx.io.remote.Exchange.registerType(qx.io.remote.transport.Iframe,
p);
},
destruct:function(){if(this.__kz){this.__kz.onload=null;
this.__kz.onreadystatechange=null;
if(qx.core.Variant.isSet(g,
r)){this.__kz.src=qx.util.ResourceManager.toUri(H);
}document.body.removeChild(this.__kz);
}
if(this.__kA){document.body.removeChild(this.__kA);
}this._disposeFields(F,
q);
}});
})();
(function(){var a="qx.event.handler.Iframe",
b="load",
c="iframe";
qx.Class.define(a,
{extend:qx.core.Object,
implement:qx.event.IEventHandler,
statics:{PRIORITY:qx.event.Registration.PRIORITY_NORMAL,
SUPPORTED_TYPES:{load:1},
TARGET_CHECK:qx.event.IEventHandler.TARGET_DOMNODE,
IGNORE_CAN_HANDLE:false,
onevent:function(d){qx.event.Registration.fireEvent(d,
b);
}},
members:{canHandleEvent:function(d,
e){return d.tagName.toLowerCase()===c;
},
registerEvent:function(d,
e,
f){},
unregisterEvent:function(d,
e,
f){}},
defer:function(g){qx.event.Registration.addHandler(g);
}});
})();
(function(){var a="0",
b="qx.client",
c="qx.bom.Iframe",
d="qx.event.handler.Iframe.onevent(this)",
e="true",
f="iframe",
g="body";
qx.Class.define(c,
{statics:{create:function(h,
i){var h=h?qx.lang.Object.copy(h):{};
h.onload=d;
h.frameBorder=a;
h.frameSpacing=a;
h.marginWidth=a;
h.marginHeight=a;
h.hspace=a;
h.vspace=a;
h.border=a;
h.allowTransparency=e;
return qx.bom.Element.create(f,
h,
i);
},
getWindow:qx.core.Variant.select(b,
{"mshtml|gecko":function(j){try{return j.contentWindow;
}catch(ex){return null;
}},
"default":function(j){try{var k=this.getDocument(j);
return k?k.defaultView:null;
}catch(ex){return null;
}}}),
getDocument:qx.core.Variant.select(b,
{"mshtml":function(j){try{var i=this.getWindow(j);
return i?i.document:null;
}catch(ex){return null;
}},
"default":function(j){try{return j.contentDocument;
}catch(ex){return null;
}}}),
getBody:function(j){var k=this.getDocument(j);
return k?k.getElementsByTagName(g)[0]:null;
},
setSource:function(j,
l){try{if(this.getWindow(j)){try{this.getWindow(j).location.replace(l);
}catch(ex){j.src=l;
}}else{j.src=l;
}}catch(ex){qx.log.Logger.warn("Iframe source could not be set!");
}},
queryCurrentUrl:function(j){var k=this.getDocument(j);
try{if(k&&k.location){return k.location.href;
}}catch(ex){}return null;
}}});
})();
(function(){var a="&",
b="=",
c="?",
d="application/json",
e="completed",
f="text/plain",
g="text/javascript",
h="qx.io.remote.transport.Script",
j="__kE",
k="",
l="_ScriptTransport_data",
m="_responseContent",
n="script",
o="timeout",
p="_ScriptTransport_",
q="_ScriptTransport_id",
r="aborted",
s="utf-8",
t="failed";
qx.Class.define(h,
{extend:qx.io.remote.transport.Abstract,
construct:function(){arguments.callee.base.call(this);
var u=++qx.io.remote.transport.Script.__kD;
if(u>=2000000000){qx.io.remote.transport.Script.__kD=u=1;
}this.__kE=null;
this.__kD=u;
},
statics:{__kD:0,
_instanceRegistry:{},
ScriptTransport_PREFIX:p,
ScriptTransport_ID_PARAM:q,
ScriptTransport_DATA_PARAM:l,
handles:{synchronous:false,
asynchronous:true,
crossDomain:true,
fileUpload:false,
programaticFormFields:false,
responseTypes:[f,
g,
d]},
isSupported:function(){return true;
},
_numericMap:{"uninitialized":1,
"loading":2,
"loaded":2,
"interactive":3,
"complete":4},
_requestFinished:function(v,
w){var x=qx.io.remote.transport.Script._instanceRegistry[v];
if(x==null){{};
}else{x._responseContent=w;
x._switchReadyState(qx.io.remote.transport.Script._numericMap.complete);
}}},
members:{__kF:0,
__kE:null,
__kD:null,
send:function(){var y=this.getUrl();
y+=(y.indexOf(c)>=0?a:c)+qx.io.remote.transport.Script.ScriptTransport_ID_PARAM+b+this.__kD;
var z=this.getParameters();
var A=[];
for(var B in z){if(B.indexOf(qx.io.remote.transport.Script.ScriptTransport_PREFIX)==0){this.error("Illegal parameter name. The following prefix is used internally by qooxdoo): "+qx.io.remote.transport.Script.ScriptTransport_PREFIX);
}var C=z[B];
if(C instanceof Array){for(var D=0;D<C.length;D++){A.push(encodeURIComponent(B)+b+encodeURIComponent(C[D]));
}}else{A.push(encodeURIComponent(B)+b+encodeURIComponent(C));
}}
if(A.length>0){y+=a+A.join(a);
}var E=this.getData();
if(E!=null){y+=a+qx.io.remote.transport.Script.ScriptTransport_DATA_PARAM+b+encodeURIComponent(E);
}qx.io.remote.transport.Script._instanceRegistry[this.__kD]=this;
this.__kE=document.createElement(n);
this.__kE.charset=s;
this.__kE.src=y;
{};
document.body.appendChild(this.__kE);
},
_switchReadyState:function(F){switch(this.getState()){case e:case r:case t:case o:this.warn("Ignore Ready State Change");
return;
}while(this.__kF<F){this.setState(qx.io.remote.Exchange._nativeMap[++this.__kF]);
}},
setRequestHeader:function(G,
H){},
getResponseHeader:function(G){return null;
},
getResponseHeaders:function(){return {};
},
getStatusCode:function(){return 200;
},
getStatusText:function(){return k;
},
getFetchedLength:function(){return 0;
},
getResponseContent:function(){if(this.getState()!==e){{};
return null;
}{};
switch(this.getResponseType()){case f:case d:case g:{};
var I=this._responseContent;
return (I===0?0:(I||null));
default:this.warn("No valid responseType specified ("+this.getResponseType()+")!");
return null;
}}},
defer:function(J,
K,
L){qx.io.remote.Exchange.registerType(qx.io.remote.transport.Script,
h);
qx.io.remote.ScriptTransport=J;
},
destruct:function(){if(this.__kE){delete qx.io.remote.transport.Script._instanceRegistry[this.__kD];
document.body.removeChild(this.__kE);
}this._disposeFields(j,
m);
}});
})();
(function(){var a="Integer",
b="Object",
c="qx.io.remote.Response";
qx.Class.define(c,
{extend:qx.event.type.Event,
properties:{state:{check:a,
nullable:true},
statusCode:{check:a,
nullable:true},
content:{nullable:true},
responseHeaders:{check:b,
nullable:true}},
members:{clone:function(d){var e=arguments.callee.base.call(this,
d);
e.setType(this.getType());
e.setState(this.getState());
e.setStatusCode(this.getStatusCode());
e.setContent(this.getContent());
e.setResponseHeaders(this.getResponseHeaders());
return e;
},
getResponseHeader:function(f){var g=this.getResponseHeaders();
if(g){return g[f]||null;
}return null;
}}});
})();
(function(){var a="spamfighter.model.APIError",
b="]: ",
c="APIError [";
qx.Class.define(a,
{extend:Error,
construct:function(d,
e){this.code=d;
this.message=e;
},
members:{code:null,
message:null,
toString:function(){return c+this.code+b+this.message;
}}});
})();
(function(){var a="__kI",
b='',
c="__kG",
e="__kH",
f="__kN",
g='sf.domain.children',
h='/',
i="__kK",
j="spamfighter.model.Domain",
k='sf.domain.get',
l='sf.domain.list',
m='IMessageFirewall',
n='name',
o='IMessageLog',
p="__kO",
q='domain',
r="__kM",
s='IModel',
t="__kL";
qx.Class.define(j,
{extend:qx.core.Object,
construct:function(u,
v){this.__kG=u;
this.__kH=v;
this.__kI=null;
this.__kJ=null;
this.__kK=null;
this.__kL=null;
this.__kM=null;
this.__kN=null;
this.__kO=null;
},
destruct:function(){this._disposeFields(c,
e);
this._disposeObjects(p,
f,
t);
this._disposeMap(i);
this._disposeMap(r);
this._disposeMap(a);
},
members:{__kG:null,
__kH:null,
__kI:null,
__kJ:null,
__kK:null,
__kL:null,
__kM:null,
__kN:null,
__kO:null,
getProperties:function(){if(this.__kN!=null){var w=this;
this.__kN.addCallback(function(_){return w.__kI;
});
return this.__kN;
}
if(this.__kI!=null)return spamfighter.lib.Deferred.succeed(this.__kI);
this.__kI={};
this.__kK={};
this.__kM={};
this.__kL=null;
var w=this;
this.__kN=this.__kG.getAPI().call(l,
w.getDomainParams()).addCallback(qx.lang.Function.bind(this.__kP,
this)).addErrback(function(x){w.__kI=w.__kK=null;
w.__kM=null;
return x;
}).addBoth(function(x){w.__kN=null;
return x;
}).addCallback(function(_){return w.__kI;
});
return this.__kN;
},
__kP:function(y){var z=y.properties;
var w=this;
var A=new spamfighter.lib.Deferred();
z.forEach(function(B){A.addCallback(qx.lang.Function.bind(w.__kQ,
w,
B));
});
A.callback(null);
return A;
},
__kQ:function(B,
_){var w=this;
var C=this.getDomainParams();
C[n]=B;
return this.__kG.getAPI().call(k,
C).addCallback(function(y){w.__kI[B]=y;
if(y.interfaces.indexOf(s)!=-1)w.__kK[B]=new spamfighter.model.Model(w,
B);
if(y.interfaces.indexOf(m)!=-1)w.__kL=new spamfighter.model.Firewall(w,
B);
if(y.interfaces.indexOf(o)!=-1)w.__kM[B]=new spamfighter.model.MessageLog(w,
B);
});
},
getSubdomains:function(){if(this.__kO!=null)return this.__kO;
if(this.__kJ!=null)return spamfighter.lib.Deferred.succeed(this.__kJ);
this.__kJ={};
var w=this;
var C=this.getDomainParams();
this.__kO=this.__kG.getAPI().call(g,
C).addCallback(qx.lang.Function.bind(this.__kR,
this)).addErrback(function(x){w.__kJ=null;
return x;
}).addBoth(function(x){w.__kO=null;
return x;
}).addCallback(function(_){return w.__kJ;
});
return this.__kO;
},
__kR:function(y){var D=y.children;
var w=this;
var A=new spamfighter.lib.Deferred();
D.forEach(function(B){A.addCallback(qx.lang.Function.bind(w.__kS,
w,
B));
});
A.callback(null);
return A;
},
__kS:function(B,
_){var v=this.__kH;
if(v==null)v=b;
else v=v+h;
v=v+B;
this.__kJ[B]=new spamfighter.model.Domain(this.__kG,
v);
},
getServer:function(){return this.__kG;
},
getDomainParams:function(){var y=this.__kG.getPartnerAuth();
if(this.__kH!==null)y[q]=this.__kH;
return y;
},
getModels:function(){var w=this;
return this.getProperties().addCallback(function(_){return w.__kK;
});
},
getLogs:function(){var w=this;
return this.getProperties().addCallback(function(_){return w.__kM;
});
},
getFirewall:function(){var w=this;
return this.getProperties().addCallback(function(_){return w.__kL;
});
}}});
})();
(function(){var a='sf.model.train',
b="spamfighter.model.Model",
c="__kU",
d='sf.model.classify',
e="__kT";
qx.Class.define(b,
{extend:qx.core.Object,
construct:function(f,
g){this.__kT=f;
this.__kU=g;
},
destruct:function(){this._disposeFields(c);
this._disposeObjects(e);
},
members:{__kT:null,
__kU:null,
train:function(h,
i){var j=this.__kT.getDomainParams();
j.model=this.__kU;
j.message=h.serialize();
j.marker=i;
return this.__kT.getServer().getAPI().call(a,
j);
},
classify:function(h){var j=this.__kT.getDomainParams();
j.model=this.__kU;
j.message=h.serialize();
return this.__kT.getServer().getAPI().call(d,
j).addCallback(function(k){return k.marker;
});
}}});
})();
(function(){var a='sf.message.firewall.rules.check',
b="spamfighter.model.Firewall",
c='sf.message.firewall.rules.set',
d="__kW",
e='sf.message.firewall.rules.get',
f="__kV";
qx.Class.define(b,
{extend:qx.core.Object,
construct:function(g,
h){this.__kV=g;
this.__kW=h;
},
destruct:function(){this._disposeFields(d);
this._disposeObjects(f);
},
members:{__kV:null,
__kW:null,
getRules:function(){var i=this.__kV.getDomainParams();
i.firewall=this.__kW;
return this.__kV.getServer().getAPI().call(e,
i).addCallback(function(j){return j.rules;
});
},
setRules:function(k){var i=this.__kV.getDomainParams();
i.firewall=this.__kW;
i.rules=k;
return this.__kV.getServer().getAPI().call(c,
i).addErrback(function(l){if(l instanceof spamfighter.model.APIError&&l.code==2008)return new spamfighter.model.FirewallSyntaxError(l.message);
return l;
});
},
syntaxCheck:function(k){var i=this.__kV.getDomainParams();
i.firewall=this.__kW;
i.rules=k;
return this.__kV.getServer().getAPI().call(a,
i).addErrback(function(l){if(l instanceof spamfighter.model.APIError&&l.code==2008)return new spamfighter.model.FirewallSyntaxError(l.message);
return l;
});
}}});
})();
(function(){var a="spamfighter.model.FirewallSyntaxError";
qx.Class.define(a,
{extend:Error,
construct:function(b){self.message=b;
},
members:{toString:function(){return self.message;
}}});
})();
(function(){var a='sf.message.log.fetch',
b='id',
c='when',
d="__kY",
e="__lb",
f="__kX",
g="__la",
h="spamfighter.model.MessageLog";
qx.Class.define(h,
{extend:qx.core.Object,
construct:function(i,
j){this.__kX=i;
this.__kY=j;
this.__la=null;
this.__lb=null;
},
destruct:function(){this._disposeFields(d,
g,
e);
this._disposeObjects(f);
},
members:{__kX:null,
__kY:null,
__lb:null,
__la:null,
reset:function(){this.__lb=this.__la=null;
},
fetch:function(){var k=this.__kX.getDomainParams();
k.log=this.__kY;
if(this.__lb==null){var l=new Date();
k.first=Math.round(l.valueOf()/1000-30);
}else{k.first=this.__lb;
}
if(this.__la!=null)k.firstID=this.__la+1;
var m=function(n){entries=n.entries;
this.__la=Math.max(this.__la==null?0:this.__la,
Math.max.apply(Math,
entries.map(function(o){return o[b];
})));
if(this.__la==0)this.__la=null;
this.__lb=Math.max(this.__lb==null?0:this.__lb,
Math.max.apply(Math,
entries.map(function(o){return o[c];
})));
if(this.__lb==0)this.__lb=null;
return entries.map(function(o){return new spamfighter.model.LogEntry(o);
});
};
return this.__kX.getServer().getAPI().call(a,
k).addCallback(qx.lang.Function.bind(m,
this));
}}});
})();
(function(){var a='id',
b='when',
c='message',
d="message",
e='tags',
f="when",
g="spamfighter.model.LogEntry",
h="tags",
i="id";
qx.Class.define(g,
{extend:qx.core.Object,
construct:function(j){this.when=j[b];
this.id=j[a];
this.message=spamfighter.model.Message.unserialize(j[c]);
this.tags=j[e];
},
destruct:function(){this._disposeFields(i,
f);
this._disposeArray(h);
this._disposeObjects(d);
},
members:{when:null,
id:null,
message:null,
tags:null,
getWhenAsTime:function(){var k=new Date(this.when*1000);
return k.toLocaleTimeString();
}}});
})();
(function(){var a="spamfighter.model.Message",
b='String',
c='Integer',
d='sf.message.input',
e='from',
f='text';
qx.Class.define(a,
{extend:qx.core.Object,
properties:{'text':{check:b,
nullable:true},
'from':{check:c,
nullable:true}},
statics:{unserialize:function(g){var h=new spamfighter.model.Message();
if(f in g)h.setText(g.text);
if(e in g)h.setFrom(g.from);
return h;
}},
members:{serialize:function(){var i={};
if(this.getText()!=null)i.text=this.getText();
if(this.getFrom()!=null)i.from=this.getFrom();
return i;
},
analyze:function(j,
k){var l=j.getDomainParams();
l.message=this.serialize();
l.debug=k?true:false;
return j.getServer().getAPI().call(d,
l);
}}});
})();
(function(){var a="Сервер: ",
b="Обновить",
c='horizontal',
d="__lf",
e="spamfighter.ui.ServerWindow",
f="__lg",
g="Домены:",
h="__lh",
i="__lj",
j="spamfighter/icon/22/actions/view-refresh.png",
k="spamfighter/icon/22/apps/utilities-terminal.png",
l="__li",
m="icon/22/devices/computer.png",
n="Корень",
o="changeSelection",
p=", авторизация: доверительная, версия: ",
q="__le",
r="__lc",
s="execute";
qx.Class.define(e,
{extend:qx.ui.window.Window,
construct:function(t){this.__lc=t;
this.__ld=this.__lc.getRootDomain();
this.__le=this.__ld;
arguments.callee.base.call(this,
a+this.__lc.getUrl(),
k);
this.set({'showMinimize':false,
'padding':4});
this.setLayout(new qx.ui.layout.VBox(4));
var u=new qx.ui.basic.Atom(a+this.__lc.getUrl()+p,
m);
this.add(u);
this.__lc.getVersion().addCallback(function(v){u.setLabel(u.getLabel()+v);
});
var w=new qx.ui.splitpane.Pane(c);
var x=new qx.ui.container.Composite(new qx.ui.layout.VBox(4));
var y=new qx.ui.tabview.TabView();
x.add(new qx.ui.basic.Label(g));
this.__lf=new qx.ui.tree.Tree();
x.add(this.__lf,
{flex:1});
var z=new qx.ui.form.Button(b,
j);
x.add(z);
this.__lg=new spamfighter.ui.PropertiesPage();
y.add(this.__lg);
this.__lh=new spamfighter.ui.FirewallPage();
y.add(this.__lh);
this.__li=new spamfighter.ui.ModelPage();
y.add(this.__li);
this.__lj=new spamfighter.ui.LogPage();
y.add(this.__lj);
w.add(x,
0);
w.add(y,
1);
this.add(w,
{flex:1});
this.__lf.addListener(o,
this._domainChanged,
this);
z.addListener(s,
this._refreshAll,
this);
this._buildDomainTree();
},
destruct:function(){this._disposeFields(r,
q,
d,
f,
l,
h,
i);
},
members:{__lc:null,
__le:null,
__lf:null,
__lg:null,
__li:null,
__lh:null,
__lj:null,
_buildDomainTree:function(){this.__lf.setRoot(null);
var A=new qx.ui.tree.TreeFolder(n);
A.setOpen(true);
A.__lk=this.__ld;
this.__lf.setRoot(A);
this._syncDomainTree(A,
this.__ld);
this.__lf.select(A);
},
_syncDomainTree:function(B,
C){var _copyDomainTree=function(B,
D){for(name in D){var E=D[name];
var F=null;
F=new qx.ui.tree.TreeFolder(name);
F.__lk=E;
this._syncDomainTree(F,
E);
B.add(F);
}};
C.getSubdomains().addCallback(qx.lang.Function.bind(_copyDomainTree,
this,
B));
},
_domainChanged:function(){this.__le=this.__lf.getSelectedItem().__lk;
this.__lg.domainChanged(this.__le);
this.__li.domainChanged(this.__le);
this.__lh.domainChanged(this.__le);
this.__lj.domainChanged(this.__le);
},
_refreshAll:function(){this.__ld=this.__le=this.__lc.getRootDomain();
this._buildDomainTree();
}}});
})();
(function(){var a="slider",
b="splitter",
c="active",
d="horizontal",
f="vertical",
g="mousedown",
h="mouseout",
i="height",
j="row-resize",
k="mousemove",
l="move",
m="maxHeight",
n="width",
o="_applyOrientation",
p="splitpane",
q="qx.ui.splitpane.Pane",
r="minHeight",
s="knob",
t="mouseup",
u="minWidth",
v="losecapture",
w="col-resize",
x="maxWidth";
qx.Class.define(q,
{extend:qx.ui.core.Widget,
construct:function(y){arguments.callee.base.call(this);
if(y){this.setOrientation(y);
}else{this.initOrientation();
}this.addListener(g,
this._onMouseDown);
this.addListener(t,
this._onMouseUp);
this.addListener(k,
this._onMouseMove);
this.addListener(h,
this._onMouseOut);
this.addListener(v,
this._onMouseUp);
},
properties:{appearance:{refine:true,
init:p},
orientation:{init:d,
check:[d,
f],
apply:o}},
members:{__ll:null,
__lm:null,
__ln:null,
__lo:null,
__lp:null,
__lq:null,
__lr:null,
_createChildControlImpl:function(z){var A;
switch(z){case a:A=new qx.ui.splitpane.Slider(this);
A.exclude();
this._add(A,
{type:z});
break;
case b:A=new qx.ui.splitpane.Splitter(this);
this._add(A,
{type:z});
A.addListener(l,
this._onSplitterMove,
this);
break;
}return A||arguments.callee.base.call(this,
z);
},
_applyOrientation:function(B,
C){var D=this.getChildControl(a);
var E=this.getChildControl(b);
this.__lp=B===d;
var F=this._getLayout();
if(F){F.dispose();
}var G=B===f?new qx.ui.splitpane.VLayout:new qx.ui.splitpane.HLayout;
this._setLayout(G);
E.replaceState(C,
B);
E.getChildControl(s).replaceState(C,
B);
D.replaceState(C,
B);
},
add:function(H,
I){if(I==null){this._add(H);
}else{this._add(H,
{flex:I});
}},
remove:function(H){this._remove(H);
},
_onMouseDown:function(J){if(!J.isLeftPressed()){return;
}var E=this.getChildControl(b);
if(!E.hasState(c)){return;
}var K=E.getContainerLocation();
var L=this.getContentLocation();
this.__ll=this.__lp?J.getDocumentLeft()-K.left+L.left:J.getDocumentTop()-K.top+L.top;
var D=this.getChildControl(a);
var M=E.getBounds();
D.setUserBounds(M.left,
M.top,
M.width,
M.height);
D.setZIndex(E.getZIndex()+1);
D.show();
this.__lm=true;
this.capture();
},
_onMouseMove:function(J){this.__ln=J.getDocumentLeft();
this.__lo=J.getDocumentTop();
if(this.__lm){this.__lv();
var D=this.getChildControl(a);
var N=this.__lq;
if(this.__lp){D.setDomLeft(N);
}else{D.setDomTop(N);
}}else{this.__lu();
}},
_onMouseOut:function(J){this.__ln=-1;
this.__lo=-1;
this.__lu();
},
_onMouseUp:function(J){if(!this.__lm){return;
}this.__ls();
var D=this.getChildControl(a);
D.exclude();
delete this.__lm;
this.releaseCapture();
this.__lu();
},
_onSplitterMove:function(){this.__lu();
},
__ls:function(){var O=this.__lq;
var P=this.__lr;
if(O==null){return;
}var Q=this._getChildren();
var R=Q[2];
var S=Q[3];
var T=R.getLayoutProperties().flex;
var U=S.getLayoutProperties().flex;
if((T!=0)&&(U!=0)){R.setLayoutProperties({flex:O});
S.setLayoutProperties({flex:P});
}else{if(this.__lp){R.setWidth(O);
S.setWidth(P);
}else{R.setHeight(O);
S.setHeight(P);
}}},
__lt:function(){var E=this.getChildControl(b);
var M=E.getBounds();
var K=E.getContainerLocation();
var V=6;
if(!K){return;
}var W=this.__ln;
var X=M.width;
var N=K.left;
if(X<V){N-=Math.floor((V-X)/2);
X=V;
}
if(W<N||W>(N+X)){return false;
}var W=this.__lo;
var X=M.height;
var N=K.top;
if(X<V){N-=Math.floor((V-X)/2);
X=V;
}
if(W<N||W>(N+X)){return false;
}return true;
},
__lu:function(){var E=this.getChildControl(b);
var Y=this.getApplicationRoot();
if(this.__lm||this.__lt()){var ba=this.__lp?w:j;
this.setCursor(ba);
Y.setGlobalCursor(ba);
E.addState(c);
}else if(E.hasState(c)){this.resetCursor();
Y.resetGlobalCursor();
E.removeState(c);
}},
__lv:function(){if(this.__lp){var V=u,
X=n,
bb=x,
W=this.__ln;
}else{var V=r,
X=i,
bb=m,
W=this.__lo;
}var Q=this._getChildren();
var bc=Q[2].getSizeHint();
var bd=Q[3].getSizeHint();
var be=Q[2].getBounds()[X]+Q[3].getBounds()[X];
var O=W-this.__ll;
var P=be-O;
if(O<bc[V]){P-=bc[V]-O;
O=bc[V];
}else if(P<bd[V]){O-=bd[V]-P;
P=bd[V];
}if(O>bc[bb]){P+=O-bc[bb];
O=bc[bb];
}else if(P>bd[bb]){O+=P-bd[bb];
P=bd[bb];
}this.__lq=O;
this.__lr=P;
}}});
})();
(function(){var a="qx.ui.splitpane.Slider";
qx.Class.define(a,
{extend:qx.ui.core.Widget,
properties:{allowShrinkX:{refine:true,
init:false},
allowShrinkY:{refine:true,
init:false}}});
})();
(function(){var a="center",
b="knob",
c="middle",
d="qx.ui.splitpane.Splitter",
e="vertical";
qx.Class.define(d,
{extend:qx.ui.core.Widget,
construct:function(f){arguments.callee.base.call(this);
if(f.getOrientation()==e){this._setLayout(new qx.ui.layout.HBox(0,
a));
this._getLayout().setAlignY(c);
}else{this._setLayout(new qx.ui.layout.VBox(0,
c));
this._getLayout().setAlignX(a);
}this._createChildControl(b);
},
properties:{allowShrinkX:{refine:true,
init:false},
allowShrinkY:{refine:true,
init:false}},
members:{_createChildControlImpl:function(g){var h;
switch(g){case b:h=new qx.ui.basic.Image;
this._add(h);
break;
}return h||arguments.callee.base.call(this,
g);
}}});
})();
(function(){var a="slider",
b="splitter",
c="qx.ui.splitpane.VLayout";
qx.Class.define(c,
{extend:qx.ui.layout.Abstract,
members:{verifyLayoutProperty:null,
renderLayout:function(d,
e){var f=this._getLayoutChildren();
var g=f.length;
var h,
j;
var k,
l,
m,
n;
for(var o=0;o<g;o++){h=f[o];
j=h.getLayoutProperties().type;
if(j===b){l=h;
}else if(j===a){m=h;
}else if(!k){k=h;
}else{n=h;
}}
if(k&&n){var p=k.getLayoutProperties().flex;
var q=n.getLayoutProperties().flex;
if(p==null){p=1;
}
if(q==null){q=1;
}var r=k.getSizeHint();
var s=l.getSizeHint();
var t=n.getSizeHint();
var u=r.height;
var v=s.height;
var w=t.height;
if(p>0&&q>0){var x=p+q;
var y=e-v;
var u=Math.round((y/x)*p);
var w=y-u;
var z=qx.ui.layout.Util.arrangeIdeals(r.minHeight,
u,
r.maxHeight,
t.minHeight,
w,
t.maxHeight);
u=z.begin;
w=z.end;
}else if(p>0){u=e-v-w;
if(u<r.minHeight){u=r.minHeight;
}
if(u>r.maxHeight){u=r.maxHeight;
}}else if(q>0){w=e-u-v;
if(w<t.minHeight){w=t.minHeight;
}
if(w>t.maxHeight){w=t.maxHeight;
}}k.renderLayout(0,
0,
d,
u);
l.renderLayout(0,
u,
d,
v);
n.renderLayout(0,
u+v,
d,
w);
}else{l.renderLayout(0,
0,
0,
0);
if(k){k.renderLayout(0,
0,
d,
e);
}else if(n){n.renderLayout(0,
0,
d,
e);
}}},
_computeSizeHint:function(){var f=this._getLayoutChildren();
var g=f.length;
var h,
A,
B;
var C=0,
D=0,
E=0;
var F=0,
G=0,
H=0;
for(var o=0;o<g;o++){h=f[o];
B=h.getLayoutProperties();
if(B.type===a){continue;
}A=h.getSizeHint();
C+=A.minHeight;
D+=A.height;
E+=A.maxHeight;
if(A.minWidth>F){F=A.minWidth;
}
if(A.width>G){G=A.width;
}
if(A.maxWidth>H){H=A.maxWidth;
}}return {minHeight:C,
height:D,
maxHeight:E,
minWidth:F,
width:G,
maxWidth:H};
}}});
})();
(function(){var a="slider",
b="splitter",
c="qx.ui.splitpane.HLayout";
qx.Class.define(c,
{extend:qx.ui.layout.Abstract,
members:{verifyLayoutProperty:null,
renderLayout:function(d,
e){var f=this._getLayoutChildren();
var g=f.length;
var h,
j;
var k,
l,
m,
n;
for(var o=0;o<g;o++){h=f[o];
j=h.getLayoutProperties().type;
if(j===b){l=h;
}else if(j===a){m=h;
}else if(!k){k=h;
}else{n=h;
}}
if(k&&n){var p=k.getLayoutProperties().flex;
var q=n.getLayoutProperties().flex;
if(p==null){p=1;
}
if(q==null){q=1;
}var r=k.getSizeHint();
var s=l.getSizeHint();
var t=n.getSizeHint();
var u=r.width;
var v=s.width;
var w=t.width;
if(p>0&&q>0){var x=p+q;
var y=d-v;
var u=Math.round((y/x)*p);
var w=y-u;
var z=qx.ui.layout.Util.arrangeIdeals(r.minWidth,
u,
r.maxWidth,
t.minWidth,
w,
t.maxWidth);
u=z.begin;
w=z.end;
}else if(p>0){u=d-v-w;
if(u<r.minWidth){u=r.minWidth;
}
if(u>r.maxWidth){u=r.maxWidth;
}}else if(q>0){w=d-u-v;
if(w<t.minWidth){w=t.minWidth;
}
if(w>t.maxWidth){w=t.maxWidth;
}}k.renderLayout(0,
0,
u,
e);
l.renderLayout(u,
0,
v,
e);
n.renderLayout(u+v,
0,
w,
e);
}else{l.renderLayout(0,
0,
0,
0);
if(k){k.renderLayout(0,
0,
d,
e);
}else if(n){n.renderLayout(0,
0,
d,
e);
}}},
_computeSizeHint:function(){var f=this._getLayoutChildren();
var g=f.length;
var h,
A,
B;
var C=0,
D=0,
E=0;
var F=0,
G=0,
H=0;
for(var o=0;o<g;o++){h=f[o];
B=h.getLayoutProperties();
if(B.type===a){continue;
}A=h.getSizeHint();
C+=A.minWidth;
D+=A.width;
E+=A.maxWidth;
if(A.minHeight>F){F=A.minHeight;
}
if(A.height>G){G=A.height;
}
if(A.maxHeight>H){H=A.maxHeight;
}}return {minWidth:C,
width:D,
maxWidth:E,
minHeight:F,
height:G,
maxHeight:H};
}}});
})();
(function(){var a="pane",
b="lastTab",
c="bar",
d="firstTab",
f="right",
g="bottom",
h="top",
j="left",
k="__lw",
m="changeValue",
n="changeSelected",
o="barRight",
p="tabview",
q="vertical",
r="_applyBarPosition",
s="barLeft",
t="_applySelected",
u="horizontal",
v="qx.ui.tabview.TabView",
w="barTop",
x="barBottom",
y="qx.ui.tabview.Page";
qx.Class.define(v,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MContentPadding],
construct:function(z){arguments.callee.base.call(this);
this._createChildControl(c);
this._createChildControl(a);
var A=this.__lw=new qx.ui.form.RadioGroup;
A.setWrap(false);
A.addListener(m,
this._onRadioChangeValue,
this);
if(z!=null){this.setBarPosition(z);
}else{this.initBarPosition();
}},
properties:{appearance:{refine:true,
init:p},
barPosition:{check:[j,
f,
h,
g],
init:h,
apply:r},
selected:{check:y,
apply:t,
event:n,
nullable:true}},
members:{__lw:null,
_createChildControlImpl:function(B){var C;
switch(B){case c:C=new qx.ui.container.SlideBar();
C.setZIndex(10);
this._add(C);
break;
case a:C=new qx.ui.container.Stack;
C.setZIndex(5);
this._add(C,
{flex:1});
break;
}return C||arguments.callee.base.call(this,
B);
},
_getContentPaddingTarget:function(){return this.getChildControl(a);
},
add:function(D){{};
var E=D.getButton();
var F=this.getChildControl(c);
var G=this.getChildControl(a);
D.exclude();
this.__lw.add(E);
F.add(E);
G.add(D);
D.addState(this.__lx[this.getBarPosition()]);
D.addState(b);
var H=this.getChildren();
if(H[0]==D){D.addState(d);
}else{H[H.length-2].removeState(b);
}},
remove:function(D){var G=this.getChildControl(a);
var F=this.getChildControl(c);
var E=D.getButton();
var H=G.getChildren();
if(this.getSelected()==D){var I=H.indexOf(D);
if(I==0){if(H[1]){this.setSelected(H[1]);
}else{this.resetSelected();
}}else{this.setSelected(H[I-1]);
}}F.remove(E);
G.remove(D);
this.__lw.remove(E);
D.removeState(this.__lx[this.getBarPosition()]);
if(D.hasState(d)){D.removeState(d);
if(H[0]){H[0].addState(d);
}}
if(D.hasState(b)){D.removeState(b);
if(H.length>0){H[H.length-1].addState(b);
}}},
getChildren:function(){return this.getChildControl(a).getChildren();
},
indexOf:function(D){return this.getChildControl(a).indexOf(D);
},
__lx:{top:w,
right:o,
bottom:x,
left:s},
_applyBarPosition:function(J,
K){var F=this.getChildControl(c);
var L=J==j||J==f;
var M=J==f||J==g;
var N=L?qx.ui.layout.HBox:qx.ui.layout.VBox;
var O=this._getLayout();
if(O&&O instanceof N){}else{this._setLayout(O=new N);
}O.setReversed(M);
F.setOrientation(L?q:u);
var H=this.getChildren();
if(K){var P=this.__lx[K];
F.removeState(P);
for(var Q=0,
R=H.length;Q<R;Q++){H[Q].removeState(P);
}}
if(J){var S=this.__lx[J];
F.addState(S);
for(var Q=0,
R=H.length;Q<R;Q++){H[Q].addState(S);
}}},
_applySelected:function(J,
K){var G=this.getChildControl(a);
var T=this.__lw;
if(J){var E=J.getButton();
G.setSelected(J);
T.setSelected(E);
E.focus();
this.scrollChildIntoView(E,
null,
null,
false);
}else{G.resetSelected();
T.resetSelected();
}},
_onRadioChangeValue:function(U){this.setSelected(qx.core.ObjectRegistry.fromHashCode(U.getData()));
}},
destruct:function(){this._disposeObjects(k);
}});
})();
(function(){var a="Boolean",
b="changeValue",
c="changeChecked",
d="changeSelected",
f="changeEnabled",
g="qx.ui.form.RadioGroup",
h="changeName",
j="__ly",
k="qx.ui.form.IRadioItem",
m="_applySelected",
n="_applyName",
o="_applyEnabled",
p="String",
q="qx.event.type.Data";
qx.Class.define(g,
{extend:qx.core.Object,
implement:qx.ui.form.IFormElement,
construct:function(r){arguments.callee.base.call(this);
this.__ly=[];
if(r!=null){this.add.apply(this,
arguments);
}this.addListener(d,
this._onChangeSelected);
},
properties:{enabled:{check:a,
apply:o,
event:f},
selected:{nullable:true,
apply:m,
event:d,
check:k},
name:{check:p,
nullable:true,
apply:n,
event:h},
wrap:{check:a,
init:true}},
events:{"changeValue":q},
members:{__ly:null,
getItems:function(){return this.__ly;
},
select:function(s){this.setSelected(s);
},
setValue:function(t){var u=this.__ly;
var s;
for(var v=0,
w=u.length;v<w;v++){s=u[v];
if(s.getValue()==t){this.setSelected(s);
break;
}}},
getValue:function(){var x=this.getSelected();
return x?x.getValue():null;
},
add:function(r){var u=this.__ly;
var s;
for(var v=0,
w=arguments.length;v<w;v++){s=arguments[v];
if(s.getGroup()===this){continue;
}s.addListener(c,
this._onItemChangeChecked,
this);
u.push(s);
s.setGroup(this);
if(s.getChecked()){this.setSelected(s);
}}if(u.length>0&&!this.getSelected()){this.setSelected(u[0]);
}},
remove:function(s){if(s.getGroup()===this){qx.lang.Array.remove(this.__ly,
s);
s.resetGroup();
s.removeListener(c,
this._onItemChangeChecked,
this);
if(s.getChecked()){this.resetSelected();
}}},
_onItemChangeChecked:function(y){var s=y.getTarget();
if(s.getChecked()){this.setSelected(s);
}else if(this.getSelected()==s){this.resetSelected();
}},
_onChangeSelected:function(y){var s=y.getData();
var t=null;
if(s){t=s.getValue();
if(t==null){t=s.getLabel();
}}this.fireDataEvent(b,
t);
},
_applySelected:function(t,
z){if(z){z.setChecked(false);
}
if(t){t.setChecked(true);
}var A=z?z.getValue():null;
var B=t?t.getValue():null;
if(A!=B){this.fireNonBubblingEvent(b,
qx.event.type.Data,
[B,
A]);
}},
_applyEnabled:function(t,
z){var u=this.__ly;
if(t==null){for(var v=0,
w=u.length;v<w;v++){u[v].resetEnabled();
}}else{for(var v=0,
w=u.length;v<w;v++){u[v].setEnabled(true);
}}},
_applyName:function(t,
z){var u=this.__ly;
if(t==null){for(var v=0,
w=u.length;v<w;v++){u[v].resetName();
}}else{for(var v=0,
w=u.length;v<w;v++){u[v].setName(t);
}}},
selectNext:function(){var s=this.getSelected();
var u=this.__ly;
var C=u.indexOf(s);
if(C==-1){return;
}var v=0;
var D=u.length;
if(this.getWrap()){C=(C+1)%D;
}else{C=Math.min(C+1,
D-1);
}
while(v<D&&!u[C].getEnabled()){C=(C+1)%D;
v++;
}this.setSelected(u[C]);
},
selectPrevious:function(){var s=this.getSelected();
var u=this.__ly;
var C=u.indexOf(s);
if(C==-1){return;
}var v=0;
var D=u.length;
if(this.getWrap()){C=(C-1+D)%D;
}else{C=Math.max(C-1,
0);
}
while(v<D&&!u[C].getEnabled()){C=(C-1+D)%D;
v++;
}this.setSelected(u[C]);
}},
destruct:function(){this._disposeArray(j);
}});
})();
(function(){var a="scrollpane",
b="button-backward",
c="horizontal",
d="button-forward",
f="content",
g="execute",
h="qx.ui.container.SlideBar",
i="update",
j="_applyOrientation",
k="vertical",
l="slidebar";
qx.Class.define(h,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MRemoteChildrenHandling,
qx.ui.core.MRemoteLayoutHandling],
construct:function(m){arguments.callee.base.call(this);
var n=this.getChildControl(a);
if(m!=null){this.setOrientation(m);
}else{this.initOrientation();
}this._add(n,
{flex:1});
},
properties:{appearance:{refine:true,
init:l},
orientation:{check:[c,
k],
init:c,
apply:j}},
members:{__lz:null,
getChildrenContainer:function(){return this.getChildControl(f);
},
_createChildControlImpl:function(o){var p;
switch(o){case d:p=new qx.ui.form.RepeatButton;
p.addListener(g,
this._onExecuteForward,
this);
p.setFocusable(false);
this._add(p);
break;
case b:p=new qx.ui.form.RepeatButton;
p.addListener(g,
this._onExecuteBackward,
this);
p.setFocusable(false);
this._addAt(p,
0);
break;
case f:p=new qx.ui.container.Composite();
this.getChildControl(a).add(p);
break;
case a:p=new qx.ui.core.ScrollPane();
p.addListener(i,
this._onResize,
this);
break;
}return p||arguments.callee.base.call(this,
o);
},
_forwardStates:{barLeft:true,
barTop:true,
barRight:true,
barBottom:true},
scrollBy:function(q){var r=this.getChildControl(a);
if(this.__lz){r.scrollByX(q);
}else{r.scrollByY(q);
}},
scrollTo:function(s){var r=this.getChildControl(a);
if(this.__lz){r.scrollToX(s);
}else{r.scrollToY(s);
}},
_applyOrientation:function(s,
t){if(s==c){this._setLayout(new qx.ui.layout.HBox());
this.setLayout(new qx.ui.layout.HBox());
this.__lz=true;
}else{this._setLayout(new qx.ui.layout.VBox());
this.setLayout(new qx.ui.layout.VBox());
this.__lz=false;
}},
_onResize:function(u){var v=this.getChildControl(a).getChild();
if(!v){return;
}var w=this.getInnerSize();
var x=v.getBounds();
var y=this.__lz?x.width>w.width:x.height>w.height;
y?this._showArrows():this._hideArrows();
},
_onExecuteBackward:function(){this.scrollBy(-20);
},
_onExecuteForward:function(){this.scrollBy(20);
},
_showArrows:function(){this._showChildControl(d);
this._showChildControl(b);
},
_hideArrows:function(){this._excludeChildControl(d);
this._excludeChildControl(b);
this.scrollTo(0);
}}});
})();
(function(){var a="Boolean",
b="qx.ui.container.Stack",
c="change",
d="_applyDynamic",
e="qx.ui.core.Widget",
f="_applySelected";
qx.Class.define(b,
{extend:qx.ui.core.Widget,
construct:function(){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.Grow);
},
properties:{dynamic:{check:a,
init:false,
apply:d},
selected:{check:e,
apply:f,
event:c,
nullable:true}},
members:{_applyDynamic:function(g){var h=this._getChildren();
var j=this.getSelected();
var k;
for(var m=0,
n=h.length;m<n;m++){k=h[m];
if(k!=j){if(g){h[m].exclude();
}else{h[m].hide();
}}}},
_applySelected:function(g,
o){if(o){if(this.isDynamic()){o.exclude();
}else{o.hide();
}}
if(g){g.show();
}},
add:function(p){this._add(p);
var j=this.getSelected();
if(!j){this.setSelected(p);
}else if(j!==p){if(this.isDynamic()){p.exclude();
}else{p.hide();
}}},
remove:function(p){this._remove(p);
if(this.getSelected()===p){var q=this._getChildren()[0];
if(q){this.setSelected(q);
}else{this.resetSelected();
}}},
indexOf:function(p){return this._indexOf(p);
},
getChildren:function(){return this._getChildren();
},
previous:function(){var j=this.getSelected();
var r=this._indexOf(j)-1;
var h=this._getChildren();
if(r<0){r=h.length-1;
}var s=h[r];
this.setSelected(s);
},
next:function(){var j=this.getSelected();
var r=this._indexOf(j)+1;
var h=this._getChildren();
var t=h[r]||h[0];
this.setSelected(t);
}}});
})();
(function(){var a="right",
b="above",
c="left",
d="under",
e="qx.ui.tree.SelectionManager";
qx.Class.define(e,
{extend:qx.ui.core.selection.ScrollArea,
members:{_getSelectableLocationY:function(f){var g=f.getBounds();
if(g){var h=this._getWidget().getItemTop(f);
return {top:h,
bottom:h+g.height};
}},
_isSelectable:function(f){return f instanceof qx.ui.tree.AbstractTreeItem;
},
_getSelectableFromTarget:function(i){return this._getWidget().getTreeItem(i);
},
getSelectables:function(){var j=this._getWidget();
return j.getRoot().getItems(true,
false,
j.getHideRoot());
},
_getSelectableRange:function(k,
l){if(k===l){return [k];
}var m=this.getSelectables();
var n=m.indexOf(k);
var o=m.indexOf(l);
if(n<0||o<0){return [];
}
if(n<o){return m.slice(n,
o+1);
}else{return m.slice(o,
n+1);
}},
_getFirstSelectable:function(){return this.getSelectables()[0]||null;
},
_getLastSelectable:function(){var m=this.getSelectables();
if(m.length>0){return m[m.length-1];
}else{return null;
}},
_getRelatedSelectable:function(f,
p){var j=this._getWidget();
switch(p){case b:return j.getPreviousSiblingOf(f,
false);
case d:return j.getNextSiblingOf(f,
false);
case c:if(f.isOpenable()&&f.isOpen()){f.setOpen(false);
}break;
case a:if(f.isOpenable()&&!f.isOpen()){f.setOpen(true);
}break;
}return null;
}}});
})();
(function(){var a="dblclick",
b="click",
c="visible",
d="Boolean",
f="excluded",
g="qx.event.type.Data",
h="_applyHideRoot",
i="none",
j="_applyRootOpenClose",
k="_applyOpenMode",
l="changeRoot",
m="changeOpenMode",
n="pane",
o="__lA",
p="_applyRoot",
q="qx.ui.tree.Tree",
r="qx.ui.tree.AbstractTreeItem",
s="tree";
qx.Class.define(q,
{extend:qx.ui.core.AbstractScrollArea,
implement:[qx.ui.core.ISingleSelection,
qx.ui.core.IMultiSelection],
include:[qx.ui.core.MSelectionHandling,
qx.ui.core.MContentPadding],
construct:function(){arguments.callee.base.call(this);
this.__lA=new qx.ui.container.Composite(new qx.ui.layout.VBox()).set({allowShrinkY:false,
allowGrowX:true});
this.getChildControl(n).add(this.__lA);
this.initOpenMode();
this.initRootOpenClose();
},
events:{addItem:g,
removeItem:g},
properties:{openMode:{check:[b,
a,
i],
init:a,
apply:k,
event:m,
themeable:true},
root:{check:r,
init:null,
nullable:true,
event:l,
apply:p},
hideRoot:{check:d,
init:false,
apply:h},
rootOpenClose:{check:d,
init:false,
apply:j},
appearance:{refine:true,
init:s},
focusable:{refine:true,
init:true}},
members:{__lA:null,
SELECTION_MANAGER:qx.ui.tree.SelectionManager,
getChildrenContainer:function(){return this.__lA;
},
_applyRoot:function(t,
u){var v=this.getChildrenContainer();
if(u){v.remove(u);
if(u.hasChildren()){v.remove(u.getChildrenContainer());
}}
if(t){v.add(t);
if(t.hasChildren()){v.add(t.getChildrenContainer());
}t.setVisibility(this.getHideRoot()?f:c);
t.recursiveAddToWidgetQueue();
}},
_applyHideRoot:function(t,
u){var w=this.getRoot();
if(!w){return;
}w.setVisibility(t?f:c);
w.recursiveAddToWidgetQueue();
},
_applyRootOpenClose:function(t,
u){var w=this.getRoot();
if(!w){return;
}w.recursiveAddToWidgetQueue();
},
_getContentPaddingTarget:function(){return this.__lA;
},
getNextSiblingOf:function(x,
y){if((y!==false||x.isOpen())&&x.hasChildren()){return x.getChildren()[0];
}
while(x){var z=x.getParent();
if(!z){return null;
}var A=z.getChildren();
var B=A.indexOf(x);
if(B>-1&&B<A.length-1){return A[B+1];
}x=z;
}return null;
},
getPreviousSiblingOf:function(x,
y){var z=x.getParent();
if(!z){return null;
}
if(this.getHideRoot()){if(z==this.getRoot()){if(z.getChildren()[0]==x){return null;
}}}else{if(x==this.getRoot()){return null;
}}var A=z.getChildren();
var B=A.indexOf(x);
if(B>0){var C=A[B-1];
while((y!==false||C.isOpen())&&C.hasChildren()){var D=C.getChildren();
C=D[D.length-1];
}return C;
}else{return z;
}},
getItems:function(E,
y){return this.getRoot().getItems(E,
y,
this.getHideRoot());
},
scrollChildIntoViewY:function(F,
G,
H){if(!this.getNextSiblingOf(F,
false)){this.scrollToY(1000000);
}else{arguments.callee.base.call(this,
F,
G,
H);
}},
getTreeItem:function(I){while(I){if(I==this){return null;
}
if(I instanceof qx.ui.tree.AbstractTreeItem){return I;
}I=I.getLayoutParent();
}return null;
},
_applyOpenMode:function(t,
u){if(u==b){this.removeListener(b,
this._onOpen,
this);
}else if(u==a){this.removeListener(a,
this._onOpen,
this);
}
if(t==b){this.addListener(b,
this._onOpen,
this);
}else if(t==a){this.addListener(a,
this._onOpen,
this);
}},
_onOpen:function(J){var x=this.getTreeItem(J.getTarget());
if(!x||!x.isOpenable()){return;
}x.setOpen(!x.isOpen());
J.stopPropagation();
}},
destruct:function(){this._disposeObjects(o);
}});
})();
(function(){var a="open",
b="auto",
c="icon",
d="middle",
f="label",
g="changeOpen",
h="excluded",
j="String",
k="visible",
m="opened",
n="always",
o="qx.ui.tree.AbstractTreeItem",
p="addItem",
q="Boolean",
r="__lB",
s="Integer",
t="_applyIndent",
u="changeOpenSymbolMode",
v="_applyOpenSymbolMode",
w="-label",
x="-icon",
y="__lF",
z="resize",
A="",
B="removeItem",
C="__lC",
D="abstract",
E="never",
F="_applyIcon",
G="_applyOpen",
H="_applyLabel";
qx.Class.define(o,
{extend:qx.ui.core.Widget,
type:D,
construct:function(){arguments.callee.base.call(this);
this.__lB=[];
this._setLayout(new qx.ui.layout.HBox());
this._addWidgets();
this.initOpen();
},
properties:{open:{check:q,
init:false,
event:g,
apply:G},
openSymbolMode:{check:[n,
E,
b],
init:b,
event:u,
apply:v},
indent:{check:s,
init:19,
apply:t,
themeable:true},
parent:{check:o,
nullable:true},
icon:{check:j,
apply:F,
nullable:true,
themeable:true},
label:{check:j,
apply:H,
init:A,
dispose:true}},
members:{__lB:null,
__lC:null,
__lD:null,
__lE:null,
__lF:null,
_addWidgets:function(){throw new Error("Abstract method call.");
},
_createChildControlImpl:function(I){var J;
switch(I){case f:J=new qx.ui.basic.Label().set({appearance:this.getAppearance()+w,
alignY:d});
break;
case c:J=new qx.ui.basic.Image().set({appearance:this.getAppearance()+x,
alignY:d});
break;
case a:J=new qx.ui.tree.FolderOpenButton().set({alignY:d});
J.addListener(g,
this._onChangeOpen,
this);
J.addListener(z,
this._updateIndent,
this);
break;
}return J||arguments.callee.base.call(this,
I);
},
getTree:function(){var K=this;
while(K.getParent()){K=K.getParent();
}var L=K.getLayoutParent()?K.getLayoutParent().getLayoutParent():0;
if(L&&L instanceof qx.ui.core.ScrollPane){return L.getLayoutParent();
}return null;
},
addWidget:function(M,
N){this._add(M,
N);
},
addSpacer:function(){if(!this.__lF){this.__lF=new qx.ui.core.Spacer();
}else{this._remove(this.__lF);
}this._add(this.__lF);
},
addOpenButton:function(){this._add(this.getChildControl(a));
},
_onChangeOpen:function(O){if(this.isOpenable()){this.setOpen(O.getData());
}},
addIcon:function(){var P=this.getChildControl(c);
if(this.__lE){this._remove(P);
}this._add(P);
this.__lE=true;
},
addLabel:function(Q){var R=this.getChildControl(f);
if(this.__lD){this._remove(R);
}
if(Q){this.setLabel(Q);
}else{R.setContent(this.getLabel());
}this._add(R);
this.__lD=true;
},
addState:function(S){arguments.callee.base.call(this,
S);
var T=this._getChildren();
for(var U=0,
V=T.length;U<V;U++){var W=T[U];
if(W.addState){T[U].addState(S);
}}},
removeState:function(S){arguments.callee.base.call(this,
S);
var T=this._getChildren();
for(var U=0,
V=T.length;U<V;U++){var W=T[U];
if(W.addState){T[U].removeState(S);
}}},
_applyIcon:function(X,
Y){this.getChildControl(c).setSource(X);
},
_applyLabel:function(X,
Y){this.getChildControl(f).setContent(X);
},
_applyOpen:function(X,
Y){if(this.hasChildren()){this.getChildrenContainer().setVisibility(X?k:h);
}var ba=this.getChildControl(a,
true);
if(ba){ba.setOpen(X);
}X?this.addState(m):this.removeState(m);
},
isOpenable:function(){var bb=this.getOpenSymbolMode();
return (bb===n||bb===b&&this.hasChildren());
},
_shouldShowOpenSymbol:function(){var ba=this.getChildControl(a,
true);
if(!ba){return false;
}var L=this.getTree();
if(!L.getRootOpenClose()){if(L.getHideRoot()){if(L.getRoot()==this.getParent()){return false;
}}else{if(L.getRoot()==this){return false;
}}}return this.isOpenable();
},
_applyOpenSymbolMode:function(X,
Y){this._updateIndent();
},
_updateIndent:function(){if(!this.getTree()){return;
}var bc=0;
var ba=this.getChildControl(a,
true);
if(ba){if(this._shouldShowOpenSymbol()){ba.show();
var bd=ba.getBounds();
if(bd){bc=bd.width;
}else{return;
}}else{ba.exclude();
}}this.__lF.setWidth((this.getLevel()+1)*this.getIndent()-bc);
},
_applyIndent:function(X,
Y){this._updateIndent();
},
getLevel:function(){var L=this.getTree();
if(!L){return;
}var K=this;
var be=-1;
while(K){K=K.getParent();
be+=1;
}if(L.getHideRoot()){be-=1;
}
if(!L.getRootOpenClose()){be-=1;
}return be;
},
syncWidget:function(){this._updateIndent();
},
getChildrenContainer:function(){if(!this.__lC){this.__lC=new qx.ui.container.Composite(new qx.ui.layout.VBox()).set({visibility:this.isOpen()?k:h});
}return this.__lC;
},
getParentChildrenContainer:function(){if(this.getParent()){return this.getParent().getChildrenContainer();
}else if(this.getLayoutParent()){return this.getLayoutParent();
}else{return null;
}},
getChildren:function(){return this.__lB;
},
hasChildren:function(){return this.__lB?this.__lB.length>0:false;
},
getItems:function(bf,
bg,
bh){if(bh!==false){var bi=[];
}else{var bi=[this];
}var bj=this.hasChildren()&&(bg!==false||this.isOpen());
if(bj){var T=this.getChildren();
if(bf===false){bi=bi.concat(T);
}else{for(var U=0,
bk=T.length;U<bk;U++){bi=bi.concat(T[U].getItems(bf,
bg,
false));
}}}return bi;
},
recursiveAddToWidgetQueue:function(){var T=this.getItems(true,
true,
false);
for(var U=0,
V=T.length;U<V;U++){qx.ui.core.queue.Widget.add(T[U]);
}},
__lG:function(){if(this.getParentChildrenContainer()){this.getParentChildrenContainer()._addAfter(this.getChildrenContainer(),
this);
}},
add:function(bl){var bm=this.getChildrenContainer();
var L=this.getTree();
for(var U=0,
V=arguments.length;U<V;U++){var K=arguments[U];
var bn=K.getParent();
if(bn){bn.remove(K);
}K.setParent(this);
var bo=this.hasChildren();
bm.add(K);
if(K.hasChildren()){bm.add(K.getChildrenContainer());
}this.__lB.push(K);
if(!bo){this.__lG();
}
if(L){K.recursiveAddToWidgetQueue();
L.fireNonBubblingEvent(p,
qx.event.type.Data,
[K]);
}}
if(L){qx.ui.core.queue.Widget.add(this);
}},
addAt:function(K,
bp){{};
if(bp==this.__lB.length){this.add(K);
return;
}var bn=K.getParent();
if(bn){bn.remove(K);
}var bm=this.getChildrenContainer();
K.setParent(this);
var bo=this.hasChildren();
var bq=this.__lB[bp];
bm.addBefore(K,
bq);
if(K.hasChildren()){bm.addAfter(K.getChildrenContainer(),
K);
}qx.lang.Array.insertAt(this.__lB,
K,
bp);
if(!bo){this.__lG();
}
if(this.getTree()){K.recursiveAddToWidgetQueue();
qx.ui.core.queue.Widget.add(this);
}},
addBefore:function(K,
br){{};
this.addAt(K,
this.__lB.indexOf(br));
},
addAfter:function(K,
bs){{};
this.addAt(K,
this.__lB.indexOf(bs)+1);
},
addAtBegin:function(K){this.addAt(K,
0);
},
remove:function(bl){for(var U=0,
V=arguments.length;U<V;U++){var K=arguments[U];
if(this.__lB.indexOf(K)==-1){this.warn("Cannot remove treeitem '"+K+"'. It is not a child of this tree item.");
return;
}var bm=this.getChildrenContainer();
if(K.hasChildren()){bm.remove(K.getChildrenContainer());
}qx.lang.Array.remove(this.__lB,
K);
K.setParent(null);
bm.remove(K);
}var L=this.getTree();
if(L){L.fireNonBubblingEvent(B,
qx.event.type.Data,
[K]);
}qx.ui.core.queue.Widget.add(this);
},
removeAt:function(bp){var bt=this.__lB[bp];
if(bt){this.remove(bt);
}},
removeAll:function(){for(var U=this.__lB.length-1;U>=0;U--){this.remove(this.__lB[U]);
}}},
destruct:function(){this._disposeArray(r);
this._disposeObjects(y,
C);
}});
})();
(function(){var a="opened",
b="click",
c="mousedown",
d="Boolean",
f="qx.ui.tree.FolderOpenButton",
g="_applyOpen",
h="mouseup",
i="Space",
j="keypress",
k="changeOpen",
l="Enter";
qx.Class.define(f,
{extend:qx.ui.basic.Image,
include:qx.ui.core.MExecutable,
construct:function(){arguments.callee.base.call(this);
this.initOpen();
this.addListener(j,
this._onKeyPress);
this.addListener(b,
this._onClick);
this.addListener(c,
this._stopPropagation,
this);
this.addListener(h,
this._stopPropagation,
this);
},
properties:{open:{check:d,
init:false,
event:k,
apply:g}},
members:{_applyOpen:function(m,
n){m?this.addState(a):this.removeState(a);
this.execute();
},
_onKeyPress:function(o){switch(o.getKeyIdentifier()){case l:case i:this.toggleOpen();
o.stopPropagation();
}},
_stopPropagation:function(o){o.stopPropagation();
},
_onClick:function(o){this.toggleOpen();
o.stopPropagation();
}}});
})();
(function(){var a="button",
b="",
c="String",
d="_applyIcon",
e="qx.ui.tabview.Page",
f="tabview-page",
g="_applyLabel";
qx.Class.define(e,
{extend:qx.ui.container.Composite,
construct:function(h,
i){arguments.callee.base.call(this);
this._createChildControl(a);
if(h!=null){this.setLabel(h);
}
if(i!=null){this.setIcon(i);
}},
properties:{appearance:{refine:true,
init:f},
label:{check:c,
init:b,
apply:g},
icon:{check:c,
init:b,
apply:d}},
members:{_forwardStates:{barTop:1,
barRight:1,
barBottom:1,
barLeft:1,
firstTab:1,
lastTab:1},
_applyIcon:function(j,
k){this.getChildControl(a).setIcon(j);
},
_applyLabel:function(j,
k){this.getChildControl(a).setLabel(j);
},
_applyEnabled:function(j,
k){arguments.callee.base.call(this,
j,
k);
var l=this.getChildControl(a);
j==null?l.resetEnabled():l.setEnabled(j);
},
_createChildControlImpl:function(m){var n;
switch(m){case a:n=new qx.ui.form.RadioButton;
n.setAllowGrowX(true);
n.setAllowGrowY(true);
n.setValue(this.toHashCode());
this._add(n);
break;
}return n||arguments.callee.base.call(this,
m);
},
getButton:function(){return this.getChildControl(a);
}}});
})();
(function(){var a='',
b=', ',
c="spamfighter.ui.PropertiesPage",
d="__lI",
e="__lJ",
f="__lH",
g="Значение:",
h="Тип:",
i="__lL",
j="spamfighter/icon/16/apps/utilities-archiver.png",
k="__lK",
l="changeSelection",
m="Свойства",
n="Интерфейсы:",
o="Подробности";
qx.Class.define(c,
{extend:qx.ui.tabview.Page,
construct:function(){arguments.callee.base.call(this,
m,
j);
this.setLayout(new qx.ui.layout.HBox(4));
this.__lH=new qx.ui.form.List();
this.add(this.__lH);
var p=new qx.ui.groupbox.GroupBox(o);
p.setLayout(new qx.ui.layout.Grid(4,
4).setColumnFlex(1,
2));
p.add(new qx.ui.basic.Label(h),
{column:0,
row:0});
this.__lI=new qx.ui.form.TextField().set({allowGrowY:true,
readOnly:true});
p.add(this.__lI,
{column:1,
row:0});
p.add(new qx.ui.basic.Label(g),
{column:0,
row:1});
this.__lJ=new qx.ui.form.TextField().set({allowGrowY:true,
readOnly:true,
width:200});
p.add(this.__lJ,
{column:1,
row:1});
p.add(new qx.ui.basic.Label(n),
{column:0,
row:2});
this.__lK=new qx.ui.form.TextField().set({allowGrowY:true,
readOnly:true});
p.add(this.__lK,
{column:1,
row:2});
this.add(p,
{flex:2});
this.__lH.addListener(l,
this._propListSelectionChanged,
this);
this.__lL=null;
},
destruct:function(){this._disposeFields(f,
d,
e,
i,
k);
},
members:{__lH:null,
__lI:null,
__lJ:null,
__lK:null,
__lL:null,
domainChanged:function(q){this.__lL=q;
this.__lH.removeAll();
this.__lL.getProperties().addCallback(qx.lang.Function.bind(this._updatePropsList,
this));
},
_updatePropsList:function(r){for(prop in r){this.__lH.add(new qx.ui.form.ListItem(prop,
null,
prop));
}},
_propListSelectionChanged:function(){var s=this.__lH.getSelectedItem();
if(s==null){this.__lI.setValue(a);
this.__lJ.setValue(a);
this.__lK.setValue(a);
}else{var t=this;
this.__lL.getProperties().addCallback(function(r){var u=r[s.getValue()];
t.__lI.setValue(u.classname);
t.__lJ.setValue(u.repr);
t.__lK.setValue(u.interfaces.join(b));
});
}}}});
})();
(function(){var a="qx.ui.form.IRadioItem",
b="boolean",
c="qx.event.type.Data";
qx.Interface.define(a,
{extend:qx.ui.form.IFormElement,
events:{"changeChecked":c},
members:{setChecked:function(d){this.assertType(d,
b);
},
getChecked:function(){},
setGroup:function(d){this.assertInstance(d,
qx.ui.form.RadioGroup);
},
getGroup:function(){}}});
})();
(function(){var a="checked",
b="_applyChecked",
c="keypress",
d="Boolean",
f="Right",
g="changeChecked",
h="qx.ui.form.RadioButton",
i="radiobutton",
j="Left",
k="qx.ui.form.RadioGroup",
l="Down",
m="_applyGroup",
n="Up",
o="execute";
qx.Class.define(h,
{extend:qx.ui.form.Button,
implement:qx.ui.form.IRadioItem,
construct:function(p){{};
arguments.callee.base.call(this,
p);
this.addListener(o,
this._onExecute);
this.addListener(c,
this._onKeyPress);
},
properties:{group:{check:k,
nullable:true,
apply:m},
checked:{check:d,
init:false,
apply:b,
event:g},
appearance:{refine:true,
init:i},
allowGrowX:{refine:true,
init:false}},
members:{isTabable:function(){return this.isFocusable()&&this.isChecked();
},
_applyChecked:function(q,
r){q?this.addState(a):this.removeState(a);
if(q&&this.getFocusable()){this.focus();
}},
_applyGroup:function(q,
r){if(r){r.remove(this);
}
if(q){q.add(this);
}},
_onExecute:function(s){this.setChecked(true);
},
_onKeyPress:function(s){var t=this.getGroup();
if(!t){return;
}
switch(s.getKeyIdentifier()){case j:case n:t.selectPrevious();
break;
case f:case l:t.selectNext();
break;
}}}});
})();
(function(){var a="legend",
b="frame",
c="middle",
d="top",
f="resize",
g="qx.ui.groupbox.GroupBox",
h="groupbox",
i="_applyLegendPosition";
qx.Class.define(g,
{extend:qx.ui.core.Widget,
include:[qx.ui.core.MRemoteChildrenHandling,
qx.ui.core.MRemoteLayoutHandling,
qx.ui.core.MContentPadding],
construct:function(j,
k){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.Canvas);
this._createChildControl(b);
this._createChildControl(a);
if(j!=null){this.setLegend(j);
}
if(k!=null){this.setIcon(k);
}},
properties:{appearance:{refine:true,
init:h},
legendPosition:{check:[d,
c],
init:c,
apply:i,
themeable:true}},
members:{_createChildControlImpl:function(l){var m;
switch(l){case b:m=new qx.ui.container.Composite();
this._add(m,
{left:0,
top:6,
right:0,
bottom:0});
break;
case a:m=new qx.ui.basic.Atom();
m.addListener(f,
this._repositionFrame,
this);
this._add(m);
break;
}return m||arguments.callee.base.call(this,
l);
},
_getContentPaddingTarget:function(){return this.getChildControl(b);
},
_applyLegendPosition:function(n){if(this.getChildControl(a).getBounds()){this._repositionFrame();
}},
_repositionFrame:function(){var j=this.getChildControl(a);
var o=this.getChildControl(b);
var p=j.getBounds().height;
if(this.getLegendPosition()==c){o.setLayoutProperties({"top":Math.round(p/2)});
}else if(this.getLegendPosition()==d){o.setLayoutProperties({"top":p});
}},
getChildrenContainer:function(){return this.getChildControl(b);
},
setLegend:function(j){var m=this.getChildControl(a);
if(j!==null){m.setLabel(j);
m.show();
}else{m.exclude();
}},
getLegend:function(){return this.getChildControl(a).getLabel();
},
setIcon:function(k){this.getChildControl(a).setIcon(k);
},
getIcon:function(){this.getChildControl(a).getIcon();
}}});
})();
(function(){var a="execute",
b='',
c="Установить",
d="Firewall:",
e="__lR",
f="__lP",
g="spamfighter/icon/22/actions/media-playback-start.png",
h='</b>',
i="spamfighter.ui.FirewallPage",
j="__lM",
k="<>",
l="__lO",
m="spamfighter/icon/16/apps/utilities-help.png",
n="",
o="Firewall",
p="spamfighter/icon/22/actions/edit-undo.png",
q="Тест",
r="Тестовое сообщение:",
s="Проверить",
t="spamfighter/icon/16/apps/preferences-locale.png",
u="__lQ",
v='Результат: <b>',
w='Результат: ?',
x="spamfighter/icon/22/actions/dialog-apply.png",
y="__lN";
qx.Class.define(i,
{extend:qx.ui.tabview.Page,
construct:function(){arguments.callee.base.call(this,
o,
m);
this.setLayout(new qx.ui.layout.VBox(4));
var z=new qx.ui.groupbox.GroupBox(d);
z.setLayout(new qx.ui.layout.HBox(4));
this.__lM=new qx.ui.form.TextArea();
z.add(this.__lM,
{flex:1});
var A=new qx.ui.container.Composite(new qx.ui.layout.VBox(4));
this.__lN=new qx.ui.form.Button(s,
p);
A.add(this.__lN);
this.__lO=new qx.ui.form.Button(c,
x);
A.add(this.__lO);
z.add(A);
this.add(z,
{flex:2});
this.__lP=new spamfighter.ui.MessageWidget(r);
this.add(this.__lP,
{flex:1});
var B=new qx.ui.container.Composite(new qx.ui.layout.HBox(4));
var C=new qx.ui.form.Button(q,
g);
this.__lQ=new qx.ui.basic.Atom(n,
t).set({rich:true});
B.add(C);
B.add(this.__lQ);
this.add(B);
this.__lN.addListener(a,
this._firewallCheck,
this);
this.__lO.addListener(a,
this._firewallSet,
this);
C.addListener(a,
this._firewallTest,
this);
this.__lR=null;
},
destruct:function(){this._disposeFields(j,
l,
y,
f,
u,
e);
},
members:{__lM:null,
__lO:null,
__lN:null,
__lP:null,
__lQ:null,
__lR:null,
domainChanged:function(D){this.__lR=D;
this.__lQ.setLabel(b);
this.__lR.getFirewall().addCallback(qx.lang.Function.bind(this._loadFirewallRules,
this));
},
_loadFirewallRules:function(E){if(E==null){this.__lM.setEnabled(false);
this.__lN.setEnabled(false);
this.__lO.setEnabled(false);
this.__lM.setValue(k);
}else{this.__lM.setEnabled(true);
this.__lN.setEnabled(true);
this.__lO.setEnabled(true);
E.getRules().addCallback(qx.lang.Function.bind(function(F){this.__lM.setValue(F);
},
this));
}},
_firewallCheck:function(){this.__lR.getFirewall().addCallback(qx.lang.Function.bind(function(E){return E.syntaxCheck(this.__lM.getValue());
},
this)).addCallback(function(_){alert('OK');
}).addErrback(function(G){if(G instanceof spamfighter.model.FirewallSyntaxError){alert(G.toString());
}});
},
_firewallSet:function(){this.__lR.getFirewall().addCallback(qx.lang.Function.bind(function(E){return E.setRules(this.__lM.getValue());
},
this)).addErrback(function(G){if(G instanceof spamfighter.model.FirewallSyntaxError){alert(G.toString());
}});
},
_firewallTest:function(){this.__lQ.setLabel(w);
this.__lP.getMessage().analyze(this.__lR,
true).addCallback(qx.lang.Function.bind(function(H){this.__lQ.setLabel(v+escape(H.result)+h);
alert(H.log);
},
this)).addErrback(function(G){alert(G.toString());
});
}}});
})();
(function(){var a="textarea",
b="qx.ui.form.TextArea",
c="_applyWrap",
d="Boolean";
qx.Class.define(b,
{extend:qx.ui.form.AbstractField,
construct:function(e){arguments.callee.base.call(this,
e);
this.initWrap();
},
properties:{wrap:{check:d,
init:true,
apply:c},
appearance:{refine:true,
init:a}},
members:{_createInputElement:function(){var f=new qx.html.Input(a);
return f;
},
_applyWrap:function(e,
g){this.getContentElement().setWrap(e);
},
_getContentHint:function(){var h=arguments.callee.base.call(this);
h.height=h.height*4;
h.width=this._getTextSize().width*20;
return h;
}}});
})();
(function(){var a="ID отправителя:",
b="",
c="__lT",
d="__lS",
e='',
f="spamfighter.ui.MessageWidget",
g="<Текст сообщения>",
h="Текст:";
qx.Class.define(f,
{extend:qx.ui.groupbox.GroupBox,
construct:function(i){arguments.callee.base.call(this,
i);
this.setLayout(new qx.ui.layout.Grid(4,
4).setColumnFlex(1,
2));
this.add(new qx.ui.basic.Label(h),
{row:0,
column:0});
this.__lS=new qx.ui.form.TextArea(g);
this.add(this.__lS,
{row:0,
column:1});
this.add(new qx.ui.basic.Label(a),
{row:1,
column:0});
this.__lT=new qx.ui.form.TextField(b);
this.add(this.__lT,
{row:1,
column:1});
},
destruct:function(){this._disposeFields(d,
c);
},
members:{__lS:null,
__lT:null,
getMessage:function(){var j=new spamfighter.model.Message();
j.setText(this.__lS.getValue());
if(this.__lT.getValue()!=e)j.setFrom(parseInt(this.__lT.getValue()));
return j;
}}});
})();
(function(){var a="execute",
b="Модель ",
c=" классифицировала сообщение \"",
d="Хорошо",
e="Сообщение:",
f="\" [\"",
g="changeSelected",
h=" успешно обучена на сообщении \"",
i="Обучить как",
j="\"].\n",
k="spamfighter/icon/22/actions/system-run.png",
l="Модели",
m="__lV",
n="__mb",
o="__lX",
p="Ошибка при обучении\n",
q="Модель:",
r="spamfighter/icon/16/apps/utilities-dictionary.png",
s="Лог действий:",
t="good",
u="bad",
v="spamfighter/icon/22/actions/list-add.png",
w="\".\n",
x="\" как \"",
y="Классифицировать",
z="spamfighter.ui.ModelPage",
A="__lU",
B="__lW",
C="__ma",
D="Ошибка при классификации\n",
E="Плохо",
F="__lY";
qx.Class.define(z,
{extend:qx.ui.tabview.Page,
construct:function(){arguments.callee.base.call(this,
l,
r);
this.setLayout(new qx.ui.layout.Grid(4,
4).setColumnFlex(2,
2).setRowFlex(5,
2));
this.add(new qx.ui.basic.Label(q),
{row:0,
column:0});
this.__lU=new qx.ui.form.SelectBox();
this.add(this.__lU,
{row:0,
column:1});
this.__lV=new spamfighter.ui.MessageWidget(e);
this.add(this.__lV,
{row:1,
column:0,
colSpan:3});
this.__lW=new qx.ui.form.Button(i,
v);
this.add(this.__lW,
{row:2,
column:0});
this.__lX=new qx.ui.form.SelectBox();
this.__lX.add(new qx.ui.form.ListItem(d,
null,
t));
this.__lX.add(new qx.ui.form.ListItem(E,
null,
u));
this.add(this.__lX,
{row:2,
column:1});
this.__lY=new qx.ui.form.Button(y,
k);
this.add(this.__lY,
{row:3,
column:0});
this.add(new qx.ui.basic.Label(s),
{row:4,
column:0});
this.__ma=new qx.ui.form.TextArea();
this.__ma.setReadOnly(true);
this.add(this.__ma,
{row:5,
column:0,
colSpan:3});
this.__mb=null;
this.__lW.addListener(a,
this._trainModel,
this);
this.__lY.addListener(a,
this._classifyModel,
this);
this.__lU.addListener(g,
this._modelSelectionChanged,
this);
},
destruct:function(){this._disposeFields(A,
m,
o,
n,
C,
B,
F);
},
members:{__lU:null,
__lV:null,
__lX:null,
__ma:null,
__lW:null,
__lY:null,
__mb:null,
domainChanged:function(G){this.__mb=G;
this.__lU.removeAll();
this._modelSelectionChanged();
this.__mb.getModels().addCallback(qx.lang.Function.bind(this._updateModelsList,
this));
},
_updateModelsList:function(H){for(L in H){this.__lU.add(new qx.ui.form.ListItem(L,
null,
L));
}},
_modelSelectionChanged:function(){var I=null;
if(this.__lU.hasChildren())I=this.__lU.getSelected();
if(I==null){this.__lW.setEnabled(false);
this.__lY.setEnabled(false);
this.__lX.setEnabled(false);
}else{this.__lW.setEnabled(true);
this.__lY.setEnabled(true);
this.__lX.setEnabled(true);
}},
_trainModel:function(){var J=this;
var K=this.__lX.getValue();
var L=J.__lU.getValue();
var M=J.__lV.getMessage();
this.__mb.getModels().addCallback(function(H){return H[L].train(M,
K);
}).addCallback(function(_){J.__ma.setValue(J.__ma.getValue()+b+L+h+M.getText()+f+K+j);
}).addErrback(function(N){J.__ma.setValue(J.__ma.getValue()+p);
return N;
});
},
_classifyModel:function(){var J=this;
var L=J.__lU.getValue();
var M=J.__lV.getMessage();
this.__mb.getModels().addCallback(function(H){return H[L].classify(M);
}).addCallback(function(K){J.__ma.setValue(J.__ma.getValue()+b+L+c+M.getText()+x+K+w);
}).addErrback(function(N){J.__ma.setValue(J.__ma.getValue()+D);
return N;
});
}}});
})();
(function(){var a="changeSelected",
b="execute",
c="__md",
e="spamfighter/icon/22/emotes/face-sad.png",
f="Дообучение:",
g="__mj",
h="__mh",
i="__ml",
j="плохо",
k="Лог",
l="Лог:",
n="spamfighter.ui.LogPage",
o="__mm",
p="changeSelection",
q="Теги",
r="__mf",
s="spamfighter/icon/16/apps/internet-blog.png",
t="Обучить модель ",
u='3*',
v="__me",
w="__mi",
x="good",
y="__mk",
z="bad",
A='1*',
B="Текст",
C="Когда",
D="как",
E="__mc",
F=', ',
G="хорошо",
H="Сообщения:",
I="spamfighter/icon/22/emotes/face-smile.png",
J="ID";
qx.Class.define(n,
{extend:qx.ui.tabview.Page,
construct:function(){arguments.callee.base.call(this,
k,
s);
this.setLayout(new qx.ui.layout.Grid(4,
4).setColumnFlex(2,
2).setRowFlex(1,
2));
this.add(new qx.ui.basic.Label(l),
{row:0,
column:0});
this.__mc=new qx.ui.form.SelectBox();
this.add(this.__mc,
{row:0,
column:1});
this.add(new qx.ui.basic.Label(H),
{row:1,
column:0});
this.__md=new qx.ui.table.model.Simple();
this.__md.setColumns([J,
C,
B,
q]);
var K=function(L){return this.__me=new qx.ui.table.columnmodel.Resize(L);
};
this.__mf=new qx.ui.table.Table(this.__md,
{'tableColumnModel':qx.lang.Function.bind(K,
this)});
var M=new qx.ui.table.columnmodel.resizebehavior.Default();
this.__me.setBehavior(M);
M.set(0,
{'width':80});
M.set(1,
{'width':80});
M.set(2,
{'width':u});
M.set(3,
{'width':A});
this.__mf.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_INTERVAL_SELECTION);
this.add(this.__mf,
{row:1,
column:1,
colSpan:2});
this.add(new qx.ui.basic.Label(f),
{row:2,
column:0});
var __mg=new qx.ui.container.Composite(new qx.ui.layout.HBox(4));
__mg.add(new qx.ui.basic.Label(t));
this.__mh=new qx.ui.form.SelectBox();
__mg.add(this.__mh);
__mg.add(new qx.ui.basic.Label(D));
this.__mi=new qx.ui.form.Button(G,
I);
__mg.add(this.__mi);
this.__mj=new qx.ui.form.Button(j,
e);
__mg.add(this.__mj);
this.add(__mg,
{row:2,
column:1,
colSpan:2});
this.__mk=null;
this.__ml=null;
this.__mm=null;
this.__mc.addListener(a,
this._logSelectionChanged,
this);
this.__mh.addListener(a,
this._modelSelectionChanged,
this);
this.__mf.getSelectionModel().addListener(p,
this._modelSelectionChanged,
this);
this.__mj.addListener(b,
qx.lang.Function.bind(this._retrainModel,
this,
z));
this.__mi.addListener(b,
qx.lang.Function.bind(this._retrainModel,
this,
x));
},
destruct:function(){this._disposeFields(E,
c,
r,
y,
i,
o,
v,
h,
g,
w);
},
members:{__mc:null,
__md:null,
__mf:null,
__mk:null,
__ml:null,
__mm:null,
__me:null,
__mh:null,
__mi:null,
__mj:null,
domainChanged:function(N){this.__mk=N;
this.__mc.removeAll();
this._logSelectionChanged();
this.__mk.getLogs().addCallback(qx.lang.Function.bind(this._updateLogsList,
this));
this.__mh.removeAll();
this._modelSelectionChanged();
this.__mk.getModels().addCallback(qx.lang.Function.bind(this._updateModelsList,
this));
},
_updateLogsList:function(O){for(Q in O){this.__mc.add(new qx.ui.form.ListItem(Q,
null,
Q));
}},
_logSelectionChanged:function(){if(this.__ml!=null){this.__ml.stop();
this.__ml=null;
}var P=null;
if(this.__mc.hasChildren())P=this.__mc.getSelected();
this.__md.setData([]);
this.__mm=null;
if(P!=null){var Q=this.__mc.getValue();
this.__mk.getLogs().addCallback(qx.lang.Function.bind(function(O){this.__mm=O[Q];
this.__mm.reset();
},
this)).addCallback(qx.lang.Function.bind(this._fetchEntries,
this));
}},
_fetchEntries:function(){this.__ml=null;
this.__mm.fetch().addCallback(qx.lang.Function.bind(function(R){var S=R.map(function(T){return [T.id,
T.getWhenAsTime(),
T.message.getText(),
T.tags.join(F)];
});
if(this.__md.getRowCount()+S.length>500)this.__md.removeRows(0,
this.__md.getRowCount()+S.length-500);
this.__md.addRows(S);
this.__ml=qx.event.Timer.once(this._fetchEntries,
this,
3000);
},
this));
},
_modelSelectionChanged:function(){var P=null;
if(this.__mh.hasChildren())P=this.__mh.getSelected();
if(P==null||this.__mf.getSelectionModel().isSelectionEmpty()){this.__mj.setEnabled(false);
this.__mi.setEnabled(false);
}else{this.__mj.setEnabled(true);
this.__mi.setEnabled(true);
}},
_updateModelsList:function(U){for(bd in U){this.__mh.add(new qx.ui.form.ListItem(bd,
null,
bd));
}},
_retrainModel:function(V){var W=this.__mh.getValue();
var X=[];
this.__mf.getSelectionModel().iterateSelection(function(Y){X.push(this.__md.getRowData(Y)[2]);
},
this);
var ba=X.map(function(bb){var bc=new spamfighter.model.Message();
bc.setText(bb);
return bc;
});
this.__mk.getModels().addCallback(function(U){var bd=U[W];
var be=new spamfighter.lib.Deferred();
ba.forEach(function(bf){be.addCallback(function(_){bd.train(bf,
V);
});
});
be.callback(bd);
return be;
}).addErrback(function(bg){alert("Ошибка при обучении: "+bg);
});
}}});
})();
(function(){var a="qx.event.type.Data",
b="qx.ui.table.ITableModel";
qx.Interface.define(b,
{events:{"dataChanged":a,
"metaDataChanged":a},
statics:{EVENT_TYPE_DATA_CHANGED:"dataChanged",
EVENT_TYPE_META_DATA_CHANGED:"metaDataChanged"},
members:{getRowCount:function(){},
getRowData:function(c){},
getColumnCount:function(){},
getColumnId:function(d){},
getColumnIndexById:function(e){},
getColumnName:function(d){},
isColumnEditable:function(d){},
isColumnSortable:function(d){},
sortByColumn:function(d,
f){},
getSortColumnIndex:function(){},
isSortAscending:function(){},
prefetchRows:function(g,
h){},
getValue:function(d,
c){},
getValueById:function(e,
c){},
setValue:function(d,
c,
i){},
setValueById:function(e,
c,
i){}}});
})();
(function(){var a="qx.event.type.Data",
b="abstract",
c="__mp",
d="qx.ui.table.model.Abstract",
e="__mo",
f="__mn";
qx.Class.define(d,
{type:b,
extend:qx.core.Object,
implement:qx.ui.table.ITableModel,
events:{"dataChanged":a,
"metaDataChanged":a},
construct:function(){arguments.callee.base.call(this);
this.__mn=[];
this.__mo=[];
this.__mp={};
},
members:{__mn:null,
__mo:null,
__mp:null,
__mq:null,
getRowCount:function(){throw new Error("getRowCount is abstract");
},
getRowData:function(g){return null;
},
isColumnEditable:function(h){return false;
},
isColumnSortable:function(h){return false;
},
sortByColumn:function(h,
j){},
getSortColumnIndex:function(){return -1;
},
isSortAscending:function(){return true;
},
prefetchRows:function(k,
l){},
getValue:function(h,
g){throw new Error("getValue is abstract");
},
getValueById:function(m,
g){return this.getValue(this.getColumnIndexById(m),
g);
},
setValue:function(h,
g,
n){throw new Error("setValue is abstract");
},
setValueById:function(m,
g,
n){return this.setValue(this.getColumnIndexById(m),
g,
n);
},
getColumnCount:function(){return this.__mn.length;
},
getColumnIndexById:function(m){return this.__mp[m];
},
getColumnId:function(h){return this.__mn[h];
},
getColumnName:function(h){return this.__mo[h];
},
setColumnIds:function(o){this.__mn=o;
this.__mp={};
for(var p=0;p<o.length;p++){this.__mp[o[p]]=p;
}this.__mo=new Array(o.length);
if(!this.__mq){this.fireEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
}},
setColumnNamesByIndex:function(q){if(this.__mn.length!=q.length){throw new Error("this.__mn and columnNameArr have different length: "+this.__mn.length+" != "+q.length);
}this.__mo=q;
this.fireEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
},
setColumnNamesById:function(r){this.__mo=new Array(this.__mn.length);
for(var p=0;p<this.__mn.length;++p){this.__mo[p]=r[this.__mn[p]];
}},
setColumns:function(q,
o){var s=this.__mn.length==0||o;
if(o==null){if(this.__mn.length==0){o=q;
}else{o=this.__mn;
}}
if(o.length!=q.length){throw new Error("columnIdArr and columnNameArr have different length: "+o.length+" != "+q.length);
}
if(s){this.__mq=true;
this.setColumnIds(o);
this.__mq=false;
}this.setColumnNamesByIndex(q);
}},
destruct:function(){this._disposeFields(f,
e,
c);
}});
})();
(function(){var a="qx.ui.table.model.Simple",
b="Boolean",
c="__mr",
d="__mv",
e="__mt",
f="__mu";
qx.Class.define(a,
{extend:qx.ui.table.model.Abstract,
construct:function(){arguments.callee.base.call(this);
this.__mr=[];
this.__ms=-1;
this.__mw;
this.__mt=[];
this.__mu=null;
},
properties:{caseSensitiveSorting:{check:b,
init:true}},
statics:{_defaultSortComparatorAscending:function(g,
h){var k=g[arguments.callee.columnIndex];
var l=h[arguments.callee.columnIndex];
return (k>l)?1:((k==l)?0:-1);
},
_defaultSortComparatorInsensitiveAscending:function(g,
h){var k=(isNaN(g[arguments.callee.columnIndex])?g[arguments.callee.columnIndex].toLowerCase():g[arguments.callee.columnIndex]);
var l=(isNaN(h[arguments.callee.columnIndex])?h[arguments.callee.columnIndex].toLowerCase():h[arguments.callee.columnIndex]);
return (k>l)?1:((k==l)?0:-1);
},
_defaultSortComparatorDescending:function(g,
h){var k=g[arguments.callee.columnIndex];
var l=h[arguments.callee.columnIndex];
return (k<l)?1:((k==l)?0:-1);
},
_defaultSortComparatorInsensitiveDescending:function(g,
h){var k=(isNaN(g[arguments.callee.columnIndex])?g[arguments.callee.columnIndex].toLowerCase():g[arguments.callee.columnIndex]);
var l=(isNaN(h[arguments.callee.columnIndex])?h[arguments.callee.columnIndex].toLowerCase():h[arguments.callee.columnIndex]);
return (k<l)?1:((k==l)?0:-1);
}},
members:{__mr:null,
__mu:null,
__mv:null,
__mt:null,
__ms:null,
__mw:null,
getRowData:function(m){var n=this.__mr[m];
if(n==null||n.originalData==null){return n;
}else{return n.originalData;
}},
getRowDataAsMap:function(m){var o=this.__mr[m];
var p={};
for(var q=0;q<this.getColumnCount();q++){p[this.getColumnId(q)]=o[q];
}return p;
},
getDataAsMapArray:function(){var r=this.getRowCount();
var s=[];
for(var t=0;t<r;t++){s.push(this.getRowDataAsMap(t));
}return s;
},
setEditable:function(u){this.__mu=[];
for(var q=0;q<this.getColumnCount();q++){this.__mu[q]=u;
}this.fireEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
},
setColumnEditable:function(v,
u){if(u!=this.isColumnEditable(v)){if(this.__mu==null){this.__mu=[];
}this.__mu[v]=u;
this.fireEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
}},
isColumnEditable:function(v){return this.__mu?(this.__mu[v]==true):false;
},
setColumnSortable:function(v,
w){if(w!=this.isColumnSortable(v)){if(this.__mv==null){this.__mv=[];
}this.__mv[v]=w;
this.fireEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
}},
isColumnSortable:function(v){return (this.__mv?(this.__mv[v]!==false):true);
},
sortByColumn:function(v,
x){var y;
var z=this.__mt[v];
if(z){y=(x?z.ascending:z.descending);
}else{if(this.getCaseSensitiveSorting()){y=(x?qx.ui.table.model.Simple._defaultSortComparatorAscending:qx.ui.table.model.Simple._defaultSortComparatorDescending);
}else{y=(x?qx.ui.table.model.Simple._defaultSortComparatorInsensitiveAscending:qx.ui.table.model.Simple._defaultSortComparatorInsensitiveDescending);
}}y.columnIndex=v;
this.__mr.sort(y);
this.__ms=v;
this.__mw=x;
this.fireEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
},
setSortMethods:function(v,
A){this.__mt[v]=A;
},
clearSorting:function(){if(this.__ms!=-1){this.__ms=-1;
this.__mw=true;
this.fireEvent(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED);
}},
getSortColumnIndex:function(){return this.__ms;
},
isSortAscending:function(){return this.__mw;
},
getRowCount:function(){return this.__mr.length;
},
getValue:function(v,
m){if(m<0||m>=this.__mr.length){throw new Error("this.__mr out of bounds: "+m+" (0.."+this.__mr.length+")");
}return this.__mr[m][v];
},
setValue:function(v,
m,
B){if(this.__mr[m][v]!=B){this.__mr[m][v]=B;
if(this.hasListener(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED)){var s={firstRow:m,
lastRow:m,
firstColumn:v,
lastColumn:v};
this.fireDataEvent(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED,
s);
}
if(v==this.__ms){this.clearSorting();
}}},
setData:function(C,
D){this.__mr=C;
if(this.hasListener(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED)){var s={firstRow:0,
lastRow:C.length-1,
firstColumn:0,
lastColumn:this.getColumnCount()-1};
this.fireDataEvent(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED,
s);
}
if(D!==false){this.clearSorting();
}},
getData:function(){return this.__mr;
},
setDataAsMapArray:function(E,
F,
D){this.setData(this._mapArray2RowArr(E,
F),
D);
},
addRows:function(C,
G,
D){if(G==null){G=this.__mr.length;
}C.splice(0,
0,
G,
0);
Array.prototype.splice.apply(this.__mr,
C);
var s={firstRow:G,
lastRow:this.__mr.length-1,
firstColumn:0,
lastColumn:this.getColumnCount()-1};
this.fireDataEvent(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED,
s);
if(D!==false){this.clearSorting();
}},
addRowsAsMapArray:function(E,
G,
F,
D){this.addRows(this._mapArray2RowArr(E,
F),
G,
D);
},
setRows:function(C,
G,
D){if(G==null)G=0;
C.splice(0,
0,
G,
C.length);
Array.prototype.splice.apply(this.__mr,
C);
var s={firstRow:G,
lastRow:this.__mr.length-1,
firstColumn:0,
lastColumn:this.getColumnCount()-1};
this.fireDataEvent(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED,
s);
if(D!==false){this.clearSorting();
}},
setRowsAsMapArray:function(E,
G,
F,
D){this.setRows(this._mapArray2RowArr(E,
F),
G,
D);
},
removeRows:function(G,
H,
D){this.__mr.splice(G,
H);
var s={firstRow:G,
lastRow:this.__mr.length-1,
firstColumn:0,
lastColumn:this.getColumnCount()-1,
removeStart:G,
removeCount:H};
this.fireDataEvent(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED,
s);
if(D!==false){this.clearSorting();
}},
_mapArray2RowArr:function(E,
F){var I=E.length;
var J=this.getColumnCount();
var K=new Array(I);
var o;
for(var t=0;t<I;++t){o=[];
if(F){o.originalData=E[t];
}
for(var L=0;L<J;++L){o[L]=E[t][this.getColumnId(L)];
}K[t]=o;
}return K;
}},
destruct:function(){this._disposeFields(c,
f,
e,
d);
}});
})();
(function(){var a="qx.ui.table.IHeaderRenderer";
qx.Interface.define(a,
{members:{createHeaderCell:function(b){return true;
},
updateHeaderCell:function(b,
c){return true;
}}});
})();
(function(){var a="qx.ui.table.headerrenderer.Default",
b="String";
qx.Class.define(a,
{extend:qx.core.Object,
implement:qx.ui.table.IHeaderRenderer,
statics:{STATE_SORTED:"sorted",
STATE_SORTED_ASCENDING:"sortedAscending"},
properties:{toolTip:{check:b,
init:null,
nullable:true}},
members:{createHeaderCell:function(c){var d=new qx.ui.table.headerrenderer.HeaderCell();
this.updateHeaderCell(c,
d);
return d;
},
updateHeaderCell:function(c,
e){var f=qx.ui.table.headerrenderer.Default;
e.setLabel(c.name);
var g=e.getToolTip();
if(this.getToolTip()!=null){if(g==null){g=new qx.ui.tooltip.ToolTip(this.getToolTip());
e.setToolTip(g);
}else{g.setLabel(this.getToolTip());
}}c.sorted?e.addState(f.STATE_SORTED):e.removeState(f.STATE_SORTED);
c.sortedAscending?e.addState(f.STATE_SORTED_ASCENDING):e.removeState(f.STATE_SORTED_ASCENDING);
}}});
})();
(function(){var a="qx.ui.table.ICellRenderer";
qx.Interface.define(a,
{members:{createDataCellHtml:function(b,
c){return true;
}}});
})();
(function(){var a="",
b="px;",
c=".qooxdoo-table-cell {",
d="qooxdoo-table-cell",
e='" ',
f="nowrap",
g="default",
h="qx.client",
i="}",
j="width:",
k=".qooxdoo-table-cell-right { text-align:right } ",
l="0px 6px",
m='<div class="',
n="0px",
o="height:",
p="1px solid ",
q=".qooxdoo-table-cell-bold { font-weight:bold } ",
r="table-row-line",
s='>',
t="mshtml",
u='</div>',
v="ellipsis",
w="content-box",
x='left:',
y="qx.ui.table.cellrenderer.Abstract",
z='" style="',
A="abstract",
B="none",
C="hidden",
D="} ",
E='px;',
F=".qooxdoo-table-cell-italic { font-style:italic} ",
G="absolute";
qx.Class.define(y,
{type:A,
implement:qx.ui.table.ICellRenderer,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
var H=qx.ui.table.cellrenderer.Abstract;
if(!H.__mx){var I=qx.theme.manager.Color.getInstance();
H.__mx=arguments.callee.self;
var J=c+
qx.bom.element.Style.compile({position:G,
top:n,
overflow:C,
whiteSpace:f,
borderRight:p+I.resolve(r),
padding:l,
cursor:g,
textOverflow:v,
userSelect:B})+D+k+F+q;
if(!qx.core.Variant.isSet(h,
t)){J+=c+qx.bom.element.BoxSizing.compile(w)+i;
}H.__mx.stylesheet=qx.bom.Stylesheet.createElement(J);
}},
members:{_insetX:6+6+1,
_insetY:0,
_getCellClass:function(K){return d;
},
_getCellStyle:function(K){return K.style||a;
},
_getCellAttributes:function(K){return a;
},
_getContentHtml:function(K){return K.value||a;
},
_getCellSizeStyle:function(L,
M,
N,
O){var P=a;
if(qx.bom.client.Feature.CONTENT_BOX){L-=N;
M-=O;
}P+=j+L+b;
P+=o+M+b;
return P;
},
createDataCellHtml:function(K,
Q){Q.push(m,
this._getCellClass(K),
z,
x,
K.styleLeft,
E,
this._getCellSizeStyle(K.styleWidth,
K.styleHeight,
this._insetX,
this._insetY),
this._getCellStyle(K),
e,
this._getCellAttributes(K),
s+this._getContentHtml(K),
u);
}}});
})();
(function(){var a="",
b="number",
c="Boolean",
d="qx.ui.table.cellrenderer.Default",
e=" qooxdoo-table-cell-bold",
f=" qooxdoo-table-cell-right",
g=" qooxdoo-table-cell-italic",
h="string";
qx.Class.define(d,
{extend:qx.ui.table.cellrenderer.Abstract,
statics:{STYLEFLAG_ALIGN_RIGHT:1,
STYLEFLAG_BOLD:2,
STYLEFLAG_ITALIC:4},
properties:{useAutoAlign:{check:c,
init:true}},
members:{_getStyleFlags:function(i){if(this.getUseAutoAlign()){if(typeof i.value==b){return qx.ui.table.cellrenderer.Default.STYLEFLAG_ALIGN_RIGHT;
}}},
_getCellClass:function(i){var j=arguments.callee.base.call(this,
i);
if(!j){return a;
}var k=this._getStyleFlags(i);
if(k&qx.ui.table.cellrenderer.Default.STYLEFLAG_ALIGN_RIGHT){j+=f;
}
if(k&qx.ui.table.cellrenderer.Default.STYLEFLAG_BOLD){j+=e;
}
if(k&qx.ui.table.cellrenderer.Default.STYLEFLAG_ITALIC){j+=g;
}return j;
},
_getContentHtml:function(i){return qx.bom.String.escape(this._formatValue(i));
},
_formatValue:function(i){var l=i.value;
if(l==null){return a;
}
if(typeof l==h){return l;
}else if(typeof l==b){if(!qx.ui.table.cellrenderer.Default._numberFormat){qx.ui.table.cellrenderer.Default._numberFormat=new qx.util.format.NumberFormat();
qx.ui.table.cellrenderer.Default._numberFormat.setMaximumFractionDigits(2);
}var m=qx.ui.table.cellrenderer.Default._numberFormat.format(l);
}else if(l instanceof Date){m=qx.util.format.DateFormat.getDateInstance().format(l);
}else{m=l;
}return m;
}}});
})();
(function(){var a="qx.ui.table.ICellEditorFactory";
qx.Interface.define(a,
{members:{createCellEditor:function(b){return true;
},
getCellEditorValue:function(c){return true;
}}});
})();
(function(){var a="",
b="Function",
c="number",
d="qx.ui.table.celleditor.TextField",
e="table-editor-textfield",
f="appear";
qx.Class.define(d,
{extend:qx.core.Object,
implement:qx.ui.table.ICellEditorFactory,
construct:function(){arguments.callee.base.call(this);
},
properties:{validationFunction:{check:b,
nullable:true,
init:null}},
members:{__my:null,
createCellEditor:function(g){var h=new qx.ui.form.TextField;
h.setAppearance(e);
h.originalValue=g.value;
if(g.value===null){g.value=a;
}h.setValue(a+g.value);
h.addListener(f,
function(){h.selectAll();
});
return h;
},
getCellEditorValue:function(h){var i=h.getValue();
var j=this.getValidationFunction();
if(!this.__my&&j){i=j(i,
h.originalValue);
this.__my=true;
}
if(typeof h.originalValue==c){i=parseFloat(i);
}return i;
}}});
})();
(function(){var a="qx.event.type.Data",
b="visibilityChanged",
c="visibilityChangedPre",
d="__mD",
e="__mE",
f="orderChanged",
g="__mF",
h="widthChanged",
j="qx.ui.table.columnmodel.Basic",
k="__mA",
l="__mC",
m="__mB",
n="__mG";
qx.Class.define(j,
{extend:qx.core.Object,
events:{"widthChanged":a,
"visibilityChangedPre":a,
"visibilityChanged":a,
"orderChanged":a},
statics:{DEFAULT_WIDTH:100,
DEFAULT_HEADER_RENDERER:qx.ui.table.headerrenderer.Default,
DEFAULT_DATA_RENDERER:qx.ui.table.cellrenderer.Default,
DEFAULT_EDITOR_FACTORY:qx.ui.table.celleditor.TextField},
members:{__mz:null,
__mA:null,
__mB:null,
__mC:null,
__mD:null,
__mE:null,
__mF:null,
__mG:null,
init:function(o){this.__mD=[];
var p=qx.ui.table.columnmodel.Basic.DEFAULT_WIDTH;
var q=this.__mE=new qx.ui.table.columnmodel.Basic.DEFAULT_HEADER_RENDERER();
var r=this.__mF=new qx.ui.table.columnmodel.Basic.DEFAULT_DATA_RENDERER();
var s=this.__mG=new qx.ui.table.columnmodel.Basic.DEFAULT_EDITOR_FACTORY();
this.__mC=[];
this.__mB=[];
for(var t=0;t<o;t++){this.__mD[t]={width:p,
headerRenderer:q,
dataRenderer:r,
editorFactory:s};
this.__mC[t]=t;
this.__mB[t]=t;
}this.__mA=null;
for(var t=0;t<o;t++){var u={col:t,
visible:true};
this.fireDataEvent(c,
u);
this.fireDataEvent(b,
u);
}},
getVisibleColumns:function(){return this.__mB!=null?this.__mB:[];
},
setColumnWidth:function(t,
p){var v=this.__mD[t].width;
if(v!=p){this.__mD[t].width=p;
var u={col:t,
newWidth:p,
oldWidth:v};
this.fireDataEvent(h,
u);
}},
getColumnWidth:function(t){return this.__mD[t].width;
},
setHeaderCellRenderer:function(t,
w){var y=this.__mD[t].headerRenderer;
if(y!==this.__mE){y.dispose();
}this.__mD[t].headerRenderer=w;
},
getHeaderCellRenderer:function(t){return this.__mD[t].headerRenderer;
},
setDataCellRenderer:function(t,
w){var y=this.__mD[t].headerRenderer;
if(y!==this.__mF){y.dispose();
}this.__mD[t].dataRenderer=w;
},
getDataCellRenderer:function(t){return this.__mD[t].dataRenderer;
},
setCellEditorFactory:function(t,
z){var y=this.__mD[t].headerRenderer;
if(y!==this.__mG){y.dispose();
}this.__mD[t].editorFactory=z;
},
getCellEditorFactory:function(t){return this.__mD[t].editorFactory;
},
_getColToXPosMap:function(){if(this.__mA==null){this.__mA={};
for(var A=0;A<this.__mC.length;A++){var t=this.__mC[A];
this.__mA[t]={overX:A};
}
for(var B=0;B<this.__mB.length;B++){var t=this.__mB[B];
this.__mA[t].visX=B;
}}return this.__mA;
},
getVisibleColumnCount:function(){return this.__mB!=null?this.__mB.length:0;
},
getVisibleColumnAtX:function(C){return this.__mB[C];
},
getVisibleX:function(t){return this._getColToXPosMap()[t].visX;
},
getOverallColumnCount:function(){return this.__mC.length;
},
getOverallColumnAtX:function(D){return this.__mC[D];
},
getOverallX:function(t){return this._getColToXPosMap()[t].overX;
},
isColumnVisible:function(t){return (this._getColToXPosMap()[t].visX!=null);
},
setColumnVisible:function(t,
E){if(E!=this.isColumnVisible(t)){if(E){var F=this._getColToXPosMap();
var A=F[t].overX;
if(A==null){throw new Error("Showing column failed: "+t+". The column is not added to this TablePaneModel.");
}var G;
for(var H=A+1;H<this.__mC.length;H++){var I=this.__mC[H];
var J=F[I].visX;
if(J!=null){G=J;
break;
}}if(G==null){G=this.__mB.length;
}this.__mB.splice(G,
0,
t);
}else{var B=this.getVisibleX(t);
this.__mB.splice(B,
1);
}this.__mA=null;
if(!this.__mz){var u={col:t,
visible:E};
this.fireDataEvent(c,
u);
this.fireDataEvent(b,
u);
}}},
moveColumn:function(K,
L){this.__mz=true;
var t=this.__mC[K];
var E=this.isColumnVisible(t);
if(E){this.setColumnVisible(t,
false);
}this.__mC.splice(K,
1);
this.__mC.splice(L,
0,
t);
this.__mA=null;
if(E){this.setColumnVisible(t,
true);
}this.__mz=false;
var u={col:t,
fromOverXPos:K,
toOverXPos:L};
this.fireDataEvent(f,
u);
}},
destruct:function(){for(var M=0;M<this.__mD.length;M++){this.__mD[M].headerRenderer.dispose();
this.__mD[M].dataRenderer.dispose();
this.__mD[M].editorFactory.dispose();
}this._disposeFields(l,
m,
d,
k);
this._disposeObjects(e,
g,
n);
}});
})();
(function(){var a="appear",
b="columnVisibilityMenuCreateEnd",
c="tableWidthChanged",
d="verticalScrollBarChanged",
e="qx.ui.table.columnmodel.resizebehavior.Abstract",
f="qx.ui.table.columnmodel.Resize",
g="_applyBehavior",
h="__mJ",
i="visibilityChanged",
j="Reset column widths",
k="changeBehavior",
l="table-column-reset-button",
m="widthChanged",
n="execute";
qx.Class.define(f,
{extend:qx.ui.table.columnmodel.Basic,
include:qx.locale.MTranslation,
construct:function(){arguments.callee.base.call(this);
this.__mH=false;
this.__mI=false;
},
properties:{behavior:{check:e,
init:null,
nullable:true,
apply:g,
event:k}},
members:{__mI:null,
__mH:null,
__mJ:null,
_applyBehavior:function(p,
q){if(q!=null){q.dispose();
q=null;
}p._setNumColumns(this.getOverallColumnCount());
},
init:function(r,
s){arguments.callee.base.call(this,
r);
if(this.getBehavior()==null){this.setBehavior(new qx.ui.table.columnmodel.resizebehavior.Default());
}this.__mJ=s;
s.addListener(a,
this._onappear,
this);
s.addListener(c,
this._onTableWidthChanged,
this);
s.addListener(d,
this._onverticalscrollbarchanged,
this);
this.addListener(m,
this._oncolumnwidthchanged,
this);
this.addListener(i,
this._onvisibilitychanged,
this);
this.__mJ.addListener(b,
this._addResetColumnWidthButton,
this);
this.getBehavior()._setNumColumns(r);
},
getTable:function(){return this.__mJ;
},
_addResetColumnWidthButton:function(t){var u=t.getData();
var v=u.menu;
var w;
w=new qx.ui.menu.Separator();
v.add(w);
w=new qx.ui.menu.Button(this.tr(j)).set({appearance:l});
v.add(w);
w.addListener(n,
this._onappear,
this);
},
_onappear:function(t){if(this.__mH){return ;
}this.__mH=true;
{};
this.getBehavior().onAppear(this,
t,
t.getType()!==a);
this.__mJ._updateScrollerWidths();
this.__mJ._updateScrollBarVisibility();
this.__mH=false;
this.__mI=true;
},
_onTableWidthChanged:function(t){if(this.__mH||!this.__mI){return ;
}this.__mH=true;
{};
this.getBehavior().onTableWidthChanged(this,
t);
this.__mH=false;
},
_onverticalscrollbarchanged:function(t){if(this.__mH||!this.__mI){return ;
}this.__mH=true;
{};
this.getBehavior().onVerticalScrollBarChanged(this,
t);
qx.event.Timer.once(function(){if(this.__mJ&&!this.__mJ.isDisposed()){this.__mJ._updateScrollerWidths();
this.__mJ._updateScrollBarVisibility();
}},
this,
0);
this.__mH=false;
},
_oncolumnwidthchanged:function(t){if(this.__mH||!this.__mI){return ;
}this.__mH=true;
{};
this.getBehavior().onColumnWidthChanged(this,
t);
this.__mH=false;
},
_onvisibilitychanged:function(t){if(this.__mH||!this.__mI){return ;
}this.__mH=true;
{};
this.getBehavior().onVisibilityChanged(this,
t);
this.__mH=false;
}},
destruct:function(){this._disposeFields(h);
}});
})();
(function(){var a="icon",
b="label",
c="String",
d="sort-icon",
e="_applySortIcon",
f="_applyIcon",
g="table-header-cell",
h="qx.ui.table.headerrenderer.HeaderCell",
i="_applyLabel";
qx.Class.define(h,
{extend:qx.ui.container.Composite,
construct:function(){arguments.callee.base.call(this);
var j=new qx.ui.layout.Grid();
j.setRowFlex(0,
1);
j.setColumnFlex(1,
1);
j.setColumnFlex(2,
1);
this.setLayout(j);
},
properties:{appearance:{refine:true,
init:g},
label:{check:c,
init:null,
nullable:true,
apply:i},
sortIcon:{check:c,
init:null,
nullable:true,
apply:e,
themeable:true},
icon:{check:c,
init:null,
nullable:true,
apply:f}},
members:{_applyLabel:function(k,
l){if(k){this._showChildControl(b).setContent(k);
}else{this._excludeChildControl(b);
}},
_applySortIcon:function(k,
l){if(k){this._showChildControl(d).setSource(k);
}else{this._excludeChildControl(d);
}},
_applyIcon:function(k,
l){if(k){this._showChildControl(a).setSource(k);
}else{this._excludeChildControl(a);
}},
_createChildControlImpl:function(m){var n;
switch(m){case b:n=new qx.ui.basic.Label(this.getLabel()).set({anonymous:true,
allowShrinkX:true});
this._add(n,
{row:0,
column:1});
break;
case d:n=new qx.ui.basic.Image(this.getSortIcon());
n.setAnonymous(true);
this._add(n,
{row:0,
column:2});
break;
case a:n=new qx.ui.basic.Image(this.getIcon()).set({anonymous:true,
allowShrinkX:true});
this._add(n,
{row:0,
column:0});
break;
}return n||arguments.callee.base.call(this,
m);
}}});
})();
(function(){var a="atom",
b="Integer",
c="String",
d="_applyRich",
e="qx.ui.tooltip.ToolTip",
f="_applyIcon",
g="tooltip",
h="Boolean",
i="_applyLabel";
qx.Class.define(e,
{extend:qx.ui.popup.Popup,
construct:function(j,
k){arguments.callee.base.call(this);
qx.ui.tooltip.Manager.getInstance();
this.setLayout(new qx.ui.layout.Grow);
this._createChildControl(a);
if(j!=null){this.setLabel(j);
}
if(k!=null){this.setIcon(k);
}},
properties:{appearance:{refine:true,
init:g},
showTimeout:{check:b,
init:1000,
themeable:true},
hideTimeout:{check:b,
init:4000,
themeable:true},
label:{check:c,
nullable:true,
apply:i},
icon:{check:c,
nullable:true,
apply:f,
themeable:true},
rich:{check:h,
init:false,
apply:d}},
members:{_createChildControlImpl:function(l){var m;
switch(l){case a:m=new qx.ui.basic.Atom;
this._add(m);
break;
}return m||arguments.callee.base.call(this,
l);
},
_applyIcon:function(n,
o){var p=this.getChildControl(a);
n==null?p.resetIcon:p.setIcon(n);
},
_applyLabel:function(n,
o){var p=this.getChildControl(a);
n==null?p.resetLabel():p.setLabel(n);
},
_applyRich:function(n,
o){var p=this.getChildControl(a);
p.setRich(n);
}}});
})();
(function(){var a="focusout",
b="interval",
c="mouseover",
d="mousemove",
f="mouseout",
g="qx.ui.tooltip.ToolTip",
h="__mM",
i="__mK",
j="_applyCurrent",
k="qx.ui.tooltip.Manager",
l="__mL",
m="singleton";
qx.Class.define(k,
{type:m,
extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
var n=qx.core.Init.getApplication().getRoot();
n.addListener(c,
this.__mQ,
this,
true);
this.__mK=new qx.event.Timer();
this.__mK.addListener(b,
this.__mN,
this);
this.__mL=new qx.event.Timer();
this.__mL.addListener(b,
this.__mO,
this);
this.__mM={left:0,
top:0};
},
properties:{current:{check:g,
nullable:true,
apply:j}},
members:{__mM:null,
__mL:null,
__mK:null,
_applyCurrent:function(o,
p){if(p&&qx.ui.core.Widget.contains(p,
o)){return;
}if(p){p.exclude();
this.__mK.stop();
this.__mL.stop();
}var n=qx.core.Init.getApplication().getRoot();
if(o){this.__mK.startWith(o.getShowTimeout());
n.addListener(f,
this.__mR,
this,
true);
n.addListener(a,
this.__mS,
this,
true);
n.addListener(d,
this.__mP,
this,
true);
}else{n.removeListener(f,
this.__mR,
this,
true);
n.removeListener(a,
this.__mS,
this,
true);
n.removeListener(d,
this.__mP,
this,
true);
}},
__mN:function(q){var r=this.getCurrent();
if(r){this.__mL.startWith(r.getHideTimeout());
r.placeToPoint(this.__mM);
r.show();
}this.__mK.stop();
},
__mO:function(q){var r=this.getCurrent();
if(r){r.exclude();
}this.__mL.stop();
this.resetCurrent();
},
__mP:function(q){var s=this.__mM;
s.left=q.getDocumentLeft();
s.top=q.getDocumentTop();
},
__mQ:function(q){var t=q.getTarget();
var u;
while(t!=null){var u=t.getToolTip();
if(u){break;
}t=t.getLayoutParent();
}if(u){this.setCurrent(u);
}},
__mR:function(q){var t=q.getTarget();
var v=q.getRelatedTarget();
var u=this.getCurrent();
if(u&&(v==u||qx.ui.core.Widget.contains(u,
v))){return;
}if(v&&t&&qx.ui.core.Widget.contains(t,
v)){return;
}if(u&&!v){this.setCurrent(null);
}else{this.resetCurrent();
}},
__mS:function(q){var t=q.getTarget();
if(!t){return;
}var u=this.getCurrent();
if(u&&u==t.getToolTip()){this.setCurrent(null);
}}},
destruct:function(){var n=qx.core.Init.getApplication().getRoot();
if(n){n.addListener(c,
this.__mQ,
this,
true);
}this._disposeObjects(i,
l);
this._disposeFields(h);
}});
})();
(function(){var a="\n",
b="",
c=" &nbsp;",
d="<br>",
e=" ",
f="qx.bom.String";
qx.Class.define(f,
{statics:{TO_CHARCODE:{"quot":34,
"amp":38,
"lt":60,
"gt":62,
"nbsp":160,
"iexcl":161,
"cent":162,
"pound":163,
"curren":164,
"yen":165,
"brvbar":166,
"sect":167,
"uml":168,
"copy":169,
"ordf":170,
"laquo":171,
"not":172,
"shy":173,
"reg":174,
"macr":175,
"deg":176,
"plusmn":177,
"sup2":178,
"sup3":179,
"acute":180,
"micro":181,
"para":182,
"middot":183,
"cedil":184,
"sup1":185,
"ordm":186,
"raquo":187,
"frac14":188,
"frac12":189,
"frac34":190,
"iquest":191,
"Agrave":192,
"Aacute":193,
"Acirc":194,
"Atilde":195,
"Auml":196,
"Aring":197,
"AElig":198,
"Ccedil":199,
"Egrave":200,
"Eacute":201,
"Ecirc":202,
"Euml":203,
"Igrave":204,
"Iacute":205,
"Icirc":206,
"Iuml":207,
"ETH":208,
"Ntilde":209,
"Ograve":210,
"Oacute":211,
"Ocirc":212,
"Otilde":213,
"Ouml":214,
"times":215,
"Oslash":216,
"Ugrave":217,
"Uacute":218,
"Ucirc":219,
"Uuml":220,
"Yacute":221,
"THORN":222,
"szlig":223,
"agrave":224,
"aacute":225,
"acirc":226,
"atilde":227,
"auml":228,
"aring":229,
"aelig":230,
"ccedil":231,
"egrave":232,
"eacute":233,
"ecirc":234,
"euml":235,
"igrave":236,
"iacute":237,
"icirc":238,
"iuml":239,
"eth":240,
"ntilde":241,
"ograve":242,
"oacute":243,
"ocirc":244,
"otilde":245,
"ouml":246,
"divide":247,
"oslash":248,
"ugrave":249,
"uacute":250,
"ucirc":251,
"uuml":252,
"yacute":253,
"thorn":254,
"yuml":255,
"fnof":402,
"Alpha":913,
"Beta":914,
"Gamma":915,
"Delta":916,
"Epsilon":917,
"Zeta":918,
"Eta":919,
"Theta":920,
"Iota":921,
"Kappa":922,
"Lambda":923,
"Mu":924,
"Nu":925,
"Xi":926,
"Omicron":927,
"Pi":928,
"Rho":929,
"Sigma":931,
"Tau":932,
"Upsilon":933,
"Phi":934,
"Chi":935,
"Psi":936,
"Omega":937,
"alpha":945,
"beta":946,
"gamma":947,
"delta":948,
"epsilon":949,
"zeta":950,
"eta":951,
"theta":952,
"iota":953,
"kappa":954,
"lambda":955,
"mu":956,
"nu":957,
"xi":958,
"omicron":959,
"pi":960,
"rho":961,
"sigmaf":962,
"sigma":963,
"tau":964,
"upsilon":965,
"phi":966,
"chi":967,
"psi":968,
"omega":969,
"thetasym":977,
"upsih":978,
"piv":982,
"bull":8226,
"hellip":8230,
"prime":8242,
"Prime":8243,
"oline":8254,
"frasl":8260,
"weierp":8472,
"image":8465,
"real":8476,
"trade":8482,
"alefsym":8501,
"larr":8592,
"uarr":8593,
"rarr":8594,
"darr":8595,
"harr":8596,
"crarr":8629,
"lArr":8656,
"uArr":8657,
"rArr":8658,
"dArr":8659,
"hArr":8660,
"forall":8704,
"part":8706,
"exist":8707,
"empty":8709,
"nabla":8711,
"isin":8712,
"notin":8713,
"ni":8715,
"prod":8719,
"sum":8721,
"minus":8722,
"lowast":8727,
"radic":8730,
"prop":8733,
"infin":8734,
"ang":8736,
"and":8743,
"or":8744,
"cap":8745,
"cup":8746,
"int":8747,
"there4":8756,
"sim":8764,
"cong":8773,
"asymp":8776,
"ne":8800,
"equiv":8801,
"le":8804,
"ge":8805,
"sub":8834,
"sup":8835,
"sube":8838,
"supe":8839,
"oplus":8853,
"otimes":8855,
"perp":8869,
"sdot":8901,
"lceil":8968,
"rceil":8969,
"lfloor":8970,
"rfloor":8971,
"lang":9001,
"rang":9002,
"loz":9674,
"spades":9824,
"clubs":9827,
"hearts":9829,
"diams":9830,
"OElig":338,
"oelig":339,
"Scaron":352,
"scaron":353,
"Yuml":376,
"circ":710,
"tilde":732,
"ensp":8194,
"emsp":8195,
"thinsp":8201,
"zwnj":8204,
"zwj":8205,
"lrm":8206,
"rlm":8207,
"ndash":8211,
"mdash":8212,
"lsquo":8216,
"rsquo":8217,
"sbquo":8218,
"ldquo":8220,
"rdquo":8221,
"bdquo":8222,
"dagger":8224,
"Dagger":8225,
"permil":8240,
"lsaquo":8249,
"rsaquo":8250,
"euro":8364},
escape:function(g){return qx.util.StringEscape.escape(g,
qx.bom.String.FROM_CHARCODE);
},
unescape:function(g){return qx.util.StringEscape.unescape(g,
qx.bom.String.TO_CHARCODE);
},
fromText:function(g){return qx.bom.String.escape(g).replace(/(  |\n)/g,
function(h){var i={"  ":c,
"\n":d};
return i[h]||h;
});
},
toText:function(g){return qx.bom.String.unescape(g.replace(/\s+|<([^>])+>/gi,
function(h){if(/\s+/.test(h)){return e;
}else if(/^<BR|^<br/gi.test(h)){return a;
}else{return b;
}}));
}},
defer:function(j,
k,
l){j.FROM_CHARCODE=qx.lang.Object.invert(j.TO_CHARCODE);
}});
})();
(function(){var a=";",
b="&",
c="",
d="&#",
e='X',
f='#',
g="qx.client",
h="qx.util.StringEscape";
qx.Bootstrap.define(h,
{statics:{escape:qx.core.Variant.select(g,
{"mshtml":function(j,
k){var m,
n=[];
for(var o=0,
p=j.length;o<p;o++){var q=j.charAt(o);
var r=q.charCodeAt(0);
if(k[r]){m=b+k[r]+a;
}else{if(r>0x7F){m=d+r+a;
}else{m=q;
}}n[n.length]=m;
}return n.join(c);
},
"default":function(j,
k){var m,
n=c;
for(var o=0,
p=j.length;o<p;o++){var q=j.charAt(o);
var r=q.charCodeAt(0);
if(k[r]){m=b+k[r]+a;
}else{if(r>0x7F){m=d+r+a;
}else{m=q;
}}n+=m;
}return n;
}}),
unescape:function(j,
s){return j.replace(/&[#\w]+;/gi,
function(m){var q=m;
var m=m.substring(1,
m.length-1);
var r=s[m];
if(r){q=String.fromCharCode(r);
}else{if(m.charAt(0)==f){if(m.charAt(1).toUpperCase()==e){r=m.substring(2);
if(r.match(/^[0-9A-Fa-f]+$/gi)){q=String.fromCharCode(parseInt(r,
16));
}}else{r=m.substring(1);
if(r.match(/^\d+$/gi)){q=String.fromCharCode(parseInt(r,
10));
}}}}return q;
});
}}});
})();
(function(){var a="qx.util.format.IFormat";
qx.Interface.define(a,
{members:{format:function(b){},
parse:function(c){}}});
})();
(function(){var a="",
b="Number",
c="-",
d="0",
e="String",
f='(',
g="g",
h="Boolean",
i="$",
j="NaN",
k='([0-9]{1,3}(?:',
l='{0,1}[0-9]{3}){0,})',
m="qx.util.format.NumberFormat",
n='\\d+){0,1}',
o="^",
p=".",
q="-Infinity",
r="Infinity",
s='([-+]){0,1}';
qx.Class.define(m,
{extend:qx.core.Object,
implement:qx.util.format.IFormat,
construct:function(t){arguments.callee.base.call(this);
this.__mT=t;
},
statics:{getIntegerInstance:function(){var u=qx.util.format.NumberFormat;
if(u._integerInstance==null){u._integerInstance=new u();
u._integerInstance.setMaximumFractionDigits(0);
}return u._integerInstance;
},
getInstance:function(){if(!this._instance){this._instance=new this;
}return this._instance;
}},
properties:{minimumIntegerDigits:{check:b,
init:0},
maximumIntegerDigits:{check:b,
nullable:true},
minimumFractionDigits:{check:b,
init:0},
maximumFractionDigits:{check:b,
nullable:true},
groupingUsed:{check:h,
init:true},
prefix:{check:e,
init:a},
postfix:{check:e,
init:a}},
members:{__mT:null,
format:function(v){switch(v){case Infinity:return r;
case -Infinity:return q;
case NaN:return j;
}var w=(v<0);
if(w){v=-v;
}
if(this.getMaximumFractionDigits()!=null){var x=Math.pow(10,
this.getMaximumFractionDigits());
v=Math.round(v*x)/x;
}var y=String(Math.floor(v)).length;
var z=a+v;
var A=z.substring(0,
y);
while(A.length<this.getMinimumIntegerDigits()){A=d+A;
}
if(this.getMaximumIntegerDigits()!=null&&A.length>this.getMaximumIntegerDigits()){A=A.substring(A.length-this.getMaximumIntegerDigits());
}var B=z.substring(y+1);
while(B.length<this.getMinimumFractionDigits()){B+=d;
}
if(this.getMaximumFractionDigits()!=null&&B.length>this.getMaximumFractionDigits()){B=B.substring(0,
this.getMaximumFractionDigits());
}if(this.getGroupingUsed()){var C=A;
A=a;
var D;
for(D=C.length;D>3;D-=3){A=a+qx.locale.Number.getGroupSeparator(this.__mT)+C.substring(D-3,
D)+A;
}A=C.substring(0,
D)+A;
}var E=this.getPrefix()?this.getPrefix():a;
var F=this.getPostfix()?this.getPostfix():a;
var G=E+(w?c:a)+A;
if(B.length>0){G+=a+qx.locale.Number.getDecimalSeparator(this.__mT)+B;
}G+=F;
return G;
},
parse:function(G){var H=qx.lang.String.escapeRegexpChars(qx.locale.Number.getGroupSeparator(this.__mT)+a);
var I=qx.lang.String.escapeRegexpChars(qx.locale.Number.getDecimalSeparator(this.__mT)+a);
var J=new RegExp(o+qx.lang.String.escapeRegexpChars(this.getPrefix())+s+k+H+l+f+I+n+qx.lang.String.escapeRegexpChars(this.getPostfix())+i);
var K=J.exec(G);
if(K==null){throw new Error("Number string '"+G+"' does not match the number format");
}var w=(K[1]==c);
var A=K[2];
var B=K[3];
A=A.replace(new RegExp(H,
g),
a);
var L=(w?c:a)+A;
if(B!=null&&B.length!=0){B=B.replace(new RegExp(I),
a);
L+=p+B;
}return parseFloat(L);
}}});
})();
(function(){var a="cldr_number_decimal_separator",
b="cldr_number_percent_format",
c="qx.locale.Number",
d="cldr_number_group_separator";
qx.Class.define(c,
{statics:{getDecimalSeparator:function(e){return qx.locale.Manager.getInstance().localize(a,
[],
e);
},
getGroupSeparator:function(e){return qx.locale.Manager.getInstance().localize(d,
[],
e);
},
getPercentFormat:function(e){return qx.locale.Manager.getInstance().localize(b,
[],
e);
}}});
})();
(function(){var a="(\\d\\d?)",
b="",
c="(",
d=")",
e="|",
f="abbreviated",
g="wide",
h="wildcard",
j="default",
k="literal",
l="'",
m="hour",
n="(\\d\\d?\\d?)",
o="ms",
p="-",
q="quoted_literal",
r='a',
s="+",
t="HHmmss",
u="long",
v="HH:mm:ss",
w='z',
x="sec",
y="day",
z="narrow",
A='Z',
B="min",
C=" ",
D="SSS",
E="h",
F="SS",
G="Z",
H="00",
I='K',
J="EEEE",
K="^",
L='y',
M="(\\d\\d(\\d\\d)?)",
N="(\\d\\d)",
O="K",
P="((\\+|\\-)\\d\\d:?\\d\\d)",
Q="a",
R="__mY",
S="GMT",
T="S",
U="dd",
V="__mX",
W="qx.util.format.DateFormat",
X="H",
Y="HH",
ba="EE",
bb="__mW",
bc="mm",
bd='h',
be='s',
bf='A',
bg="KK",
bh="ss",
bi='H',
bj='S',
bk="0",
bl="MMMM",
bm="d",
bn="__mV",
bo="([a-zA-Z]+)",
bp='k',
bq="m",
br='D',
bs="kk",
bt="hh",
bu="__mU",
bv="MM",
bw="yy",
bx="yyyy-MM-dd HH:mm:ss",
by="short",
bz='d',
bA="unkown",
bB='m',
bC=":00",
bD="k",
bE='M',
bF="MMM",
bG="s",
bH="M",
bI='w',
bJ="EEE",
bK="$",
bL="?",
bM='E',
bN="z",
bO="yyyy";
qx.Class.define(W,
{extend:qx.core.Object,
implement:qx.util.format.IFormat,
construct:function(bP,
bQ){arguments.callee.base.call(this);
if(!bQ){this.__mU=qx.locale.Manager.getInstance().getLocale();
}else{this.__mU=bQ;
}
if(bP!=null){this.__mV=bP.toString();
}else{this.__mV=qx.locale.Date.getDateFormat(u,
this.__mU)+C+qx.locale.Date.getDateTimeFormat(t,
v,
this.__mU);
}},
statics:{getDateTimeInstance:function(){var bR=qx.util.format.DateFormat;
var bP=qx.locale.Date.getDateFormat(u)+C+qx.locale.Date.getDateTimeFormat(t,
v);
if(bR._dateInstance==null||bR.__mV!=bP){bR._dateTimeInstance=new bR();
}return bR._dateTimeInstance;
},
getDateInstance:function(){var bR=qx.util.format.DateFormat;
var bP=qx.locale.Date.getDateFormat(by)+b;
if(bR._dateInstance==null||bR.__mV!=bP){bR._dateInstance=new bR(bP);
}return bR._dateInstance;
},
ASSUME_YEAR_2000_THRESHOLD:30,
LOGGING_DATE_TIME__format:bx,
AM_MARKER:"am",
PM_MARKER:"pm",
MEDIUM_TIMEZONE_NAMES:["GMT"],
FULL_TIMEZONE_NAMES:["Greenwich Mean Time"]},
members:{__mU:null,
__mV:null,
__mW:null,
__mX:null,
__mY:null,
__na:function(bS,
bT){var bU=b+bS;
while(bU.length<bT){bU=bk+bU;
}return bU;
},
__nb:function(bV){var bW=new Date(bV.getTime());
var bX=bW.getDate();
while(bW.getMonth()!=0){bW.setDate(-1);
bX+=bW.getDate()+1;
}return bX;
},
__nc:function(bV){return new Date(bV.getTime()+(3-((bV.getDay()+6)%7))*86400000);
},
__nd:function(bV){var bY=this.__nc(bV);
var ca=bY.getFullYear();
var cb=this.__nc(new Date(ca,
0,
4));
return Math.floor(1.5+(bY.getTime()-cb.getTime())/86400000/7);
},
format:function(bV){var bR=qx.util.format.DateFormat;
var bQ=this.__mU;
var cc=bV.getFullYear();
var cd=bV.getMonth();
var ce=bV.getDate();
var cf=bV.getDay();
var cg=bV.getHours();
var ch=bV.getMinutes();
var ci=bV.getSeconds();
var cj=bV.getMilliseconds();
var ck=bV.getTimezoneOffset()/60;
this.__ne();
var cl=b;
for(var cm=0;cm<this.__mY.length;cm++){var cn=this.__mY[cm];
if(cn.type==k){cl+=cn.text;
}else{var co=cn.character;
var cp=cn.size;
var cq=bL;
switch(co){case L:if(cp==2){cq=this.__na(cc%100,
2);
}else if(cp==4){cq=cc;
}break;
case br:cq=this.__na(this.__nb(bV),
cp);
break;
case bz:cq=this.__na(ce,
cp);
break;
case bI:cq=this.__na(this.__nd(bV),
cp);
break;
case bM:if(cp==2){cq=qx.locale.Date.getDayName(z,
cf,
bQ);
}else if(cp==3){cq=qx.locale.Date.getDayName(f,
cf,
bQ);
}else if(cp==4){cq=qx.locale.Date.getDayName(g,
cf,
bQ);
}break;
case bE:if(cp==1||cp==2){cq=this.__na(cd+1,
cp);
}else if(cp==3){cq=qx.locale.Date.getMonthName(f,
cd,
bQ);
}else if(cp==4){cq=qx.locale.Date.getMonthName(g,
cd,
bQ);
}break;
case r:cq=(cg<12)?qx.locale.Date.getAmMarker(bQ):qx.locale.Date.getPmMarker(bQ);
break;
case bi:cq=this.__na(cg,
cp);
break;
case bp:cq=this.__na((cg==0)?24:cg,
cp);
break;
case I:cq=this.__na(cg%12,
cp);
break;
case bd:cq=this.__na(((cg%12)==0)?12:(cg%12),
cp);
break;
case bB:cq=this.__na(ch,
cp);
break;
case be:cq=this.__na(ci,
cp);
break;
case bj:cq=this.__na(cj,
cp);
break;
case w:if(cp==1){cq=S+((ck<0)?p:s)+this.__na(ck)+bC;
}else if(cp==2){cq=bR.MEDIUM_TIMEZONE_NAMES[ck];
}else if(cp==3){cq=bR.FULL_TIMEZONE_NAMES[ck];
}break;
case A:cq=((ck<0)?p:s)+this.__na(ck,
2)+H;
}cl+=cq;
}}return cl;
},
parse:function(cr){this.__nf();
var cs=this.__mW.regex.exec(cr);
if(cs==null){throw new Error("Date string '"+cr+"' does not match the date format: "+this.__mV);
}var ct={year:1970,
month:0,
day:1,
hour:0,
ispm:false,
min:0,
sec:0,
ms:0};
var cu=1;
for(var cm=0;cm<this.__mW.usedRules.length;cm++){var cv=this.__mW.usedRules[cm];
var cw=cs[cu];
if(cv.field!=null){ct[cv.field]=parseInt(cw,
10);
}else{cv.manipulator(ct,
cw);
}cu+=(cv.groups==null)?1:cv.groups;
}var bV=new Date(ct.year,
ct.month,
ct.day,
(ct.ispm)?(ct.hour+12):ct.hour,
ct.min,
ct.sec,
ct.ms);
if(ct.month!=bV.getMonth()||ct.year!=bV.getFullYear()){throw new Error("Error parsing date '"+cr+"': the value for day or month is too large");
}return bV;
},
__ne:function(){if(this.__mY!=null){return;
}this.__mY=[];
var cx;
var cy=0;
var cz=b;
var bP=this.__mV;
var cA=j;
var cm=0;
while(cm<bP.length){var cB=bP.charAt(cm);
switch(cA){case q:if(cB==l){if(cm+1>=bP.length){cm++;
break;
}var cC=bP.charAt(cm+1);
if(cC==l){cz+=cB;
cm++;
}else{cm++;
cA=bA;
}}else{cz+=cB;
cm++;
}break;
case h:if(cB==cx){cy++;
cm++;
}else{this.__mY.push({type:h,
character:cx,
size:cy});
cx=null;
cy=0;
cA=j;
}break;
default:if((cB>=r&&cB<=w)||(cB>=bf&&cB<=A)){cx=cB;
cA=h;
}else if(cB==l){if(cm+1>=bP.length){cz+=cB;
cm++;
break;
}var cC=bP.charAt(cm+1);
if(cC==l){cz+=cB;
cm++;
}cm++;
cA=q;
}else{cA=j;
}
if(cA!=j){if(cz.length>0){this.__mY.push({type:k,
text:cz});
cz=b;
}}else{cz+=cB;
cm++;
}break;
}}if(cx!=null){this.__mY.push({type:h,
character:cx,
size:cy});
}else if(cz.length>0){this.__mY.push({type:k,
text:cz});
}},
__nf:function(){if(this.__mW!=null){return ;
}var bP=this.__mV;
this.__ng();
this.__ne();
var cD=[];
var cE=K;
for(var cF=0;cF<this.__mY.length;cF++){var cn=this.__mY[cF];
if(cn.type==k){cE+=qx.lang.String.escapeRegexpChars(cn.text);
}else{var co=cn.character;
var cp=cn.size;
var cG;
for(var cH=0;cH<this.__mX.length;cH++){var cv=this.__mX[cH];
if(co==cv.pattern.charAt(0)&&cp==cv.pattern.length){cG=cv;
break;
}}if(cG==null){var cI=b;
for(var cm=0;cm<cp;cm++){cI+=co;
}throw new Error("Malformed date format: "+bP+". Wildcard "+cI+" is not supported");
}else{cD.push(cG);
cE+=cG.regex;
}}}cE+=bK;
var cJ;
try{cJ=new RegExp(cE);
}catch(exc){throw new Error("Malformed date format: "+bP);
}this.__mW={regex:cJ,
"usedRules":cD,
pattern:cE};
},
__ng:function(){var bR=qx.util.format.DateFormat;
if(this.__mX!=null){return ;
}this.__mX=[];
var cK=function(ct,
cw){cw=parseInt(cw,
10);
if(cw<bR.ASSUME_YEAR_2000_THRESHOLD){cw+=2000;
}else if(cw<100){cw+=1900;
}ct.year=cw;
};
var cL=function(ct,
cw){ct.month=parseInt(cw,
10)-1;
};
var cM=function(ct,
cw){ct.ispm=(cw==bR.PM_MARKER);
};
var cN=function(ct,
cw){ct.hour=parseInt(cw,
10)%24;
};
var cO=function(ct,
cw){ct.hour=parseInt(cw,
10)%12;
};
var cP=function(ct,
cw){return;
};
var cQ=qx.locale.Date.getMonthNames(f,
this.__mU);
for(var cm=0;cm<cQ.length;cm++){cQ[cm]=qx.lang.String.escapeRegexpChars(cQ[cm].toString());
}var cR=function(ct,
cw){cw=qx.lang.String.escapeRegexpChars(cw);
ct.month=cQ.indexOf(cw);
};
var cS=qx.locale.Date.getMonthNames(g,
this.__mU);
for(var cm=0;cm<cS.length;cm++){cS[cm]=qx.lang.String.escapeRegexpChars(cS[cm].toString());
}var cT=function(ct,
cw){cw=qx.lang.String.escapeRegexpChars(cw);
ct.month=cS.indexOf(cw);
};
var cU=qx.locale.Date.getDayNames(z,
this.__mU);
for(var cm=0;cm<cU.length;cm++){cU[cm]=qx.lang.String.escapeRegexpChars(cU[cm].toString());
}var cV=function(ct,
cw){cw=qx.lang.String.escapeRegexpChars(cw);
ct.month=cU.indexOf(cw);
};
var cW=qx.locale.Date.getDayNames(f,
this.__mU);
for(var cm=0;cm<cW.length;cm++){cW[cm]=qx.lang.String.escapeRegexpChars(cW[cm].toString());
}var cX=function(ct,
cw){cw=qx.lang.String.escapeRegexpChars(cw);
ct.month=cW.indexOf(cw);
};
var cY=qx.locale.Date.getDayNames(g,
this.__mU);
for(var cm=0;cm<cY.length;cm++){cY[cm]=qx.lang.String.escapeRegexpChars(cY[cm].toString());
}var da=function(ct,
cw){cw=qx.lang.String.escapeRegexpChars(cw);
ct.month=cY.indexOf(cw);
};
this.__mX.push({pattern:bO,
regex:M,
groups:2,
manipulator:cK});
this.__mX.push({pattern:bw,
regex:N,
manipulator:cK});
this.__mX.push({pattern:bH,
regex:a,
manipulator:cL});
this.__mX.push({pattern:bv,
regex:a,
manipulator:cL});
this.__mX.push({pattern:bF,
regex:c+cQ.join(e)+d,
manipulator:cR});
this.__mX.push({pattern:bl,
regex:c+cS.join(e)+d,
manipulator:cT});
this.__mX.push({pattern:U,
regex:a,
field:y});
this.__mX.push({pattern:bm,
regex:a,
field:y});
this.__mX.push({pattern:ba,
regex:c+cU.join(e)+d,
manipulator:cV});
this.__mX.push({pattern:bJ,
regex:c+cW.join(e)+d,
manipulator:cX});
this.__mX.push({pattern:J,
regex:c+cY.join(e)+d,
manipulator:da});
this.__mX.push({pattern:Q,
regex:c+bR.AM_MARKER+e+bR.PM_MARKER+d,
manipulator:cM});
this.__mX.push({pattern:Y,
regex:a,
field:m});
this.__mX.push({pattern:X,
regex:a,
field:m});
this.__mX.push({pattern:bs,
regex:a,
manipulator:cN});
this.__mX.push({pattern:bD,
regex:a,
manipulator:cN});
this.__mX.push({pattern:bg,
regex:a,
field:m});
this.__mX.push({pattern:O,
regex:a,
field:m});
this.__mX.push({pattern:bt,
regex:a,
manipulator:cO});
this.__mX.push({pattern:E,
regex:a,
manipulator:cO});
this.__mX.push({pattern:bc,
regex:a,
field:B});
this.__mX.push({pattern:bq,
regex:a,
field:B});
this.__mX.push({pattern:bh,
regex:a,
field:x});
this.__mX.push({pattern:bG,
regex:a,
field:x});
this.__mX.push({pattern:D,
regex:n,
field:o});
this.__mX.push({pattern:F,
regex:n,
field:o});
this.__mX.push({pattern:T,
regex:n,
field:o});
this.__mX.push({pattern:G,
regex:P,
manipulator:cP});
this.__mX.push({pattern:bN,
regex:bo,
manipulator:cP});
}},
destruct:function(){this._disposeFields(bn,
bu,
R,
bb,
V);
}});
})();
(function(){var a="_",
b="thu",
c="sat",
d="cldr_day_",
e="cldr_month_",
f="wed",
g="fri",
h="tue",
j="mon",
k="sun",
l="short",
m="HH:mm",
n="HHmmsszz",
o="HHmm",
p="HHmmss",
q="cldr_date_format_",
r="HH:mm:ss zz",
s="full",
t="cldr_pm",
u="long",
v="medium",
w="cldr_am",
x="qx.locale.Date",
y="cldr_date_time_format_",
z="cldr_time_format_",
A="HH:mm:ss";
qx.Class.define(x,
{statics:{__nh:qx.locale.Manager.getInstance(),
getAmMarker:function(B){return this.__nh.localize(w,
[],
B);
},
getPmMarker:function(B){return this.__nh.localize(t,
[],
B);
},
getDayNames:function(C,
B){{};
var D=[k,
j,
h,
f,
b,
g,
c];
var E=[];
for(var F=0;F<D.length;F++){var G=d+C+a+D[F];
E.push(this.__nh.localize(G,
[],
B));
}return E;
},
getDayName:function(C,
H,
B){{};
var D=[k,
j,
h,
f,
b,
g,
c];
var G=d+C+a+D[H];
return this.__nh.localize(G,
[],
B);
},
getMonthNames:function(C,
B){{};
var E=[];
for(var F=0;F<12;F++){var G=e+C+a+(F+1);
E.push(this.__nh.localize(G,
[],
B));
}return E;
},
getMonthName:function(C,
I,
B){{};
var G=e+C+a+(I+1);
return this.__nh.localize(G,
[],
B);
},
getDateFormat:function(J,
B){{};
var G=q+J;
return this.__nh.localize(G,
[],
B);
},
getDateTimeFormat:function(K,
L,
B){var G=y+K;
var M=this.__nh.localize(G,
[],
B);
if(M==G){M=L;
}return M;
},
getTimeFormat:function(J,
B){{};
var G=z+J;
var M=this.__nh.localize(G,
[],
B);
if(M!=G){return M;
}
switch(J){case l:case v:return qx.locale.Date.getDateTimeFormat(o,
m);
case u:return qx.locale.Date.getDateTimeFormat(p,
A);
case s:return qx.locale.Date.getDateTimeFormat(n,
r);
default:throw new Error("This case should never happen.");
}},
getWeekStart:function(B){var N={"MV":5,
"AE":6,
"AF":6,
"BH":6,
"DJ":6,
"DZ":6,
"EG":6,
"ER":6,
"ET":6,
"IQ":6,
"IR":6,
"JO":6,
"KE":6,
"KW":6,
"LB":6,
"LY":6,
"MA":6,
"OM":6,
"QA":6,
"SA":6,
"SD":6,
"SO":6,
"TN":6,
"YE":6,
"AS":0,
"AU":0,
"AZ":0,
"BW":0,
"CA":0,
"CN":0,
"FO":0,
"GE":0,
"GL":0,
"GU":0,
"HK":0,
"IE":0,
"IL":0,
"IS":0,
"JM":0,
"JP":0,
"KG":0,
"KR":0,
"LA":0,
"MH":0,
"MN":0,
"MO":0,
"MP":0,
"MT":0,
"NZ":0,
"PH":0,
"PK":0,
"SG":0,
"TH":0,
"TT":0,
"TW":0,
"UM":0,
"US":0,
"UZ":0,
"VI":0,
"ZA":0,
"ZW":0,
"MW":0,
"NG":0,
"TJ":0};
var O=qx.locale.Date._getTerritory(B);
return N[O]!=null?N[O]:1;
},
getWeekendStart:function(B){var P={"EG":5,
"IL":5,
"SY":5,
"IN":0,
"AE":4,
"BH":4,
"DZ":4,
"IQ":4,
"JO":4,
"KW":4,
"LB":4,
"LY":4,
"MA":4,
"OM":4,
"QA":4,
"SA":4,
"SD":4,
"TN":4,
"YE":4};
var O=qx.locale.Date._getTerritory(B);
return P[O]!=null?P[O]:6;
},
getWeekendEnd:function(B){var Q={"AE":5,
"BH":5,
"DZ":5,
"IQ":5,
"JO":5,
"KW":5,
"LB":5,
"LY":5,
"MA":5,
"OM":5,
"QA":5,
"SA":5,
"SD":5,
"TN":5,
"YE":5,
"AF":5,
"IR":5,
"EG":6,
"IL":6,
"SY":6};
var O=qx.locale.Date._getTerritory(B);
return Q[O]!=null?Q[O]:0;
},
isWeekend:function(H,
B){var P=qx.locale.Date.getWeekendStart(B);
var Q=qx.locale.Date.getWeekendEnd(B);
if(Q>P){return ((H>=P)&&(H<=Q));
}else{return ((H>=P)||(H<=Q));
}},
_getTerritory:function(B){if(B){var O=B.split(a)[1]||B;
}else{O=this.__nh.getTerritory()||this.__nh.getLanguage();
}return O.toUpperCase();
}}});
})();
(function(){var a="auto",
b="string",
c="number",
d="*",
e="qx.ui.core.ColumnData";
qx.Class.define(e,
{extend:qx.ui.core.LayoutItem,
construct:function(){arguments.callee.base.call(this);
this.setColumnWidth(a);
},
members:{__ni:null,
renderLayout:function(f,
g,
h,
i){this.__ni=h;
},
getComputedWidth:function(){return this.__ni;
},
setColumnWidth:function(h){var j=null;
var k=null;
if(typeof h==c){this.setWidth(h);
}else if(typeof h==b){if(h==a){j=1;
}else{var l=h.match(/^[0-9]+(?:\.[0-9]+)?([%\*])$/);
if(l){if(l[1]==d){j=parseFloat(h);
}else{k=h;
}}}}this.setLayoutProperties({flex:j,
width:k});
}},
settings:{"qx.tableResizeDebug":false}});
})();
(function(){var a="qx.ui.table.columnmodel.resizebehavior.Abstract",
b="abstract";
qx.Class.define(a,
{type:b,
extend:qx.core.Object,
members:{_setNumColumns:function(c){throw new Error("_setNumColumns is abstract");
},
onAppear:function(d,
e,
f){throw new Error("onAppear is abstract");
},
onTableWidthChanged:function(d,
e){throw new Error("onTableWidthChanged is abstract");
},
onVerticalScrollBarChanged:function(d,
e){throw new Error("onVerticalScrollBarChanged is abstract");
},
onColumnWidthChanged:function(d,
e){throw new Error("onColumnWidthChanged is abstract");
},
onVisibilityChanged:function(d,
e){throw new Error("onVisibilityChanged is abstract");
},
_getAvailableWidth:function(d){var g=d.getTable();
var h=g._getPaneScrollerArr();
var i=h[0].getLayoutParent().getBounds().width;
var j=h[h.length-1];
if(j.getVerticalScrollBarVisible()){var k=j.getTopRightWidget();
var l=k&&k.getBounds()?k.getBounds().width:0;
var m=j.getVerticalScrollBarWidth();
i-=Math.max(l,
m);
}return i;
}}});
})();
(function(){var a="Function",
b="Boolean",
c="minWidth",
d="width",
e="qx.ui.table.columnmodel.resizebehavior.Default",
f="__nj",
g="__nk",
h="maxWidth";
qx.Class.define(e,
{extend:qx.ui.table.columnmodel.resizebehavior.Abstract,
construct:function(){arguments.callee.base.call(this);
this.__nj=[];
this.__nk=new qx.ui.layout.HBox();
this.__nk.connectToWidget(this);
},
properties:{newResizeBehaviorColumnData:{check:a,
init:function(j){return new qx.ui.core.ColumnData();
}},
initializeWidthsOnEveryAppear:{check:b,
init:false}},
members:{__nk:null,
__nl:null,
__nj:null,
__nm:false,
setWidth:function(k,
m){if(k>=this.__nj.length){throw new Error("Column number out of range");
}this.__nj[k].setColumnWidth(m);
},
setMinWidth:function(k,
m){if(k>=this.__nj.length){throw new Error("Column number out of range");
}this.__nj[k].setMinWidth(m);
},
setMaxWidth:function(k,
m){if(k>=this.__nj.length){throw new Error("Column number out of range");
}this.__nj[k].setMaxWidth(m);
},
set:function(k,
n){for(var o in n){switch(o){case d:this.setWidth(k,
n[o]);
break;
case c:this.setMinWidth(k,
n[o]);
break;
case h:this.setMaxWidth(k,
n[o]);
break;
default:throw new Error("Unknown property: "+o);
}}},
onAppear:function(p,
q,
r){if(r===true||!this.__nm||this.getInitializeWidthsOnEveryAppear()){this._computeColumnsFlexWidth(p,
q);
this.__nm=true;
}},
onTableWidthChanged:function(p,
q){this._computeColumnsFlexWidth(p,
q);
},
onVerticalScrollBarChanged:function(p,
q){this._computeColumnsFlexWidth(p,
q);
},
onColumnWidthChanged:function(p,
q){this._extendNextColumn(p,
q);
},
onVisibilityChanged:function(p,
q){var s=q.getData();
if(s.visible){this._computeColumnsFlexWidth(p,
q);
return;
}this._extendLastColumn(p,
q);
},
_setNumColumns:function(t){var u=this.__nj;
if(t<=u.length){u.splice(t,
u.length);
return;
}for(var v=u.length;v<t;v++){u[v]=this.getNewResizeBehaviorColumnData()();
u[v].columnNumber=v;
}},
getLayoutChildren:function(){return this.__nl;
},
_computeColumnsFlexWidth:function(p,
q){{};
var w=p.getVisibleColumns();
var x=w.length;
var u=this.__nj;
var v,
y;
var z=[];
for(v=0;v<x;v++){z.push(u[w[v]]);
}this.__nl=z;
this.__nk.invalidateChildrenCache();
var m=this._getAvailableWidth(p);
this.__nk.renderLayout(m,
100);
for(v=0,
y=z.length;v<y;v++){var A=z[v].getComputedWidth();
p.setColumnWidth(w[v],
A);
{};
}},
_extendNextColumn:function(p,
q){var s=q.getData();
var w=p.getVisibleColumns();
var m=this._getAvailableWidth(p);
var t=w.length;
if(s.newWidth>s.oldWidth){return ;
}var v;
var B;
var C=0;
for(v=0;v<t;v++){C+=p.getColumnWidth(w[v]);
}if(C<m){for(v=0;v<w.length;v++){if(w[v]==s.col){B=w[v+1];
break;
}}
if(B){var D=(m-(C-p.getColumnWidth(B)));
p.setColumnWidth(B,
D);
}}},
_extendLastColumn:function(p,
q){var s=q.getData();
if(s.visible){return;
}var w=p.getVisibleColumns();
var m=this._getAvailableWidth(p);
var t=w.length;
var v;
var E;
var C=0;
for(v=0;v<t;v++){C+=p.getColumnWidth(w[v]);
}if(C<m){E=w[w.length-1];
var D=(m-(C-p.getColumnWidth(E)));
p.setColumnWidth(E,
D);
}}},
destruct:function(){this._disposeFields(f);
this._disposeObjects(g);
}});
})();
(function(){var a="column-button",
b="Function",
c="Boolean",
d="qx.event.type.Data",
e="statusbar",
f="qx.ui.table.pane.CellEvent",
g="PageUp",
h="changeLocale",
j="changeSelection",
k="qx.dynlocale",
m="Enter",
n="on",
o="_applyTableColumnModel",
p="_applyStatusBarVisible",
q="blur",
r="qx.ui.table.Table",
s="columnVisibilityMenuCreateEnd",
t="verticalScrollBarChanged",
u="_applyMetaColumnCounts",
v="one of one row",
w="focus",
y="changeDataRowRenderer",
z="changeHeaderCellHeight",
A="Escape",
B="A",
C="changeSelectionModel",
D="Left",
E="_tableModel",
F="Down",
G="Integer",
H="_applyHeaderCellHeight",
I="visibilityChanged",
J="qx.ui.table.ITableModel",
K="orderChanged",
L="_applySelectionModel",
M="_columnVisibilityMenu",
N="_applyAdditionalStatusBarText",
O="_applyFocusCellOnMouseMove",
P="table",
Q="_applyColumnVisibilityButtonVisible",
R="changeTableModel",
S="qx.event.type.Event",
T="End",
U="Object",
V="_applyShowCellFocusIndicator",
W="resize",
X="changeScrollY",
Y="_applyTableModel",
ba="__nn",
bb="_applyKeepFirstVisibleRowComplete",
bc="qx.ui.table.columnmodel.Basic",
bd="Home",
be="_applyRowHeight",
bf="F2",
bg="Up",
bh="tableWidthChanged",
bi="columnVisibilityMenuCreateStart",
bj="%1 rows",
bk="qx.ui.table.selection.Model",
bl="one row",
bm="__no",
bn="PageDown",
bo="%1 of %2 rows",
bp="changeTableColumnModel",
bq="keypress",
br="changeRowHeight",
bs="Number",
bt="widthChanged",
bu="changeChecked",
bv="qx.ui.table.IRowRenderer",
bw="Right",
bx="Space";
qx.Class.define(r,
{extend:qx.ui.core.Widget,
construct:function(by,
bz){arguments.callee.base.call(this);
if(!bz){bz={};
}
if(bz.selectionManager){this.setNewSelectionManager(bz.selectionManager);
}
if(bz.selectionModel){this.setNewSelectionModel(bz.selectionModel);
}
if(bz.tableColumnModel){this.setNewTableColumnModel(bz.tableColumnModel);
}
if(bz.tablePane){this.setNewTablePane(bz.tablePane);
}
if(bz.tablePaneHeader){this.setNewTablePaneHeader(bz.tablePaneHeader);
}
if(bz.tablePaneScroller){this.setNewTablePaneScroller(bz.tablePaneScroller);
}
if(bz.tablePaneModel){this.setNewTablePaneModel(bz.tablePaneModel);
}this._setLayout(new qx.ui.layout.VBox());
this.__nn=new qx.ui.container.Composite(new qx.ui.layout.HBox());
this._add(this.__nn,
{flex:1});
this.setDataRowRenderer(new qx.ui.table.rowrenderer.Default(this));
this.__no=this.getNewSelectionManager()(this);
this.setSelectionModel(this.getNewSelectionModel()(this));
this.setTableColumnModel(this.getNewTableColumnModel()(this));
if(by!=null){this.setTableModel(by);
}this.setMetaColumnCounts([-1]);
this.setTabIndex(1);
this.addListener(bq,
this._onKeyPress);
this.addListener(w,
this._onFocusChanged);
this.addListener(q,
this._onFocusChanged);
var bA=new qx.ui.core.Widget().set({height:0});
this._add(bA);
bA.addListener(W,
this._onResize,
this);
this.__np=null;
this.__nq=null;
if(qx.core.Variant.isSet(k,
n)){qx.locale.Manager.getInstance().addListener(h,
this._onChangeLocale,
this);
}this.initStatusBarVisible();
},
events:{"columnVisibilityMenuCreateStart":d,
"columnVisibilityMenuCreateEnd":d,
"tableWidthChanged":S,
"verticalScrollBarChanged":d,
"cellClick":f,
"cellDblclick":f,
"cellContextmenu":f,
"dataEdited":d},
statics:{__nr:{cellClick:1,
cellDblclick:1,
cellContextmenu:1}},
properties:{appearance:{refine:true,
init:P},
focusable:{refine:true,
init:true},
selectionModel:{check:bk,
apply:L,
event:C},
tableModel:{check:J,
apply:Y,
event:R,
nullable:true},
tableColumnModel:{check:bc,
apply:o,
event:bp},
rowHeight:{check:bs,
init:20,
apply:be,
event:br},
forceLineHeight:{check:c,
init:true},
headerCellHeight:{check:G,
init:16,
apply:H,
event:z},
statusBarVisible:{check:c,
init:true,
apply:p},
additionalStatusBarText:{nullable:true,
init:null,
apply:N},
columnVisibilityButtonVisible:{check:c,
init:true,
apply:Q},
metaColumnCounts:{check:U,
apply:u},
focusCellOnMouseMove:{check:c,
init:false,
apply:O},
showCellFocusIndicator:{check:c,
init:true,
apply:V},
keepFirstVisibleRowComplete:{check:c,
init:true,
apply:bb},
alwaysUpdateCells:{check:c,
init:false},
dataRowRenderer:{check:bv,
init:null,
nullable:true,
event:y},
modalCellEditorPreOpenFunction:{check:b,
init:null,
nullable:true},
newSelectionManager:{check:b,
init:function(bB){return new qx.ui.table.selection.Manager(bB);
}},
newSelectionModel:{check:b,
init:function(bB){return new qx.ui.table.selection.Model(bB);
}},
newTableColumnModel:{check:b,
init:function(bB){return new qx.ui.table.columnmodel.Basic(bB);
}},
newTablePane:{check:b,
init:function(bB){return new qx.ui.table.pane.Pane(bB);
}},
newTablePaneHeader:{check:b,
init:function(bB){return new qx.ui.table.pane.Header(bB);
}},
newTablePaneScroller:{check:b,
init:function(bB){return new qx.ui.table.pane.Scroller(bB);
}},
newTablePaneModel:{check:b,
init:function(bC){return new qx.ui.table.pane.Model(bC);
}}},
members:{__np:null,
__nq:null,
__nn:null,
__no:null,
__ns:null,
__nt:null,
__nu:null,
__nv:null,
_createChildControlImpl:function(bD){var bE;
switch(bD){case e:bE=new qx.ui.basic.Label().set({allowGrowX:true});
this._add(bE);
break;
case a:bE=new qx.ui.form.MenuButton().set({focusable:false});
break;
}return bE||arguments.callee.base.call(this,
bD);
},
_applySelectionModel:function(bF,
bG){this.__no.setSelectionModel(bF);
if(bG!=null){bG.removeListener(j,
this._onSelectionChanged,
this);
}bF.addListener(j,
this._onSelectionChanged,
this);
},
_applyRowHeight:function(bF,
bG){if(!this.getTableModel()){return;
}var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].updateVerScrollBarMaximum();
}},
_applyHeaderCellHeight:function(bF,
bG){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].getHeader().setHeight(bF);
}},
_applyTableModel:function(bF,
bG){this.getTableColumnModel().init(bF.getColumnCount(),
this);
if(bG!=null){bG.removeListener(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED,
this._onTableModelMetaDataChanged,
this);
bG.removeListener(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED,
this._onTableModelDataChanged,
this);
}bF.addListener(qx.ui.table.ITableModel.EVENT_TYPE_META_DATA_CHANGED,
this._onTableModelMetaDataChanged,
this);
bF.addListener(qx.ui.table.ITableModel.EVENT_TYPE_DATA_CHANGED,
this._onTableModelDataChanged,
this);
this._updateStatusBar();
this._initColumnMenu();
this._updateTableData(0,
bF.getRowCount(),
0,
bF.getColumnCount());
this._onTableModelMetaDataChanged();
},
_applyTableColumnModel:function(bF,
bG){if(bG!=null){throw new Error("The table column model can only be set once per table.");
}bF.addListener(I,
this._onColVisibilityChanged,
this);
bF.addListener(bt,
this._onColWidthChanged,
this);
bF.addListener(K,
this._onColOrderChanged,
this);
var bJ=this.getTableModel();
if(bJ){bF.init(bJ.getColumnCount(),
this);
}var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){var bK=bH[bI];
var bL=bK.getTablePaneModel();
bL.setTableColumnModel(bF);
}},
_applyStatusBarVisible:function(bF,
bG){if(bF){this._showChildControl(e);
}else{this._excludeChildControl(e);
}
if(bF){this._updateStatusBar();
}},
_applyAdditionalStatusBarText:function(bF,
bG){this.__ns=bF;
this._updateStatusBar();
},
_applyColumnVisibilityButtonVisible:function(bF,
bG){if(bF){this._showChildControl(a);
}else{this._excludeChildControl(a);
}},
_applyMetaColumnCounts:function(bF,
bG){var bM=bF;
var bH=this._getPaneScrollerArr();
var bN={};
if(bF>bG){var bO=qx.event.Registration.getManager(bH[0]);
for(var bP in qx.ui.table.Table.__nr){bN[bP]={};
bN[bP].capture=bO.getListeners(bH[0],
bP,
true);
bN[bP].bubble=bO.getListeners(bH[0],
bP,
false);
}}this._cleanUpMetaColumns(bM.length);
var bQ=0;
for(var bI=0;bI<bH.length;bI++){var bK=bH[bI];
var bL=bK.getTablePaneModel();
bL.setFirstColumnX(bQ);
bL.setMaxColumnCount(bM[bI]);
bQ+=bM[bI];
}if(bM.length>bH.length){var bC=this.getTableColumnModel();
for(var bI=bH.length;bI<bM.length;bI++){var bL=this.getNewTablePaneModel()(bC);
bL.setFirstColumnX(bQ);
bL.setMaxColumnCount(bM[bI]);
bQ+=bM[bI];
var bK=this.getNewTablePaneScroller()(this);
bK.setTablePaneModel(bL);
bK.addListener(X,
this._onScrollY,
this);
for(bP in qx.ui.table.Table.__nr){if(!bN[bP]){break;
}
if(bN[bP].capture&&bN[bP].capture.length>0){var bR=bN[bP].capture;
for(var bI=0;bI<bR.length;bI++){var bS=bR[bI].context;
if(!bS){bS=this;
}else if(bS==bH[0]){bS=bK;
}bK.addListener(bP,
bR[bI].handler,
bS,
true);
}}
if(bN[bP].bubble&&bN[bP].bubble.length>0){var bT=bN[bP].bubble;
for(var bI=0;bI<bT.length;bI++){var bS=bT[bI].context;
if(!bS){bS=this;
}else if(bS==bH[0]){bS=bK;
}bK.addListener(bP,
bT[bI].handler,
bS,
false);
}}}var bU=(bI==bM.length-1)?1:0;
this.__nn.add(bK,
{flex:bU});
bH=this._getPaneScrollerArr();
}}for(var bI=0;bI<bH.length;bI++){var bK=bH[bI];
var bV=(bI==(bH.length-1));
bK.getHeader().setHeight(this.getHeaderCellHeight());
bK.setTopRightWidget(bV?this.getChildControl(a):null);
}
if(!this.isColumnVisibilityButtonVisible()){this._excludeChildControl(a);
}this._updateScrollerWidths();
this._updateScrollBarVisibility();
},
_applyFocusCellOnMouseMove:function(bF,
bG){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].setFocusCellOnMouseMove(bF);
}},
_applyShowCellFocusIndicator:function(bF,
bG){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].setShowCellFocusIndicator(bF);
}},
_applyKeepFirstVisibleRowComplete:function(bF,
bG){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].onKeepFirstVisibleRowCompleteChanged();
}},
getSelectionManager:function(){return this.__no;
},
_getPaneScrollerArr:function(){return this.__nn.getChildren();
},
getPaneScroller:function(bW){return this._getPaneScrollerArr()[bW];
},
_cleanUpMetaColumns:function(bX){var bH=this._getPaneScrollerArr();
if(bH!=null){for(var bI=bH.length-1;bI>=bX;bI--){bH[bI].destroy();
}}},
_onChangeLocale:function(bY){this.updateContent();
this._updateStatusBar();
},
_onSelectionChanged:function(bY){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].onSelectionChanged();
}this._updateStatusBar();
},
_onTableModelMetaDataChanged:function(bY){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].onTableModelMetaDataChanged();
}this._updateStatusBar();
},
_onTableModelDataChanged:function(bY){var ca=bY.getData();
this._updateTableData(ca.firstRow,
ca.lastRow,
ca.firstColumn,
ca.lastColumn,
ca.removeStart,
ca.removeCount);
},
_updateTableData:function(cb,
cc,
cd,
ce,
cf,
cg){var bH=this._getPaneScrollerArr();
if(cg){this.getSelectionModel().removeSelectionInterval(cf,
cf+cg);
}
for(var bI=0;bI<bH.length;bI++){bH[bI].onTableModelDataChanged(cb,
cc,
cd,
ce);
}var ch=this.getTableModel().getRowCount();
if(ch!=this.__nt){this.__nt=ch;
this._updateScrollBarVisibility();
this._updateStatusBar();
}},
_onScrollY:function(bY){if(!this.__nu){this.__nu=true;
var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].setScrollY(bY.getData());
}this.__nu=false;
}},
_onKeyPress:function(bY){if(!this.getEnabled()){return;
}var ci=this.__nq;
var cj=true;
var ck=bY.getKeyIdentifier();
if(this.isEditing()){if(bY.getModifiers()==0){switch(ck){case m:this.stopEditing();
var ci=this.__nq;
this.moveFocusedCell(0,
1);
if(this.__nq!=ci){cj=this.startEditing();
}break;
case A:this.cancelEditing();
this.focus();
break;
default:cj=false;
break;
}}return;
}else{if(bY.isCtrlPressed()){cj=true;
switch(ck){case B:var ch=this.getTableModel().getRowCount();
if(ch>0){this.getSelectionModel().setSelectionInterval(0,
ch-1);
}break;
default:cj=false;
break;
}}else{switch(ck){case bx:this.__no.handleSelectKeyDown(this.__nq,
bY);
break;
case bf:case m:cj=this.startEditing();
break;
case bd:this.setFocusedCell(this.__np,
0,
true);
break;
case T:var ch=this.getTableModel().getRowCount();
this.setFocusedCell(this.__np,
ch-1,
true);
break;
case D:this.moveFocusedCell(-1,
0);
break;
case bw:this.moveFocusedCell(1,
0);
break;
case bg:this.moveFocusedCell(0,
-1);
break;
case F:this.moveFocusedCell(0,
1);
break;
case g:case bn:var cl=this.getPaneScroller(0);
var cm=cl.getTablePane();
var ch=cm.getVisibleRowCount()-1;
var cn=this.getRowHeight();
var co=(ck==g)?-1:1;
cl.setScrollY(cl.getScrollY()+co*ch*cn);
this.moveFocusedCell(0,
co*ch);
break;
default:cj=false;
}}}
if(ci!=this.__nq){this.__no.handleMoveKeyDown(this.__nq,
bY);
}
if(cj){bY.preventDefault();
bY.stopPropagation();
}},
_onFocusChanged:function(bY){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].onFocusChanged();
}},
_onColVisibilityChanged:function(bY){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].onColVisibilityChanged();
}var ca=bY.getData();
if(this.__nv!=null&&ca.col!=null&&ca.visible!=null){this.__nv[ca.col].setChecked(ca.visible);
}this._updateScrollerWidths();
this._updateScrollBarVisibility();
},
_onColWidthChanged:function(bY){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){var ca=bY.getData();
bH[bI].setColumnWidth(ca.col,
ca.newWidth);
}this._updateScrollerWidths();
this._updateScrollBarVisibility();
},
_onColOrderChanged:function(bY){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].onColOrderChanged();
}this._updateScrollerWidths();
this._updateScrollBarVisibility();
},
getTablePaneScrollerAtPageX:function(cp){var cq=this._getMetaColumnAtPageX(cp);
return (cq!=-1)?this.getPaneScroller(cq):null;
},
setFocusedCell:function(cr,
cs,
ct){if(!this.isEditing()&&(cr!=this.__np||cs!=this.__nq)){this.__np=cr;
this.__nq=cs;
var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].setFocusedCell(cr,
cs);
}
if(cr!==null&&ct){this.scrollCellVisible(cr,
cs);
}}},
clearSelection:function(){this.getSelectionModel().clearSelection();
},
resetCellFocus:function(){this.setFocusedCell(null,
null,
false);
},
getFocusedColumn:function(){return this.__np;
},
getFocusedRow:function(){return this.__nq;
},
highlightFocusedRow:function(cu){this.getDataRowRenderer().setHighlightFocusRow(cu);
},
clearFocusedRowHighlight:function(){this.resetCellFocus();
var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].onFocusChanged();
}},
moveFocusedCell:function(cv,
cw){var cr=this.__np;
var cs=this.__nq;
if(cr===null||cs===null){return;
}
if(cv!=0){var bC=this.getTableColumnModel();
var cx=bC.getVisibleX(cr);
var cy=bC.getVisibleColumnCount();
cx=qx.lang.Number.limit(cx+cv,
0,
cy-1);
cr=bC.getVisibleColumnAtX(cx);
}
if(cw!=0){var by=this.getTableModel();
cs=qx.lang.Number.limit(cs+cw,
0,
by.getRowCount()-1);
}this.setFocusedCell(cr,
cs,
true);
},
scrollCellVisible:function(cr,
cs){var bC=this.getTableColumnModel();
var cx=bC.getVisibleX(cr);
var bW=this._getMetaColumnAtColumnX(cx);
if(bW!=-1){this.getPaneScroller(bW).scrollCellVisible(cr,
cs);
}},
isEditing:function(){if(this.__np!=null){var cx=this.getTableColumnModel().getVisibleX(this.__np);
var bW=this._getMetaColumnAtColumnX(cx);
return this.getPaneScroller(bW).isEditing();
}return false;
},
startEditing:function(){if(this.__np!=null){var cx=this.getTableColumnModel().getVisibleX(this.__np);
var bW=this._getMetaColumnAtColumnX(cx);
var cz=this.getPaneScroller(bW).startEditing();
return cz;
}return false;
},
stopEditing:function(){if(this.__np!=null){var cx=this.getTableColumnModel().getVisibleX(this.__np);
var bW=this._getMetaColumnAtColumnX(cx);
this.getPaneScroller(bW).stopEditing();
}},
cancelEditing:function(){if(this.__np!=null){var cx=this.getTableColumnModel().getVisibleX(this.__np);
var bW=this._getMetaColumnAtColumnX(cx);
this.getPaneScroller(bW).cancelEditing();
}},
updateContent:function(){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){bH[bI].getTablePane().updateContent();
}},
_getMetaColumnAtPageX:function(cp){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){var cA=bH[bI].getContainerLocation();
if(cp>=cA.left&&cp<=cA.right){return bI;
}}return -1;
},
_getMetaColumnAtColumnX:function(cB){var bM=this.getMetaColumnCounts();
var cC=0;
for(var bI=0;bI<bM.length;bI++){var cD=bM[bI];
cC+=cD;
if(cD==-1||cB<cC){return bI;
}}return -1;
},
_updateStatusBar:function(){var by=this.getTableModel();
if(this.getStatusBarVisible()&&by){var cE=this.getSelectionModel().getSelectedCount();
var ch=by.getRowCount();
var cF;
if(ch>0){if(cE==0){cF=this.trn(bl,
bj,
ch,
ch);
}else{cF=this.trn(v,
bo,
ch,
cE,
ch);
}}
if(this.__ns){if(cF){cF+=this.__ns;
}else{cF=this.__ns;
}}
if(cF){this.getChildControl(e).setContent(cF);
}}},
_updateScrollerWidths:function(){var bH=this._getPaneScrollerArr();
for(var bI=0;bI<bH.length;bI++){var bV=(bI==(bH.length-1));
var cG=bH[bI].getTablePaneModel().getTotalWidth();
bH[bI].setWidth(cG);
var bU=bV?1:0;
bH[bI].setLayoutProperties({flex:bU});
}},
_updateScrollBarVisibility:function(){if(!this.getBounds()){return;
}var cH=qx.ui.table.pane.Scroller.HORIZONTAL_SCROLLBAR;
var cI=qx.ui.table.pane.Scroller.VERTICAL_SCROLLBAR;
var bH=this._getPaneScrollerArr();
var cJ=false;
var cK=false;
for(var bI=0;bI<bH.length;bI++){var bV=(bI==(bH.length-1));
var cL=bH[bI].getNeededScrollBars(cJ,
!bV);
if(cL&cH){cJ=true;
}
if(bV&&(cL&cI)){cK=true;
}}for(var bI=0;bI<bH.length;bI++){var bV=(bI==(bH.length-1));
var cM;
bH[bI].setHorizontalScrollBarVisible(cJ);
if(bV){cM=bH[bI].getVerticalScrollBarVisible();
}bH[bI].setVerticalScrollBarVisible(bV&&cK);
if(bV&&cK!=cM){this.fireDataEvent(t,
cK);
}}},
_initColumnMenu:function(){var by=this.getTableModel();
var bC=this.getTableColumnModel();
var cN=this.getChildControl(a).getMenu();
if(cN){var cO=cN.getChildren();
for(var bI=0,
cP=cO.length;bI<cP;bI++){cO[0].destroy();
}}else{var cN=new qx.ui.menu.Menu();
this.getChildControl(a).setMenu(cN);
}var ca={table:this,
menu:cN};
this.fireDataEvent(bi,
ca);
this.__nv={};
for(var cr=0,
cP=by.getColumnCount();cr<cP;cr++){var cQ=new qx.ui.menu.CheckBox(by.getColumnName(cr));
cQ.setChecked(bC.isColumnVisible(cr));
cQ.addListener(bu,
this._createColumnVisibilityCheckBoxHandler(cr),
this);
cN.add(cQ);
this.__nv[cr]=cQ;
}var ca={table:this,
menu:cN};
this.fireDataEvent(s,
ca);
},
_createColumnVisibilityCheckBoxHandler:function(cr){return function(bY){var bC=this.getTableColumnModel();
bC.setColumnVisible(cr,
bY.getData());
};
},
setColumnWidth:function(cr,
cG){this.getTableColumnModel().setColumnWidth(cr,
cG);
},
_onResize:function(){this.fireEvent(bh);
this._updateScrollerWidths();
this._updateScrollBarVisibility();
},
addListener:function(cR,
cS,
cT,
bR){if(arguments.callee.self.__nr[cR]){for(var bI=0,
cU=this._getPaneScrollerArr();bI<cU.length;bI++){cU[bI].addListener.apply(cU[bI],
arguments);
}}else{return arguments.callee.base.call(this,
cR,
cS,
cT,
bR);
}},
removeListener:function(cR,
cS,
cT,
bR){if(arguments.callee.self.__nr[cR]){for(var bI=0,
cU=this._getPaneScrollerArr();bI<cU.length;bI++){cU[bI].removeListener.apply(cU[bI],
arguments);
}}else{arguments.callee.base.call(this,
cR,
cS,
cT,
bR);
}},
destroy:function(){this.getChildControl(a).getMenu().destroy();
arguments.callee.base.call(this);
}},
destruct:function(){if(qx.core.Variant.isSet(k,
n)){qx.locale.Manager.getInstance().removeListener(h,
this._onChangeLocale,
this);
}var cV=this.getSelectionModel();
if(cV){cV.dispose();
}var cW=this.getDataRowRenderer();
if(cW){cW.dispose();
}this._cleanUpMetaColumns(0);
this.getTableColumnModel().dispose();
this._disposeObjects(bm,
M,
E,
ba);
}});
})();
(function(){var a="qx.ui.table.IRowRenderer";
qx.Interface.define(a,
{members:{updateDataRowElement:function(b,
c){},
getRowHeightStyle:function(d){},
createRowStyle:function(b){},
getRowClass:function(b){}}});
})();
(function(){var a="",
b="table-row-background-even",
c="Boolean",
d="__nw",
e="default",
f="height:",
g="'",
h="table-row",
i="table-row-background-focused",
j=';color:',
k="table-row-background-odd",
l="1px solid ",
m="table-row-line",
n="__nx",
o="table-row-background-selected",
p="background-color:",
q=';border-bottom: 1px solid ',
r="table-row-selected",
s="table-row-background-focused-selected",
t="px;",
u="__ny",
v="qx.ui.table.rowrenderer.Default",
w=";";
qx.Class.define(v,
{extend:qx.core.Object,
implement:qx.ui.table.IRowRenderer,
construct:function(){arguments.callee.base.call(this);
this.__nw=a;
this.__nw={};
this.__nx={};
this._renderFont(qx.theme.manager.Font.getInstance().resolve(e));
var x=qx.theme.manager.Color.getInstance();
this.__nx.bgcolFocusedSelected=x.resolve(s);
this.__nx.bgcolFocused=x.resolve(i);
this.__nx.bgcolSelected=x.resolve(o);
this.__nx.bgcolEven=x.resolve(b);
this.__nx.bgcolOdd=x.resolve(k);
this.__nx.colSelected=x.resolve(r);
this.__nx.colNormal=x.resolve(h);
this.__nx.horLine=x.resolve(m);
},
properties:{highlightFocusRow:{check:c,
init:true}},
members:{__nx:null,
__ny:null,
__nw:null,
_insetY:1,
_renderFont:function(y){if(y){this.__ny=y.getStyles();
this.__nw=qx.bom.element.Style.compile(this.__ny);
this.__nw=this.__nw.replace(/"/g,
g);
}else{this.__nw=a;
this.__ny=qx.bom.Font.getDefaultStyles();
}},
updateDataRowElement:function(z,
A){var B=this.__ny;
var C=A.style;
qx.bom.element.Style.setStyles(A,
B);
if(z.focusedRow&&this.getHighlightFocusRow()){C.backgroundColor=z.selected?this.__nx.bgcolFocusedSelected:this.__nx.bgcolFocused;
}else{if(z.selected){C.backgroundColor=this.__nx.bgcolSelected;
}else{C.backgroundColor=(z.row%2==0)?this.__nx.bgcolEven:this.__nx.bgcolOdd;
}}C.color=z.selected?this.__nx.colSelected:this.__nx.colNormal;
C.borderBottom=l+this.__nx.horLine;
},
getRowHeightStyle:function(D){if(qx.bom.client.Feature.CONTENT_BOX){D-=this._insetY;
}return f+D+t;
},
createRowStyle:function(z){var E=[];
E.push(w);
E.push(this.__nw);
E.push(p);
if(z.focusedRow&&this.getHighlightFocusRow()){E.push(z.selected?this.__nx.bgcolFocusedSelected:this.__nx.bgcolFocused);
}else{if(z.selected){E.push(this.__nx.bgcolSelected);
}else{E.push((z.row%2==0)?this.__nx.bgcolEven:this.__nx.bgcolOdd);
}}E.push(j);
E.push(z.selected?this.__nx.colSelected:this.__nx.colNormal);
E.push(q,
this.__nx.horLine);
return E.join(a);
},
getRowClass:function(z){return a;
}},
destruct:function(){this._disposeFields(n,
u,
d);
}});
})();
(function(){var a="qx.ui.table.selection.Model",
b="qx.ui.table.selection.Manager";
qx.Class.define(b,
{extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
},
properties:{selectionModel:{check:a}},
members:{__nz:null,
handleMouseDown:function(c,
d){if(d.isLeftPressed()){var e=this.getSelectionModel();
if(!e.isSelectedIndex(c)){this._handleSelectEvent(c,
d);
this.__nz=true;
}else{this.__nz=false;
}}else if(d.isRightPressed()&&d.getModifiers()==0){var e=this.getSelectionModel();
if(!e.isSelectedIndex(c)){e.setSelectionInterval(c,
c);
}}},
handleMouseUp:function(c,
d){if(d.isLeftPressed()&&!this.__nz){this._handleSelectEvent(c,
d);
}},
handleClick:function(c,
d){},
handleSelectKeyDown:function(c,
d){this._handleSelectEvent(c,
d);
},
handleMoveKeyDown:function(c,
d){var e=this.getSelectionModel();
switch(d.getModifiers()){case 0:e.setSelectionInterval(c,
c);
break;
case qx.event.type.Dom.SHIFT_MASK:var f=e.getAnchorSelectionIndex();
if(f==-1){e.setSelectionInterval(c,
c);
}else{e.setSelectionInterval(f,
c);
}break;
}},
_handleSelectEvent:function(c,
d){var e=this.getSelectionModel();
var g=e.getLeadSelectionIndex();
var h=e.getAnchorSelectionIndex();
if(d.isShiftPressed()){if(c!=g||e.isSelectionEmpty()){if(h==-1){h=c;
}
if(d.isCtrlOrCommandPressed()){e.addSelectionInterval(h,
c);
}else{e.setSelectionInterval(h,
c);
}}}else if(d.isCtrlOrCommandPressed()){if(e.isSelectedIndex(c)){e.removeSelectionInterval(c,
c);
}else{e.addSelectionInterval(c,
c);
}}else{if(!(h==g&&h==c&&e.getSelectedCount()==1)){e.setSelectionInterval(c,
c);
}}}}});
})();
(function(){var a="__nA",
b="..",
c="changeSelection",
d="_applySelectionMode",
e="]",
f="qx.event.type.Event",
g="Ranges:",
h="qx.ui.table.selection.Model",
k=" [";
qx.Class.define(h,
{extend:qx.core.Object,
construct:function(){arguments.callee.base.call(this);
this.__nA=[];
this.__nB=-1;
this.__nC=-1;
this.hasBatchModeRefCount=0;
this.__nD=false;
},
events:{"changeSelection":f},
statics:{NO_SELECTION:1,
SINGLE_SELECTION:2,
SINGLE_INTERVAL_SELECTION:3,
MULTIPLE_INTERVAL_SELECTION:4,
MULTIPLE_INTERVAL_SELECTION_TOGGLE:5},
properties:{selectionMode:{init:2,
check:[1,
2,
3,
4,
5],
apply:d}},
members:{__nD:null,
__nB:null,
__nC:null,
__nA:null,
_applySelectionMode:function(l){this.clearSelection();
},
setBatchMode:function(m){if(m){this.hasBatchModeRefCount+=1;
}else{if(this.hasBatchModeRefCount==0){throw new Error("Try to turn off batch mode althoug it was not turned on.");
}this.hasBatchModeRefCount-=1;
if(this.__nD){this.__nD=false;
this._fireChangeSelection();
}}return this.hasBatchMode();
},
hasBatchMode:function(){return this.hasBatchModeRefCount>0;
},
getAnchorSelectionIndex:function(){return this.__nB;
},
getLeadSelectionIndex:function(){return this.__nC;
},
clearSelection:function(){if(!this.isSelectionEmpty()){this._clearSelection();
this._fireChangeSelection();
}},
isSelectionEmpty:function(){return this.__nA.length==0;
},
getSelectedCount:function(){var n=0;
for(var o=0;o<this.__nA.length;o++){var p=this.__nA[o];
n+=p.maxIndex-p.minIndex+1;
}return n;
},
isSelectedIndex:function(q){for(var o=0;o<this.__nA.length;o++){var p=this.__nA[o];
if(q>=p.minIndex&&q<=p.maxIndex){return true;
}}return false;
},
getSelectedRanges:function(){var r=[];
for(var o=0;o<this.__nA.length;o++){r.push({minIndex:this.__nA[o].minIndex,
maxIndex:this.__nA[o].maxIndex});
}return r;
},
iterateSelection:function(s,
t){for(var o=0;o<this.__nA.length;o++){for(var u=this.__nA[o].minIndex;u<=this.__nA[o].maxIndex;u++){s.call(t,
u);
}}},
setSelectionInterval:function(v,
w){var x=arguments.callee.self;
switch(this.getSelectionMode()){case x.NO_SELECTION:return;
case x.SINGLE_SELECTION:v=w;
break;
case x.MULTIPLE_INTERVAL_SELECTION_TOGGLE:this.setBatchMode(true);
try{for(var o=v;o<=w;o++){if(!this.isSelectedIndex(o)){this._addSelectionInterval(o,
o);
}else{this.removeSelectionInterval(o,
o);
}}}finally{this.setBatchMode(false);
}this._fireChangeSelection();
return;
}this._clearSelection();
this._addSelectionInterval(v,
w);
this._fireChangeSelection();
},
addSelectionInterval:function(v,
w){var y=qx.ui.table.selection.Model;
switch(this.getSelectionMode()){case y.NO_SELECTION:return;
case y.MULTIPLE_INTERVAL_SELECTION:case y.MULTIPLE_INTERVAL_SELECTION_TOGGLE:this._addSelectionInterval(v,
w);
this._fireChangeSelection();
break;
default:this.setSelectionInterval(v,
w);
break;
}},
removeSelectionInterval:function(v,
w){this.__nB=v;
this.__nC=w;
var z=Math.min(v,
w);
var A=Math.max(v,
w);
for(var o=0;o<this.__nA.length;o++){var p=this.__nA[o];
if(p.minIndex>A){break;
}else if(p.maxIndex>=z){var B=(p.minIndex>=z)&&(p.minIndex<=A);
var C=(p.maxIndex>=z)&&(p.maxIndex<=A);
if(B&&C){this.__nA.splice(o,
1);
o--;
}else if(B){p.minIndex=A+1;
}else if(C){p.maxIndex=z-1;
}else{var D={minIndex:A+1,
maxIndex:p.maxIndex};
this.__nA.splice(o+1,
0,
D);
p.maxIndex=z-1;
break;
}}}this._fireChangeSelection();
},
_clearSelection:function(){this.__nA=[];
this.__nB=-1;
this.__nC=-1;
},
_addSelectionInterval:function(v,
w){this.__nB=v;
this.__nC=w;
var z=Math.min(v,
w);
var A=Math.max(v,
w);
var E=0;
for(;E<this.__nA.length;E++){var p=this.__nA[E];
if(p.minIndex>z){break;
}}this.__nA.splice(E,
0,
{minIndex:z,
maxIndex:A});
var F=this.__nA[0];
for(var o=1;o<this.__nA.length;o++){var p=this.__nA[o];
if(F.maxIndex+1>=p.minIndex){F.maxIndex=Math.max(F.maxIndex,
p.maxIndex);
this.__nA.splice(o,
1);
o--;
}else{F=p;
}}},
_dumpRanges:function(){var G=g;
for(var o=0;o<this.__nA.length;o++){var p=this.__nA[o];
G+=k+p.minIndex+b+p.maxIndex+e;
}this.debug(G);
},
_fireChangeSelection:function(){if(this.hasBatchMode()){this.__nD=true;
}this.fireEvent(c);
}},
destruct:function(){this._disposeFields(a);
}});
})();
(function(){var a="",
b="Number",
c='</div>',
d='" ',
e='<div>',
f="</div>",
g="div",
h="overflow: hidden;",
j='style="',
k="_applyMaxCacheLines",
l="qx.ui.table.pane.Pane",
m="width: 100%;",
n="__nI",
o="_applyVisibleRowCount",
p='>',
q="line-height: ",
r="appear",
s='class="',
t="width:100%;",
u="px;",
v='<div ',
w="__nE",
z="'>",
A="_applyFirstVisibleRow",
B="<div style='",
C=";position:relative;",
D="__nH";
qx.Class.define(l,
{extend:qx.ui.core.Widget,
construct:function(E){arguments.callee.base.call(this);
this.__nE=E;
this.__nF=0;
this.__nG=0;
this.__nH=[];
},
properties:{firstVisibleRow:{check:b,
init:0,
apply:A},
visibleRowCount:{check:b,
init:0,
apply:o},
maxCacheLines:{check:b,
init:1000,
apply:k},
allowShrinkX:{refine:true,
init:false}},
members:{__nG:null,
__nF:null,
__nE:null,
__nI:null,
__nJ:null,
__nK:null,
__nH:null,
__nL:0,
_applyFirstVisibleRow:function(F,
G){this.updateContent(false,
F-G);
},
_applyVisibleRowCount:function(F,
G){this.updateContent(true);
},
_getContentHint:function(){return {width:this.getPaneScroller().getTablePaneModel().getTotalWidth(),
height:400};
},
getPaneScroller:function(){return this.__nE;
},
getTable:function(){return this.__nE.getTable();
},
setFocusedCell:function(H,
I,
J){if(H!=this.__nK||I!=this.__nJ){var K=this.__nJ;
this.__nK=H;
this.__nJ=I;
if(I!=K&&!J){if(I!==null&&K!==null){this.updateContent(false,
null,
K,
true);
this.updateContent(false,
null,
I,
true);
}else{this.updateContent();
}}}},
onSelectionChanged:function(){this.updateContent(false,
null,
null,
true);
},
onFocusChanged:function(){this.updateContent(false,
null,
null,
true);
},
setColumnWidth:function(H,
L){this.updateContent(true);
},
onColOrderChanged:function(){this.updateContent(true);
},
onPaneModelChanged:function(){this.updateContent(true);
},
onTableModelDataChanged:function(M,
N,
O,
P){this.__nM();
var Q=this.getFirstVisibleRow();
var R=this.getVisibleRowCount();
if(N==-1||N>=Q&&M<Q+R){this.updateContent();
}},
onTableModelMetaDataChanged:function(){this.updateContent(true);
},
_applyMaxCacheLines:function(F,
G){if(this.__nL>=F&&F!==-1){this.__nM();
}},
__nM:function(){this.__nH=[];
this.__nL=0;
},
__nN:function(I,
S,
T){if(!S&&!T&&this.__nH[I]){return this.__nH[I];
}else{return null;
}},
__nO:function(I,
U,
S,
T){var V=this.getMaxCacheLines();
if(!S&&!T&&!this.__nH[I]&&V>0){this._applyMaxCacheLines(V);
this.__nH[I]=U;
this.__nL+=1;
}},
updateContent:function(W,
X,
Y,
ba){if(W){this.__nM();
}if(X&&Math.abs(X)<=Math.min(10,
this.getVisibleRowCount())){this._scrollContent(X);
}else if(ba&&!this.getTable().getAlwaysUpdateCells()){this._updateRowStyles(Y);
}else{this._updateAllRows();
}},
_updateRowStyles:function(Y){var bb=this.getContentElement().getDomElement();
if(!bb||!bb.firstChild){this._updateAllRows();
return;
}var bc=this.getTable();
var bd=bc.getSelectionModel();
var be=bc.getTableModel();
var bf=bc.getDataRowRenderer();
var bg=bb.firstChild.childNodes;
var bh={table:bc};
var I=this.getFirstVisibleRow();
var bi=0;
var bj=bg.length;
if(Y!=null){var bk=Y-I;
if(bk>=0&&bk<bj){I=Y;
bi=bk;
bj=bk+1;
}else{return;
}}
for(;bi<bj;bi++,
I++){bh.row=I;
bh.selected=bd.isSelectedIndex(I);
bh.focusedRow=(this.__nJ==I);
bh.rowData=be.getRowData(I);
bf.updateDataRowElement(bh,
bg[bi]);
}},
_getRowsHtml:function(M,
R){var bc=this.getTable();
var bd=bc.getSelectionModel();
var be=bc.getTableModel();
var bl=bc.getTableColumnModel();
var bm=this.getPaneScroller().getTablePaneModel();
var bf=bc.getDataRowRenderer();
be.prefetchRows(M,
M+R-1);
var bn=bc.getRowHeight();
var bo=bm.getColumnCount();
var bp=0;
var bq=[];
for(var br=0;br<bo;br++){var H=bm.getColumnAtX(br);
var bs=bl.getColumnWidth(H);
bq.push({col:H,
xPos:br,
editable:be.isColumnEditable(H),
focusedCol:this.__nK==H,
styleLeft:bp,
styleWidth:bs});
bp+=bs;
}var bt=[];
for(var I=M;I<M+R;I++){var S=bd.isSelectedIndex(I);
var bu=(this.__nJ==I);
var bv=this.__nN(I,
S,
bu);
if(bv){bt.push(bv);
continue;
}var bw=[];
var bh={table:bc};
bh.styleHeight=bn;
bh.row=I;
bh.selected=S;
bh.focusedRow=bu;
bh.rowData=be.getRowData(I);
bw.push(v);
var bx=bf.getRowClass(bh);
if(bx){bw.push(s,
bx,
d);
}var by=bf.createRowStyle(bh);
by+=C+bf.getRowHeightStyle(bn)+t;
if(by){bw.push(j,
by,
d);
}bw.push(p);
for(var br=0;br<bo;br++){var bz=bq[br];
for(var bA in bz){bh[bA]=bz[bA];
}var H=bh.col;
bh.value=be.getValue(H,
I);
var bB=bl.getDataCellRenderer(H);
bB.createDataCellHtml(bh,
bw);
}bw.push(c);
var U=bw.join(a);
this.__nO(I,
U,
S,
bu);
bt.push(U);
}return bt.join(a);
},
_scrollContent:function(bC){var bD=this.getContentElement().getDomElement();
if(!(bD&&bD.firstChild)){this._updateAllRows();
return;
}var bE=bD.firstChild;
var bF=bE.childNodes;
var R=this.getVisibleRowCount();
var M=this.getFirstVisibleRow();
var bG=this.getTable().getTableModel();
var bH=0;
if(bG!=null){bH=bG.getRowCount();
}if(M+R>bH){this._updateAllRows();
return;
}var bI=bC<0?R+bC:0;
var bJ=bC<0?0:R-bC;
for(bN=Math.abs(bC)-1;bN>=0;bN--){var bK=bF[bI];
try{bE.removeChild(bK);
}catch(exp){break;
}}if(!this.__nI){this.__nI=document.createElement(g);
}var bL=e;
bL+=this._getRowsHtml(M+bJ,
Math.abs(bC));
bL+=c;
this.__nI.innerHTML=bL;
var bM=this.__nI.firstChild.childNodes;
if(bC>0){for(var bN=bM.length-1;bN>=0;bN--){var bK=bM[0];
bE.appendChild(bK);
}}else{for(var bN=bM.length-1;bN>=0;bN--){var bK=bM[bM.length-1];
bE.insertBefore(bK,
bE.firstChild);
}}if(this.__nJ!==null){this._updateRowStyles(this.__nJ-bC);
this._updateRowStyles(this.__nJ);
}},
_updateAllRows:function(){var bb=this.getContentElement().getDomElement();
if(!bb){this.addListenerOnce(r,
arguments.callee,
this);
return;
}var bc=this.getTable();
var be=bc.getTableModel();
var bm=this.getPaneScroller().getTablePaneModel();
var bo=bm.getColumnCount();
var bn=bc.getRowHeight();
var M=this.getFirstVisibleRow();
var R=this.getVisibleRowCount();
var bH=0;
if(be!=null){bH=be.getRowCount();
}
if(M+R>bH){R=Math.max(0,
bH-M);
}var bO=bm.getTotalWidth();
var bP;
if(R>0){bP=[B,
m,
(bc.getForceLineHeight()?q+bn+u:a),
h,
z,
this._getRowsHtml(M,
R),
f];
}else{bP=[];
}var bQ=bP.join(a);
bb.innerHTML=bQ;
this.setWidth(bO);
this.__nF=bo;
this.__nG=R;
}},
destruct:function(){this._disposeFields(n,
w,
D);
}});
})();
(function(){var a="hovered",
b="__nP",
c="qx.ui.table.pane.Header";
qx.Class.define(c,
{extend:qx.ui.core.Widget,
construct:function(d){arguments.callee.base.call(this);
this._setLayout(new qx.ui.layout.HBox());
this.__nP=d;
},
members:{__nP:null,
__nQ:null,
__nR:null,
getPaneScroller:function(){return this.__nP;
},
getTable:function(){return this.__nP.getTable();
},
onColOrderChanged:function(){this._updateContent(true);
},
onPaneModelChanged:function(){this._updateContent(true);
},
onTableModelMetaDataChanged:function(){this._updateContent();
},
setColumnWidth:function(e,
f){var g=this.getHeaderWidgetAtColumn(e);
if(g!=null){g.setWidth(f);
}},
setMouseOverColumn:function(e){if(e!=this.__nR){if(this.__nR!=null){var h=this.getHeaderWidgetAtColumn(this.__nR);
if(h!=null){h.removeState(a);
}}
if(e!=null){this.getHeaderWidgetAtColumn(e).addState(a);
}this.__nR=e;
}},
getHeaderWidgetAtColumn:function(e){var i=this.getPaneScroller().getTablePaneModel().getX(e);
return this._getChildren()[i];
},
showColumnMoveFeedback:function(e,
j){var k=this.getContainerLocation();
if(this.__nQ==null){var i=this.getPaneScroller().getTablePaneModel().getX(e);
var l=this._getChildren()[i];
var m=this.getTable().getTableModel();
var n=this.getTable().getTableColumnModel();
var o={xPos:i,
col:e,
name:m.getColumnName(e)};
var p=n.getHeaderCellRenderer(e);
var q=p.createHeaderCell(o);
var r=l.getBounds();
q.setWidth(r.width);
q.setHeight(r.height);
q.setZIndex(1000000);
q.setOpacity(0.8);
q.setLayoutProperties({top:k.top});
this.getApplicationRoot().add(q);
this.__nQ=q;
}this.__nQ.setLayoutProperties({left:k.left+j});
this.__nQ.show();
},
hideColumnMoveFeedback:function(){if(this.__nQ!=null){this.__nQ.destroy();
this.__nQ=null;
}},
isShowingColumnMoveFeedback:function(){return this.__nQ!=null;
},
_updateContent:function(s){var m=this.getTable().getTableModel();
var n=this.getTable().getTableColumnModel();
var t=this.getPaneScroller().getTablePaneModel();
var u=this._getChildren();
var v=t.getColumnCount();
var w=0;
if(m!=null){w=m.getSortColumnIndex();
}if(s){this._cleanUpCells();
}var o={};
o.sortedAscending=false;
if(m!=null){o.sortedAscending=m.isSortAscending();
}
for(var j=0;j<v;j++){var e=t.getColumnAtX(j);
var y=n.getColumnWidth(e);
var p=n.getHeaderCellRenderer(e);
o.xPos=j;
o.col=e;
o.name=m.getColumnName(e);
o.editable=m.isColumnEditable(e);
o.sorted=(e==w);
var z=u[j];
if(z==null){z=p.createHeaderCell(o);
z.set({width:y});
this._add(z);
}else{p.updateHeaderCell(o,
z);
}}},
_cleanUpCells:function(){var u=this._getChildren();
for(var j=u.length-1;j>=0;j--){var l=u[j];
l.destroy();
}}},
destruct:function(){this._disposeObjects(b);
}});
})();
(function(){var a="Boolean",
b="resize-line",
c="mousedown",
d="mouseup",
g="qx.ui.table.pane.CellEvent",
h="scroll",
i="focus-indicator",
j="excluded",
k="scrollbar-y",
l="visible",
m="mousemove",
n="header",
o="editing",
p="click",
q="modelChanged",
r="scrollbar-x",
s="cellClick",
t="qx.event.type.ChangeEvent",
u="pane",
v="__nX",
w="mouseout",
y="changeHorizontalScrollBarVisible",
z="__ob",
A="bottom",
B="_applyScrollTimeout",
C="changeScrollX",
D="_applyTablePaneModel",
E="Integer",
F="dblclick",
G="__nT",
H="__nV",
I="dataEdited",
J="mousewheel",
K="__nU",
L="qx.ui.table.pane.Scroller",
M="_applyShowCellFocusIndicator",
N="resize",
O="vertical",
P="__oo",
Q="__ox",
R="__nY",
S="changeScrollY",
T="__oa",
U="appear",
V="__nW",
W="table-scroller",
X="cellDblclick",
Y="horizontal",
ba="losecapture",
bb="contextmenu",
bc="__nS",
bd="col-resize",
be="disappear",
bf="_applyVerticalScrollBarVisible",
bg="_applyHorizontalScrollBarVisible",
bh="cellContextmenu",
bi="close",
bj="changeTablePaneModel",
bk="qx.ui.table.pane.Model",
bl="changeVerticalScrollBarVisible";
qx.Class.define(L,
{extend:qx.ui.core.Widget,
construct:function(bm){arguments.callee.base.call(this);
this.__nS=bm;
var bn=new qx.ui.layout.Grid();
bn.setColumnFlex(0,
1);
bn.setRowFlex(1,
1);
this._setLayout(bn);
this.__nT=this._showChildControl(r);
this.__nU=this._showChildControl(k);
this.__nV=this._showChildControl(n);
this.__nW=this._showChildControl(u);
this.__nX=new qx.ui.container.Composite(new qx.ui.layout.HBox());
this._add(this.__nX,
{row:0,
column:0,
colSpan:2});
this.__nY=new qx.ui.table.pane.Clipper();
this.__nY.add(this.__nV);
this.__nY.addListener(ba,
this._onChangeCaptureHeader,
this);
this.__nY.addListener(m,
this._onMousemoveHeader,
this);
this.__nY.addListener(c,
this._onMousedownHeader,
this);
this.__nY.addListener(d,
this._onMouseupHeader,
this);
this.__nY.addListener(p,
this._onClickHeader,
this);
this.__nX.add(this.__nY,
{flex:1});
this.__oa=new qx.ui.table.pane.Clipper();
this.__oa.add(this.__nW);
this.__oa.addListener(J,
this._onMousewheel,
this);
this.__oa.addListener(m,
this._onMousemovePane,
this);
this.__oa.addListener(c,
this._onMousedownPane,
this);
this.__oa.addListener(d,
this._onMouseupPane,
this);
this.__oa.addListener(p,
this._onClickPane,
this);
this.__oa.addListener(bb,
this._onContextMenu,
this);
this.__oa.addListener(F,
this._onDblclickPane,
this);
this.__oa.addListener(N,
this._onResizePane,
this);
this._add(this.__oa,
{row:1,
column:0});
this.__ob=this.getChildControl(i);
this.getChildControl(b).hide();
this.addListener(w,
this._onMouseout,
this);
this.addListener(U,
this._onAppear,
this);
this.addListener(be,
this._onDisappear,
this);
if(!this.__oc){this.__oc=qx.lang.Function.bind(this._oninterval,
this);
}this.initScrollTimeout();
},
statics:{MIN_COLUMN_WIDTH:10,
RESIZE_REGION_RADIUS:5,
CLICK_TOLERANCE:5,
HORIZONTAL_SCROLLBAR:1,
VERTICAL_SCROLLBAR:2},
events:{"changeScrollY":t,
"changeScrollX":t,
"cellClick":g,
"cellDblclick":g,
"cellContextmenu":g},
properties:{horizontalScrollBarVisible:{check:a,
init:true,
apply:bg,
event:y},
verticalScrollBarVisible:{check:a,
init:true,
apply:bf,
event:bl},
tablePaneModel:{check:bk,
apply:D,
event:bj},
liveResize:{check:a,
init:false},
focusCellOnMouseMove:{check:a,
init:false},
selectBeforeFocus:{check:a,
init:false},
showCellFocusIndicator:{check:a,
init:true,
apply:M},
scrollTimeout:{check:E,
init:100,
apply:B},
appearance:{refine:true,
init:W}},
members:{__od:null,
__nS:null,
__oe:null,
__of:null,
__oc:null,
__og:null,
__oh:null,
__oi:null,
__oj:null,
__ok:null,
__ol:null,
__om:null,
__on:null,
__oo:null,
__op:null,
__oq:null,
__or:null,
__os:null,
__ot:null,
__ou:null,
__ov:null,
__ow:null,
__ox:null,
__nT:null,
__nU:null,
__nV:null,
__nY:null,
__nW:null,
__oa:null,
__ob:null,
__nX:null,
_createChildControlImpl:function(bo){var bp;
switch(bo){case n:bp=(this.getTable().getNewTablePaneHeader())(this);
break;
case u:bp=(this.getTable().getNewTablePane())(this);
break;
case i:bp=new qx.ui.table.pane.FocusIndicator(this);
bp.setUserBounds(0,
0,
0,
0);
bp.setZIndex(1000);
bp.addListener(d,
this._onMouseupFocusIndicator,
this);
this.__oa.add(bp);
bp.exclude();
break;
case b:bp=new qx.ui.core.Widget();
bp.setUserBounds(0,
0,
0,
0);
bp.setZIndex(1000);
this.__oa.add(bp);
break;
case r:bp=new qx.ui.core.ScrollBar(Y).set({minWidth:0,
alignY:A});
bp.addListener(h,
this._onScrollX,
this);
this._add(bp,
{row:2,
column:0});
break;
case k:bp=new qx.ui.core.ScrollBar(O);
bp.addListener(h,
this._onScrollY,
this);
this._add(bp,
{row:1,
column:1});
break;
}return bp||arguments.callee.base.call(this,
bo);
},
_applyHorizontalScrollBarVisible:function(bq,
br){this.__nT.setVisibility(bq?l:j);
if(!bq){this.setScrollY(0,
true);
}},
_applyVerticalScrollBarVisible:function(bq,
br){this.__nU.setVisibility(bq?l:j);
if(!bq){this.setScrollX(0);
}},
_applyTablePaneModel:function(bq,
br){if(br!=null){br.removeListener(q,
this._onPaneModelChanged,
this);
}bq.addListener(q,
this._onPaneModelChanged,
this);
},
_applyShowCellFocusIndicator:function(bq,
br){if(bq){this._updateFocusIndicator();
}else{if(this.__ob){this.__ob.hide();
}}},
getScrollY:function(){return this.__nU.getPosition();
},
setScrollY:function(bs,
bt){this.__os=bt;
this.__nU.scrollTo(bs);
if(bt){this._updateContent();
}this.__os=false;
},
getScrollX:function(){return this.__nT.getPosition();
},
setScrollX:function(bu){this.__nT.scrollTo(bu);
},
getTable:function(){return this.__nS;
},
onColVisibilityChanged:function(){this.updateHorScrollBarMaximum();
this._updateFocusIndicator();
},
setColumnWidth:function(bv,
bw){this.__nV.setColumnWidth(bv,
bw);
this.__nW.setColumnWidth(bv,
bw);
var bx=this.getTablePaneModel();
var by=bx.getX(bv);
if(by!=-1){this.updateHorScrollBarMaximum();
this._updateFocusIndicator();
}},
onColOrderChanged:function(){this.__nV.onColOrderChanged();
this.__nW.onColOrderChanged();
this.updateHorScrollBarMaximum();
},
onTableModelDataChanged:function(bz,
bA,
bB,
bC){this.__nW.onTableModelDataChanged(bz,
bA,
bB,
bC);
var bD=this.getTable().getTableModel().getRowCount();
if(bD!=this.__od){this.updateVerScrollBarMaximum();
if(this.getFocusedRow()>=bD){if(bD==0){this.setFocusedCell(null,
null);
}else{this.setFocusedCell(this.getFocusedColumn(),
bD-1);
}}this.__od=bD;
}},
onSelectionChanged:function(){this.__nW.onSelectionChanged();
},
onFocusChanged:function(){this.__nW.onFocusChanged();
},
onTableModelMetaDataChanged:function(){this.__nV.onTableModelMetaDataChanged();
this.__nW.onTableModelMetaDataChanged();
},
_onPaneModelChanged:function(){this.__nV.onPaneModelChanged();
this.__nW.onPaneModelChanged();
},
_onResizePane:function(){this.updateHorScrollBarMaximum();
this.updateVerScrollBarMaximum();
this._updateContent();
this.__nV._updateContent();
this.__nS._updateScrollBarVisibility();
},
updateHorScrollBarMaximum:function(){var bE=this.__oa.getInnerSize();
if(!bE){return ;
}var bF=this.getTablePaneModel().getTotalWidth();
var bG=this.__nT;
if(bE.width<bF){var bH=Math.max(0,
bF-bE.width);
bG.setMaximum(bH);
bG.setKnobFactor(bE.width/bF);
var bI=bG.getPosition();
bG.setPosition(Math.min(bI,
bH));
}else{bG.setMaximum(0);
bG.setKnobFactor(1);
bG.setPosition(0);
}},
updateVerScrollBarMaximum:function(){var bE=this.__oa.getInnerSize();
if(!bE){return ;
}var bJ=this.getTable().getTableModel();
var bD=0;
if(bJ!=null){bD=bJ.getRowCount();
}
if(this.getTable().getKeepFirstVisibleRowComplete()){bD+=1;
}var bK=this.getTable().getRowHeight();
var bF=bD*bK;
var bG=this.__nU;
if(bE.height<bF){var bH=Math.max(0,
bF-bE.height);
bG.setMaximum(bH);
bG.setKnobFactor(bE.height/bF);
var bI=bG.getPosition();
bG.setPosition(Math.min(bI,
bH));
}else{bG.setMaximum(0);
bG.setKnobFactor(1);
bG.setPosition(0);
}},
onKeepFirstVisibleRowCompleteChanged:function(){this.updateVerScrollBarMaximum();
this._updateContent();
},
_onAppear:function(){this._startInterval(this.getScrollTimeout());
},
_onDisappear:function(){this._stopInterval();
},
_onScrollX:function(bL){var bM=bL.getData();
this.fireDataEvent(C,
bM,
bL.getOldData());
this.__nY.scrollToX(bM);
this.__oa.scrollToX(bM);
},
_onScrollY:function(bL){this.fireDataEvent(S,
bL.getData(),
bL.getOldData());
this._postponedUpdateContent();
},
_onMousewheel:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}this.__nU.scrollTo(this.__nU.getPosition()+((bL.getWheelDelta()*3)*bm.getRowHeight()));
if(this.__oq&&this.getFocusCellOnMouseMove()){this._focusCellAtPagePos(this.__oq,
this.__or);
}},
__oy:function(bN){var bm=this.getTable();
var bO=this.__nV.getHeaderWidgetAtColumn(this.__ol);
var bP=bO.getSizeHint().minWidth;
var bQ=Math.max(bP,
this.__on+bN-this.__om);
if(this.getLiveResize()){var bR=bm.getTableColumnModel();
bR.setColumnWidth(this.__ol,
bQ);
}else{this.__nV.setColumnWidth(this.__ol,
bQ);
var bx=this.getTablePaneModel();
this._showResizeLine(bx.getColumnLeft(this.__ol)+bQ);
}this.__om+=bQ-this.__on;
this.__on=bQ;
},
__oz:function(bN){var bS=qx.ui.table.pane.Scroller.CLICK_TOLERANCE;
if(this.__nV.isShowingColumnMoveFeedback()||bN>this.__ok+bS||bN<this.__ok-bS){this.__oh+=bN-this.__ok;
this.__nV.showColumnMoveFeedback(this.__og,
this.__oh);
var bT=this.__nS.getTablePaneScrollerAtPageX(bN);
if(this.__oj&&this.__oj!=bT){this.__oj.hideColumnMoveFeedback();
}
if(bT!=null){this.__oi=bT.showColumnMoveFeedback(bN);
}else{this.__oi=null;
}this.__oj=bT;
this.__ok=bN;
}},
_onMousemoveHeader:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}var bU=false;
var bV=null;
var bN=bL.getDocumentLeft();
var bW=bL.getDocumentTop();
this.__oq=bN;
this.__or=bW;
if(this.__ol!=null){this.__oy(bN);
bU=true;
}else if(this.__og!=null){this.__oz(bN);
}else{var bX=this._getResizeColumnForPageX(bN);
if(bX!=-1){bU=true;
}else{var bJ=bm.getTableModel();
var bv=this._getColumnForPageX(bN);
if(bv!=null&&bJ.isColumnSortable(bv)){bV=bv;
}}}var bY=bU?bd:null;
this.getApplicationRoot().setGlobalCursor(bY);
this.setCursor(bY);
this.__nV.setMouseOverColumn(bV);
},
_onMousemovePane:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}var bN=bL.getDocumentLeft();
var bW=bL.getDocumentTop();
this.__oq=bN;
this.__or=bW;
var ca=this._getRowForPagePos(bN,
bW);
if(ca!=null&&this._getColumnForPageX(bN)!=null){if(this.getFocusCellOnMouseMove()){this._focusCellAtPagePos(bN,
bW);
}}this.__nV.setMouseOverColumn(null);
},
_onMousedownHeader:function(bL){if(!this.getTable().getEnabled()){return;
}var bN=bL.getDocumentLeft();
var bX=this._getResizeColumnForPageX(bN);
if(bX!=-1){this._startResizeHeader(bX,
bN);
}else{var cb=this._getColumnForPageX(bN);
if(cb!=null){this._startMoveHeader(cb,
bN);
}}},
_startResizeHeader:function(bX,
bN){var bR=this.getTable().getTableColumnModel();
this.__ol=bX;
this.__om=bN;
this.__on=bR.getColumnWidth(this.__ol);
this.__nY.capture();
},
_startMoveHeader:function(cb,
bN){this.__og=cb;
this.__ok=bN;
this.__oh=this.getTablePaneModel().getColumnLeft(cb);
this.__nY.capture();
},
_onMousedownPane:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}
if(this.isEditing()){this.stopEditing();
}var bN=bL.getDocumentLeft();
var bW=bL.getDocumentTop();
var ca=this._getRowForPagePos(bN,
bW);
var bv=this._getColumnForPageX(bN);
if(ca!==null){this.__oo={row:ca,
col:bv};
var cc=this.getSelectBeforeFocus();
if(cc){bm.getSelectionManager().handleMouseDown(ca,
bL);
}if(!this.getFocusCellOnMouseMove()){this._focusCellAtPagePos(bN,
bW);
}
if(!cc){bm.getSelectionManager().handleMouseDown(ca,
bL);
}}},
_onMouseupFocusIndicator:function(bL){if(this.__oo&&this.__ob.getRow()==this.__oo.row&&this.__ob.getColumn()==this.__oo.col){this.__oo={};
this.fireEvent(s,
qx.ui.table.pane.CellEvent,
[this,
bL,
this.__oo.row,
this.__oo.col],
true);
}},
_onChangeCaptureHeader:function(bL){if(this.__ol!=null){this._stopResizeHeader();
}
if(this.__og!=null){this._stopMoveHeader();
}},
_stopResizeHeader:function(){var bR=this.getTable().getTableColumnModel();
if(!this.getLiveResize()){this._hideResizeLine();
bR.setColumnWidth(this.__ol,
this.__on);
}this.__ol=null;
this.__nY.releaseCapture();
this.getApplicationRoot().setGlobalCursor(null);
this.setCursor(null);
},
_stopMoveHeader:function(){var bR=this.getTable().getTableColumnModel();
var bx=this.getTablePaneModel();
this.__nV.hideColumnMoveFeedback();
if(this.__oj){this.__oj.hideColumnMoveFeedback();
}
if(this.__oi!=null){var cd=bx.getFirstColumnX()+bx.getX(this.__og);
var ce=this.__oi;
if(ce!=cd&&ce!=cd+1){var cf=bR.getVisibleColumnAtX(cd);
var cg=bR.getVisibleColumnAtX(ce);
var ch=bR.getOverallX(cf);
var ci=(cg!=null)?bR.getOverallX(cg):bR.getOverallColumnCount();
if(ci>ch){ci--;
}bR.moveColumn(ch,
ci);
}}this.__og=null;
this.__oi=null;
this.__nY.releaseCapture();
},
_onMouseupPane:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}var ca=this._getRowForPagePos(bL.getDocumentLeft(),
bL.getDocumentTop());
if(ca!=-1&&ca!=null&&this._getColumnForPageX(bL.getDocumentLeft())!=null){bm.getSelectionManager().handleMouseUp(ca,
bL);
}},
_onMouseupHeader:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}
if(this.__ol!=null){this._stopResizeHeader();
this.__op=true;
}else if(this.__og!=null){this._stopMoveHeader();
}},
_onClickHeader:function(bL){if(this.__op){this.__op=false;
return;
}var bm=this.getTable();
if(!bm.getEnabled()){return;
}var bJ=bm.getTableModel();
var bN=bL.getDocumentLeft();
var bX=this._getResizeColumnForPageX(bN);
if(bX==-1){var bv=this._getColumnForPageX(bN);
if(bv!=null&&bJ.isColumnSortable(bv)){var cj=bJ.getSortColumnIndex();
var ck=(bv!=cj)?true:!bJ.isSortAscending();
bJ.sortByColumn(bv,
ck);
bm.getSelectionModel().clearSelection();
}}},
_onClickPane:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}var bN=bL.getDocumentLeft();
var bW=bL.getDocumentTop();
var ca=this._getRowForPagePos(bN,
bW);
var bv=this._getColumnForPageX(bN);
if(ca!=null&&bv!=null){bm.getSelectionManager().handleClick(ca,
bL);
if(this.__ob.isHidden()||(this.__oo&&ca==this.__oo.row&&bv==this.__oo.col)){this.__oo={};
this.fireEvent(s,
qx.ui.table.pane.CellEvent,
[this,
bL,
ca,
bv],
true);
}}},
_onContextMenu:function(bL){var bN=bL.getDocumentLeft();
var bW=bL.getDocumentTop();
var ca=this._getRowForPagePos(bN,
bW);
var bv=this._getColumnForPageX(bN);
if(this.__ob.isHidden()||(this.__oo&&ca==this.__oo.row&&bv==this.__oo.col)){this.__oo={};
this.fireEvent(bh,
qx.ui.table.pane.CellEvent,
[this,
bL,
ca,
bv],
true);
var cl=this.getTable().getContextMenu();
if(cl){cl.placeToMouse(bL);
cl.show();
bL.preventDefault();
}}},
_onContextMenuOpen:function(bL){},
_onDblclickPane:function(bL){var bN=bL.getDocumentLeft();
var bW=bL.getDocumentTop();
this._focusCellAtPagePos(bN,
bW);
this.startEditing();
var ca=this._getRowForPagePos(bN,
bW);
if(ca!=-1&&ca!=null){this.fireEvent(X,
qx.ui.table.pane.CellEvent,
[this,
bL,
ca],
true);
}},
_onMouseout:function(bL){var bm=this.getTable();
if(!bm.getEnabled()){return;
}if(this.__ol==null){this.setCursor(null);
this.getApplicationRoot().setGlobalCursor(null);
}this.__nV.setMouseOverColumn(null);
},
_showResizeLine:function(by){var cm=this._showChildControl(b);
var bw=cm.getWidth();
var cn=this.__oa.getBounds();
cm.setUserBounds(by-Math.round(bw/2),
0,
bw,
cn.height);
},
_hideResizeLine:function(){this._excludeChildControl(b);
},
showColumnMoveFeedback:function(bN){var bx=this.getTablePaneModel();
var bR=this.getTable().getTableColumnModel();
var co=this.__nW.getContainerLocation().left;
var cp=bx.getColumnCount();
var cq=0;
var cr=0;
var cs=co;
for(var ct=0;ct<cp;ct++){var bv=bx.getColumnAtX(ct);
var cu=bR.getColumnWidth(bv);
if(bN<cs+cu/2){break;
}cs+=cu;
cq=ct+1;
cr=cs-co;
}var cv=this.__oa.getContainerLocation().left;
var cw=this.__oa.getBounds().width;
var bu=cv-co;
cr=qx.lang.Number.limit(cr,
bu+2,
bu+cw-1);
this._showResizeLine(cr);
return bx.getFirstColumnX()+cq;
},
hideColumnMoveFeedback:function(){this._hideResizeLine();
},
_focusCellAtPagePos:function(bN,
bW){var ca=this._getRowForPagePos(bN,
bW);
if(ca!=-1&&ca!=null){var bv=this._getColumnForPageX(bN);
this.__nS.setFocusedCell(bv,
ca);
}},
setFocusedCell:function(bv,
ca){if(!this.isEditing()){this.__nW.setFocusedCell(bv,
ca,
this.__of);
this.__ot=bv;
this.__ou=ca;
this._updateFocusIndicator();
}},
getFocusedColumn:function(){return this.__ot;
},
getFocusedRow:function(){return this.__ou;
},
scrollCellVisible:function(bv,
ca){var bx=this.getTablePaneModel();
var ct=bx.getX(bv);
if(ct!=-1){var cx=this.__oa.getInnerSize();
if(!cx){return;
}var bR=this.getTable().getTableColumnModel();
var cy=bx.getColumnLeft(bv);
var cu=bR.getColumnWidth(bv);
var bK=this.getTable().getRowHeight();
var cz=ca*bK;
var bu=this.getScrollX();
var bs=this.getScrollY();
var cA=Math.min(cy,
cy+cu-cx.width);
var cB=cy;
this.setScrollX(Math.max(cA,
Math.min(cB,
bu)));
var cC=cz+bK-cx.height;
if(this.getTable().getKeepFirstVisibleRowComplete()){cC+=bK;
}var cD=cz;
this.setScrollY(Math.max(cC,
Math.min(cD,
bs)),
true);
}},
isEditing:function(){return this.__ov!=null;
},
startEditing:function(){var bm=this.getTable();
var bJ=bm.getTableModel();
var bv=this.__ot;
if(!this.isEditing()&&(bv!=null)&&bJ.isColumnEditable(bv)){var ca=this.__ou;
var ct=this.getTablePaneModel().getX(bv);
var bq=bJ.getValue(bv,
ca);
this.__ow=bm.getTableColumnModel().getCellEditorFactory(bv);
var cE={col:bv,
row:ca,
xPos:ct,
value:bq,
table:bm};
this.__ov=this.__ow.createCellEditor(cE);
if(this.__ov===null){return false;
}else if(this.__ov instanceof qx.ui.window.Window){this.__ov.setModal(true);
this.__ov.setShowClose(false);
this.__ov.addListener(bi,
this._onCellEditorModalWindowClose,
this);
var cF=bm.getModalCellEditorPreOpenFunction();
if(cF!=null){cF(this.__ov,
cE);
}this.__ov.open();
}else{var cG=this.__ob.getInnerSize();
this.__ov.setUserBounds(0,
0,
cG.width,
cG.height);
this.__ob.addListener(c,
function(bL){bL.stopPropagation();
});
this.__ob.add(this.__ov);
this.__ob.addState(o);
this.__ob.setKeepActive(false);
this.__ov.focus();
this.__ov.activate();
}return true;
}return false;
},
stopEditing:function(){this.flushEditor();
this.cancelEditing();
},
flushEditor:function(){if(this.isEditing()){var bq=this.__ow.getCellEditorValue(this.__ov);
var cH=this.getTable().getTableModel().getValue(this.__ot,
this.__ou);
this.getTable().getTableModel().setValue(this.__ot,
this.__ou,
bq);
this.__nS.focus();
this.__nS.fireDataEvent(I,
{row:this.__ou,
col:this.__ot,
oldValue:cH,
value:bq});
}},
cancelEditing:function(){if(this.isEditing()&&!this.__ov.pendingDispose){if(this._cellEditorIsModalWindow){this.__ov.destroy();
this.__ov=null;
this.__ow=null;
this.__ov.pendingDispose=true;
}else{this.__ob.removeState(o);
this.__ob.setKeepActive(true);
this.__ov.destroy();
this.__ov=null;
this.__ow=null;
}}},
_onCellEditorModalWindowClose:function(bL){this.stopEditing();
},
_getColumnForPageX:function(bN){var bR=this.getTable().getTableColumnModel();
var bx=this.getTablePaneModel();
var cp=bx.getColumnCount();
var cs=this.__nV.getContainerLocation().left;
for(var by=0;by<cp;by++){var bv=bx.getColumnAtX(by);
var cu=bR.getColumnWidth(bv);
cs+=cu;
if(bN<cs){return bv;
}}return null;
},
_getResizeColumnForPageX:function(bN){var bR=this.getTable().getTableColumnModel();
var bx=this.getTablePaneModel();
var cp=bx.getColumnCount();
var cs=this.__nV.getContainerLocation().left;
var cI=qx.ui.table.pane.Scroller.RESIZE_REGION_RADIUS;
for(var by=0;by<cp;by++){var bv=bx.getColumnAtX(by);
var cu=bR.getColumnWidth(bv);
cs+=cu;
if(bN>=(cs-cI)&&bN<=(cs+cI)){return bv;
}}return -1;
},
_getRowForPagePos:function(bN,
bW){var cJ=this.__nW.getContentLocation();
if(bN<cJ.left||bN>cJ.right){return null;
}
if(bW>=cJ.top&&bW<=cJ.bottom){var bK=this.getTable().getRowHeight();
var bs=this.__nU.getPosition();
if(this.getTable().getKeepFirstVisibleRowComplete()){bs=Math.floor(bs/bK)*bK;
}var cK=bs+bW-cJ.top;
var ca=Math.floor(cK/bK);
var bJ=this.getTable().getTableModel();
var bD=0;
if(bJ!=null){bD=bJ.getRowCount();
}return (ca<bD)?ca:null;
}var cL=this.__nV.getContainerLocation();
if(bW>=cL.top&&bW<=cL.bottom&&bN<=cL.right){return -1;
}return null;
},
setTopRightWidget:function(cM){var cN=this.__ox;
if(cN!=null){this.__nX.remove(cN);
}
if(cM!=null){this.__nX.add(cM);
}this.__ox=cM;
},
getTopRightWidget:function(){return this.__ox;
},
getHeader:function(){return this.__nV;
},
getTablePane:function(){return this.__nW;
},
getVerticalScrollBarWidth:function(){var bG=this.__nU;
return bG.isVisible()?(bG.getSizeHint().width||0):0;
},
getNeededScrollBars:function(cO,
cP){var cQ=this.__nU.getSizeHint().width;
var cx=this.__oa.getInnerSize();
var cR=cx?cx.width:0;
if(this.getVerticalScrollBarVisible()){cR+=cQ;
}var cS=cx?cx.height:0;
if(this.getHorizontalScrollBarVisible()){cS+=cQ;
}var bJ=this.getTable().getTableModel();
var bD=0;
if(bJ!=null){bD=bJ.getRowCount();
}var cT=this.getTablePaneModel().getTotalWidth();
var cU=this.getTable().getRowHeight()*bD;
var cV=false;
var cW=false;
if(cT>cR){cV=true;
if(cU>cS-cQ){cW=true;
}}else if(cU>cS){cW=true;
if(!cP&&(cT>cR-cQ)){cV=true;
}}var cX=qx.ui.table.pane.Scroller.HORIZONTAL_SCROLLBAR;
var cY=qx.ui.table.pane.Scroller.VERTICAL_SCROLLBAR;
return ((cO||cV)?cX:0)|((cP||!cW)?0:cY);
},
_applyScrollTimeout:function(bq,
br){this._startInterval(bq);
},
_startInterval:function(da){this._stopInterval();
if(da){this.__oe=window.setInterval(this.__oc,
da);
}},
_stopInterval:function(){if(this.__oe){window.clearInterval(this.__oe);
this.__oe=null;
}},
_postponedUpdateContent:function(){this._updateContent();
},
_oninterval:function(){if(this.__of&&!this.__nW._layoutPending){this.__of=false;
this._updateContent();
}},
_updateContent:function(){var bE=this.__oa.getInnerSize();
if(!bE){return;
}var cU=bE.height;
var bu=this.__nT.getPosition();
var bs=this.__nU.getPosition();
var bK=this.getTable().getRowHeight();
var bz=Math.floor(bs/bK);
var db=this.__nW.getFirstVisibleRow();
this.__nW.setFirstVisibleRow(bz);
var dc=Math.ceil(cU/bK);
var dd=0;
var de=this.getTable().getKeepFirstVisibleRowComplete();
if(!de){dc++;
dd=bs%bK;
}this.__nW.setVisibleRowCount(dc);
if(bz!=db){this._updateFocusIndicator();
}this.__oa.scrollToX(bu);
if(!de){this.__oa.scrollToY(dd);
}},
_updateFocusIndicator:function(){if(!this.getShowCellFocusIndicator()){return;
}var bm=this.getTable();
if(!bm.getEnabled()){return;
}this.__ob.moveToCell(this.__ot,
this.__ou);
}},
destruct:function(){this._stopInterval();
var df=this.getTablePaneModel();
if(df){df.dispose();
}this._disposeFields(P,
Q,
bc);
this._disposeObjects(G,
K,
R,
T,
z,
H,
V,
v);
}});
})();
(function(){var a="qx.ui.table.pane.Clipper";
qx.Class.define(a,
{extend:qx.ui.container.Composite,
construct:function(){arguments.callee.base.call(this,
new qx.ui.layout.Grow());
},
members:{scrollToX:function(b){this.getContentElement().scrollToX(b,
false);
},
scrollToY:function(b){this.getContentElement().scrollToY(b,
true);
}}});
})();
(function(){var a="Integer",
b="Escape",
c="keypress",
d="Enter",
f="__oA",
g="excluded",
h="qx.ui.table.pane.FocusIndicator";
qx.Class.define(h,
{extend:qx.ui.container.Composite,
construct:function(i){arguments.callee.base.call(this);
this.__oA=i;
this.setKeepActive(true);
this.addListener(c,
this._onKeyPress,
this);
},
properties:{visibility:{refine:true,
init:g},
row:{check:a,
nullable:true},
column:{check:a,
nullable:true}},
members:{__oA:null,
_onKeyPress:function(j){var k=j.getKeyIdentifier();
if(k!==b&&k!==d){j.stopPropagation();
}},
moveToCell:function(l,
m){if(l==null){this.hide();
this.setRow(null);
this.setColumn(null);
}else{var n=this.__oA.getTablePaneModel().getX(l);
if(n==-1){this.hide();
this.setRow(null);
this.setColumn(null);
}else{var o=this.__oA.getTable();
var p=o.getTableColumnModel();
var q=this.__oA.getTablePaneModel();
var r=this.__oA.getTablePane().getFirstVisibleRow();
var s=o.getRowHeight();
this.setUserBounds(q.getColumnLeft(l)-2,
(m-r)*s-2,
p.getColumnWidth(l)+3,
s+3);
this.show();
this.setRow(m);
this.setColumn(l);
}}}},
destruct:function(){this._disposeFields(f);
}});
})();
(function(){var a="Integer",
b="qx.ui.table.pane.CellEvent";
qx.Class.define(b,
{extend:qx.event.type.Mouse,
properties:{row:{check:a,
nullable:true},
column:{check:a,
nullable:true}},
members:{init:function(c,
d,
e,
f){d.clone(this);
this.setBubbles(false);
if(e!=null){this.setRow(e);
}else{this.setRow(c._getRowForPagePos(this.getDocumentLeft(),
this.getDocumentTop()));
}
if(f!=null){this.setColumn(f);
}else{this.setColumn(c._getColumnForPageX(this.getDocumentLeft()));
}}}});
})();
(function(){var a="qx.lang.Number";
qx.Bootstrap.define(a,
{statics:{isInRange:function(b,
c,
d){return b>=c&&b<=d;
},
isBetweenRange:function(b,
c,
d){return b>c&&b<d;
},
limit:function(b,
c,
d){if(d!=null&&b>d){return d;
}else if(c!=null&&b<c){return c;
}else{return b;
}}}});
})();
(function(){var a="Number",
b="qx.event.type.Event",
c="__oB",
d="_applyFirstColumnX",
e="Integer",
f="qx.ui.table.pane.Model",
g="_applyMaxColumnCount",
h="visibilityChangedPre";
qx.Class.define(f,
{extend:qx.core.Object,
construct:function(i){arguments.callee.base.call(this);
i.addListener(h,
this._onColVisibilityChanged,
this);
this.__oB=i;
},
events:{"modelChanged":b},
statics:{EVENT_TYPE_MODEL_CHANGED:"modelChanged"},
properties:{firstColumnX:{check:e,
init:0,
apply:d},
maxColumnCount:{check:a,
init:-1,
apply:g}},
members:{__oC:null,
__oB:null,
_applyFirstColumnX:function(j,
k){this.__oC=null;
this.fireEvent(qx.ui.table.pane.Model.EVENT_TYPE_MODEL_CHANGED);
},
_applyMaxColumnCount:function(j,
k){this.__oC=null;
this.fireEvent(qx.ui.table.pane.Model.EVENT_TYPE_MODEL_CHANGED);
},
setTableColumnModel:function(i){this.__oB=i;
this.__oC=null;
},
_onColVisibilityChanged:function(l){this.__oC=null;
this.fireEvent(qx.ui.table.pane.Model.EVENT_TYPE_MODEL_CHANGED);
},
getColumnCount:function(){if(this.__oC==null){var m=this.getFirstColumnX();
var n=this.getMaxColumnCount();
var o=this.__oB.getVisibleColumnCount();
if(n==-1||(m+n)>o){this.__oC=o-m;
}else{this.__oC=n;
}}return this.__oC;
},
getColumnAtX:function(p){var m=this.getFirstColumnX();
return this.__oB.getVisibleColumnAtX(m+p);
},
getX:function(q){var m=this.getFirstColumnX();
var n=this.getMaxColumnCount();
var r=this.__oB.getVisibleX(q)-m;
if(r>=0&&(n==-1||r<n)){return r;
}else{return -1;
}},
getColumnLeft:function(q){var s=0;
var t=this.getColumnCount();
for(var r=0;r<t;r++){var u=this.getColumnAtX(r);
if(u==q){return s;
}s+=this.__oB.getColumnWidth(u);
}return -1;
},
getTotalWidth:function(){var v=0;
var t=this.getColumnCount();
for(var r=0;r<t;r++){var q=this.getColumnAtX(r);
v+=this.__oB.getColumnWidth(q);
}return v;
}},
destruct:function(){this._disposeFields(c);
}});
})();
(function(){var a="checked",
b="String",
c="menu-checkbox",
d="_applyChecked",
f="Boolean",
g="changeName",
h="changeChecked",
i="changeValue",
j="qx.ui.menu.CheckBox";
qx.Class.define(j,
{extend:qx.ui.menu.AbstractButton,
implement:qx.ui.form.IFormElement,
construct:function(k,
l){arguments.callee.base.call(this);
if(k!=null){this.setLabel(k);
}
if(l!=null){this.setMenu(l);
}},
properties:{appearance:{refine:true,
init:c},
value:{check:b,
nullable:true,
event:i},
name:{check:b,
nullable:true,
event:g},
checked:{check:f,
init:false,
apply:d,
event:h}},
members:{_applyChecked:function(m,
n){m?this.addState(a):this.removeState(a);
},
_onMouseUp:function(o){if(o.isLeftPressed()){this.toggleChecked();
}},
_onKeyPress:function(o){this.toggleChecked();
}}});
})();
(function(){var a="tree-folder",
b="qx.ui.tree.TreeFolder";
qx.Class.define(b,
{extend:qx.ui.tree.AbstractTreeItem,
construct:function(c){arguments.callee.base.call(this);
if(c){this.setLabel(c);
}},
properties:{appearance:{refine:true,
init:a}},
members:{_addWidgets:function(){this.addSpacer();
this.addOpenButton();
this.addIcon();
this.addLabel();
}}});
})();
