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

Mike Fenton mike at staikos.net
Thu Jun 19 21:31:35 CEST 2008


SVN commit 822302 by fenton:

Cleanup of Saving Todo's.


 M  +1 -1      libkstapp/arrowitem.cpp  
 M  +1 -1      libkstapp/boxitem.cpp  
 M  +1 -1      libkstapp/circleitem.cpp  
 M  +1 -1      libkstapp/ellipseitem.cpp  
 M  +1 -1      libkstapp/labelitem.cpp  
 M  +2 -3      libkstapp/layoutboxitem.cpp  
 M  +1 -1      libkstapp/lineitem.cpp  
 M  +1 -1      libkstapp/pictureitem.cpp  
 M  +1 -1      libkstapp/plotitem.cpp  
 M  +1 -1      libkstapp/svgitem.cpp  
 M  +4 -5      libkstapp/viewitem.cpp  
 M  +0 -3      libkstmath/basicplugin.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/arrowitem.cpp #822301:822302
@@ -147,7 +147,7 @@
         if (!av.isNull()) {
           rc->setEndArrowScale(QVariant(av.toString()).toDouble());
         }
-        // TODO add any specialized ArrowItem Properties here.
+        // Add any new specialized ArrowItem Properties here.
       } else {
         Q_ASSERT(rc);
         if (!rc->parse(xml, validTag) && validTag) {
--- branches/work/kst/portto4/kst/src/libkstapp/boxitem.cpp #822301:822302
@@ -73,7 +73,7 @@
         if (parent) {
           rc->setParent(parent);
         }
-        // TODO add any specialized BoxItem Properties here.
+        // Add any new specialized BoxItem Properties here.
       } else {
         Q_ASSERT(rc);
         if (!rc->parse(xml, validTag) && validTag) {
--- branches/work/kst/portto4/kst/src/libkstapp/circleitem.cpp #822301:822302
@@ -111,7 +111,7 @@
         if (parent) {
           rc->setParent(parent);
         }
-        // TODO add any specialized CircleItem Properties here.
+        // Add any new specialized CircleItem Properties here.
       } else {
         Q_ASSERT(rc);
         if (!rc->parse(xml, validTag) && validTag) {
--- branches/work/kst/portto4/kst/src/libkstapp/ellipseitem.cpp #822301:822302
@@ -81,7 +81,7 @@
         rc = new EllipseItem(view);
         if (parent) {
           rc->setParent(parent);
-        // TODO add any specialized BoxItem Properties here.
+        // Add any new specialized BoxItem Properties here.
         }
       } else {
         Q_ASSERT(rc);
--- branches/work/kst/portto4/kst/src/libkstapp/labelitem.cpp #822301:822302
@@ -150,7 +150,7 @@
         rc = new LabelItem(view, av.toString());
         if (parent) {
           rc->setParent(parent);
-         // TODO add any specialized LabelItem Properties here.
+         // Add any new specialized LabelItem Properties here.
           }
         }
         av = attrs.value("scale");
--- branches/work/kst/portto4/kst/src/libkstapp/layoutboxitem.cpp #822301:822302
@@ -64,7 +64,6 @@
       continue;
 
     xml.writeStartElement("layoutitem");
-    //TODO Update this with proper Object Tag's.
     xml.writeAttribute("name", viewItem->name());
     xml.writeEndElement();
   }
@@ -180,7 +179,7 @@
         if (parent) {
           rc->setParent(parent);
         }
-        // TODO add any specialized BoxItem Properties here.
+        // Add any specialized BoxItem Properties here.
       } else if (xml.name().toString() == "layoutitem") {
         Q_ASSERT(rc);
         validTag = rc->appendItemFromXml(xml);
@@ -207,7 +206,7 @@
     }
     xml.readNext();
   }
-  //TODO LayoutBoxItem automatically adds itself to the parent. Don't return the item here as it
+  // LayoutBoxItem automatically adds itself to the parent. Don't return the item here as it
   // has already been added to the scene.  
   return 0;
 }
--- branches/work/kst/portto4/kst/src/libkstapp/lineitem.cpp #822301:822302
@@ -265,7 +265,7 @@
         if (parent) {
           rc->setParent(parent);
         }
-        // TODO add any specialized LineItem Properties here.
+        // Add any new specialized LineItem Properties here.
       } else {
         Q_ASSERT(rc);
         if (!rc->parse(xml, validTag) && validTag) {
--- branches/work/kst/portto4/kst/src/libkstapp/pictureitem.cpp #822301:822302
@@ -100,7 +100,7 @@
         if (parent) {
           rc->setParent(parent);
         }
-        // TODO add any specialized PictureItem Properties here.
+        // Add any new specialized PictureItem Properties here.
       } else if (xml.name().toString() == "data") {
         Q_ASSERT(rc);
         xml.readNext();
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #822301:822302
@@ -2069,7 +2069,7 @@
           rc->setRightLabelFont(font);
         }
 
-      // TODO add any specialized PlotItem Properties here.
+      // Add any new specialized PlotItem Properties here.
       } else if (xml.name().toString() == "projectionrect") {
         QXmlStreamAttributes attrs = xml.attributes();
         QStringRef av;
--- branches/work/kst/portto4/kst/src/libkstapp/svgitem.cpp #822301:822302
@@ -104,7 +104,7 @@
         if (parent) {
           rc->setParent(parent);
         }
-        // TODO add any specialized SvgItem Properties here.
+        // Add any new specialized SvgItem Properties here.
       } else if (xml.name().toString() == "data") {
         Q_ASSERT(rc);
         xml.readNext();
--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #822301:822302
@@ -123,11 +123,10 @@
     QStringRef av;
     if (xml.name().toString() == "name") {
       knownTag = true;
-//      TODO Add proper parsing of ObjectTag when format is set.
-//       av = attrs.value("name");
-//       if (!av.isNull()) {
-//         setName(av.toString());
-//      }
+      av = attrs.value("name");
+      if (!av.isNull()) {
+        setName(av.toString());
+     }
     } else if (xml.name().toString() == "position") {
       knownTag = true;
       double x = 0, y = 0;
--- branches/work/kst/portto4/kst/src/libkstmath/basicplugin.cpp #822301:822302
@@ -156,7 +156,6 @@
 
 
 void BasicPlugin::setInputVector(const QString &type, VectorPtr ptr) {
-  // TODO: deal with tags
   if (ptr) {
     _inputVectors[type] = ptr;
   } else {
@@ -167,7 +166,6 @@
 
 
 void BasicPlugin::setInputScalar(const QString &type, ScalarPtr ptr) {
-  // TODO: deal with tags
   if (ptr) {
     _inputScalars[type] = ptr;
   } else {
@@ -178,7 +176,6 @@
 
 
 void BasicPlugin::setInputString(const QString &type, StringPtr ptr) {
-  // TODO: deal with tags
   if (ptr) {
     _inputStrings[type] = ptr;
   } else {


More information about the Kst mailing list