[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Nov 14 01:32:37 CET 2003
CVS commit by staikos:
added a settings dialog that doesn't change settings yet
A kstsettingsdlg.ui 1.1
A kstsettingsdlg.ui.h 1.1 [no copyright]
M +2 -0 .cvsignore 1.11
M +1 -0 Makefile.am 1.49
M +11 -3 kst.cpp 1.58
M +2 -0 kst.h 1.24
--- kdeextragear-2/kst/kst/.cvsignore #1.10:1.11
@@ -55,2 +55,4 @@
vectorsavedialog.h
vectorsavedialog.cpp
+kstsettingsdlg.cpp
+kstsettingsdlg.h
--- kdeextragear-2/kst/kst/Makefile.am #1.48:1.49
@@ -83,4 +83,5 @@
vectorsavedialog.ui \
kstlabeldialog.ui \
+ kstsettingsdlg.ui \
kstplotlist.cpp \
kstplot.cpp \
--- kdeextragear-2/kst/kst/kst.cpp #1.57:1.58
@@ -60,4 +60,5 @@
#include "kstlabeldialog_i.h"
#include "kstiface_impl.h"
+#include "kstsettingsdlg.h"
#include "vectorsavedialog.h"
@@ -168,5 +169,7 @@ void KstApp::initActions() {
KStdAction::close( this, SLOT(slotFileClose()), actionCollection());
KStdAction::quit( this, SLOT(slotFileClose()), actionCollection());
- KStdAction::keyBindings( this, SLOT( slotConfigureKeys() ), actionCollection() );
+ KStdAction::keyBindings(this, SLOT(slotConfigureKeys()), actionCollection());
+ KStdAction::preferences(this, SLOT(slotPreferences()), actionCollection());
+
/************/
filePrint = KStdAction::print( this, SLOT(slotFilePrint()),
@@ -825,6 +828,5 @@ void KstApp::registerDocChange() {
void KstApp::reload() {
- for (KstVectorList::Iterator i = KST::vectorList.begin(); i != KST::vectorList
- .end(); ++i) {
+ for (KstVectorList::Iterator i = KST::vectorList.begin(); i != KST::vectorList.end(); ++i) {
KstRVector *r = dynamic_cast<KstRVector*>((*i).data());
if (r) {
@@ -834,4 +836,10 @@ void KstApp::reload() {
}
+
+void KstApp::slotPreferences() {
+ KstSettingsDlg *ksd = new KstSettingsDlg(this, "Kst Settings Dialog");
+ ksd->exec();
+ delete ksd;
+}
#include "kst.moc"
--- kdeextragear-2/kst/kst/kst.h #1.23:1.24
@@ -254,4 +254,6 @@ public slots:
void reload();
+ void slotPreferences();
+
private:
/** the configuration object of the application */
More information about the Kst
mailing list