[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Fri Oct 26 15:23:44 CEST 2007
SVN commit 729621 by fenton:
Add initial stub version of ChangeFileDialog.
A changefiledialog.cpp [License: GPL (v2+)]
A changefiledialog.h [License: GPL (v2+)]
A changefiledialog.ui
M +3 -0 libkstapp.pro
M +12 -0 mainwindow.cpp
M +2 -0 mainwindow.h
--- branches/work/kst/portto4/kst/src/libkstapp/libkstapp.pro #729620:729621
@@ -29,6 +29,7 @@
builtingraphics.cpp \
cartesianrenderitem.cpp \
changedatasampledialog.cpp \
+ changefiledialog.cpp \
choosecolordialog.cpp \
csddialog.cpp \
curvedialog.cpp \
@@ -109,6 +110,7 @@
builtingraphics.h \
cartesianrenderitem.h \
changedatasampledialog.h \
+ changefiledialog.h \
choosecolordialog.h \
csddialog.h \
curvedialog.h \
@@ -185,6 +187,7 @@
aboutdialog.ui \
basicplugintab.ui \
changedatasampledialog.ui \
+ changefiledialog.ui \
choosecolordialog.ui \
csdtab.ui \
curvetab.ui \
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #729620:729621
@@ -38,6 +38,7 @@
#include "differentiatecurvesdialog.h"
#include "choosecolordialog.h"
#include "changedatasampledialog.h"
+#include "changefiledialog.h"
#include <QtGui>
@@ -548,6 +549,10 @@
_changeDataSampleDialogAct->setStatusTip(tr("Show Kst's Change Data Sample Range Dialog"));
connect(_changeDataSampleDialogAct, SIGNAL(triggered()), this, SLOT(showChangeDataSampleDialog()));
+ _changeFileDialogAct = new QAction(tr("Change Data &File"), this);
+ _changeFileDialogAct->setStatusTip(tr("Show Kst's Change Data File Dialog"));
+ connect(_changeFileDialogAct, SIGNAL(triggered()), this, SLOT(showChangeFileDialog()));
+
}
@@ -595,6 +600,7 @@
_layoutMenu->addAction(_createSvgAct);
_toolsMenu = menuBar()->addMenu(tr("&Tools"));
+ _toolsMenu->addAction(_changeFileDialogAct);
_toolsMenu->addAction(_changeDataSampleDialogAct);
_toolsMenu->addAction(_chooseColorDialogAct);
_toolsMenu->addAction(_differentiateCurvesDialogAct);
@@ -750,6 +756,12 @@
}
+void MainWindow::showChangeFileDialog() {
+ ChangeFileDialog changeFileDialog(this);
+ changeFileDialog.exec();
+}
+
+
void MainWindow::readSettings() {
QSettings settings;
QPoint pos = settings.value("pos", QPoint(20, 20)).toPoint();
--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.h #729620:729621
@@ -57,6 +57,7 @@
void showDifferentiateCurvesDialog();
void showChooseColorDialog();
void showChangeDataSampleDialog();
+ void showChangeFileDialog();
void save();
void saveAs();
@@ -167,6 +168,7 @@
QAction *_differentiateCurvesDialogAct;
QAction *_chooseColorDialogAct;
QAction *_changeDataSampleDialogAct;
+ QAction *_changeFileDialogAct;
};
More information about the Kst
mailing list