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

Mike Fenton mike at staikos.net
Fri Dec 5 22:06:39 CET 2008


SVN commit 893051 by fenton:

Add Label Builder widget.


 A             labelbuilder.cpp   [License: GPL (v2+)]
 A             labelbuilder.h   [License: GPL (v2+)]
 A             labelbuilder.ui  
 M  +1 -0      widgets.cpp  
 M  +14 -0     widgets.h  
 M  +3 -0      widgets.pro  


--- branches/work/kst/portto4/kst/src/widgets/widgets.cpp #893050:893051
@@ -30,6 +30,7 @@
   _plugins.append(new CurveAppearancePlugin(this));
   _plugins.append(new FFTOptionsPlugin(this));
   _plugins.append(new ColorPalettePlugin(this));
+  _plugins.append(new LabelBuilderPlugin(this));
 }
 
 
--- branches/work/kst/portto4/kst/src/widgets/widgets.h #893050:893051
@@ -32,6 +32,7 @@
 #include "fftoptions.h"
 #include "colorpalette.h"
 #include "datasourceselector.h"
+#include "labelbuilder.h"
 
 namespace Kst {
 
@@ -265,6 +266,19 @@
     }
 };
 
+class LabelBuilderPlugin : public WidgetPlugin {
+  Q_OBJECT
+  Q_INTERFACES(QDesignerCustomWidgetInterface)
+  public:
+    LabelBuilderPlugin(QObject *parent = 0) : WidgetPlugin(parent) {}
+    QString name() const {
+      return QLatin1String("LabelBuilder");
+    } //do not translate
+    QWidget *createWidget(QWidget *parent) {
+      return new LabelBuilder(parent);
+    }
+};
+
 }
 
 #endif
--- branches/work/kst/portto4/kst/src/widgets/widgets.pro #893050:893051
@@ -36,6 +36,7 @@
     fftoptions.cpp \
     filerequester.cpp \
     gradienteditor.cpp \
+    labelbuilder.cpp \
     matrixselector.cpp \
     scalarlistselector.cpp \
     scalarselector.cpp \
@@ -57,6 +58,7 @@
     fftoptions.h \
     filerequester.h \
     gradienteditor.h \
+    labelbuilder.h \
     matrixselector.h \
     scalarselector.h \
     scalarlistselector.h \
@@ -71,6 +73,7 @@
     curveselector.ui \
     datarange.ui \
     fftoptions.ui \
+    labelbuilder.ui \
     matrixselector.ui \
     scalarlistselector.ui \
     scalarselector.ui \


More information about the Kst mailing list