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

Mike Fenton mike at staikos.net
Wed Oct 17 23:05:55 CEST 2007


SVN commit 726485 by fenton:

Adding stub version of Histogram Dialog.


 M  +4 -4      datamanager.cpp  
 M  +3 -1      dialoglaunchergui.cpp  
 A             histogramdialog.cpp   [License: GPL (v2+)]
 A             histogramdialog.h   [License: GPL (v2+)]
 A             histogramtab.ui  
 M  +3 -0      libkstapp.pro  


--- branches/work/kst/portto4/kst/src/libkstapp/datamanager.cpp #726484:726485
@@ -79,10 +79,10 @@
   connect(action, SIGNAL(triggered()), DialogLauncher::self(), SLOT(showEquationDialog()));
   _dataObjects->addAction(action);
 
-//   action = new DataButtonAction(tr("Histogram"));
-//   connect(action, SIGNAL(triggered()), DialogLauncher::self(), SLOT(showHistogramDialog()));
-//   _dataObjects->addAction(action);
-// 
+   action = new DataButtonAction(tr("Histogram"));
+   connect(action, SIGNAL(triggered()), DialogLauncher::self(), SLOT(showHistogramDialog()));
+   _dataObjects->addAction(action);
+ 
 //   action = new DataButtonAction(tr("Power Spectrum"));
 //   connect(action, SIGNAL(triggered()), DialogLauncher::self(), SLOT(showPowerSpectrumDialog()));
 //   _dataObjects->addAction(action);
--- branches/work/kst/portto4/kst/src/libkstapp/dialoglaunchergui.cpp #726484:726485
@@ -14,6 +14,7 @@
 #include "application.h"
 #include "curvedialog.h"
 #include "equationdialog.h"
+#include "histogramdialog.h"
 #include "vectordialog.h"
 #include "scalardialog.h"
 #include "matrixdialog.h"
@@ -68,7 +69,8 @@
 
 
 void DialogLauncherGui::showHistogramDialog(ObjectPtr objectPtr) {
-  Q_UNUSED(objectPtr);
+  HistogramDialog dialog(objectPtr, kstApp->mainWindow());
+  dialog.exec();
 }
 
 
--- branches/work/kst/portto4/kst/src/libkstapp/libkstapp.pro #726484:726485
@@ -51,6 +51,7 @@
     graphicsfactory.cpp \
     gridlayouthelper.cpp \
     gridtab.cpp \
+    histogramdialog.cpp \
     labelitem.cpp \
     labelrenderer.cpp \
     layoutboxitem.cpp \
@@ -117,6 +118,7 @@
     graphicsfactory.h \
     gridlayouthelper.h \
     gridtab.h \
+    histogramdialog.h \
     labelitem.h \
     labelrenderer.h \
     layoutboxitem.h \
@@ -163,6 +165,7 @@
     filltab.ui \
     generaltab.ui \
     gridtab.ui \
+    histogramtab.ui \
     layouttab.ui \
     matrixtab.ui \
     scalartab.ui \


More information about the Kst mailing list