Holger Vogt
1919cf5c94
replace variable 'gridwidth' by 'xgridwidth'
2020-03-15 08:51:13 +01:00
Holger Vogt
93a408598a
switch to colorarray in graph to string all color data,
...
one set per each graph.
If we are zooming or selecting a cutout, copy the
source graph's colors to the new graph. Transfer the
old graphs id to the new graph via graph->graphid.
2020-03-15 08:51:12 +01: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
a7aaac854f
enable color and font selection for X11:
...
Add graphics context gridgc for plotting the grids.
Enable rgbd:, input of color by RGB 0 ... 255
If no color1 (text/grid) is given,
select black or white according to backgrund color.
Error message, but no crash if font cannot be selected.
Enable separate linewidth selection for grid and graph.
2020-03-15 08:51:11 +01:00
Holger Vogt
38bb89663d
replace old_x11 by HAVE_LIBXFT defined in configure
2020-03-15 08:51:09 +01:00
Holger Vogt
bef9c70e71
Prepare font selection and rotation only once per graph
...
in func X11_DefineXft().
Only 0 and 90 degree are supported.
2020-03-15 08:51:08 +01:00
Holger Vogt
18f1e896f8
allow independent linewidth and gridwidth settings from within the .control section
2020-03-15 08:51:07 +01:00
Holger Vogt
c9edc6fcb3
Add function returning the true string length in pixels.
...
May be called from outside of x11.c.
2020-03-15 08:51:06 +01:00
Holger Vogt
ca7c77315a
add missing üarameter to DevDrawLine for X11 and HPGL
2020-03-15 08:51:06 +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
7690b64571
add missing declaration of old_x11
2020-03-15 08:51:05 +01:00
h_vogt
531c229b0e
Add library xft for allowing text rotation.
...
Setting variabe 'old_x11' will retain previous behaviour.
2020-03-15 08:51:05 +01:00
Jim Monte
a7946474fa
Additional freeing of device-dependent information for bug #419 and related bugs.
2020-03-15 08:50:55 +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
dwarning
cc4e4d9bad
verify pointer before utilization
2018-11-18 15:45:12 +01:00
Holger Vogt
e3b2b395b9
fix an ancient bug in retrieving the data with the cursor
...
from a log y graph: use y-offset instead of x-offset
2018-07-26 20:55:21 +02:00
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
2018-07-22 14:58:25 +02:00
h_vogt
6f609abc27
x11.c, fix bug #330 , rename csh variable font -> xfont
...
reported by graahnul.grom in
#330 setting xfont in .spiceinit has no effect
https://sourceforge.net/p/ngspice/bugs/330/
2016-10-15 15:06:16 +02:00
rlar
bd0bc3038b
use `SWAP' macro
2016-03-22 13:04:13 +01:00
rlar
7bc6374138
cleanup, use '\0' instead of 0 in char context
2015-05-02 10:24:54 +02:00
rlar
c5e0bcde04
cleanup using `hypot()'
2014-12-06 20:41:11 +01:00
rlar
ed23c7e315
set X11 window title from `graph->plotname'
...
in response to a bug report by Dominique Michel
"#272 no title in plots"
http://sourceforge.net/p/ngspice/bugs/272/
2014-01-11 16:24:25 +01:00
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
2012-09-22 19:33:55 +02: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
f3b5336d3a
cleanup some macros, try to be more careful
2012-09-19 20:16:27 +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
d8105873db
remove error.h, use fteext.h for controlled_exit()
2012-06-12 21:26:29 +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
rlar
9e86e5ca66
rewrite (double)literal --> floating-point-literal
2011-08-09 08:07:56 +00:00
rlar
af420a6a01
remove compiler warnings by explicit casting double -> int etc.
2011-06-30 18:48:05 +00:00
rlar
2d1e44787b
fix a segfault, when invoking `destroy' while running in batch mode on unix
2011-06-02 13:28:36 +00:00
h_vogt
7365459f75
move #define NUMCOLORS to x11.c
2011-05-03 21:19:57 +00:00
rlar
23056573d8
code cleanup, drop NULL pointer casts
2011-04-28 15:59:36 +00:00
rlar
a987113675
cleanup x11 code
2011-04-28 10:52:26 +00:00
rlar
e55f9c7fab
bugfix, segfault when closing a plot window
2011-04-09 18:50:14 +00:00
rlar
6268d236f0
bug fix a segfault when closing a second x11-window, then resizing the first
2011-04-02 17:16:29 +00:00
rlar
a2303d4d78
bug fix a segfault when closing a second X11 window, then resizing the first
2011-02-11 19:02:49 +00:00
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
2010-11-19 18:52:44 +00:00
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
2010-11-16 20:38:24 +00:00
rlar
80286e0032
pour `IGNORE()' all over the source
2010-11-16 19:11:32 +00:00
rlar
3afbeb53e2
minor rewrite, fix a minor bug in the x11 zoom-in function
2010-11-04 19:42:09 +00:00
rlar
0eccd17d9a
add casts for x11 operations, to silence type conversion warnings
2010-11-04 19:35:57 +00:00
rlar
3affeff848
move device dependent colors[] array from `graph' to the x11 specific struct
2010-11-04 19:32:53 +00:00
rlar
b4ffca60c4
(int) casts for some `strlen()' expressions
2010-11-02 17:17:43 +00:00
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
2010-10-28 19:32:34 +00:00
rlar
d6353fb9ee
struct member devdep, use void* instead of char*
2010-10-24 13:15:35 +00:00
rlar
196262dd1b
move the com_*() prototypes around.
2010-10-16 17:09:46 +00:00
rlar
3c3b31fa60
declare some functions `static'
2010-10-15 18:43:52 +00:00