Configure simulators and tools: rearrange buttons behavior: `Accept, no SAve and CLose` and `Accept, SAve and Close`
This commit is contained in:
parent
d91daea84c
commit
d77fb43e5e
|
|
@ -1446,26 +1446,36 @@ XSCHEM before sending commands to the shell:
|
||||||
- d: simulation directory (example: /home/schippes/.xschem/simulations)
|
- d: simulation directory (example: /home/schippes/.xschem/simulations)
|
||||||
- terminal: terminal to be used for applications that need to be
|
- terminal: terminal to be used for applications that need to be
|
||||||
executed in terminal (example: $terminal -e ngspice -i "$N" -a)
|
executed in terminal (example: $terminal -e ngspice -i "$N" -a)
|
||||||
|
|
||||||
If for a given tool there are multiple rows then the radiobutton
|
If for a given tool there are multiple rows then the radiobutton
|
||||||
tells which one will be called by xschem.
|
tells which one will be called by xschem.
|
||||||
Variables should be used with the usual substitution character $: $n, $N, etc.
|
Variables should be used with the usual substitution character $: $n, $N, etc.
|
||||||
Foreground (Fg) checkbutton tells xschem to wait for child process to finish.
|
Foreground (Fg) checkbutton tells xschem to wait for child process to finish.
|
||||||
Status checkbutton tells xschem to report a status dialog (stdout, stderr,
|
Status checkbutton tells xschem to report a status dialog (stdout, stderr,
|
||||||
exit status) when process finishes.
|
exit status) when process finishes.
|
||||||
Any changes made in the command or tool name entries will be saved in
|
|
||||||
~/.xschem/simrc when 'Save Configuration to file' button is pressed.
|
If 'Accept, Save and Close' is pressed then changes made in the dialog box
|
||||||
If 'Accept and Close' is pressed then the changes are kept in memory and dialog
|
entries will be saved in ~/.xschem/simrc, changes will be persistent.
|
||||||
is closed without writing to a file, if xschem is restarted changes will be lost.
|
|
||||||
|
If 'Accept, no Save and Close' is pressed then the changes are kept in
|
||||||
|
memory and dialog is closed without writing to a file,
|
||||||
|
if xschem is restarted changes will be lost.
|
||||||
|
|
||||||
If no ~/.xschem/simrc is present then a minimal default setup is presented.
|
If no ~/.xschem/simrc is present then a minimal default setup is presented.
|
||||||
To reset to default use the corresponding button or just delete the ~/.xschem/simrc
|
To reset to default use the corresponding button or just delete the
|
||||||
file manually.
|
~/.xschem/simrc file manually.
|
||||||
} ro
|
} ro
|
||||||
}
|
}
|
||||||
button .sim.bottom.ok -text {Save Configuration to file} -command "simconf_saveconf $scrollframe"
|
button .sim.bottom.ok -text {Accept, Save and Close} -command "
|
||||||
|
set_sim_defaults
|
||||||
|
simconf_saveconf $scrollframe
|
||||||
|
destroy .sim
|
||||||
|
xschem set semaphore [expr {[xschem get semaphore] -1}]
|
||||||
|
"
|
||||||
button .sim.bottom.reset -text {Reset to default} -command {
|
button .sim.bottom.reset -text {Reset to default} -command {
|
||||||
simconf_reset
|
simconf_reset
|
||||||
}
|
}
|
||||||
button .sim.bottom.close -text {Accept and Close} -command {
|
button .sim.bottom.close -text {Accept, no Save and Close} -command {
|
||||||
set_sim_defaults
|
set_sim_defaults
|
||||||
destroy .sim
|
destroy .sim
|
||||||
xschem set semaphore [expr {[xschem get semaphore] -1}]
|
xschem set semaphore [expr {[xschem get semaphore] -1}]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue