void CoverWidget::updateCoverWidget() { if (coverList == NULL) return; if (!coverList->empty()) { if (currentPosition == 0) showCover(it->second); } }
void CoverWidget::on_next() { if (it->second == NULL) return; if (coverList->empty()) return; it++; currentPosition++; if (it == coverList->end()) it = coverList->begin(); showCover(it->second); }
void CoverWidget::on_prev() { if (it->second == NULL) return; if (coverList->empty()) return; if (it == coverList->begin()) it = coverList->end(); it--; if (currentPosition == 0) currentPosition = coverList->size(); currentPosition--; showCover(it->second); }
void SearchDialog::showAlbumAndCover( const Album &album ){ if(album.images().size()==0){ //if( databaseComboBox->itemData(databaseComboBox->currentIndex()).toInt()==SearchDialog::MUSICBRAINZ ){ if( database_->type()==MusicDatabase::MUSICBRAINZ ){ cover->setText("Covers are not available from MusicBrainz"); }else{ cover->setText("No cover found..."); } coverLabel->setText(""); }else{ showCover( 0 ); } showAlbumInfo( album ); }
void CoverWidget::setCoverWidget(std::map<std::string, SAlbum *>* list) { if (list == NULL) return; coverList = list; it = coverList->begin(); if (it->second == NULL) return; // check for voting // checkIfICanVote(); // show slide if (!coverList->empty()) showCover(it->second); else clearCover(); }
void SearchDialog::showNextCover(){ currentCoverInd++; showCover( currentCoverInd ); }
void SearchDialog::showPrevCover(){ currentCoverInd--; showCover( currentCoverInd ); }