if floaters are used to display simulation data (@spice_get_voltage) force update on floater text caches on `b` cursor move
This commit is contained in:
parent
9fcde30a52
commit
1ea0516b55
|
|
@ -354,6 +354,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
|
|||
xctx->graph_cursor2_x = G_X(xctx->mousex);
|
||||
if(tclgetboolvar("live_cursor2_backannotate")) {
|
||||
backannotate_at_cursor_b_pos(r, gr);
|
||||
if(there_are_floaters()) set_modify(-2); /* update floater caches to reflect actual backannotation */
|
||||
redraw_all_at_end = 1;
|
||||
}
|
||||
else need_redraw = 1;
|
||||
|
|
@ -397,6 +398,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
|
|||
/* backannotate node values at cursor b position */
|
||||
else if(key == 'a' && state == Mod1Mask && (xctx->graph_flags & 4)) {
|
||||
backannotate_at_cursor_b_pos(r, gr);
|
||||
if(there_are_floaters()) set_modify(-2); /* update floater caches to reflect actual backannotation */
|
||||
redraw_all_at_end = 1;
|
||||
}
|
||||
/* x cursor1 toggle */
|
||||
|
|
@ -412,6 +414,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
|
|||
xctx->graph_cursor2_x = G_X(xctx->mousex);
|
||||
if(tclgetboolvar("live_cursor2_backannotate")) {
|
||||
backannotate_at_cursor_b_pos(r, gr);
|
||||
if(there_are_floaters()) set_modify(-2); /* update floater caches to reflect actual backannotation */
|
||||
redraw_all_at_end = 1;
|
||||
} else {
|
||||
need_all_redraw = 1;
|
||||
|
|
@ -662,6 +665,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
|
|||
}
|
||||
if((xctx->graph_flags & 4) && tclgetboolvar("live_cursor2_backannotate")) {
|
||||
if(i == xctx->graph_master) backannotate_at_cursor_b_pos(r, gr);
|
||||
if(there_are_floaters()) set_modify(-2); /* update floater caches to reflect actual backannotation */
|
||||
redraw_all_at_end = 1;
|
||||
} else {
|
||||
need_redraw = 1;
|
||||
|
|
|
|||
|
|
@ -96,6 +96,10 @@ T {actual value
|
|||
200} 860 -1280 0 0 0.4 0.4 {}
|
||||
T {Select one or more graphs (and no other objects)
|
||||
and use arrow keys to zoom / pan waveforms} 1110 -1120 0 0 0.3 0.3 {}
|
||||
T {@spice_get_voltage} 761.875 -786.09375 0 0 1 1 {layer=15
|
||||
floater=p9}
|
||||
T {@spice_get_voltage} 761.875 -206.09375 0 0 1 1 {layer=15
|
||||
floater=p14}
|
||||
N 70 -1220 70 -1200 {lab=#net1}
|
||||
N 70 -1080 70 -1060 {lab=#net2}
|
||||
N 300 -1140 310 -1140 {lab=VSS}
|
||||
|
|
@ -241,7 +245,7 @@ C {lab_pin.sym} 870 -1200 0 0 {name=p27 lab=IN_INT}
|
|||
C {ammeter.sym} 210 -1220 3 0 {name=vcurrvpp net_name=true }
|
||||
C {ammeter.sym} 210 -1060 3 0 {name=vcurrvnn net_name=true }
|
||||
C {ammeter.sym} 210 -1140 3 0 {name=vcurrvss net_name=true }
|
||||
C {launcher.sym} 780 -120 0 0 {name=h2
|
||||
C {launcher.sym} 710 -70 0 0 {name=h2
|
||||
descr="Ctrl-Click
|
||||
Clear all probes"
|
||||
tclcommand="
|
||||
|
|
@ -280,7 +284,7 @@ C {ngspice_get_expr.sym} 830 -480 2 0 {name=r29
|
|||
node="[format %.4g [expr \{([ngspice::get_voltage outm] - [ngspice::get_voltage outp]) * [ngspice::get_current \{r1[i]\}]\}]] "
|
||||
descr = power
|
||||
}
|
||||
C {launcher.sym} 780 -190 0 0 {name=h3
|
||||
C {launcher.sym} 710 -120 0 0 {name=h3
|
||||
descr="Load file into gaw"
|
||||
comment="
|
||||
This launcher gets raw filename from current schematic using 'xschem get schname'
|
||||
|
|
|
|||
Loading…
Reference in New Issue