[Kst] extragear/graphics/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Sun Nov 19 20:42:20 CET 2006


SVN commit 606259 by netterfield:

The fft options (stored in a class unhelpfully called objectDefaults)
were not getting cached.  This makes them behave the same as
vectorDefaults and matrixDefaults.

BUG:


 M  +3 -2      kst.cpp  
 M  +2 -0      kstdoc.cpp  
 M  +3 -0      kstpsddialog_i.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst.cpp #606258:606259
@@ -95,8 +95,8 @@
 #include "sysinfo.h"
 #include "updatethread.h"
 #include "vectorsavedialog.h"
+#include "kstobjectdefaults.h"
 
-
 #define KST_STATUSBAR_DATA   1
 #define KST_STATUSBAR_STATUS 2
 
@@ -1067,7 +1067,7 @@
 
   KST::vectorDefaults.writeConfig(config);
   KST::matrixDefaults.writeConfig(config);
-
+  KST::objectDefaults.writeConfig(config);
   config->sync();
 }
 
@@ -1080,6 +1080,7 @@
 
   KST::vectorDefaults.readConfig(config);
   KST::matrixDefaults.readConfig(config);
+  KST::objectDefaults.readConfig(config);
 
   switch (mdiMode) {
     case KMdi::ToplevelMode:
--- trunk/extragear/graphics/kst/src/libkstapp/kstdoc.cpp #606258:606259
@@ -55,6 +55,7 @@
 #include "ksthistogram.h"
 #include "kstimage.h"
 #include "kstmatrixdefaults.h"
+#include "kstobjectdefaults.h"
 #include "kstplugin.h"
 #include "kstpsd.h"
 #include "kstrvector.h"
@@ -780,6 +781,7 @@
 void KstDoc::deleteContents() {
   KST::vectorDefaults.sync();
   KST::matrixDefaults.sync();
+  KST::objectDefaults.sync();
 
   KstApp *app = KstApp::inst();
   if (app) { // Can be null on application exit
--- trunk/extragear/graphics/kst/src/libkstapp/kstpsddialog_i.cpp #606258:606259
@@ -36,6 +36,7 @@
 #include "editmultiplewidget.h"
 #include "kst2dplot.h"
 #include "kstdataobjectcollection.h"
+#include "kstobjectdefaults.h"
 #include "kstpsddialog_i.h"
 #include "kstuinames.h"
 #include "kstvcurve.h"
@@ -121,6 +122,8 @@
   _legendText->setText(defaultTag);
   _legendText->show();
   _legendLabel->show();
+  KST::objectDefaults.sync();
+
   _w->_curvePlacement->update();
   _w->_kstFFTOptions->update();
 


More information about the Kst mailing list