[Kst] extragear/graphics/kst/kst

Rick Chern rchern at interchange.ubc.ca
Sat Jul 16 01:36:01 CEST 2005


SVN commit 435008 by rchern:

- don't change slave matrix name of CSDs for no reason
- create slave matrices when data objects are created

 M  +2 -1      kstcsd.cpp  
 M  +7 -0      kstdatamanager_i.cpp  


--- trunk/extragear/graphics/kst/kst/kstcsd.cpp #435007:435008
@@ -158,6 +158,7 @@
   outMatrix->setProvider(this);
   _outMatrix = _outputMatrices.insert(OUTMATRIX, outMatrix);
   KST::addMatrixToList(outMatrix);
+  (*_outMatrix)->setDirty();
 }
 
 
@@ -235,7 +236,7 @@
     xSize++;
   }
  
-  (*_outMatrix)->change(i18n("CSD"), xSize, psdGenerator.frequencyVector()->size(), 0, 0, _windowSize, psdGenerator.frequencyVectorStep());
+  (*_outMatrix)->change((*_outMatrix)->tagName(), xSize, psdGenerator.frequencyVector()->size(), 0, 0, _windowSize, psdGenerator.frequencyVectorStep());
   
   (*_outMatrix)->update(update_counter);
       
--- trunk/extragear/graphics/kst/kst/kstdatamanager_i.cpp #435007:435008
@@ -96,6 +96,12 @@
     KstObjectItem *item = new KstObjectItem(this, i.data(), _dm);
     connect(item, SIGNAL(updated()), this, SIGNAL(updated()));
   }
+  for (KstMatrixMap::Iterator i = x->outputMatrices().begin();
+       i != x->outputMatrices().end();
+       ++i) {
+    KstObjectItem *item = new KstObjectItem(this, i.data(), _dm);
+    connect(item, SIGNAL(update()), this, SIGNAL(update()));       
+  }
   x = 0L; // keep the counts in sync
   update(false, localUseCount);
 }
@@ -228,6 +234,7 @@
               connect(item, SIGNAL(updated()), this, SIGNAL(updated()));
             }
           }
+          
           // also get the output matrices
           for (KstMatrixMap::Iterator p = x->outputMatrices().begin(); p != x->outputMatrices().end(); ++p) {
             bool found = false;


More information about the Kst mailing list