[Kst] branches/work/kst/kst1kde4/kst/src/plugins

Zongyi Zhang freebody.kst at gmail.com
Thu Feb 25 01:14:23 CET 2010


SVN commit 1095766 by zhang:

continue kst1kde4

 A             statistics/CMakeLists.txt  
 M  +3 -0      statistics/statistics.cpp  
 M  +1 -0      statistics/statistics.h  
 A             syncbin/CMakeLists.txt  
 M  +8 -0      syncbin/syncbin.cpp  
 M  +1 -0      syncbin/syncbin.h  
 A             trim/CMakeLists.txt  
 M  +4 -0      trim/trim.cpp  
 M  +1 -0      trim/trim.h  


--- branches/work/kst/kst1kde4/kst/src/plugins/statistics/statistics.cpp #1095765:1095766
@@ -38,6 +38,9 @@
     : KstBasicPlugin() {
 }
 
+Statistics::Statistics( QObject */*parent*/, const QStringList &/*args*/ )
+    : KstBasicPlugin() {
+}
 
 Statistics::~Statistics() {
 }
--- branches/work/kst/kst1kde4/kst/src/plugins/statistics/statistics.h #1095765:1095766
@@ -23,6 +23,7 @@
   Q_OBJECT
   public:
     Statistics(QObject *parent, const char *name, const QStringList &args);
+    Statistics(QObject *parent, const QStringList &args);
     virtual ~Statistics();
 
     virtual bool algorithm();
--- branches/work/kst/kst1kde4/kst/src/plugins/syncbin/syncbin.cpp #1095765:1095766
@@ -48,6 +48,14 @@
   _inputScalarDefaults.insert(N_BINS, 5000.0);
 }
 
+Syncbin::Syncbin( QObject */*parent*/, const QStringList &/*args*/ )
+    : KstBasicPlugin() {
+  //
+  // set a reasonable number of bins as the default - 
+  //  any value is better than zero...
+  //
+  _inputScalarDefaults.insert(N_BINS, 5000.0);
+}
 
 Syncbin::~Syncbin() {
 }
--- branches/work/kst/kst1kde4/kst/src/plugins/syncbin/syncbin.h #1095765:1095766
@@ -23,6 +23,7 @@
   Q_OBJECT
   public:
     Syncbin(QObject *parent, const char *name, const QStringList &args);
+    Syncbin(QObject *parent, const QStringList &args);
     virtual ~Syncbin();
 
     virtual bool algorithm();
--- branches/work/kst/kst1kde4/kst/src/plugins/trim/trim.cpp #1095765:1095766
@@ -32,6 +32,10 @@
   _inputScalarDefaults.insert(REMOVE, 1);
 }
 
+Trim::Trim( QObject */*parent*/, const QStringList &/*args*/ )
+    : KstBasicPlugin() {
+  _inputScalarDefaults.insert(REMOVE, 1);
+}
 
 Trim::~Trim() {
 }
--- branches/work/kst/kst1kde4/kst/src/plugins/trim/trim.h #1095765:1095766
@@ -24,6 +24,7 @@
 public:
 
   Trim(QObject *parent, const char *name, const QStringList &args);
+  Trim(QObject *parent, const QStringList &args);
   virtual ~Trim();
 
   //algorithm


More information about the Kst mailing list