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

Mike Fenton mike at staikos.net
Wed Dec 3 22:33:08 CET 2008


SVN commit 892251 by fenton:

Add Bug Report Wizard.


 A             bugreportwizard.cpp   [License: GPL (v2+)]
 A             bugreportwizard.h   [License: GPL (v2+)]
 A             bugreportwizard.ui  
 M  +3 -0      libkstapp.pro  
 M  +13 -0     mainwindow.cpp  
 M  +2 -0      mainwindow.h  


--- branches/work/kst/portto4/kst/src/libkstapp/libkstapp.pro #892250:892251
@@ -30,6 +30,7 @@
     axistab.cpp \
     basicplugindialog.cpp \
     boxitem.cpp \
+    bugreportwizard.cpp \
     builtingraphics.cpp \
     cartesianrenderitem.cpp \
     changedatasampledialog.cpp \
@@ -127,6 +128,7 @@
     axistab.h \
     basicplugindialog.h \
     boxitem.h \
+    bugreportwizard.h \
     builtingraphics.h \
     cartesianrenderitem.h \
     changedatasampledialog.h \
@@ -220,6 +222,7 @@
     arrowpropertiestab.ui \
     axistab.ui \
     basicplugintab.ui \
+    bugreportwizard.ui \
     changedatasampledialog.ui \
     changefiledialog.ui \
     choosecolordialog.ui \
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #892250:892251
@@ -44,6 +44,7 @@
 #include "choosecolordialog.h"
 #include "changedatasampledialog.h"
 #include "changefiledialog.h"
+#include "bugreportwizard.h"
 #include "datawizard.h"
 #include "datavector.h"
 
@@ -543,6 +544,10 @@
   _dataWizardAct->setIcon(QPixmap(":kst_datawizard.png"));
   connect(_dataWizardAct, SIGNAL(triggered()), this, SLOT(showDataWizard()));
 
+  _bugReportWizardAct = new QAction(tr("&Bug Report Wizard"), this);
+  _bugReportWizardAct->setStatusTip(tr("Show Kst's Bug Report Wizard"));
+  connect(_bugReportWizardAct, SIGNAL(triggered()), this, SLOT(showBugReportWizard()));
+
   // ****************************************************************************** //
 
   // ***************************** -> File actions ******************************** //
@@ -696,6 +701,8 @@
 
   _helpMenu = menuBar()->addMenu(tr("&Help"));
   _helpMenu->addAction(_debugDialogAct);
+  _helpMenu->addAction(_bugReportWizardAct);
+  _helpMenu->addSeparator();
   _helpMenu->addAction(_aboutAct);
 
 #if DEMO_VECTOR_MODEL
@@ -966,6 +973,12 @@
 }
 
 
+void MainWindow::showBugReportWizard() {
+  BugReportWizard bugReportWizard(this);
+  bugReportWizard.exec();
+}
+
+
 void MainWindow::showChangeFileDialog() {
   ChangeFileDialog changeFileDialog(this);
   changeFileDialog.exec();
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #892250:892251
@@ -58,6 +58,7 @@
     void showChangeDataSampleDialog();
     void showChangeFileDialog();
     void showDataWizard();
+    void showBugReportWizard();
 
     void readFromEnd();
     void pause(bool pause);
@@ -175,6 +176,7 @@
     QAction *_changeDataSampleDialogAct;
     QAction *_changeFileDialogAct;
     QAction *_dataWizardAct;
+    QAction *_bugReportWizardAct;
 
     QAction *_readFromEndAct;
     QAction *_pauseAct;


More information about the Kst mailing list