[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri Feb 6 20:30:57 CET 2004
CVS commit by arwalker:
Added dialog to display scalar values
A kstviewscalarsdialog_i.cpp 1.1 [GPL (v2+)]
A kstviewscalarsdialog_i.h 1.1 [GPL (v2+)]
A viewscalarsdialog.ui 1.1
M +2 -0 Makefile.am 1.59
M +15 -0 kst.cpp 1.71
M +10 -0 kst.h 1.30
M +2 -0 kstui.rc 1.14
--- kdeextragear-2/kst/kst/kst.cpp #1.70:1.71
@@ -46,4 +46,5 @@
#include "kstdoc.h"
#include "kstplotdialog_i.h"
+#include "kstviewscalarsdialog_i.h"
#include "kstchangefiledialog_i.h"
#include "kstchangenptsdialog_i.h"
@@ -84,4 +85,5 @@ KstApp::KstApp(QWidget *parent, const ch
dataManager = new KstDataManagerI(doc, this);
filterListEditor = new FilterListEditor(this);
+ viewScalarsDialog = new KstViewScalarsDialogI(this);
changeFileDialog = new KstChangeFileDialogI(this);
changeNptsDialog = new KstChangeNptsDialogI(this);
@@ -345,4 +347,13 @@ void KstApp::initActions() {
/************/
+ ViewScalarsDialogAction = new KAction(i18n("View &Scalars"),
+ 0, 0, this,
+ SLOT(showViewScalarsDialog()),
+ actionCollection(),
+ "viewscalarsdialog_action");
+ ViewScalarsDialogAction->setWhatsThis(i18n("Bring up a dialog box\n"
+ "to view scalar values."));
+
+ /************/
ChangeNptsDialogAction = new KAction(i18n("Change Data Sample &Ranges"),
"kst_changenpts", 0, this,
@@ -803,4 +814,8 @@ void KstApp::showDataManager() {
}
+void KstApp::showViewScalarsDialog() {
+ viewScalarsDialog->showViewScalarsDialog();
+}
+
void KstApp::showChangeFileDialog() {
changeFileDialog->showChangeFileDialog();
--- kdeextragear-2/kst/kst/kst.h #1.29:1.30
@@ -42,4 +42,5 @@ class KstDoc;
class KstView;
class KstPlotDialogI;
+class KstViewScalarsDialogI;
class KstChangeFileDialogI;
class KstChangeNptsDialogI;
@@ -225,4 +226,7 @@ public slots:
void showChangeFileDialog();
+ /** just calls viewScalarsDialog->showViewScalarsDialog(0) */
+ void showViewScalarsDialog();
+
/** just calls changeNptsDialog->showChangeNptsDialog(0) */
void showChangeNptsDialog();
@@ -280,4 +284,7 @@ private:
KstPlotDialogI *plotDialog;
+ /* Dialog for viewing the scalar values */
+ KstViewScalarsDialogI *viewScalarsDialog;
+
/* Dialog for changing the data files from Vectors */
KstChangeFileDialogI *changeFileDialog;
@@ -349,4 +356,7 @@ private:
KAction *_vectorSaveAction;
+ /* View Scalars Action */
+ KAction *ViewScalarsDialogAction;
+
/* Data mode */
KToggleAction *DataMode;
--- kdeextragear-2/kst/kst/kstui.rc #1.13:1.14
@@ -23,4 +23,6 @@
<Action name="filterdialog_action"/>
<Separator/>
+ <Action name="viewscalarsdialog_action"/>
+ <Separator/>
<Action name="quickcurvesdialog_action"/>
<Action name="quickpsddialog_action"/>
--- kdeextragear-2/kst/kst/Makefile.am #1.58:1.59
@@ -47,4 +47,5 @@
kstquickpsddialog_i.cpp \
kstquickcurvesdialog_i.cpp \
+ kstviewscalarsdialog_i.cpp \
kstchangenptsdialog_i.cpp \
kstchangefiledialog_i.cpp \
@@ -78,4 +79,5 @@
quickpsddialog.ui \
quickcurvesdialog.ui \
+ viewscalarsdialog.ui \
changenptsdialog.ui \
vectordialog.ui \
More information about the Kst
mailing list