Reorganized the ToolBox and encapsulated it into a Signle namespace YTB, the tool bundling doesn't work yet

This commit is contained in:
2015-03-18 12:58:55 -07:00
parent 1238e7949e
commit 6d01d35cd0
10 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -4,10 +4,10 @@ yGeneric_data.scriptName = 'YTBGen';
yGeneric_data.scriptDesc = 'YToolBox Generic Script is the base for adding tools.';
yGeneric_data.scriptVer = '0.1a';
yGeneric_data.webLink = 'yorchnet.com';
yGeneric_data.img = yToolBox_data.icon;
yGeneric_data.img = YTB.icon;
//if yToolBox Exists add it to its tool list.
if (typeof(yToolBox_data)!=='undefined'){
if (typeof(YTB)!=='undefined'){
//it should be called from toolbox.
yGeneric_data.buttonWidth=76;
@@ -46,7 +46,7 @@ function build_yGeneric_data_UI(){
yGeneric_data.activate = build_yGeneric_data_UI ;
//alert();
//CHECKS that the toolbox exists, and if it doesn´t it runs the script on its own.
//if (typeof(yToolBox_data)=='undefined'){
//if (typeof(YTB)=='undefined'){
yGeneric_data.activate();
//}else{
//}
+5 -5
View File
@@ -6,15 +6,15 @@ yMultiRenamer_data.scriptVer = '0.1a';
yMultiRenamer_data.webLink = 'yorchnet.com';
//if yToolBox Exists add it to its tool list.
if (typeof(yToolBox_data)!=='undefined'){
yToolBox_data.tools.push(yMultiRenamer_data);
if (typeof(YTB)!=='undefined'){
YTB.tools.push(yMultiRenamer_data);
//it should be called from toolbox.
yMultiRenamer_data.buttonWidth=76;
yMultiRenamer_data.buttonHeight=30;
yMultiRenamer_data.btnLayout = "btn_"+yMultiRenamer_data.scriptName+": Button { preferredSize: ['"+ yToolBox_data.buttonWidth+"','"+ yToolBox_data.buttonHeight+"'], text:'"+yMultiRenamer_data.scriptName+"', helpTip:'"+yMultiRenamer_data.scriptDesc+"' }";
yMultiRenamer_data.btnLayout = "btn_"+yMultiRenamer_data.scriptName+": Button { preferredSize: ['"+ YTB.buttonWidth+"','"+ YTB.buttonHeight+"'], text:'"+yMultiRenamer_data.scriptName+"', helpTip:'"+yMultiRenamer_data.scriptDesc+"' }";
}
@@ -167,10 +167,10 @@ function build_yMultiRenamer_data_UI(){
yMultiRenamer_data.activate = build_yMultiRenamer_data_UI ;
//CHECKS that the toolbox exists, and if it doesn´t it runs the script on its own.
if (typeof(yToolBox_data)=='undefined'){
if (typeof(YTB)=='undefined'){
yMultiRenamer_data.activate();
}else{
}
// a= yMultiRenamer()
// a= yMultiRenamer()
+5 -5
View File
@@ -6,15 +6,15 @@ yMultiRenamer_data.scriptVer = '0.2a';
yMultiRenamer_data.webLink = 'yorchnet.com';
//if yToolBox Exists add it to its tool list.
if (typeof(yToolBox_data)!=='undefined'){
yToolBox_data.tools.push(yMultiRenamer_data);
if (typeof(YTB)!=='undefined'){
YTB.tools.push(yMultiRenamer_data);
//it should be called from toolbox.
yMultiRenamer_data.buttonWidth=76;
yMultiRenamer_data.buttonHeight=30;
yMultiRenamer_data.btnLayout = "btn_"+yMultiRenamer_data.scriptName+": Button { preferredSize: ['"+ yToolBox_data.buttonWidth+"','"+ yToolBox_data.buttonHeight+"'], text:'"+yMultiRenamer_data.scriptName+"', helpTip:'"+yMultiRenamer_data.scriptDesc+"' }";
yMultiRenamer_data.btnLayout = "btn_"+yMultiRenamer_data.scriptName+": Button { preferredSize: ['"+ YTB.buttonWidth+"','"+ YTB.buttonHeight+"'], text:'"+yMultiRenamer_data.scriptName+"', helpTip:'"+yMultiRenamer_data.scriptDesc+"' }";
}
@@ -141,11 +141,11 @@ yMultiRenamer_data.activate = build_yMultiRenamer_data_UI ;
//CHECKS that the toolbox exists, and if it doesn´t it runs the script on its own.
/*
if (typeof(yToolBox_data)=='undefined'){
if (typeof(YTB)=='undefined'){
*/
yMultiRenamer_data.activate();
/*}else{
}
*/
// a= yMultiRenamer()
// a= yMultiRenamer()