Commit Graph

3202 Commits

Author SHA1 Message Date
stefan schippers 26b67ba137 annotate_op: if no OP and no DC dataset found load TRAN dataset and use 1st tran point in schematic annotation 2026-02-22 12:35:04 +01:00
stefan schippers b1bfafe329 fix wrong null character detection in remove_expr() 2026-02-20 11:57:37 +01:00
stefan schippers 629e0fa5af remove trailing spaces on some lines 2026-02-19 18:03:16 +01:00
stefan schippers 0e0b53e539 fix test on uninitialized string character in get_sym_template() 2026-02-19 11:43:53 +01:00
stefan schippers a21a844a2f remove debug message in callback() 2026-02-18 18:14:46 +01:00
stefan schippers 920821445e handle_button_press(): remove ButtonState[12345] bits from state parameter to allow modifier-button command remapping via replace_key 2026-02-18 17:46:02 +01:00
stefan schippers a8573a1c62 fix XK_ISO_Left_Tab to compile on windows; initialize framewin_child_ptr pointers to NULL, and remove extra slash from " in test_backannotated_subckt.sch so it wont seg fault on Windows. 2026-02-18 08:55:14 +01:00
stefan schippers 0c1f844e62 allow limited usage (not in graph expressions) of node names with spaces (by escaping the spaces) in graphs 2026-02-15 15:00:24 +01:00
stefan schippers 7a262c451f allow parsing node names with spaces in raw files (variable list is tab separated so there is no ambiguity) 2026-02-15 13:20:23 +01:00
stefan schippers 9532340a0e better usage of no_ask_save tcl var (keep asking to save modified schematics when navigating hierarchy to avoid nuking edits) 2026-02-13 13:55:05 +01:00
stefan schippers d3ec547394 recognize CYGWIN systems in proc execute_fileevent 2026-02-09 16:51:17 +01:00
stefan schippers 13406893d1 text / textprop editing: allow to click in canvas area to confirm and close, like in other text widgets 2026-01-31 23:44:49 +01:00
stefan schippers 1abfe583b0 store_geom: fix typo (xschem get toplevel --> xschem get topwindow) 2026-01-31 23:14:53 +01:00
stefan schippers 52b0f98dac better apply store_geom when closing or loading a new schematic into a window/tab with an existing schematic 2026-01-31 11:17:32 +01:00
stefan schippers cee25ab335 add round(), round1(), round6() expr functions 2026-01-30 18:58:45 +01:00
stefan schippers 6d86b73c81 "xschem getprop text xxx ...": allow "xxx" to be the name attribute in addition of the text index number 2026-01-28 12:34:09 +01:00
stefan schippers 5365da9239 dtoa_eng(): use MEG instead of M for "mega" (M is considered as "milli" by spice) 2026-01-27 17:33:55 +01:00
stefan schippers fc5c5b97fe add expr_eng4() operator in addition to expr_eng() that returns 4 significant digits instead of 5 2026-01-27 17:19:07 +01:00
stefan schippers 0c25490c9d launchers: tclcommand attribute defined in the symbol will be used if no instance tclcommand attribute found 2026-01-24 19:51:01 +01:00
stefan schippers ee796ff369 spice netlist: when m=1 (device/subckt multiplicity) dont set it in device netlist lines (redundant and in some cases not accepted) 2026-01-23 13:12:41 +01:00
stefan schippers 2c2f9e6954 tclcommand attr in launcher: resolve @param attrs found in instance attrs or symbol attrs 2026-01-23 11:22:41 +01:00
stefan schippers abccc03ac9 bspwave default launch command: do not specify $n.raw, raw file will be loaded when adding nets 2026-01-22 11:46:33 +01:00
stefan schippers 309697499c Tools->insert image: fix to allow filenames with spaces 2026-01-14 01:09:53 +01:00
stefan schippers 2a242cb80a revert wrong cairo_font_face_destroy() insertion 2026-01-07 13:59:16 +01:00
stefan schippers 3a244967d1 xinit.c: free framewin_child_ptr after querying 2026-01-07 13:53:09 +01:00
stefan schippers e1506e0433 fix wrong allocation (array of of double* instead of array of double) 2026-01-07 11:17:36 +01:00
stefan schippers 1bc3332b89 fix redef_puts (avoid double lines printed in tclcmd) 2026-01-06 11:39:23 +01:00
stefan schippers 9ab3cad8a1 merge_file: do not start move_objects(RUBBER,...) if nothing to merge found 2025-12-19 13:06:57 +01:00
stef 7d8ce2f9ad remove spaces on line ends, brace expr tcl expression when possible, resize rectangle in intuitive interface made easier at far zoom levels 2025-12-13 11:51:05 +01:00
stefan schippers 688f5fd128 spectre_netlist.c: rename some static vars for clarity and to avoid name clashes with spice_netlist.c 2025-12-02 01:55:16 +01:00
stefan schippers a61f2cba2a fix arbitrary widths in shapes, add "xschem get change_lw", "xschem get min_lw", "xschem set change_lw", cached tcl var "change_lw" into xctx->change_lw 2025-12-01 10:11:19 +01:00
stefan schippers 6bea824fdc fixes in veriable line width drawing routines 2025-11-30 23:13:38 +01:00
stefan schippers b628d66e8f arbitrary box widths (and some fixes on wire widths) 2025-11-29 14:36:15 +01:00
stefan schippers f25b40861c allow arbitrary widths (via ex. bus=5.0 attr) on wires 2025-11-29 00:47:46 +01:00
stefan schippers 8da982999a allow arbitrary widths (with ex. bus=3.5 attr) for arcs / circles 2025-11-28 13:31:45 +01:00
stefan schippers 7216c54f57 allow arbitrary widths of polygons (with attr bus=5.0) 2025-11-27 22:03:10 +01:00
stefan schippers b67ee6a6b8 removed unused var new_file_browser_paths 2025-11-26 17:39:22 +01:00
stefan schippers cf7a74bc99 transform get_attr_val() to return a double instead of an int, use -1.0 for "bus" attribute, otherwise use positive double values to indicate actual line widths. This allows specifying custom widths in the future, but still maintaining compatibility with bus=1. "bus" struct members are thus doubles now 2025-11-26 14:07:54 +01:00
stefan schippers 86ec0d567f remove commented out code 2025-11-25 22:27:50 +01:00
stefan schippers d8fb5b1480 added bus (cached from attr) member in Polygon struct for efficiency 2025-11-25 15:25:42 +01:00
stefan schippers 369fac66a9 added raw file expression functions deriv2() and deriv20() (3-point derivatives) 2025-11-16 19:58:50 +01:00
stefan schippers 1799334a43 proc key_binding: add Button=Press-4 and Button-Press-5 in $state variable 2025-11-16 15:58:21 +01:00
stefan schippers 58c33e48aa fix some redundant code in "xschem raw new comand" 2025-11-16 15:22:15 +01:00
stefan schippers 98395824bc floater=1 in text elements assumed as floater=true to avoid referencing instance no.1. Texts with @params will go thru translation using parent level param assignments in translate() 2025-11-12 17:44:55 +01:00
stefan schippers e97a75f65a do not consider "@spice*" texts in symbol bbox calculation (annotator texts) 2025-11-11 16:55:39 +01:00
stefan schippers ce9e8fd3c1 added vertical scrollbar in text object editprop 2025-11-10 23:56:35 +01:00
stefan schippers 0318905a25 improve tclcmd_ok procedure 2025-11-10 18:55:44 +01:00
stefan schippers f3457e0f19 cleanup double (or more) slashes in pathlist when parsing XSCHEM_LIBRARY_PATH 2025-11-03 12:21:48 +01:00
stefan schippers e0a9073d46 xctx->menu_removed, tcl vars fullscreen toolbar_visible are shared by all tabs in tabbed interface, so make their values unique; install diff_amp.va (was missing in install script) 2025-11-02 23:27:04 +01:00
stefan schippers 72ac35a7c8 fullscreen functionality: propagate xctx->menu_removed when creating new windows / tabs 2025-11-02 18:21:00 +01:00
stefan schippers 56aa1a6a27 fullscreen will again remove menubar (was always shown after menu refactoring) 2025-11-02 16:51:29 +01:00
stefan schippers 730b951b37 smaller threshold for mouse movement to abort click&drag move operation 2025-11-02 11:19:15 +01:00
stefan schippers a41d142562 do not show "already open" warning if re-opening same schematic in same window/tab; new_file_browser: "Save current window" button will ask where to save, to avoid dangerous overwrites 2025-11-02 10:23:58 +01:00
stefan schippers aa240c4244 xschem table_read (not the recommended xschem raw table_read): set raw->sim_type to "table" 2025-11-01 23:04:23 +01:00
stefan schippers eae8c2772a fix regression (no check for null raw->sim_type), allow quoted table titles in table_read() 2025-11-01 22:43:48 +01:00
stefan schippers ba020c243e propagate changes for arcs with negative b angle to svgdraw and psprint 2025-11-01 02:08:17 +01:00
stefan schippers 442436a8aa another fix find_closest_arc() if arc was saved with negative "b" angle 2025-10-30 01:53:00 +01:00
stefan schippers 1c1edfe159 redo fix arc_bbox() if arc was saved with negative "b" angle 2025-10-30 01:45:20 +01:00
stefan schippers 3fcc5cdfc6 fix find_closest_arc() and arc_bbox() if arc was saved with negative "b" angle 2025-10-30 01:12:11 +01:00
stefan schippers bf344309f0 implement "nodraw" flag in all object selections in the "xschem select" command, implement the "nodraw" flag in "xschem search" command 2025-10-29 09:06:07 +01:00
stefan schippers 2763c6010f improved xschem arc command (allow user parameters in addition to GUI plaecment) 2025-10-29 08:20:08 +01:00
stefan schippers 129e194bc5 tclcmd improvements 2025-10-27 23:13:14 +01:00
stefan schippers 1583c83d96 small improveents in "Execute tcl command" 2025-10-27 08:43:27 +01:00
stefan schippers 5c41eabcd6 fix error in "xschem text" command arguments 2025-10-24 07:42:10 +02:00
stefan schippers d16cbf94c0 improvements in tcl command console (added "=" keybind) 2025-10-23 15:11:19 +02:00
stefan schippers afefb18ee2 fix regression: selection of beziers either by clicking close to the bezier line or to the control points 2025-10-15 11:12:16 +02:00
stefan schippers d3d0b78c08 better and faster is_xschem_file detection 2025-10-15 10:41:32 +02:00
stefan schippers b01bd1ca60 improve previous fix 2025-10-14 00:45:32 +02:00
stefan schippers b072701cbd fix regresions in get_sym_name() and get_sch_from_sym(), use catch {...} in proc edit_prop for xschem getprop symbol ... command if symbol not found 2025-10-14 00:31:47 +02:00
stefan schippers 8b7b444f13 complete previous commit 2025-10-13 16:22:01 +02:00
stefan schippers 9fc68ed81b pins / labels with no "lab" attribute set will inherit it from attached nets. Do not use template symbol "lab" attribute 2025-10-13 12:13:57 +02:00
stefan schippers f732071a02 Recent component toolbar: removed c_t($i,command) member from c_t array 2025-10-12 23:36:36 +02:00
stefan schippers 169f5c9d5f file_chooser: by default include level 0 base directories even if not containing xschem files; fixed a bug in table_read() (uninitialized data if failed to find table file) 2025-10-11 09:47:11 +02:00
stefan schippers 7c8988407d better balloon messages 2025-10-11 00:23:42 +02:00
stefan schippers 60cb795a74 add "Select current" button in file_chooser 2025-10-11 00:19:56 +02:00
stefan schippers 57ec990e6d file_chooser_saveas: reset save button background after save 2025-10-10 18:57:04 +02:00
stefan schippers 31b9598219 translate(): resolve stuff like value="expr( 1000 * @VCC )" with value=1800 (using translate3() with parent level prop_ptr attributes) 2025-10-10 18:40:59 +02:00
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