Commit Graph

55 Commits

Author SHA1 Message Date
Giles Atkinson e6bbbefa10 Suppress warnings from function pointer casts seen with gcc 10.2.1. 2022-04-30 15:26:57 +02:00
Holger Vogt 4f82a24df2 Add parameter 'isgrid' to plotting of arcs.
Smithgrid and polar plots could not discern between xgridwidth and
xbrushwidth. This is now available, similar to straight line plotting.
Tested also for PS and SVG.
2022-02-01 12:23:29 +01:00
Holger Vogt 03517ae86c Define the function DevFinalize as used in the previous commit. 2021-07-05 14:22:55 +02:00
Holger Vogt 87b59d22a5 add generation of svg graphics file
based on patch no. 97 by Giles Atkinson
2021-03-14 15:29:53 +01:00
Jim Monte a3a8bc702d type modifier, parameter graph removed from SetColor() 2020-04-27 10:15:32 +02:00
Vogt 728ddae41e Set the color tables and linewidths personal for each graph,
added to strucht graph
Use only these data for plotting.
If zooming a plot windows, set as an extra parameter the graph id
of the 'mother graph'. Copy its color and line data to the new graph.
This is done by an extra parameter sgraphid to the internal plot
command that is issued in fcn PlotWindowProc().
Thus zooming will keep the background, text/line and graph colors.
Function setcolor() will always look into the colorarray of the
current graph.
2020-03-15 08:51:12 +01:00
Holger Vogt 8751092812 Enable separate linewidths for grids and graphs.
New variable gridwidth overrides xbrushwidth for graphs.
Fcn DevDrawLine() with boolean flag if grid is plotted.
Postscript, Gnuplot and X11 not (yet) supported.
2020-03-15 08:51:05 +01:00
Holger Vogt 573b270b6d Give a better, modern name for this type of display 2020-03-15 08:50:57 +01:00
Holger Vogt 56701e3d10 add rotation angle to text output, currently used only by postscript,
ignored by all others
2018-11-18 15:50:56 +01:00
Holger Vogt ef5747905f fix bug no. 362, reported by Bohdan Tkhir
replace size_of by sizeof
2018-07-30 00:35:25 +02:00
Holger Vogt af70c2e8f0 cp_getvar with CP_STRING: add size of string to function parameters 2018-07-22 14:58:06 +02:00
h_vogt b62b67bf25 display.c: exclude SHARED_MODULE if console 2013-12-31 16:06:43 +01:00
h_vogt d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
rlar 7454a6d486 src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...

checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
rlar 590fc543f8 avoid error messages when finally closing the display device.
these messages creeped in with commit
  2012-08-19 18:58:31
  "plug memory leak in x11.c"

when the "printf" device Close and Update
 functions might be invoked on program termination.

use the silent "nop" implementation
instead of the error reporting "nodev" implementation
2012-08-20 21:26:08 +02:00
rlar 6c01089be1 plug memory leak in x11.c
try to obey the Xt toolkit protocol when closing widgets and application
2012-08-19 19:18:34 +02:00
rlar 7126dd6f1d display.c, cleanup 2012-08-08 18:54:52 +02:00
rlar d8105873db remove error.h, use fteext.h for controlled_exit() 2012-06-12 21:26:29 +02:00
rlar e889c821d1 configure.ac, fix `NO_X' and `has_no_help'
drop configure options `--enable-x' and `--disable-x'
use `--with-x' and `--without-x' provided by AC_PATH_X

bug tracker item:
  [ngspice-Bugs-3515015] Startup error message without x11
  https://sourceforge.net/tracker/index.php?func=detail&aid=3515015&group_id=38962&atid=423915
