[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Thu Mar 24 07:15:21 CET 2005


CVS commit by netterfield: 

save uses indent
update(-1) replaced by setDirty(true)
kstvector::generatevector sets saveable to false


  M +1 -1      kstdoc.cpp   1.157
  M +7 -8      kstsvector.cpp   1.2
  M +2 -2      kstvector.cpp   1.104


--- kdeextragear-2/kst/kst/kstsvector.cpp  #1.1:1.2
@@ -52,12 +52,12 @@ KstSVector::KstSVector(double x0, double
 void KstSVector::save(QTextStream &ts, const QString& indent, bool saveAbsolutePosition) {
   Q_UNUSED( saveAbsolutePosition )
-  ts << "  <svector>" << endl;
+  ts << indent << "<svector>" << endl;
 
-  ts << indent << "<tag>" << QStyleSheet::escape(tagName()) <<
+  ts << indent << "  <tag>" << QStyleSheet::escape(tagName()) <<
     "</tag>" << endl;
-  ts << indent << "<min>" << min() << "</min>" << endl;
-  ts << indent << "<max>" << max() << "</max>" << endl;
-  ts << indent << "<N>" << length() << "</N>" << endl;
-  ts << "  </svector>" << endl;
+  ts << indent << "  <min>" << min() << "</min>" << endl;
+  ts << indent << "  <max>" << max() << "</max>" << endl;
+  ts << indent << "  <N>" << length() << "</N>" << endl;
+  ts << indent << "</svector>" << endl;
 }
 
@@ -86,5 +86,4 @@ void KstSVector::changeRange(double x0, 
   _scalars["min"]->setValue(x0);
   _scalars["max"]->setValue(x1);
-  update(-1); // FIXME: this can be significantly optimized for svectors.
-
+  setDirty( true );
 }

--- kdeextragear-2/kst/kst/kstvector.cpp  #1.103:1.104
@@ -514,5 +514,5 @@ KstVectorPtr KstVector::generateVector(d
   KstVectorPtr xv = new KstVector(t, n);
   KST::addVectorToList(xv);
-  xv->_saveable = true;
+  xv->_saveable = false;
 
   for (int i = 0; i < n; i++) {




More information about the Kst mailing list