[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Mar 25 19:11:09 CET 2005
CVS commit by staikos:
start of matrices from plugins
M +17 -0 kstplugin.cpp 1.89
M +2 -1 plugin.h 1.34
M +3 -0 pluginxmlparser.cpp 1.33
--- kdeextragear-2/kst/kst/pluginxmlparser.cpp #1.32:1.33
@@ -87,4 +87,5 @@ static const QString& QS_input = KGlobal
static const QString& QS_output = KGlobal::staticQString("output");
static const QString& QS_table = KGlobal::staticQString("table");
+static const QString& QS_matrix = KGlobal::staticQString("matrix");
static const QString& QS_map = KGlobal::staticQString("map");
static const QString& QS_type = KGlobal::staticQString("type");
@@ -316,4 +317,6 @@ QDomNode n = element.firstChild();
// } else if (tn == QS_integer) {
// iov._type = Plugin::Data::IOValue::IntegerType;
+ } else if (tn == QS_matrix) {
+ iov._type = Plugin::Data::IOValue::MatrixType;
} else if (tn == QS_float) {
iov._type = Plugin::Data::IOValue::FloatType;
--- kdeextragear-2/kst/kst/plugin.h #1.33:1.34
@@ -85,5 +85,6 @@ class Plugin : public KstShared {
IntegerType,
FloatType,
- PidType
+ PidType,
+ MatrixType
};
enum ValueSubType { UnknownSubType,
--- kdeextragear-2/kst/kst/kstplugin.cpp #1.88:1.89
@@ -107,4 +107,21 @@ KstPlugin::KstPlugin(const QDomElement &
KST::addVectorToList(v);
}
+ } else if ((*it)._type == Plugin::Data::IOValue::MatrixType) {
+ abort(); // FIXME:
+#if 0
+ _outArrayCnt += 2;
+ if (!_outputMatrices.contains((*it)._name)) {
+ KstMatrixPtr m;
+
+ if ((*it)._subType == Plugin::Data::IOValue::FloatNonVectorSubType) {
+ m = new KstMatrix(tagName() + " matrix - " + (*it)._name, 0, true);
+ } else {
+ m = new KstMatrix(tagName() + " matrix - " + (*it)._name, 0, false);
+ }
+ m->setProvider(this);
+ _outputMatrices.insert((*it)._name, m);
+ KST::addVectorToList(v);
+ }
+#endif
} else if ((*it)._type == Plugin::Data::IOValue::FloatType) {
_outScalarCnt++;
More information about the Kst
mailing list