[Kst] branches/work/kst/portto4/kst/src/libkstapp

Mike Fenton mike at staikos.net
Mon Jan 12 22:13:21 CET 2009


SVN commit 910238 by fenton:

Add UpdateManager trigger for dialog based curve changes.


 M  +1 -1      choosecolordialog.cpp  
 M  +2 -2      curvedialog.cpp  
 M  +1 -1      differentiatecurvesdialog.cpp  
 M  +2 -2      imagedialog.cpp  
 M  +4 -2      plotitemdialog.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/choosecolordialog.cpp #910237:910238
@@ -140,7 +140,7 @@
     {
       curve->writeLock();
       curve->setColor(getColorForFile(dataVector->filename()));
-      curve->update();
+      curve->processUpdate(curve);
       curve->unlock();
     }
   }
--- branches/work/kst/portto4/kst/src/libkstapp/curvedialog.cpp #910237:910238
@@ -483,7 +483,7 @@
           curve->setIgnoreAutoScale(ignoreAutoScale);
           curve->setDescriptiveName(DataDialog::tagString().replace(defaultTagString(), QString()));
 
-          curve->update();
+          curve->processUpdate(curve);
           curve->unlock();
         }
       }
@@ -507,7 +507,7 @@
       curve->setIgnoreAutoScale(_curveTab->ignoreAutoScale());
       curve->setDescriptiveName(DataDialog::tagString().replace(defaultTagString(), QString()));
 
-      curve->update();
+      curve->processUpdate(curve);
       curve->unlock();
 
       _curveTab->curveAppearance()->setWidgetDefaults(false);
--- branches/work/kst/portto4/kst/src/libkstapp/differentiatecurvesdialog.cpp #910237:910238
@@ -187,7 +187,7 @@
       curve->setLineWidth((sequenceNum + 1) % maxLineWidth);
     }
 
-    curve->update();
+    curve->processUpdate(curve);
     curve->unlock();
     ++sequenceNum;
   }
--- branches/work/kst/portto4/kst/src/libkstapp/imagedialog.cpp #910237:910238
@@ -534,7 +534,7 @@
                 useVariableLineWeight ? -1 : contourWeight);
           }
 
-          image->update();
+          image->processUpdate(image);
           image->unlock();
         }
       }
@@ -563,7 +563,7 @@
       }
       image->setDescriptiveName(DataDialog::tagString().replace(defaultTagString(), QString()));
 
-      image->update();
+      image->processUpdate(image);
       image->unlock();
     }
   }
--- branches/work/kst/portto4/kst/src/libkstapp/plotitemdialog.cpp #910237:910238
@@ -40,6 +40,8 @@
 
   _store = kstApp->mainWindow()->document()->objectStore();
 
+  setWindowTitle(tr("Edit Plot Item"));
+
   _labelTab = new LabelTab(_plotItem, this);
   _topLabelTab = new OverrideLabelTab(tr("Top Font"), this);
   _bottomLabelTab = new OverrideLabelTab(tr("Bottom Font"), this);
@@ -396,7 +398,7 @@
         curve->setPointDensity(curveTab->curveAppearance()->pointDensity());
         curve->setBarStyle(curveTab->curveAppearance()->barStyle());
 
-        curve->update();
+        curve->processUpdate(curve);
         curve->unlock();
       }
     } else if (ImagePtr image = kst_cast<Image>(_store->retrieveObject(page->pageTitle()))) {
@@ -425,7 +427,7 @@
               imageTab->useVariableLineWeight() ? -1 : imageTab->contourWeight());
         }
 
-        image->update();
+        image->processUpdate(image);
         image->unlock();
       }
     }


More information about the Kst mailing list