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
+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()