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

Mike Fenton mike at staikos.net
Thu Sep 27 23:00:18 CEST 2007


SVN commit 717986 by fenton:

Adding plugin extensions for curveplacement and curveappearance.


 M  +2 -0      kstwidgets.cpp  
 M  +28 -0     kstwidgets.h  


--- branches/work/kst/portto4/kst/src/widgets/kstwidgets.cpp #717985:717986
@@ -22,6 +22,8 @@
   _plugins.append(new MatrixSelectorPlugin(this));
   _plugins.append(new ScalarSelectorPlugin(this));
   _plugins.append(new StringSelectorPlugin(this));
+  _plugins.append(new CurvePlacementPlugin(this));
+  _plugins.append(new CurveAppearancePlugin(this));
 }
 
 
--- branches/work/kst/portto4/kst/src/widgets/kstwidgets.h #717985:717986
@@ -177,6 +177,34 @@
   }
 };
 
+#include "curveappearancewidget.h"
+class CurveAppearancePlugin : public KstWidgetPlugin {
+  Q_OBJECT
+  Q_INTERFACES(QDesignerCustomWidgetInterface)
+public:
+  CurveAppearancePlugin(QObject *parent = 0) : KstWidgetPlugin(parent) {}
+  QString name() const {
+    return QLatin1String("Kst::CurveAppearance");
+  } //do not translate
+  QWidget *createWidget(QWidget *parent) {
+    return new Kst::CurveAppearanceWidget(parent);
+  }
+};
+
+#include "curveplacementwidget.h"
+class CurvePlacementPlugin : public KstWidgetPlugin {
+  Q_OBJECT
+  Q_INTERFACES(QDesignerCustomWidgetInterface)
+public:
+  CurvePlacementPlugin(QObject *parent = 0) : KstWidgetPlugin(parent) {}
+  QString name() const {
+    return QLatin1String("Kst::CurvePlacement");
+  } //do not translate
+  QWidget *createWidget(QWidget *parent) {
+    return new Kst::CurvePlacementWidget(parent);
+  }
+};
+
 #endif
 
 // vim: ts=2 sw=2 et


More information about the Kst mailing list