[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Wed Oct 24 22:48:48 CEST 2007
SVN commit 728997 by fenton:
Initial stub version of the DifferentiateCurvesDialog and the Tools
menu.
A differentiatecurvesdialog.cpp [License: GPL (v2+)]
A differentiatecurvesdialog.h [License: GPL (v2+)]
A differentiatecurvesdialog.ui
M +3 -0 libkstapp.pro
M +14 -0 mainwindow.cpp
M +4 -0 mainwindow.h
--- branches/work/kst/portto4/kst/src/libkstapp/libkstapp.pro #728996:728997
@@ -43,6 +43,7 @@
dialoglaunchergui.cpp \
dialogpage.cpp \
dialogtab.cpp \
+ differentiatecurvesdialog.cpp \
document.cpp \
editmultiplewidget.cpp \
emailthread.cpp \
@@ -121,6 +122,7 @@
dialoglaunchergui.h \
dialogpage.h \
dialogtab.h \
+ differentiatecurvesdialog.h \
document.h \
editmultiplewidget.h \
ellipseitem.h \
@@ -183,6 +185,7 @@
datamanager.ui \
debugdialog.ui \
dialog.ui \
+ differentiatecurvesdialog.ui \
editmultiplewidget.ui \
equationtab.ui \
eventmonitortab.ui \
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #728996:728997
@@ -35,6 +35,7 @@
#include "viewmanager.h"
#include "applicationsettingsdialog.h"
+#include "differentiatecurvesdialog.h"
#include <QtGui>
@@ -532,6 +533,10 @@
_settingsDialogAct = new QAction(tr("&Configure Kst"), this);
_settingsDialogAct->setStatusTip(tr("Show Kst's Configuration Dialog"));
connect(_settingsDialogAct, SIGNAL(triggered()), this, SLOT(showSettingsDialog()));
+
+ _differentiateCurvesDialogAct = new QAction(tr("&Differentiate Curves"), this);
+ _differentiateCurvesDialogAct->setStatusTip(tr("Show Kst's Differentiate Curves Dialog"));
+ connect(_differentiateCurvesDialogAct, SIGNAL(triggered()), this, SLOT(showDifferentiateCurvesDialog()));
}
@@ -578,6 +583,9 @@
_layoutMenu->addAction(_createPlotAct);
_layoutMenu->addAction(_createSvgAct);
+ _toolsMenu = menuBar()->addMenu(tr("&Tools"));
+ _toolsMenu->addAction(_differentiateCurvesDialogAct);
+
_settingsMenu = menuBar()->addMenu(tr("&Settings"));
_settingsMenu->addAction(_settingsDialogAct);
@@ -711,6 +719,12 @@
}
+void MainWindow::showDifferentiateCurvesDialog() {
+ DifferentiateCurvesDialog differentiateCurvesDialog(this);
+ differentiateCurvesDialog.exec();
+}
+
+
void MainWindow::readSettings() {
QSettings settings;
QPoint pos = settings.value("pos", QPoint(20, 20)).toPoint();
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #728996:728997
@@ -54,6 +54,7 @@
void showMatrixEditor();
void showViewManager();
void showSettingsDialog();
+ void showDifferentiateCurvesDialog();
void save();
void saveAs();
@@ -118,6 +119,7 @@
QMenu *_dataMenu;
QMenu *_viewMenu;
QMenu *_layoutMenu;
+ QMenu *_toolsMenu;
QMenu *_settingsMenu;
QMenu *_helpMenu;
@@ -159,6 +161,8 @@
QAction *_tiedZoomAct;
QAction *_settingsDialogAct;
+
+ QAction *_differentiateCurvesDialogAct;
};
}
More information about the Kst
mailing list