description "Creates a new bbtk package file structure on disk (Graphical user interface for the script bbCreatePackage)." author "laurent.guigues at creatis.insa-lyon.fr" category "bbtk tool" load wx load std new OutputText windowTitle set windowTitle.In "- - - - - - - - - - - - - - Create Blackbox - - - - - - - - - - - - - -" new DirectorySelector dir set dir.Title "Select the location of your new package" new InputText name set name.Title "Name (1 word)" set name.In "NEW_PACKAGE" new InputText author set author.Title "Author(s) (caracters '<', '>' not accepted...)" set author.In "_author_" new InputText description set description.Title "Description (caracters '<', '>' not accepted...)" set description.In "_description_" new LayoutLine info connect windowTitle.Widget info.Widget1 connect name.Widget info.Widget2 connect author.Widget info.Widget3 connect description.Widget info.Widget4 set info.WinDialog true set info.WinWidth 400 set info.WinHeight 250 exec info new Configuration conf new ConcatStrings concatStrCommand set concatStrCommand.In1 "." connect conf.FileSeparator concatStrCommand.In2 set concatStrCommand.In3 "bbCreatePackage " new ConcatStrings concatStr connect concatStrCommand.Out concatStr.In1 connect dir.Out concatStr.In2 set concatStr.In3 " " connect name.Out concatStr.In4 set concatStr.In5 " '" connect author.Out concatStr.In6 set concatStr.In7 "' '" connect description.Out concatStr.In8 set concatStr.In9 "'" new ExecSystemCommand command connect concatStr.Out command.In print $concatStr.Out$ exec command #seg fault : #quit