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

Mike Fenton mike at staikos.net
Thu Sep 18 19:32:34 CEST 2008


SVN commit 862365 by fenton:

Add FilterFitDialog.


 M  +7 -1      datamanager.cpp  
 M  +8 -3      dialoglaunchergui.cpp  
 A             filterfitdialog.cpp   [License: GPL (v2+)]
 A             filterfitdialog.h   [License: GPL (v2+)]
 A             filterfittab.ui  
 M  +3 -0      libkstapp.pro  


--- branches/work/kst/portto4/kst/src/libkstapp/datamanager.cpp #862364:862365
@@ -121,12 +121,18 @@
   connect(action, SIGNAL(triggered()), this, SLOT(showCSDDialog()));
   _dataObjects->addAction(action);
 
-  foreach (QString pluginName, DataObject::pluginList()) {
+  foreach (QString pluginName, DataObject::dataObjectPluginList()) {
     action = new DataButtonAction(tr(pluginName));
     connect(action, SIGNAL(triggered(QString&)), this, SLOT(showPluginDialog(QString&)));
     _dataObjects->addAction(action);
   }
 
+  foreach (QString pluginName, DataObject::fitsPluginList()) {
+    action = new DataButtonAction(tr(pluginName));
+    connect(action, SIGNAL(triggered(QString&)), this, SLOT(showPluginDialog(QString&)));
+    _fits->addAction(action);
+  }
+
   foreach (QString pluginName, DataObject::filterPluginList()) {
     action = new DataButtonAction(tr(pluginName));
     connect(action, SIGNAL(triggered(QString&)), this, SLOT(showPluginDialog(QString&)));
--- branches/work/kst/portto4/kst/src/libkstapp/dialoglaunchergui.cpp #862364:862365
@@ -23,6 +23,7 @@
 #include "imagedialog.h"
 #include "eventmonitordialog.h"
 #include "basicplugindialog.h"
+#include "filterfitdialog.h"
 
 namespace Kst {
 
@@ -117,10 +118,14 @@
 
 
 void DialogLauncherGui::showBasicPluginDialog(QString pluginName, ObjectPtr objectPtr) {
-  BasicPluginDialog dialog(pluginName, objectPtr, kstApp->mainWindow());
-  dialog.exec();
+  if (DataObject::pluginType(pluginName) == DataObjectPluginInterface::Generic) {
+    BasicPluginDialog dialog(pluginName, objectPtr, kstApp->mainWindow());
+    dialog.exec();
+  } else {
+    FilterFitDialog dialog(pluginName, objectPtr, kstApp->mainWindow());
+    dialog.exec();
+  }
 }
-
 }
 
 // vim: ts=2 sw=2 et
--- branches/work/kst/portto4/kst/src/libkstapp/libkstapp.pro #862364:862365
@@ -62,6 +62,7 @@
     eventmonitordialog.cpp \
     exportgraphicsdialog.cpp \
     filltab.cpp \
+    filterfitdialog.cpp \
     generaltab.cpp \
     graphicsfactory.cpp \
     gridlayouthelper.cpp \
@@ -159,6 +160,7 @@
     eventmonitordialog.h \
     exportgraphicsdialog.h \
     filltab.h \
+    filterfitdialog.h \
     generaltab.h \
     graphicsfactory.h \
     gridlayouthelper.h \
@@ -238,6 +240,7 @@
     eventmonitortab.ui \
     exportgraphicsdialog.ui \
     filltab.ui \
+    filterfittab.ui \
     generaltab.ui \
     gridtab.ui \
     histogramtab.ui \


More information about the Kst mailing list