rename open_in_new_window_or_tab to open_in_new_window
This commit is contained in:
parent
2bd0cd3e4b
commit
44a80ed200
|
|
@ -610,7 +610,7 @@ void ask_new_file(void)
|
||||||
char f[PATH_MAX]; /* overflow safe 20161125 */
|
char f[PATH_MAX]; /* overflow safe 20161125 */
|
||||||
|
|
||||||
if(!has_x) return;
|
if(!has_x) return;
|
||||||
if(!tclgetboolvar("open_in_new_window_or_tab") && xctx->modified) {
|
if(!tclgetboolvar("open_in_new_window") && xctx->modified) {
|
||||||
if(save(1, 0) == -1 ) return; /* user cancels save, so do nothing. */
|
if(save(1, 0) == -1 ) return; /* user cancels save, so do nothing. */
|
||||||
}
|
}
|
||||||
tcleval("load_file_dialog {Load file} *.\\{sch,sym,tcl\\} INITIALLOADDIR");
|
tcleval("load_file_dialog {Load file} *.\\{sch,sym,tcl\\} INITIALLOADDIR");
|
||||||
|
|
@ -629,7 +629,7 @@ void ask_new_file(void)
|
||||||
if(strcmp(tclresult(), "ok")) skip = 1;
|
if(strcmp(tclresult(), "ok")) skip = 1;
|
||||||
}
|
}
|
||||||
if(!skip) {
|
if(!skip) {
|
||||||
if(!tclgetboolvar("open_in_new_window_or_tab")) {
|
if(!tclgetboolvar("open_in_new_window")) {
|
||||||
dbg(1, "ask_new_file(): load file: %s\n", f);
|
dbg(1, "ask_new_file(): load file: %s\n", f);
|
||||||
clear_all_hilights();
|
clear_all_hilights();
|
||||||
xctx->currsch = 0;
|
xctx->currsch = 0;
|
||||||
|
|
|
||||||
|
|
@ -5048,7 +5048,7 @@ proc insert_symbol_filelist {} {
|
||||||
|
|
||||||
proc insert_symbol_place {action} {
|
proc insert_symbol_place {action} {
|
||||||
# puts insert_symbol_place
|
# puts insert_symbol_place
|
||||||
global insert_symbol open_in_new_window_or_tab
|
global insert_symbol open_in_new_window
|
||||||
set sel [.ins.center.left.l curselection]
|
set sel [.ins.center.left.l curselection]
|
||||||
if {$sel eq {}} {
|
if {$sel eq {}} {
|
||||||
set sel [.ins.center.left.l index active]
|
set sel [.ins.center.left.l index active]
|
||||||
|
|
@ -5065,7 +5065,7 @@ proc insert_symbol_place {action} {
|
||||||
if {$action eq {symbol}} {
|
if {$action eq {symbol}} {
|
||||||
xschem place_symbol $f
|
xschem place_symbol $f
|
||||||
} elseif {$action eq {load}} {
|
} elseif {$action eq {load}} {
|
||||||
if {$open_in_new_window_or_tab} {
|
if {$open_in_new_window} {
|
||||||
xschem load_new_window $f
|
xschem load_new_window $f
|
||||||
} else {
|
} else {
|
||||||
xschem load -gui $f
|
xschem load -gui $f
|
||||||
|
|
@ -8507,7 +8507,7 @@ proc no_open_dialogs {} {
|
||||||
## "viewdata_wcounter" should be kept unique as it is the number of open viewdatas
|
## "viewdata_wcounter" should be kept unique as it is the number of open viewdatas
|
||||||
## "measure_id" should be kept unique since we allow only one measure tooltip in graphs
|
## "measure_id" should be kept unique since we allow only one measure tooltip in graphs
|
||||||
## "tabbed_interface"
|
## "tabbed_interface"
|
||||||
## "open_in_new_window_or_tab"
|
## "open_in_new_window"
|
||||||
## "case_insensitive" case insensitive symbol lookup (on case insensitive filesystems only!)
|
## "case_insensitive" case insensitive symbol lookup (on case insensitive filesystems only!)
|
||||||
## "dark_colors_save"
|
## "dark_colors_save"
|
||||||
## "light_colors_save" restore default colors
|
## "light_colors_save" restore default colors
|
||||||
|
|
@ -10186,7 +10186,7 @@ set_ne tabbed_interface 1
|
||||||
|
|
||||||
## File->Open will open in a new window/tab instead of replacing content in current one
|
## File->Open will open in a new window/tab instead of replacing content in current one
|
||||||
## if enabled.
|
## if enabled.
|
||||||
set_ne open_in_new_window_or_tab 0
|
set_ne open_in_new_window 0
|
||||||
|
|
||||||
## case insensitive symbol lookup (on case insensitive filesystems only!)
|
## case insensitive symbol lookup (on case insensitive filesystems only!)
|
||||||
set_ne case_insensitive 0
|
set_ne case_insensitive 0
|
||||||
|
|
|
||||||
|
|
@ -618,7 +618,7 @@
|
||||||
#### if enabled a File->Open action will open in a new window or tab
|
#### if enabled a File->Open action will open in a new window or tab
|
||||||
#### instead of replacing content in current window/tab
|
#### instead of replacing content in current window/tab
|
||||||
#### default: disabled (0)
|
#### default: disabled (0)
|
||||||
# set open_in_new_window_or_tab 1
|
# set open_in_new_window 1
|
||||||
|
|
||||||
###########################################################################
|
###########################################################################
|
||||||
#### ALTERNATE SYMBOL PLACEMENT BROWSER
|
#### ALTERNATE SYMBOL PLACEMENT BROWSER
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue