+
+ // Mark STT block in signal
+ if ( CursorCPos > 0 ){
+ int foo = 40 + (int)((CursorCPos - GraphStart) * GraphPixelsPerPoint);
+ int bar = 40 + ((CursorDPos - GraphStart) * GraphPixelsPerPoint);
+ QRect r_stt(foo, r.top(), bar-foo, r.bottom() );
+ QBrush b_stt( QBrush( QT_ORANGE_TS ));
+ b_stt.setStyle(Qt::Dense1Pattern);
+ painter.setPen(Qt::NoPen);
+ painter.fillRect(r_stt, b_stt);
+ }
+
+ // Mark Clock pulse
+ //extern int PlotClock, PlockClockStartIndex;
+ if ( PlotClock > 0){
+ for(int i = PlockClockStartIndex; ; i += PlotClock * 2) {
+
+ if(i >= GraphTraceLen ) break;
+ if ((CursorCPos > 0) && (i >= CursorCPos)) break;
+
+ int foo = 40 + (int)((i - GraphStart) * GraphPixelsPerPoint);
+ int bar = 40 + ((i + PlotClock - GraphStart) * GraphPixelsPerPoint);
+ QRect r_clock(foo, r.top(), bar-foo, r.bottom() );
+
+ QBrush b_clk( QBrush( QT_RED_TS ));
+ b_clk.setStyle(Qt::Dense1Pattern);
+ painter.setPen(Qt::NoPen);
+ painter.fillRect(r_clock, b_clk);
+ }