Commit Graph

3607 Commits

Author SHA1 Message Date
stefan schippers eda8dca19f file_chooser: save button turns red when current schematic needs a save 2025-10-10 14:52:56 +02:00
stefan schippers 11012480a0 fix: previous commit obscured Motion event 2025-10-10 14:36:49 +02:00
stefan schippers 44e21ad5d4 file_chooser: added save/saveas function 2025-10-10 14:02:35 +02:00
stefan schippers 3ea99e919e find_closest_text(): lower priority to avoid text objects always getting selected vs other closer objects 2025-10-08 01:33:44 +02:00
stefan schippers c565a363b0 added error checking on various file open operations in xschem.tcl 2025-10-08 00:48:16 +02:00
stefan schippers 32d18b5a94 added listbox:select (courtesy Mark G. Saye) procedure to put selected listbox items created with -exportselection 0 into PRIMARY selection 2025-10-07 13:19:27 +02:00
stefan schippers 94a4685829 proc set_paths: remove forgotten line 2025-10-07 02:27:48 +02:00
stefan schippers 629d667eba file_chooser: when clicking directory item clear preview, unselect file items 2025-10-07 02:17:07 +02:00
stefan schippers 4815b1650f get_sym_name() and get_sch_from_sym(): get instance "schematic" attribute in the same way as done in get_additional_symbols() 2025-10-07 02:13:05 +02:00
stefan schippers add555b001 fix paned window sp0 and sp1 sizes save/load in file_chooser 2025-10-07 00:43:10 +02:00
stefan schippers 50f77010fb persistent file_chooser_geometry. A typo in set file_chooser(abs_filename $f (missing close bracket) 2025-10-07 00:27:26 +02:00
stefan schippers feab800bba code formatting 2025-10-06 23:20:54 +02:00
stefan schippers ae1028501c fix a regression in legacy load_file_dialog (due to changes in set_paths) 2025-10-06 23:18:30 +02:00
stefan schippers 028516267b file_chooser: add Show XSCHEM_LIBRARY_PATH in proc file_chooser_set_paths 2025-10-06 22:58:36 +02:00
stefan schippers 4692cb0b04 better comment in file_chooser 2025-10-06 17:20:32 +02:00
stefan schippers eb934e6e7d further improvements in file_chooser when switching windows (trace variables to update) 2025-10-06 16:18:09 +02:00
stefan schippers 8b3f058bfe some fixes in file_chooser about item selections 2025-10-06 11:28:49 +02:00
stefan schippers e63b8bab6c file_chooser: better handling of context switches: clear file list if switching window with a different search path 2025-10-06 10:13:14 +02:00
stefan schippers dc07be9071 in <<ListboxSelect>> events use ...listpath... curselection instead of ..listpath... index active, as the latter is updated *after* the event. 2025-10-06 02:05:20 +02:00
stefan schippers fdd4c74f8a optimizations in file_chooser (less context switches due to preview window). Added double click and shift-double-click bindings 2025-10-06 01:45:26 +02:00
stefan schippers 4f66f22b7d fix typo in src/callback.c 2025-10-05 13:42:59 +02:00
stefan schippers 5623c9ca6f save/update some file_chooser(...) vars when context switching 2025-10-05 13:24:41 +02:00
stefan schippers 6df29362d3 file_chooser: update list when switching windows with different search paths 2025-10-05 13:00:43 +02:00
stefan schippers 136a61b4fc various enhancements / fixes in file_chooser; removed new_file_browser_paths 2025-10-05 12:38:24 +02:00
stefan schippers bbfe350e3f proc file_chooser_place: dont do anything if semaphore >0 2025-10-05 04:44:45 +02:00
stefan schippers 96293738ce new file browser (proc file_chooser): fix showing subdirs with spaces 2025-10-05 03:48:40 +02:00
stefan schippers 56019e3e31 new file browser (proc file_chooser) refactor with many improvements, enabled with "set new_file_browser 1" 2025-10-05 03:01:37 +02:00
stefan schippers 8552331961 refactor some procedure names and variables in proc insert_symbol 2025-10-01 23:21:37 +02:00
stefan schippers 0db270fd1e swap_windows(): hack to fix some window managers failing to set window to exact specified position 2025-10-01 16:35:08 +02:00
stefan schippers 273175b4ff proc get_list_of_dirs_with_files: do not return duplicate directories (this could happend if traversing a list of supplied paths with multiple descend levels the same directory is reached multiple times) 2025-10-01 11:12:09 +02:00
stefan schippers 77db999d35 process_options(): better error report if giving non existent short option(s) 2025-10-01 09:42:52 +02:00
stefan schippers b2e12251dc set_initial_dirs: do not reset INITIAL*DIR if already set 2025-09-30 09:38:19 +02:00
stefan schippers 15c141a480 removed unneeded Shift-Backspace and Ctrl-Backspace keybindings, add Ctrl-Shift-T for open last closed (Ctrl-Shift-O already opens most recent). Tcl var "open_in_new_window" will open in new tab/windows as does ctrl-o 2025-09-29 23:30:31 +02:00
stefan schippers 50c593ed65 various fixes about "lastopened" and "lastclosed" file load options 2025-09-29 13:38:52 +02:00
stefan schippers 8d2088edd5 avoid double "is already open" warning when doing Shift-Backspace or Ctrl-Backstapce when schematic already loaded 2025-09-29 10:23:43 +02:00
stefan schippers b14b94523d doc updates (-lastclosed and -lastopened options in xschem commands) 2025-09-29 10:01:45 +02:00
stefan schippers 9b6e0c697f avoid usage of tk / tk_scaling if no X 2025-09-29 09:43:54 +02:00
stefan schippers 2195596902 implement -lastclosed and -lastopened options in "xschem load" and "xschem load_new_window" commands 2025-09-29 09:28:24 +02:00
stefan schippers 5b1255654e if --lastopened or --lastclosed is specified any file specified on cmdline is considered an additional file to load 2025-09-29 01:21:48 +02:00
stefan schippers bdd09f2db2 add cli options --lastclosed and --lastopened, as well as gui commands Shift-Backspace and Ctrl-Backspace to load last closed or last opened schematic respectively 2025-09-28 23:47:45 +02:00
stefan schippers 94a0a6a2f9 save timestamp in .xschem/geometry and order (last closed first) 2025-09-28 11:39:46 +02:00
stefan schippers 00ad8c9b3b move a pending_fullzoom=1 before a set_geom to avoid missing drawing 2025-09-28 11:06:22 +02:00
stefan schippers cd2aed9e08 move an update instruction in proc set_geom to avoid yet another possible race condition 2025-09-28 10:49:48 +02:00
stefan schippers 87dc376df7 when closing all windows of xschem (in no tabbed mode) avoid unexpected context switches when the "unsaved data" alert is shown, possibly leading to segfault 2025-09-28 09:43:39 +02:00
stefan schippers 63d1897050 various fixes in persistent window geometry save 2025-09-27 03:15:43 +02:00
stefan schippers e8d29c9b42 avoid context switching when opening a new window until new window creation finished (use xctx->pending_fullzoom) 2025-09-27 01:02:36 +02:00
stefan schippers 8043c2af75 source $tcl_files *after* setting default bindings (set_bindings), otherwise additional bindings defined therein will stop working 2025-09-26 23:51:55 +02:00
stefan schippers bbfe761c18 initial_geometry if set in xschemrc has priority over persistent geometry placement 2025-09-26 23:39:50 +02:00
stefan schippers ed9f069752 better avoidance of race conditions between wm and Xevents when placing multiple windows (potential uncaught events) 2025-09-26 18:39:06 +02:00
stefan schippers 0fa05df6ab reset window placement geometry if it happens to be (too much) offscreen 2025-09-26 17:08:07 +02:00