<< GUI Tools GUI Tools guimaker >>

GUI Tools >> GUI Tools > gui2builder

gui2builder

Creates an input file to guibuilder from an existing graphical user interface (gui).

Calling Sequence

gui2builder(fig,sceFileName)

Parameters

fig:

handle to an existing gui (figure handle)

sceFileName:

optional string with a valid file name where code is to be saved

Description

Creates a valid input file to guibuilder from an existing gui.

A graphical user interface created with for example guimaker can be easily ported to guibuilder for further manual modifications.

This version of gui2builder does not yet support axes or menus.

NOTE: guibuilder can be installed using the command: atomsInstall('guibuilder'). See http://atoms.scilab.org/toolboxes/guibuilder for more info on the guibuilder toolbox.

Examples

page=list(); // Example using guimaker
page($+1)=list(list([1 10],'frame','General properties'));
page($+1)=list(list('text','Particle diameter [nm]'),list('edit','1000'));
page($+1)=list(list('text','Particle density [g/cm3]'),list('edit','1'));
page($+1)=list(list('text','Gas viscosity (0C) u [N*sec/m2]'),list('edit','0.0000172'));
page($+1)=list(list('text','Gas density (0C), 1 atm [kg/m3]'),list('edit','1.29'));
page($+1)=list(list('text','Mean free path (0C), 1 atm [nm]'),list('edit','67'));
page($+1)=list(list('text','Gamma, Cv/Cp'),list('edit','1.4'));
page($+1)=list(list('text','Sutherlands temperature, [K]'),list('edit','110.4'));
page($+1)=list(list('text','Temperature, [K]'),list('edit','300'));
page($+1)=list(list('text','Volume flow rate [standard l/min]'),list('edit','0.5'));
page($+1)=list(list([1 4],'frame','Telescope properties'));
page($+1)=list(list('text','Orifice diameters [mm]'),list('edit','1,1,1,1,1'));
page($+1)=list(list('text','Tube diameters [mm]'),list('edit','100,100,100,100,100'));
page($+1)=list(list('text','Input diameters [mm]'),list('edit','201325'));
page($+1)=list(list(2),list('pushbutton','Stop','callback','OK=%t'),list(2));
guimaker(page,list('Aerodynamic Lens Design'),[],2); // create a gui with guimaker
gui2builder(gcf(),'AeroDynLensDes.sce'); // create code for guibuilder
guibuilder('AeroDynLensDes.sce')

// Example from one of the Scilab demos.
exec SCI\modules\gui\demos\uicontrol.dem.sce
gui2builder(gcf(),'uicontrol.sce'); // create code for guibuilder
guibuilder('uicontrol.sce')

See also

Authors


Report an issue
<< GUI Tools GUI Tools guimaker >>