[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu Jun 10 01:14:56 CEST 2004
CVS commit by arwalker:
Keep track of the plugin used in the KstFitCurve.
M +14 -0 kstfitcurve.cpp 1.4
M +8 -3 kstfitcurve.h 1.3
M +1 -0 kstfitdialog_i.cpp 1.12
--- kdeextragear-2/kst/kst/kstfitcurve.cpp #1.3:1.4
@@ -22,4 +24,5 @@
#include "kstdebug.h"
#include "kstdoc.h"
+#include "kstplugin.h"
#include "kstfitcurve.h"
#include "kstfitdialog_i.h"
@@ -100,4 +103,15 @@ KstFitCurve::~KstFitCurve() {
}
+
+void KstFitCurve::setPlugin(KstPluginPtr plugin) {
+ _plugin = plugin;
+}
+
+
+KstPluginPtr KstFitCurve::getPlugin() {
+ return _plugin;
+}
+
+
bool KstFitCurve::loadInputs() {
QValueList<QPair<QString,QString> >::Iterator i;
--- kdeextragear-2/kst/kst/kstfitcurve.h #1.2:1.3
@@ -19,9 +19,11 @@
#define KSTFITCURVE_H
+#include <qstring.h>
+#include <qcolor.h>
+
#include "kstrvector.h"
+#include "kstplugin.h"
#include "kstpoint.h"
#include "kstbasecurve.h"
-#include <qstring.h>
-#include <qcolor.h>
class KstFitCurve: public KstBaseCurve {
@@ -43,4 +45,7 @@ public:
QString getWVTag() const;
+ void setPlugin(KstPluginPtr plugin);
+ KstPluginPtr getPlugin();
+
void setXVector(KstVectorPtr new_vx);
void setYVector(KstVectorPtr new_vy);
@@ -72,5 +77,5 @@ private:
inline void commonConstructor(const QString &in_tag,
const QColor &in_color);
-
+ KstPluginPtr _plugin;
KstVectorPtr VX;
KstVectorPtr VY;
--- kdeextragear-2/kst/kst/kstfitdialog_i.cpp #1.11:1.12
@@ -465,4 +465,5 @@ bool KstFitDialogI::createCurve(KstPlugi
fit = new KstFitCurve(c_name, KstVectorPtr(xVector), KstVectorPtr(yVector), KstVectorPtr(wVector), _curveAppearance->color());
if (fit) {
+ fit->setPlugin(plugin);
fit->setHasPoints(_curveAppearance->showPoints());
fit->setHasLines(_curveAppearance->showLines());
More information about the Kst
mailing list