[Kst] kdeextragear-2/kst

George Staikos staikos at kde.org
Wed Jun 9 08:04:12 CEST 2004


CVS commit by staikos: 

data mode feedback support


  M +0 -1      devel-docs/newviewtodo.txt   1.18
  M +1 -0      kst/kst.cpp   1.143
  M +4 -3      kst/kst2dplot.cpp   1.70


--- kdeextragear-2/kst/devel-docs/newviewtodo.txt  #1.17:1.18
@@ -39,5 +39,4 @@
 ---------
 - X axis alignment                              (George)
-- Data mode numeric feedback                    (George)
 
 

--- kdeextragear-2/kst/kst/kst.cpp  #1.142:1.143
@@ -1134,4 +1134,5 @@ void KstApp::toggleDataMode() {
     pView->widget()->paint();
   }
+  slotUpdateDataMsg(QString::null);
 }
 

--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.69:1.70
@@ -25,4 +25,5 @@
 #include <qpainter.h>
 #include <qrect.h>
+#include <qstring.h>
 #include <qstringlist.h>
 
@@ -1948,5 +1949,5 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
 
     if (curve.data()) {
-      //msg = i18n("%3 (%1, %2)").arg(newxpos).arg(newypos,0,'G').arg(curve->tagName());
+      QString msg = i18n("%3 (%1, %2)").arg(newxpos).arg(newypos,0,'G').arg(curve->tagName());
       if (_copy_x != newxpos || _copy_y != newypos) {
         _copy_x = newxpos;
@@ -1956,5 +1957,5 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
         QPainter p(view);
         drawDotAt(p, newxpos, newypos);
-        //emit newDataMsg(msg);
+        KstApp::inst()->slotUpdateDataMsg(msg);
       }
     } else {
@@ -1962,5 +1963,5 @@ void Kst2DPlot::mouseMoveEvent(QWidget *
       _copy_y = KST::NOPOINT;
       static_cast<KstViewWidget*>(view)->paint();
-      //emit newDataMsg(QString::null);
+      KstApp::inst()->slotUpdateDataMsg(QString::null);
     }
   }





More information about the Kst mailing list