28 #ifndef DIGIKAM_DELETE_DIALOG_H
29 #define DIGIKAM_DELETE_DIALOG_H
34 #include <QTreeWidget>
46 namespace DeleteDialogMode
74 explicit DeleteItem(QTreeWidget*
const parent,
const QUrl&
url);
81 void setThumb(
const QPixmap& pix,
bool hasThumb =
true);
106 void drawRow(QPainter* p,
107 const QStyleOptionViewItem& opt,
108 const QModelIndex& index)
const override;
137 void slotShouldDelete(
bool);
187 void keyPressEvent(QKeyEvent*)
override;
Definition: deletedialog.h:154
void presetDeleteMode(DeleteDialogMode::DeleteMode mode)
Definition: deletedialog.cpp:608
~DeleteDialog() override
Definition: deletedialog.cpp:526
Mode
Definition: deletedialog.h:160
@ ModeSubalbums
Definition: deletedialog.h:163
@ ModeAlbums
Definition: deletedialog.h:162
@ ModeFiles
Definition: deletedialog.h:161
bool shouldDelete() const
Definition: deletedialog.cpp:590
void slotShouldDelete(bool)
Definition: deletedialog.cpp:595
DeleteDialog(QWidget *const parent)
Definition: deletedialog.cpp:494
void setListMode(DeleteDialogMode::ListMode mode)
Definition: deletedialog.cpp:655
bool confirmDeleteList(const QList< QUrl > &condemnedURLs, DeleteDialogMode::ListMode listMode, DeleteDialogMode::DeleteMode deleteMode)
Definition: deletedialog.cpp:531
void setUrls(const QList< QUrl > &urls)
Definition: deletedialog.cpp:557
void slotUser1Clicked()
Definition: deletedialog.cpp:562
Definition: deletedialog.h:96
~DeleteItemList() override
Definition: deletedialog.cpp:194
DeleteItemList(QWidget *const parent=nullptr)
Definition: deletedialog.cpp:172
Definition: deletedialog.h:70
QUrl url() const
Definition: deletedialog.cpp:111
~DeleteItem() override
Definition: deletedialog.cpp:101
DeleteItem(QTreeWidget *const parent, const QUrl &url)
Definition: deletedialog.cpp:76
bool hasValidThumbnail() const
Definition: deletedialog.cpp:106
void setThumb(const QPixmap &pix, bool hasThumb=true)
Definition: deletedialog.cpp:130
QString fileUrl() const
Definition: deletedialog.cpp:116
Definition: loadingdescription.h:45
DeleteMode
Definition: deletedialog.h:57
@ UseTrash
same checkbox as above, preset to trash
Definition: deletedialog.h:61
@ NoChoiceDeletePermanently
same as above
Definition: deletedialog.h:59
@ DeletePermanently
same checkbox as above, preset to permanent
Definition: deletedialog.h:62
@ NoChoiceTrash
"Do not show again" checkbox, does not show if config entry is set
Definition: deletedialog.h:58
@ UserPreference
Checkbox to toggle trash/permanent, preset to user's last preference.
Definition: deletedialog.h:60
ListMode
Definition: deletedialog.h:50
@ Subalbums
Definition: deletedialog.h:53
@ Albums
Definition: deletedialog.h:52
@ Files
Definition: deletedialog.h:51
Definition: datefolderview.cpp:43