[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Jun 21 23:13:47 CEST 2004


CVS commit by staikos: 

most of samplesEnd is working


  M +8 -11     kst.cpp   1.158
  M +2 -3      kst.h   1.78


--- kdeextragear-2/kst/kst/kst.cpp  #1.157:1.158
@@ -564,5 +564,5 @@ void KstApp::initActions() {
                                      "1rightarrow",
                                      KAccel::stringToKey("Shift+Ctrl+Right"),
-                                     this, SLOT(samplesEnd()),
+                                     this, SLOT(fromEnd()),
                                      actionCollection(),
                                      "samplesend_action");
@@ -633,12 +633,9 @@ void KstApp::slotConfigureKeys()
 void KstApp::setPaused(bool in_paused) {
   PauseAction->setChecked(in_paused);
+  _updateThread->setPaused(in_paused);
 }
 
 void KstApp::togglePaused() {
-  if (PauseAction->isChecked()) {
-    PauseAction->setChecked(false);
-  } else {
-    PauseAction->setChecked(true);
-  }
+  setPaused(!PauseAction->isChecked());
 }
 
@@ -1268,9 +1265,4 @@ void KstApp::samplesDown() {
 }
 
-void KstApp::samplesEnd() {
-  doc->samplesEnd();
-  setPaused(false);
-}
-
 
 void KstApp::updateDialogs() {
@@ -1457,4 +1449,9 @@ void KstApp::updatePausedState(bool stat
 
 
+void KstApp::fromEnd() {
+  doc->samplesEnd();
+  setPaused(false);
+}
+
 #include "kst.moc"
 // vim: ts=2 sw=2 et

--- kdeextragear-2/kst/kst/kst.h  #1.77:1.78
@@ -177,4 +177,6 @@ class KstApp : public KMdiMainFrm {
   public slots:
 
+    void fromEnd();
+
     void updatePausedState(bool);
 
@@ -291,7 +293,4 @@ class KstApp : public KMdiMainFrm {
     void samplesUp();
 
-    /** calls doc->samplesEnd */
-    void samplesEnd();
-
     /** calls update on all the dialogs */
     void updateDialogs();





More information about the Kst mailing list