2012-04-06 16:19:49 +02:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
h_vogt d609107127 better warning if compiled as console app under Windows 2011-07-08 20:41:53 +00:00
h_vogt 561e339365 reduce compiler warnings 2011-05-21 12:44:27 +00:00
rlar 0b6a557334 code cleanup 2011-04-27 18:30:15 +00:00
rlar 6ac005103b add some more `int' versus `size_t' casts 2010-11-02 17:28:22 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
h_vogt 102420262c error message 'no graphics interface... 2010-10-16 16:05:42 +00:00
rlar af4589529d function rename, struct DISPDEVICE . Text() -> DrawText() 2010-09-08 18:11:26 +00:00
rlar 4f915cb283 function rename, struct DISPDEVICE . Arc() -> DrawArc() 2010-09-08 18:09:30 +00:00
rlar 76d22c3691 function rename, Update() -> DevUpdate() 2010-09-08 18:06:51 +00:00
rlar 38abf408d5 function rename, DrawLine() -> DevDrawLine() 2010-09-08 18:03:40 +00:00
rlar 1693270d35 function rename, Text() -> DevDrawText() 2010-09-08 18:01:42 +00:00
rlar 984754de75 function rename, Arc() -> DevDrawArc() 2010-09-08 17:59:00 +00:00
rlar a8c64094fc fix busy waiting loop, when using editline 2010-08-09 18:36:57 +00:00
rlar 2fcbcc5f48 bug fix, implementation of the X11 draw arc implementation. 2010-08-01 13:47:33 +00:00
rlar a76cd1e104 textual replacement VT_* to CP_*, to avoid conflict in the windows world 2010-07-17 20:48:20 +00:00
rlar 3369d860b4 cast the return values of malloc() function calls 2010-07-01 19:52:23 +00:00
rlar 779e5a978c ansi prototypes for the function pointers in struct DISPDEVICE 2010-06-30 16:50:09 +00:00
pnenzi fa549df82a TCLSPICE IMPORT + libtool + measure2 command 2008-08-27 13:39:05 +00:00
dwarning 75d721a38f no WINX_Ready parameter 2007-12-02 21:58:19 +00:00
sjborley 6fcd2e24e9 Fixed warning about redefinition of XtNumber. 2005-09-19 20:50:27 +00:00
sjborley e4e2de886f Fixed path for include of windisp.h and winprint.h 2005-05-31 00:12:18 +00:00
sjborley 67ff1b3a83 Tidy up of the header files in src/frontend and sub-directories. Motivation is to remove extern declarations within .c files and place them in .h files. Added new header files where necessary (and adjusted makefile.am files where required) 2005-05-30 20:28:29 +00:00
sjborley 760d8ff918 Replace C++ style comment with C style comment 2005-05-22 01:02:18 +00:00
sjborley 7376fa66e5 Fixed line-endings (DOS to UNIX)
and translated German to English in comments.
2005-05-11 21:37:24 +00:00
pnenzi 8362dec274 Integrated code from tclspice, brorson xspice and Vera memleak. 2003-07-23 19:36:39 +00:00
pnenzi 937e3db647 Holger Vogt Windows port for Ngspice. 2002-01-03 22:44:21 +00:00
pnenzi c68f3470e4 Code cleanup. 2001-02-09 19:46:36 +00:00
arno cc51f0e8db * src/main.c, src/multidec.c, src/proc2mod.c,
src/frontend/display.c, src/frontend/outitf.c,
	src/frontend/help/readhelp.c, src/frontend/help/x11disp.c,
	src/frontend/parser/complete.c, src/frontend/parser/glob.c,
	src/frontend/plotting/graf.c,
	src/frontend/plotting/graphdb.c,
	src/frontend/plotting/x11.c, src/include/graph.h,
	src/include/iferrmsg.h, src/include/ifsim.h,
	src/include/macros.h, src/maths/poly/polyfit.c,
	src/maths/sparse/spalloc.c, src/maths/sparse/spconfig.h,
	src/misc/alloc.c, src/misc/mktemp.c,
	src/spicelib/analysis/cktpzstr.c,
	src/spicelib/devices/bsim2/b2temp.c,
	src/spicelib/devices/bsim3/b3temp.c,
	src/spicelib/devices/bsim3v1/b3v1temp.c,
	src/spicelib/devices/bsim3v2/b3v2temp.c,
	src/spicelib/devices/bsim4/b4temp.c: replaced malloc
	realloc and free calls to use tmalloc trealloc and txfree.

	* tests/diffpair.out, tests/fourbitadder.out,
	tests/resistance/res_partition.out: Updated.
2000-10-14 13:16:53 +00:00