|
|
|
function yToolBox(thisObj){
yToolBox = new Object();
yToolBox.icon = new File('../yScripts/yNet.png');
yToolBox.header = new File('../yScripts/header.png');
yToolBox.info = 'yorchnet.com';
yToolBox.name ='yToolBox';
yToolBox.ver ='0.4.2.1 alpha';
yToolBox.desc='Working tools so far...';
function yToolBox(thisObj){
function yToolBox(thisObj){
function yToolBox(thisObj){
function yToolBox(thisObj){
function yToolBox(thisObj){
yToolBox = new Object();
function yToolBox(thisObj){
yToolBox.icon = new File('../yScripts/yNet.png');
function yToolBox(thisObj){
yToolBox = new Object();
function yToolBox(thisObj){
yToolBox.header = new File('../yScripts/header.png');
function yToolBox(thisObj){
yToolBox.info = 'yorchnet.com';
function yToolBox(thisObj){
yToolBox.name ='yToolBox';
function yToolBox(thisObj){
yToolBox.ver ='0.4.2.1 alpha';
function yToolBox(thisObj){
yToolBox.desc='Working tools so far...';
function yToolBox(thisObj){
function yToolBox(thisObj){
yToolBox = new Object();
function yToolBox(thisObj){
yToolBox = new Object();
//MAIN WINDOW STRUCTURE.
var res_header ="group { orientation:'column', alignment:['fill','fill'],margins:[0,0,0,0] \
header: Group { orientation:'column', alignment:['center','top'],margins:[0,0,0,0]\
title: Image {icon:'"+yToolBox.header.path+'/'+yToolBox.header.name+"',preferredSize: [175, 35]},\
ver: StaticText { text:'"+yToolBox.ver+"', alignment:['center','center']}\
desc: StaticText { text:'"+yToolBox.desc+"', alignment:['center','center']}, \
}, \
main: Group { orientation:'column',alignment:['fill','fill'], alignChildren:['center','center'],"
var res = ""; //To be populated with the included Tools
var res_footer ="}, \
cmds: Group { alignment:['center','bottom'], \
icn_app: Image {icon:'"+ yToolBox.icon.path+'/'+ yToolBox.icon.name+"',preferredSize: [15, 18]},\
txt_info: StaticText { text:'"+yToolBox.info+"', alignment:['fill','center'] },\
}, \
}";
//POPULATE res with included tools.
for (i=0;i<yToolBox.tools.length;i++){
res = res + yToolBox.tools [i].btnLayout;
}
function yToolBox(thisObj){
yToolBox = new Object();
//LAYOUT Stuff
yToolBox.window.grp = yToolBox.window.add(res_header+res+res_footer);
yToolBox.window.layout.layout(true);
yToolBox.window.onResize = resize;
yToolBox.window.onClose = function () {delete yToolBox;};
//ASSIGN buttons to the activate function of each tool;
var toolBtns = yToolBox.window.grp.main.children;
for(n=0;n<toolBtns.length;n++){
toolBtns[n].onClick=yToolBox.tools[n].activate;
yToolBox.icon = new File('../yScripts/yNet.png');
yToolBox.header = new File('../yScripts/header.png');
yToolBox.header = new File('../yScripts/header.png');
function yToolBox(thisObj){
function yToolBox(thisObj){
yToolBox = new Object();
function resize(){
this.layout.resize();
customize;
}
function yToolBox(thisObj){
yToolBox = new Object();
function customize(){
g = yToolBox.window.grp.main.graphics;
myFont = ScriptUI.newFont('Cooper Std Black',ScriptUI.FontStyle.REGULAR ,14 );
myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [1, .45, 0, 1]);
g.backgroundColor = myBrush;
/*g = yToolBox.window.grp.header.title.graphics;
g.font = myFont;
function yToolBox(thisObj){
yToolBox = new Object();
g =yToolBox.window.grp.header.graphics;
g.backgroundColor = myBrush;
yToolBox.info = 'yorchnet.com';
yToolBox.icon = new File('../yScripts/yNet.png');
yToolBox.icon = new File('../yScripts/yNet.png');
function yToolBox(thisObj){
yToolBox = new Object();
ytb = yToolBox(this);
function yToolBox(thisObj){
yToolBox = new Object();
ytb.window.grp.onDraw = resize;
ytb.window.grp.onDraw = customize;
|
|
|
|
var YToolBox = function YToolBox(thisObj)
{
var resources =
yToolBox.name ='yToolBox';
function yToolBox(thisObj){
yToolBox.name ='yToolBox';
yToolBox.name ='yToolBox';
yToolBox = new Object();
yToolBox.name ='yToolBox';
yToolBox.icon = new File('../yScripts/yNet.png');
yToolBox.name ='yToolBox';
yToolBox.header = new File('../yScripts/header.png');
yToolBox.name ='yToolBox';
yToolBox.info = 'yorchnet.com';
yToolBox.name ='yToolBox';
function yToolBox(thisObj){
url : 'yorchnet.com',
yToolBox.name ='yToolBox';
yToolBox.ver ='0.4.2.1 alpha';
yToolBox.name ='yToolBox';
yToolBox.desc='Working tools so far...';
description : 'Working tools so far...'
}
var gui =
{
yToolBox.ver ='0.4.2.1 alpha';
buttonHeight : 30
}
var tools = [];
#include "../yScripts/y_JSExtensions.jsx";
this.addTool = function addTool(aTool)
yToolBox.name ='yToolBox';
function yToolBox(thisObj){
alert("AddTool : Adding");
alert("AddTool : there are " + this.tools.length + " tools right now");
this.tools.push(aTool);
alert("AddTool : there are " + this.tools.length + " tools right now");
}
yToolBox.desc='Working tools so far...';
yToolBox.desc='Working tools so far...';
function yToolBox(thisObj){
yToolBox.name ='yToolBox';
function yToolBox(thisObj){
yToolBox.desc='Working tools so far...';
g = this.window.grp.main.graphics;
myFont = ScriptUI.newFont('Cooper Std Black',ScriptUI.FontStyle.REGULAR ,14 );
myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [1, .45, 0, 1]);
g.backgroundColor = myBrush;
*/
alert();
}
function yToolBox(thisObj){
{
this.layout.resize();
yToolBox.buttonWidth=126;
}
function yToolBox(thisObj){
yToolBox = new Object();
yToolBox.name ='yToolBox';
function yToolBox(thisObj){
function yToolBox(thisObj){
yToolBox.icon = new File('../yScripts/yNet.png');
function yToolBox(thisObj){
yToolBox.header = new File('../yScripts/header.png');
function yToolBox(thisObj){
yToolBox.info = 'yorchnet.com';
function yToolBox(thisObj){
yToolBox.name ='yToolBox';
function yToolBox(thisObj){
yToolBox.ver ='0.4.2.1 alpha';
function yToolBox(thisObj){
yToolBox.desc='Working tools so far...';
yToolBox.buttonHeight=30;
yToolBox.buttonHeight=30;
function yToolBox(thisObj){
yToolBox.buttonHeight=30;
function yToolBox(thisObj){
orientation:'column', \
alignment:['center','top'],\
margins:[0,0,0,0]\
\
title: Image\
{\
function yToolBox(thisObj){
function yToolBox(thisObj){
function yToolBox(thisObj){
function yToolBox(thisObj){
yToolBox.window = (thisObj instanceof Panel) ? thisObj : new Window("palette", yToolBox.info , undefined, {resizeable:true});
function yToolBox(thisObj){
//MAIN WINDOW STRUCTURE.
function yToolBox(thisObj){
var res_header ="group { orientation:'column', alignment:['fill','fill'],margins:[0,0,0,0] \
{\
function yToolBox(thisObj){
header: Group { orientation:'column', alignment:['center','top'],margins:[0,0,0,0]\
function yToolBox(thisObj){
title: Image {icon:'"+yToolBox.header.path+'/'+yToolBox.header.name+"',preferredSize: [175, 35]},\
function yToolBox(thisObj){
ver: StaticText { text:'"+yToolBox.ver+"', alignment:['center','center']}\
function yToolBox(thisObj){
desc: StaticText { text:'"+yToolBox.desc+"', alignment:['center','center']}, \
function yToolBox(thisObj){
}, \
function yToolBox(thisObj){
main: Group { orientation:'column',alignment:['fill','fill'], alignChildren:['center','center'],"
function yToolBox(thisObj){
var res = ""; //To be populated with the included Tools
function yToolBox(thisObj){
var res_footer ="}, \
function yToolBox(thisObj){
cmds: Group { alignment:['center','bottom'], \
function yToolBox(thisObj){
icn_app: Image {icon:'"+ yToolBox.icon.path+'/'+ yToolBox.icon.name+"',preferredSize: [15, 18]},\
function yToolBox(thisObj){
txt_info: StaticText { text:'"+yToolBox.info+"', alignment:['fill','center'] },\
function yToolBox(thisObj){
}";
function yToolBox(thisObj){
function yToolBox(thisObj){
//POPULATE res with included tools.
function yToolBox(thisObj){
for (i=0;i<yToolBox.tools.length;i++){
{\
function yToolBox(thisObj){
res = res + yToolBox.tools [i].btnLayout;
function yToolBox(thisObj){
}
function yToolBox(thisObj){
ver: StaticText { text:'"+yToolBox.ver+"', alignment:['center','center']}\
function yToolBox(thisObj){
//LAYOUT Stuff
{\
function yToolBox(thisObj){
yToolBox.window.grp = yToolBox.window.add(res_header+res+res_footer);
function yToolBox(thisObj){
yToolBox.window.layout.layout(true);
function yToolBox(thisObj){
yToolBox.window.onResize = resize;
},\
function yToolBox(thisObj){
yToolBox.window.onClose = function () {delete yToolBox;};
function yToolBox(thisObj){
//ASSIGN buttons to the activate function of each tool;
function yToolBox(thisObj){
var toolBtns = yToolBox.window.grp.main.children;
function yToolBox(thisObj){
for(n=0;n<toolBtns.length;n++){
function yToolBox(thisObj){
toolBtns[n].onClick=yToolBox.tools[n].activate;
//INCLUDED TOOLS
function yToolBox(thisObj){
yToolBox.header = new File('../yScripts/header.png');
function yToolBox(thisObj){
function yToolBox(thisObj){
//ASSIGN buttons to the activate function of each tool;
function yToolBox(thisObj){
function resize(){
function yToolBox(thisObj){
this.layout.resize();
function yToolBox(thisObj){
customize;
function yToolBox(thisObj){
function customize(){
function yToolBox(thisObj){
g = yToolBox.window.grp.main.graphics;
}
function yToolBox(thisObj){
myFont = ScriptUI.newFont('Cooper Std Black',ScriptUI.FontStyle.REGULAR ,14 );
{
function yToolBox(thisObj){
myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [1, .45, 0, 1]);
function yToolBox(thisObj){
function yToolBox(thisObj){
g.backgroundColor = myBrush;
function yToolBox(thisObj){
/*g = yToolBox.window.grp.header.title.graphics;
function yToolBox(thisObj){
g.font = myFont;
function yToolBox(thisObj){
g =yToolBox.window.grp.header.graphics;
yToolBox.name ='yToolBox';
yToolBox.icon = new File('../yScripts/yNet.png');
#include "../yScripts/y_setStructure.jsx";
yToolBox.icon = new File('../yScripts/yNet.png');
function yToolBox(thisObj){
ytb = yToolBox(this);
function yToolBox(thisObj){
ytb.window.grp.onDraw = resize;
function yToolBox(thisObj){
ytb.window.grp.onDraw = customize
#include "../yScripts/y_setStructure.jsx";
|