Commit Graph

408 Commits

Author SHA1 Message Date
stefan schippers 12b01e31c6 draw_symbol() and draw_temp_symbol(): do not attempt to do a 2nd level @var resolution for texts as this creates more inconveniences than advantages (quoting hell) 2024-03-20 23:57:01 +01:00
stefan schippers 6886fd98e9 f**k 2024-03-20 12:28:49 +01:00
stefan schippers 61b1c0b368 add `Tools->Grab screen area` function (unix only) 2024-03-20 03:53:56 +01:00
stefan schippers 197379989a edit_image(): add removal of transparency with white and black 2024-03-18 10:54:10 +01:00
stefan schippers 04409cc315 simplified ps_embedded_image(), avoid recoding jpeg if possible (no invert), error checks in edit_image() and get_surface_from_b64data() 2024-03-18 01:08:51 +01:00
Stefan Schippers b46828ae3e fix a typo in simconf, fix embedding of jpeg inside svg images 2024-03-17 20:16:48 +01:00
stefan schippers bf027bc4f8 refactored draw_image() into smaller functions 2024-03-17 10:11:57 +01:00
stefan schippers 294529f885 protect with #if HAS_CAIRO==1 the edit_image() calls 2024-03-17 01:56:59 +01:00
stefan schippers d5f7c5c88c cleanups in draw_image(), added command `xschem image` for various operations on images 2024-03-17 01:32:10 +01:00
stefan schippers 6416df9733 cleanups in draw_image(), do not decode-reencode jpeg data 2024-03-16 12:50:42 +01:00
stefan schippers f84305930f fix size and number of items ordering in fread() to match returned sizes 2024-03-15 16:07:46 +01:00
stefan schippers 092f111925 intuitive_interface fix: only clicking on an instance (no drag) does not push to undo state 2024-03-15 15:53:38 +01:00
stefan schippers d30715bc2c add #ifdefs for missing libjpeg libraries to avoid link problems, remove some warnings from compilers/glib versions that tave some functions marked as -Wunused-result 2024-03-15 13:59:52 +01:00
stefan schippers 56697dfc43 protect inspect_iage with HAS_CAIRO==1 2024-03-15 12:57:42 +01:00
stefan schippers 3bcda95589 improvements in image handling (png/jpg) 2024-03-15 00:37:27 +01:00
stefan schippers 6c0398a8b6 fix unintended move operation start when clicking a launcher that starts a new schematic and returning to the originating schematic containing the launcher. Added support for direct JPG image import (no JPG->PNG filters) 2024-03-14 11:09:49 +01:00
stefan schippers 90241d2463 Alt-x to toggle crosshair display, removed alt-x and ctrl-shift-X for compare schematic functions (seldom used) improved calculation of `delta` in drawgrid, improved search() (added missing arcs and polygon attribute searches) 2024-03-10 12:11:51 +01:00
stefan schippers 218d4ad3f2 fill=solid in addition to fill=1 (stippled fill) or fill=0 (no fill) for rectangles, polygon/beziers and circles 2024-03-09 03:12:25 +01:00
stefan schippers 733d5a9bb1 intuitive_interface fix bug (did unselect all when clicking on a new instance) 2024-03-05 09:55:35 +01:00
stefan schippers 99e2c9e503 various improvements in intuitive_interface and shape point selection 2024-03-05 02:54:35 +01:00
stefan schippers 2561014b75 fix a missing return in drawbezier when called for cleanup, add a filter for $has_x before applying option instructions in xschem.tcl 2024-03-03 04:47:02 +01:00
stefan schippers 41d126b3c6 revert: don`t print rectangle bboxes around circles as this createed a black sinkhole and a chain-reaction of issues 2024-03-02 03:31:24 +01:00
stefan schippers 1ecf5a30f8 fix wrong bounding rectangle coordinate in circle bbox (drawtemparc()) 2024-03-02 02:43:49 +01:00
stefan schippers 9f167f9568 allow launcher style behaviourrt (tclcommand / url attributes) on all objects. Add (shift + but1 click) and Delete (Ctrl+ But1 click) polygon points. fixed some graphical artifacs when adding new object while some selection is present 2024-03-02 02:29:03 +01:00
stefan schippers e897aee1c4 added bezier export in svg and postscript code 2024-03-01 17:23:49 +01:00
stefan schippers 7073b5b78c better notation of arc pointers in draw() 2024-03-01 16:03:24 +01:00
stefan schippers f903a018b2 removed partial select of arcs, will be replaced in the future by bound box resizing and ability to draw ellipses 2024-03-01 15:04:38 +01:00
stefan schippers 1cb94bedd6 drawtemppolygon: draw/clear correctly control points when moving if no `Fix for broken GPUs option` is set 2024-03-01 00:23:07 +01:00
stefan schippers e946a729f8 add ability to click and drag directly polygon/bezier points 2024-03-01 00:12:44 +01:00
stefan schippers fb6d73723e display control point circles when polygon or bezier selected, simplify bezier drawing (no use pow(), no use precomputed cached power values) 2024-02-29 11:11:33 +01:00
stefan schippers 507c44e117 speed optimizations in drawbezier() 2024-02-29 04:41:06 +01:00
stefan schippers f4560a0add bezier shapes can be drawn (polygon with attribute `bezier=1`) 2024-02-29 03:40:08 +01:00
stefan schippers 1e3ac96085 table_read(): read csv files 2024-02-27 10:24:21 +01:00
stefan schippers 354f027b9b call translate(-1, ..) for text objects containing @... and referencing no valid instance (floater=true) so non instance-related @vars are resolved. translate(): resolve @spice_get_voltage(net) without trying to calculated fqnet from net if no valid inst (-1) is given 2024-02-26 16:05:11 +01:00
stefan schippers 7a45497b45 add `xschem raw del node` command 2024-02-25 12:21:13 +01:00
stefan schippers 44707d71db extend command `xschem raw_query add [expr]` for fast (C-speed) expression calculation 2024-02-23 12:46:03 +01:00
stefan schippers d1bd5140fe various bug fixes for `xschem raw new` command 2024-02-23 04:19:29 +01:00
stefan schippers 965bf381ea fix regression in xschem raw_read_from_attr when invoked from launcher 2024-02-22 14:36:34 +01:00
stefan schippers 81f22b8bb2 symbol texts: do a double translate() if symbol text `@model` resolves to `xxx@name`, so `xxxN1` will be returned. This will not happen if `@model` resolves to xxx\@name` 2024-02-10 13:59:27 +01:00
stefan schippers 8c55f3a99e add `hide=instance` attribute for in-symbol text objects (in addition to hide=true or hide=false). If set the text is invisible in instantiated symbols, but is visible if descending into the symbol 2024-01-08 15:47:01 +01:00
stefan schippers 7982c67bf6 display cursor difference measurement also in log x axis graphs 2024-01-04 01:41:40 +01:00
Stefan Schippers cd6deb0bf9 xschem raw_read: allow specifying t1 and t2 to load only a portion of simulation file 2023-12-31 20:33:08 +01:00
stefan schippers f50a3b15fa doc updates (graphs) 2023-12-18 23:36:01 +01:00
stefan schippers ed477b90a5 eps export 2023-12-12 01:14:40 +01:00
stefan schippers b95289ca5e better line width calculation / restore in export images 2023-12-11 16:06:49 +01:00
stefan schippers 4cb060f817 better placement of graphs in image exports. If something is selected export image will export selection. Add ability to specify area to print in ps/pdf export (set media size to bbox) 2023-12-11 15:18:46 +01:00
stefan schippers f042b940c2 add xschemrc option ps_page_title (default: enabled, 1) to set or hide page title in ps/pdf exports, more precise graph exports in svg and ps/pdf 2023-12-11 10:43:09 +01:00
stefan schippers 7a39f4d6ca better resolution of exported graphs in ps/pdf and svg 2023-12-09 23:39:33 +01:00
stefan schippers b8fecf997b avoid showing alert box if enabling / disabling stretch mode by bindkey 2023-12-05 17:32:48 +01:00
stefan schippers b2aad10650 changed attribute text_n_size to text_size_n (for efficienty reasons), improved get_tok_val() (use strstr for quick return "" if no token found) 2023-12-03 23:11:36 +01:00