[Kst] [Bug 108084] New tool: differentiate curves
Andrew Walker
arwalker at sumusltd.com
Fri Oct 21 00:20:28 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=108084
------- Additional Comments From arwalker sumusltd com 2005-10-21 00:20 -------
SVN commit 472497 by arwalker:
CCBUG:108084 Add UI for this feature. Still time to comment before the functionality is added.
M +19 -0 kst.cpp
M +9 -0 kst.h
A kstcurvedifferentiate_i.cpp [License: GPL (v2+)]
A kstcurvedifferentiate_i.h [License: GPL (v2+)]
M +2 -1 kstui.rc
--- trunk/extragear/graphics/kst/kst/kst.cpp #472496:472497
@ -50,6 +50,7 @
#include "kstchangefiledialog_i.h"
#include "kstchangenptsdialog_i.h"
#include "kstchoosecolordialog_i.h"
+#include "kstcurvedifferentiate_i.h"
#include "kstcurvedialog_i.h"
#include "kstcsddialog_i.h"
#include "kstdatamanager_i.h"
@ -146,6 +147,7 @
viewFitsDialog = new KstViewFitsDialogI(this);
changeFileDialog = new KstChangeFileDialogI(this);
chooseColorDialog = new KstChooseColorDialogI(this);
+ differentiateCurvesDialog = new KstCurveDifferentiateI(this);
changeNptsDialog = new KstChangeNptsDialogI(this);
graphFileDialog = new KstGraphFileDialogI(this);
vectorSaveDialog = new VectorSaveDialog(this);
@ -580,6 +582,15 @
"based on data file."));
/************/
+ DifferentiateCurvesDialogAction = new KAction(i18n("&Differentiate Between Curves..."),
+ "kst_differentiatecurves", 0, this,
+ SLOT(showDifferentiateCurvesDialog()),
+ actionCollection(),
+ "differentiatecurves_action");
+ DifferentiateCurvesDialogAction->setWhatsThis(i18n("Bring up a dialog box\n"
+ "to differentiate between curves."));
+
+ /************/
ViewScalarsDialogAction = new KAction(i18n("View &Scalar Values"),
0, 0, this,
SLOT(showViewScalarsDialog()),
@ -1941,6 +1952,11 @
}
+void KstApp::showDifferentiateCurvesDialog() {
+ differentiateCurvesDialog->showCurveDifferentiate();
+}
+
+
void KstApp::showChangeNptsDialog() {
changeNptsDialog->showChangeNptsDialog();
}
@ -2063,6 +2079,9 @
if (!onlyVisible || chooseColorDialog->isShown()) {
chooseColorDialog->updateChooseColorDialog();
}
+ if (!onlyVisible || differentiateCurvesDialog->isShown()) {
+ differentiateCurvesDialog->updateCurveDifferentiate();
+ }
if (!onlyVisible || changeNptsDialog->isShown()) {
changeNptsDialog->updateChangeNptsDialog();
}
--- trunk/extragear/graphics/kst/kst/kst.h #472496:472497
@ -44,6 +44,7 @
class KstChangeFileDialogI;
class KstChangeNptsDialogI;
class KstChooseColorDialogI;
+class KstCurveDifferentiateI;
class KstDataManagerI;
class KstDataNotifier;
class KstDebugDialogI;
@ -306,6 +307,9 @
/** just calls chooseColorDialog->showChooseColorDialog(0) */
void showChooseColorDialog();
+ /** just calls chooseColorDialog->showChooseColorDialog(0) */
+ void showDifferentiateCurvesDialog();
+
/** just calls viewScalarsDialog->showViewScalarsDialog(0) */
void showViewScalarsDialog();
@ -407,6 +411,9 @
/* Dialog for choosing curve color per file */
KstChooseColorDialogI *chooseColorDialog;
+ /* Dialog for differentiating between curves */
+ KstCurveDifferentiateI *differentiateCurvesDialog;
+
/* Dialog for changing the Sample ranges for Vectors */
KstChangeNptsDialogI *changeNptsDialog;
@ -501,6 +508,8 @
KAction *ChangeFileDialogAction;
/** Choose Color Action: brings up the choose color dialog box */
KAction *ChooseColorDialogAction;
+ /** Differentiate Curves Action: brings up the differentiate curves dialog box */
+ KAction *DifferentiateCurvesDialogAction;
/** Change npts Action: brings up the change data range dialog box */
KAction *ChangeNptsDialogAction;
/** GraphFileDialogAction: Brings up the graphics file export window */
--- trunk/extragear/graphics/kst/kst/kstui.rc #472496:472497
@ -43,7 +43,8 @
<Action name="datawizard_action"/>
<Action name="changefiledialog_action"/>
<Action name="changenptsdialog_action"/>
- <Action name="choosecolordialog_action"/>
+ <Action name="choosecolordialog_action"/>
+ <Action name="differentiatecurves_action"/>
</Menu>
<Menu name="plots"><text>&Plots</text>
<Action name="plotdialog_action"/>
More information about the Kst
mailing list