[Kstars-devel] KDE/kdeedu/kstars/kstars/tools

Prakash Mohan prak902000 at gmail.com
Tue Jul 6 00:30:20 CEST 2010


SVN commit 1146400 by prakash:

Readability improvement. Make the functions for deleting the current image and deleting all images clear.

CCMAIL:kstars-devel at kde.org


 M  +5 -5      observinglist.cpp  
 M  +2 -2      observinglist.h  
 M  +1 -1      observinglist.ui  


--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.cpp #1146399:1146400
@@ -174,7 +174,7 @@
     connect( ui->SaveImage, SIGNAL( clicked() ),
              this, SLOT( slotSaveImage() ) );
     connect( ui->DeleteImage, SIGNAL( clicked() ),
-             this, SLOT( slotDeleteImage() ) );
+             this, SLOT( slotDeleteCurrentImage() ) );
     connect( ui->GoogleImage, SIGNAL( clicked() ),
              this, SLOT( slotGoogleImage() ) );
     connect( ui->SetTime, SIGNAL( clicked() ),
@@ -183,8 +183,8 @@
              this, SLOT( slotChangeTab(int) ) );
     connect( ui->saveImages, SIGNAL( clicked() ),
              this, SLOT( slotSaveImages() ) );
-    connect( ui->DeleteImages, SIGNAL( clicked() ),
-             this, SLOT( slotDeleteImages() ) );
+    connect( ui->DeleteAllImages, SIGNAL( clicked() ),
+             this, SLOT( slotDeleteAllImages() ) );
     connect( ui->OALExport, SIGNAL( clicked() ),
              this, SLOT( slotOALExport() ) );  
     //Add icons to Push Buttons
@@ -1274,7 +1274,7 @@
         iv->show();
 }
 
-void ObservingList::slotDeleteImages() {
+void ObservingList::slotDeleteAllImages() {
     if( KMessageBox::warningYesNo( 0, i18n( "This will delete all saved images. Are you sure you want to do this?" ), i18n( "Delete All Images" ) ) == KMessageBox::No )
         return;
     ui->ImagePreview->setCursor( Qt::ArrowCursor );
@@ -1373,7 +1373,7 @@
     delete tp;
 }
 
-void ObservingList::slotDeleteImage() {
+void ObservingList::slotDeleteCurrentImage() {
     QFile::remove( CurrentImagePath );
     QFile::remove( CurrentTempPath );
     slotNewSelection();
--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.h #1146399:1146400
@@ -306,11 +306,11 @@
 
     /**@short Remove the current image
         */
-    void slotDeleteImage();
+    void slotDeleteCurrentImage();
 
     /**@short Removes all the save DSS/SDSS images from the disk.
         */
-    void slotDeleteImages();
+    void slotDeleteAllImages();
 
     /**@short download the DSS image and show it
         */
--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.ui #1146399:1146400
@@ -281,7 +281,7 @@
       </widget>
      </item>
      <item>
-      <widget class="QPushButton" name="DeleteImages">
+      <widget class="QPushButton" name="DeleteAllImages">
        <property name="toolTip">
         <string>Deletes all the stored DSS/SDSS images</string>
        </property>


More information about the Kstars-devel mailing list