Minor tweaks to widegraph and plotter, for ease of use.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8421 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2018-01-18 15:17:45 +00:00
parent 6d80c657ac
commit dfed81d618
3 changed files with 37 additions and 12 deletions
+5 -4
View File
@@ -170,7 +170,7 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
if (swide[i]<1.e29) painter1.setPen(g_ColorTbl[y1]);
painter1.drawPoint(i,m_j);
}
if(m_bReplot) return;
// if(m_bReplot) return;
m_line++;
@@ -222,6 +222,7 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
if(y2>y2max) y2max=y2;
j++;
}
if(m_bReplot) return;
if(swide[0]>1.0e29) m_line=0;
if(m_line == painter1.fontMetrics ().height ()) {
@@ -295,14 +296,14 @@ void CPlotter::drawRed(int ia, int ib, float swide[])
void CPlotter::replot()
{
float swide[m_w];
m_bReplot=true;
for(int irow=0; irow<m_h1; irow++) {
m_j=irow;
plotsave_(swide,&m_w,&m_h1,&irow);
m_bReplot=true;
draw(swide,false,false);
m_bReplot=false;
update(); //trigger a new paintEvent
}
update(); //trigger a new paintEvent
m_bReplot=false;
}
void CPlotter::DrawOverlay() //DrawOverlay()