digiKam
|
Public Types | |
enum | Mode { ModeFiles , ModeAlbums , ModeSubalbums } |
Public Member Functions | |
bool | confirmDeleteList (const QList< QUrl > &condemnedURLs, DeleteDialogMode::ListMode listMode, DeleteDialogMode::DeleteMode deleteMode) |
DeleteDialog (QWidget *const parent) | |
void | presetDeleteMode (DeleteDialogMode::DeleteMode mode) |
void | setListMode (DeleteDialogMode::ListMode mode) |
void | setUrls (const QList< QUrl > &urls) |
bool | shouldDelete () const |
~DeleteDialog () override | |
Protected Slots | |
void | slotShouldDelete (bool) |
void | slotUser1Clicked () |
|
explicit |
References shouldDelete(), slotShouldDelete(), and slotUser1Clicked().
|
override |
bool Digikam::DeleteDialog::confirmDeleteList | ( | const QList< QUrl > & | condemnedURLs, |
DeleteDialogMode::ListMode | listMode, | ||
DeleteDialogMode::DeleteMode | deleteMode | ||
) |
References Digikam::ApplicationSettings::instance(), Digikam::DeleteDialogMode::NoChoiceDeletePermanently, Digikam::DeleteDialogMode::NoChoiceTrash, presetDeleteMode(), setListMode(), and setUrls().
Referenced by Digikam::ItemViewUtilities::deleteImages(), Digikam::FindDuplicatesAlbum::removeDuplicates(), and Digikam::AlbumModificationHelper::slotAlbumDelete().
void Digikam::DeleteDialog::presetDeleteMode | ( | DeleteDialogMode::DeleteMode | mode | ) |
void Digikam::DeleteDialog::setListMode | ( | DeleteDialogMode::ListMode | mode | ) |
References Digikam::DeleteDialogMode::Albums, Digikam::DeleteDialogMode::Files, and Digikam::DeleteDialogMode::Subalbums.
Referenced by confirmDeleteList().
void Digikam::DeleteDialog::setUrls | ( | const QList< QUrl > & | urls | ) |
Referenced by confirmDeleteList().
bool Digikam::DeleteDialog::shouldDelete | ( | ) | const |
|
protectedslot |
References shouldDelete().
Referenced by DeleteDialog().
|
protectedslot |
References Digikam::ApplicationSettings::instance(), Digikam::ApplicationSettings::saveSettings(), Digikam::ApplicationSettings::setShowPermanentDeleteDialog(), Digikam::ApplicationSettings::setShowTrashDeleteDialog(), Digikam::ApplicationSettings::setUseTrash(), and shouldDelete().
Referenced by DeleteDialog().