[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Apr 23 02:30:26 CEST 2004


CVS commit by arwalker: 

Added ability to distinguish between a standard fit and a regular plugin.


  M +2 -1      plugin.cpp   1.17
  M +1 -0      plugin.h   1.18
  M +3 -0      pluginxmlparser.cpp   1.15


--- kdeextragear-2/kst/kst/plugin.cpp  #1.16:1.17
@@ -118,4 +118,5 @@ void Plugin::Data::clear() {
   _version = QString::null;
   _state = Unknown;
+  _isFit = false;
 
   _inputs.clear();

--- kdeextragear-2/kst/kst/plugin.h  #1.17:1.18
@@ -98,4 +98,5 @@ public:
       bool _filter;
       bool _localdata;
+      bool _isFit;
       QString _name;
       QString _author;

--- kdeextragear-2/kst/kst/pluginxmlparser.cpp  #1.14:1.15
@@ -68,4 +68,5 @@ static const QString QS_paralist = QStri
 static const QString QS_modulename = QString::fromLatin1("modulename");
 static const QString QS_author = QString::fromLatin1("author");
+static const QString QS_fit = QString::fromLatin1("fit");
 static const QString QS_description = QString::fromLatin1("description");
 static const QString QS_descr = QString::fromLatin1("descr");
@@ -153,4 +154,6 @@ QDomNode n = element.firstChild();
     } else if (tn == QS_description) {
       _pluginData._description = e.attribute(QS_text);
+    } else if (tn == QS_fit) {
+      _pluginData._isFit = true;
     } else if (tn == QS_version) {
       _pluginData._version = QString("%1.%2").arg(e.attribute(QS_major))





More information about the Kst mailing list