[Kst] kdeextragear-2/kst/kst

Rick Chern rchern at interchange.ubc.ca
Wed Aug 25 23:48:00 CEST 2004


CVS commit by rchern: 

First draft of quickstart dialog.  Does not work properly yet (but sort of works).


  A            kstquickstartdialog_i.cpp   1.1 [GPL (v2+)]
  A            kstquickstartdialog_i.h   1.1 [GPL (v2+)]
  A            quickstartdialog.ui   1.1
  M +2 -0      .cvsignore   1.31
  M +2 -0      Makefile.am   1.139
  M +9 -0      kst.cpp   1.219
  M +10 -0     kst.h   1.102
  M +6 -0      main.cpp   1.76


--- kdeextragear-2/kst/kst/kst.cpp  #1.218:1.219
@@ -66,4 +66,5 @@
 #include "kstviewfitsdialog_i.h"
 #include "kstviewwindow.h"
+#include "kstquickstartdialog_i.h"
 #include "pluginmanager.h"
 #include "psversion.h"
@@ -112,4 +113,5 @@ KstApp::KstApp(QWidget *parent, const ch
   vectorSaveDialog = new VectorSaveDialog(this);
   _labelDialog = new KstLabelDialogI(this);
+  _quickStartDialog = new KstQuickStartDialogI(this, 0 , true);
 
   connect(_labelDialog, SIGNAL(applied()), doc, SLOT(wasModified()));
@@ -1505,4 +1507,11 @@ void KstApp::updateMemoryStatus() {
 }
 
+const QStringList KstApp::recentFiles() const {
+  return recent->items();
+}
+
+void KstApp::showQuickStartDialog() {
+  _quickStartDialog->show_I();
+}
 
 #include "kst.moc"

--- kdeextragear-2/kst/kst/kst.h  #1.101:1.102
@@ -52,4 +52,5 @@ class KstViewScalarsDialogI;
 class KstViewVectorsDialogI;
 class KstViewFitsDialogI;
+class KstQuickStartDialogI;
 class UpdateThread;
 class VectorSaveDialog;
@@ -117,4 +118,7 @@ class KstApp : public KMdiMainFrm {
     void EventELOGSubmitEntry(const QString& strMessage);
     
+    //return the list of recent files
+    const QStringList recentFiles() const;
+    
   protected:
     virtual void customEvent(QCustomEvent *e);
@@ -278,4 +282,7 @@ class KstApp : public KMdiMainFrm {
     void showDataWizard();
 
+    //show the quickstart dialog
+    void showQuickStartDialog();
+
     /** calls doc->samplesDown */
     void samplesDown();
@@ -348,4 +355,7 @@ class KstApp : public KMdiMainFrm {
     KstLabelDialogI *_labelDialog;
 
+    //the quickstart dialog
+    KstQuickStartDialogI *_quickStartDialog;
+
     /* contains the recently used filenames */
     KRecentFilesAction *recent;

--- kdeextragear-2/kst/kst/main.cpp  #1.75:1.76
@@ -321,4 +321,5 @@ int main(int argc, char *argv[]) {
   } else {
     KstApp *kst = new KstApp;
+    bool showQuickStart = false; // used to determine if quickstart dialog should be shown
 
     struct InType in;
@@ -607,4 +608,5 @@ int main(int argc, char *argv[]) {
     } else {
       //kst->openDocumentFile();
+      showQuickStart = true;
     }
 
@@ -636,4 +639,7 @@ int main(int argc, char *argv[]) {
       kst->updateDialogs();
       kst->document()->setModified(false);
+      if (showQuickStart) {
+        kst->showQuickStartDialog();
+      }
     }
 

--- kdeextragear-2/kst/kst/Makefile.am  #1.138:1.139
@@ -89,4 +89,5 @@
         kstgraphfiledialog_i.cpp \
         kstimagedialog_i.cpp \
+        kstquickstartdialog_i.cpp \
         updatethread.cpp \
         emailthread.cpp \
@@ -151,4 +152,5 @@
         kstviewlabeldialog.ui \
         kstsettingsdlg.ui \
+        quickstartdialog.ui \
         kstsettings.cpp \
         kstdoc.cpp \

--- kdeextragear-2/kst/kst/.cvsignore  #1.30:1.31
@@ -78,4 +78,6 @@
 quickpsddialog.cpp
 quickpsddialog.h
+quickstartdialog.h
+quickstartdialog.cpp
 scalareditor.cpp
 scalareditor.h





More information about the Kst mailing list