25 #ifndef DIGIKAM_DITEMS_LIST_H
26 #define DIGIKAM_DITEMS_LIST_H
30 #include <QPushButton>
31 #include <QStringList>
32 #include <QTreeWidget>
34 #include <QXmlStreamWriter>
35 #include <QXmlStreamReader>
75 bool hasValidThumbnail()
const;
77 void setUrl(
const QUrl& url);
80 void setComments(
const QString& comments);
81 QString comments()
const;
83 void setTags(
const QStringList& tags);
84 QStringList tags()
const;
86 void setRating(
int rating);
89 void setThumb(
const QPixmap& pix,
bool hasThumb=
true);
90 void setProgressAnimation(
const QPixmap& pix);
92 void setProcessedIcon(
const QIcon& icon);
93 void setState(
State state);
96 void updateInformation();
112 void setPixmap(
const QPixmap& pix);
113 bool operator<(
const QTreeWidgetItem& other)
const override;
150 void setColumnLabel(ColumnType column,
const QString& label);
151 void setColumnEnabled(ColumnType column,
bool enable);
152 void setColumn(ColumnType column,
const QString& label,
bool enable);
156 int column = 0)
const;
171 void slotItemClicked(QTreeWidgetItem* item,
int column);
175 void enableDragAndDrop(
const bool enable =
true);
179 void dragEnterEvent(QDragEnterEvent* e)
override;
180 void dragMoveEvent(QDragMoveEvent* e)
override;
181 void dropEvent(QDropEvent* e)
override;
182 void contextMenuEvent(QContextMenuEvent* e)
override;
184 void drawRow(QPainter* p,
185 const QStyleOptionViewItem& opt,
186 const QModelIndex& index)
const override;
190 QTreeWidgetItem* m_itemDraged;
203 NoControlButtons = 0,
220 Q_DECLARE_FLAGS(ControlButtons, ControlButton)
227 void setAllowRAW(
bool allow);
228 void setAllowDuplicate(
bool allow);
230 void loadImagesFromCurrentSelection();
235 void loadImagesFromCurrentAlbum();
240 bool checkSelection();
242 void setIconSize(
int size);
243 int iconSize()
const;
247 void processing(
const QUrl& url);
248 void processed(
const QUrl& url,
bool success);
249 void cancelProcess();
250 void clearProcessedStatus();
252 void setControlButtons(ControlButtons buttonMask);
253 void setControlButtonsPlacement(ControlButtonPlacement placement);
254 void enableControlButtons(
bool enable =
true);
255 void enableDragAndDrop(
const bool enable =
true);
257 void updateThumbnail(
const QUrl& url);
259 virtual QList<QUrl> imageUrls(
bool onlyUnprocessed =
false)
const;
260 virtual void removeItemByUrl(
const QUrl& url);
262 void setCurrentUrl(
const QUrl& url);
263 QUrl getCurrentUrl()
const;
294 virtual void slotAddImages(
const QList<QUrl>& list);
295 virtual void slotRemoveItems();
299 void slotProgressTimerDone();
301 virtual void slotAddItems();
302 virtual void slotMoveUpItems();
303 virtual void slotMoveDownItems();
304 virtual void slotClearItems();
305 virtual void slotLoadItems();
306 virtual void slotSaveItems();
308 virtual void slotImageListChanged();
322 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::DItemsList::ControlButtons)
Definition: dinfointerface.h:56
Definition: ditemslist.h:59
State
Definition: ditemslist.h:64
@ Success
Definition: ditemslist.h:66
@ Waiting
Definition: ditemslist.h:65
void setIsLessThanHandler(DItemsListIsLessThanHandler fncptr)
virtual void updateItemWidgets()
Definition: ditemslist.h:104
Definition: ditemslist.h:128
void signalAddedDropedItems(const QList< QUrl > &)
void signalContextMenuRequested()
ColumnType
Definition: ditemslist.h:134
@ Filename
Definition: ditemslist.h:136
@ User3
Definition: ditemslist.h:139
@ User5
Definition: ditemslist.h:141
@ User1
Definition: ditemslist.h:137
@ User4
Definition: ditemslist.h:140
@ User2
Definition: ditemslist.h:138
void signalItemClicked(QTreeWidgetItem *)
Definition: ditemslist.h:196
void signalItemClicked(QTreeWidgetItem *)
void signalRemovedItems(const QList< int > &)
ControlButtonPlacement
Definition: ditemslist.h:202
@ ControlButtonsLeft
Definition: ditemslist.h:204
@ ControlButtonsAbove
Definition: ditemslist.h:206
@ ControlButtonsRight
Definition: ditemslist.h:205
void signalAddItems(const QList< QUrl > &)
ControlButton
Definition: ditemslist.h:211
void signalXMLSaveItem(QXmlStreamWriter &, int)
void signalFoundRAWImages(bool)
void signalXMLCustomElements(QXmlStreamReader &)
void signalMoveDownItem()
void signalXMLLoadImageElement(QXmlStreamReader &)
void signalXMLCustomElements(QXmlStreamWriter &)
void signalImageListChanged()
void signalContextMenuRequested()
Definition: loadingdescription.h:45
Definition: datefolderview.cpp:43
bool(* DItemsListIsLessThanHandler)(const QTreeWidgetItem *current, const QTreeWidgetItem &other)
Definition: ditemslist.h:56
bool operator<(const WSAlbum &first, const WSAlbum &second)
Definition: wstalker.cpp:47
Definition: abstractalbumtreeview_p.h:85