Commit Graph

55 Commits

Author SHA1 Message Date
Stefan Schippers a419b6aa63 aligned pdf hardcopy colors to xschem light colorscheme, pdf and svg exports use the enable_layer[] array to display/hide layers as does draw(). 2020-08-30 10:38:29 +02:00
Stefan Schippers 11c940aa09 fix: fullscreen menu item was not working 2020-08-29 22:10:32 +02:00
Stefan Schippers 316ca11e3a removed (draw|filled).*(.*BEGIN, .*) everywhere as it is not needed (just flush graphics with END is enough) 2020-08-29 12:59:27 +02:00
Stefan Schippers 50ae2f80f8 revert back last change: unnecessary and could potentially hide some lines 2020-08-29 12:45:02 +02:00
Stefan Schippers b4477d877a ensure drawline/drawrect proper buffer initialization before drawing moved/copied texts 2020-08-29 12:34:52 +02:00
Stefan Schippers 54e533e3a2 fix svg export text color set with layer attribute 2020-08-29 12:10:47 +02:00
Stefan Schippers f26a0c737e Use text layer (color) attribute for text objects also in no-CAIRO builds 2020-08-29 11:58:50 +02:00
Stefan Schippers d879967fa8 less padding space around menu entries & buttons 2020-08-27 12:57:49 +02:00
Stefan Schippers f1c836fef6 set full path for untitled schematic / symbol name 2020-08-27 11:39:12 +02:00
Stefan Schippers 38a76d463e save(): use abs_sym_path() on current schematic name to ensure it is saved in the right place and found when returning from lower level hierarchies. 2020-08-27 09:52:49 +02:00
Stefan Schippers b2289683ac doc updates for text hcenter and vcenter attrs 2020-08-25 02:10:15 +02:00
Stefan Schippers ec29c2677a enable "preserve unchanged props" checkbutton in text edit prop dialog box 2020-08-24 16:21:50 +02:00
Stefan Schippers d076952bff implemented text attributes "hcenter=true" (center text in reading direction) and "vcenter=true" (center text in direction perpendicular to reading direction). these can both be set for full centered text block. 2020-08-24 15:23:37 +02:00
Stefan Schippers bd982c00ce removed unused files 2020-08-24 10:01:41 +02:00
Stefan Schippers 9070aaeb07 removed obsoleted code in edit property functions 2020-08-24 09:16:11 +02:00
Stefan Schippers 4d6279e152 deleted obsolete code left after last commit 2020-08-24 08:56:48 +02:00
Stefan Schippers 1fa99bd840 added hcenter and vcenter fields and function parameters for centered text (still to be implemented though); When using edit property combobox token selector multiple times update all changed token values in attribute string (instead of only last changed token value), thanks to Joanne Low for pointing out the issue 2020-08-24 08:36:47 +02:00
Stefan Schippers 78188b64a6 removed dead code in text_bbox() 2020-08-21 23:46:30 +02:00
Stefan Schippers fea391fcfd fix bug in subst_tok() ( subst_tok(NULL, "tok", "val") --> NULL instead of "tok=val") 2020-08-21 10:50:27 +02:00
Stefan Schippers b842e020bc snap and grid entries will not annoyingly receive keyboard focus with TAB key 2020-08-19 15:08:35 +02:00
Stefan Schippers 8012c2755f argument # checking in xschem() tcl extender 2020-08-19 10:25:11 +02:00
Stefan Schippers 993d188f1c subst_tok() compacted 2020-08-19 09:06:11 +02:00
Stefan Schippers edca38f942 subst_tok() compacted, more comments 2020-08-19 09:00:44 +02:00
Stefan Schippers aeb4c5d686 subst_token(): replace/delete tokens with no value at end of string: ".....token\0" 2020-08-18 23:45:32 +02:00
Stefan Schippers 649a9e6ba7 subst_tok(): remove dbg info 2020-08-18 23:14:57 +02:00
Stefan Schippers 29212e3892 subst_tok(): never add unmatched token at end if NULL value specified, correctly handle escaped spaces in token values 2020-08-18 23:09:40 +02:00
Stefan Schippers 7f6b3d999f fixed symbol text 2020-08-18 10:32:33 +02:00
schippes 57193d3437 fix list_tokens(), reallocation of token was terminating the string at 1st char 2020-08-18 09:39:29 +02:00
schippes 2afc4b70a1 subst_token(): do substitution only on first matching token, avoid clobbering at all successive matching tokens 2020-08-18 02:33:58 +02:00
schippes f4f90b87d2 fix for edit_prop dialog positioning as per Joanne Low feedback on windows, complete rewrite of subst_token() function as it was so intricated and full of malfunctioning corner cases that i decided to do a ground zero rewrite 2020-08-18 01:39:44 +02:00
Stefan SChippers 7cab8d9e73 fix unterminated result in subst_token() 2020-08-17 14:35:45 +02:00
Stefan SChippers 8e4e23cf2d better subst_token() function (add value to token with no value, delete token with no value), added comments 2020-08-17 13:37:27 +02:00
schippes c5440c2b0f make get_tok_value() and subst_tok() work well also with strings containing tokens with no value. 2020-08-17 01:08:13 +02:00
schippes 574900e1df combobox is editable so new attributes can be directly typed in 2020-08-16 15:08:17 +02:00
schippes 2aed232e04 allow adding (with shift-q) other elements while edit property dialog open 2020-08-16 09:41:39 +02:00
schippes 9570439e16 made edit_symbol_property and tcl edit_prop procedure much simpler when user clicks another instance while edit_prop dialog still open 2020-08-16 03:34:45 +02:00
schippes 58a43ccc4d code cleanups, preparing for editprop combobox token selector 2020-08-15 10:48:26 +02:00
schippes ff9e2e7872 when copying a symbol with edit_property dialog ("q" key) and enabling "Copy cell" if a relative path name is supplied for new symbol it will inherit the same path prefix as the original symbol. 2020-08-13 12:56:20 +02:00
schippes aeb6b12d73 fix rel_sym_path proc 2020-08-13 02:46:49 +02:00
schippes ea4513f9c5 changed tcl procs abs_sym_path and rel_sym_path, now the real symbol filename is obtained by prepending one of the XSCHEM_LIBRARY_PATH paths until the symbol is found. This allows more than one directory levels in symbol references. 2020-08-13 02:19:08 +02:00
schippes c5f412bdb7 symbol attribute @symname will display symbol name without extension as it used to be in earlier versions. @symname_ext will print full rootname of symbol. Some doc updates on symbol attributes 2020-08-12 11:31:42 +02:00
schippes 470f452caf fix log message reporting in my_realloc(), fix remove_symbol() if removed symbol in middle of array 2020-08-11 02:55:24 +02:00
schippes 199b408efb removed test mode 2020-08-11 00:31:10 +02:00
schippes afd26a09e2 Joanne fixes: in print_vhdl_primitive, set variable, format, from "vhdl_format" with get_tok_value before checking if its NULL, more work on windows port. 2020-08-10 23:43:20 +02:00
schippes 8dac4753f7 Verilog and vhdl netlisters: print as instance parameters all params listed in instance properties, excluding "name" and all params not listed in template 2020-08-10 14:15:36 +02:00
schippes 6d3df059b1 removed unused file 2020-08-10 09:24:43 +02:00
schippes b8ed97d2d5 removed unused files 2020-08-10 09:22:21 +02:00
schippes 8383bb0e39 removed some dead code, remove_symbol() can remove i-th symbol, not only last one 2020-08-10 09:16:11 +02:00
schippes a6113f0072 added LICENSE 2020-08-09 09:12:07 +02:00
schippes 9bfdc2bf2f updated LICENSE, added ignored .out files in scconfig 2020-08-09 09:10:05 +02:00