[Kst] kdeextragear-2/kst/kst

Rick Chern rchern at interchange.ubc.ca
Sat Jul 17 03:00:13 CEST 2004


CVS commit by rchern: 

Let Kst2DPlot register doc changes.
Using Alt+Button to create plot marker marks document as modified, and updates plot marker list in plot dialog.


  M +4 -0      kst2dplot.cpp   1.156
  M +3 -0      kst2dplot.h   1.65


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.155:1.156
@@ -279,4 +279,7 @@ void Kst2DPlot::commonConstructor(const 
 
   setpixrect();
+
+  //Let this Kst2DPlot register doc changes.  
+  connect(this, SIGNAL(modified()), KstApp::inst(), SLOT(registerDocChange()));
 }
 
@@ -2377,4 +2380,5 @@ void Kst2DPlot::mousePressEvent(QWidget 
           setDirty();
           static_cast<KstViewWidget*>(view)->paint();
+          emit modified();
         } else {
           _mouse.mode = globalZoomType();

--- kdeextragear-2/kst/kst/kst2dplot.h  #1.64:1.65
@@ -203,4 +203,7 @@ public:
   void moveSelfToMarker(bool next);
 
+signals:
+  void modified();
+
 public slots:
   void copy();





More information about the Kst mailing list