Holger Vogt
5366f946eb
Remove more compiler warnings
5 years ago
Holger Vogt
238f8d393a
Suppress some compiler warnings
5 years ago
dwarning
f12dfc6e7b
prevent garbage output of X11 plotting function
6 years ago
Holger Vogt
8ea8ddcc03
simplify the previous commit, single step warp if multibyte utf-8 character
6 years ago
Holger Vogt
f911758e4b
X11: re-enable writing text to a graph if libxft is used
6 years ago
Holger Vogt
70be7508ce
Prevent 'unused variable' compiler message
6 years ago
Jim Monte
3a72b8e562
const qualifier, graph removed from SetColor,
6 years ago
Holger Vogt
1919cf5c94
replace variable 'gridwidth' by 'xgridwidth'
6 years ago
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.
6 years ago
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.
6 years ago
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.
6 years ago
Holger Vogt
38bb89663d
replace old_x11 by HAVE_LIBXFT defined in configure
6 years ago
Holger Vogt
bef9c70e71
Prepare font selection and rotation only once per graph
in func X11_DefineXft().
Only 0 and 90 degree are supported.
6 years ago
Holger Vogt
18f1e896f8
allow independent linewidth and gridwidth settings from within the .control section
6 years ago
Holger Vogt
c9edc6fcb3
Add function returning the true string length in pixels.
May be called from outside of x11.c.
9 years ago
Holger Vogt
ca7c77315a
add missing üarameter to DevDrawLine for X11 and HPGL
9 years ago
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.
9 years ago
Holger Vogt
7690b64571
add missing declaration of old_x11
9 years ago
h_vogt
531c229b0e
Add library xft for allowing text rotation.
Setting variabe 'old_x11' will retain previous behaviour.
9 years ago
Jim Monte
a7946474fa
Additional freeing of device-dependent information for bug #419 and related bugs.
6 years ago
Holger Vogt
56701e3d10
add rotation angle to text output, currently used only by postscript,
ignored by all others
8 years ago
dwarning
cc4e4d9bad
verify pointer before utilization
8 years ago
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
8 years ago
Holger Vogt
8fbcb16a57
add fourth parameter to cp_getvar(), in functions missing so far
8 years ago
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/
10 years ago
rlar
bd0bc3038b
use `SWAP' macro
10 years ago
rlar
7bc6374138
cleanup, use '\0' instead of 0 in char context
11 years ago
rlar
c5e0bcde04
cleanup using `hypot()'
11 years ago
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/
12 years ago
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
14 years ago
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
14 years ago
rlar
f3b5336d3a
cleanup some macros, try to be more careful
14 years ago
rlar
6c01089be1
plug memory leak in x11.c
try to obey the Xt toolkit protocol when closing widgets and application
14 years ago
rlar
d8105873db
remove error.h, use fteext.h for controlled_exit()
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
9e86e5ca66
rewrite (double)literal --> floating-point-literal
15 years ago
rlar
af420a6a01
remove compiler warnings by explicit casting double -> int etc.
15 years ago
rlar
2d1e44787b
fix a segfault, when invoking `destroy' while running in batch mode on unix
15 years ago
h_vogt
7365459f75
move #define NUMCOLORS to x11.c
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago
rlar
a987113675
cleanup x11 code
15 years ago
rlar
e55f9c7fab
bugfix, segfault when closing a plot window
15 years ago
rlar
6268d236f0
bug fix a segfault when closing a second x11-window, then resizing the first
15 years ago
rlar
a2303d4d78
bug fix a segfault when closing a second X11 window, then resizing the first
15 years ago
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
16 years ago
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
16 years ago
rlar
80286e0032
pour `IGNORE()' all over the source
16 years ago
rlar
3afbeb53e2
minor rewrite, fix a minor bug in the x11 zoom-in function
16 years ago