[Kstars-devel] KDE/kdeedu/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Tue Jul 6 03:21:16 CEST 2010
SVN commit 1146436 by prakash:
Readability improvements in function names for saving the images in the observing list.
CCMAIL: kstars-devel at kde.org
M +7 -7 observinglist.cpp
M +3 -3 observinglist.h
--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.cpp #1146435:1146436
@@ -182,7 +182,7 @@
connect( ui->tabWidget, SIGNAL( currentChanged(int) ),
this, SLOT( slotChangeTab(int) ) );
connect( ui->saveImages, SIGNAL( clicked() ),
- this, SLOT( slotSaveImages() ) );
+ this, SLOT( slotSaveAllImages() ) );
connect( ui->DeleteAllImages, SIGNAL( clicked() ),
this, SLOT( slotDeleteAllImages() ) );
connect( ui->OALExport, SIGNAL( clicked() ),
@@ -207,7 +207,7 @@
slotLoadWishList(); //Load the wishlist from disk if present
m_CurrentObject = 0;
- setSaveImages();
+ setSaveImagesButton();
//Hide the MiniButton until I can figure out how to resize the Dialog!
// ui->MiniButton->hide();
}
@@ -303,7 +303,7 @@
//Note addition in statusbar
ks->statusBar()->changeItem( i18n( "Added %1 to session list.", obj->name() ), 0 );
}
- setSaveImages();
+ setSaveImagesButton();
}
void ObservingList::slotRemoveObject( SkyObject *o, bool session, bool update ) {
@@ -439,7 +439,7 @@
//we've removed all selected objects, so clear the selection
ui->TableView->selectionModel()->clear();
}
- setSaveImages();
+ setSaveImagesButton();
ui->ImagePreview->setCursor( Qt::ArrowCursor );
}
@@ -1098,7 +1098,7 @@
} else {
sessionView = false;
}
- setSaveImages();
+ setSaveImagesButton();
ui->WizardButton->setEnabled( ! sessionView );//wizard adds only to the Wish List
ui->OALExport->setEnabled( sessionView );
//Clear the selection in the Tables
@@ -1213,7 +1213,7 @@
SDSSUrl = UrlPrefix + RA + Dec + UrlSuffix;
}
-void ObservingList::slotSaveImages() {
+void ObservingList::slotSaveAllImages() {
ui->GoogleImage->setEnabled( false );
ui->SaveImage->setEnabled( false );
ui->DeleteImage->setEnabled( false );
@@ -1298,7 +1298,7 @@
}
}
-void ObservingList::setSaveImages() {
+void ObservingList::setSaveImagesButton() {
ui->saveImages->setEnabled( false );
if( sessionView ) {
if( ! sessionList().isEmpty() )
--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.h #1146435:1146436
@@ -143,7 +143,7 @@
/**@short decides on whether to enable the SaveImages button or not
*/
- void setSaveImages();
+ void setSaveImagesButton();
/**@short This is the declaration of the event filter function
* which is installed on the KImageFilePreview and the TabeView
@@ -291,10 +291,10 @@
*Note: This downloads the SDSS image, checks if the size is > default image
*and gets the DSS image if thats the case
*/
- void slotSaveImages();
+ void slotSaveAllImages();
/**@short saves the image syncronously from a given URL into a given file
- *@p url the url from whih the image has to be downloaded
+ *@p url the url from which the image has to be downloaded
*@p filename the file onto which the url has to be copied to
*NOTE: This is not a generic image saver, it is specific to the current object
*/
More information about the Kstars-devel
mailing list