25 #ifndef DIGIKAM_IMAGE_WINDOW_PRIVATE_H
26 #define DIGIKAM_IMAGE_WINDOW_PRIVATE_H
38 #include <QKeySequence>
39 #include <QCloseEvent>
40 #include <QDragMoveEvent>
43 #include <QHBoxLayout>
47 #include <QPersistentModelIndex>
49 #include <QProgressBar>
55 #include <QMessageBox>
56 #include <QApplication>
57 #include <QScopedPointer>
61 #if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
62 # pragma GCC diagnostic push
63 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
66 #if defined(Q_CC_CLANG)
67 # pragma clang diagnostic push
68 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
71 #include <kactioncollection.h>
72 #include <klocalizedstring.h>
73 #include <kwindowsystem.h>
74 #include <kconfiggroup.h>
75 #include <ksharedconfig.h>
78 #if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
79 # pragma GCC diagnostic pop
82 #if defined(Q_CC_CLANG)
83 # pragma clang diagnostic pop
169 return QLatin1String(
"/");
181 : configShowThumbbarEntry (QLatin1String(
"Show Thumbbar")),
182 configHorizontalThumbbarEntry (QLatin1String(
"HorizontalThumbbar")),
183 viewContainer (nullptr),
184 toMainWindowAction (nullptr),
185 fileDeletePermanentlyAction (nullptr),
186 fileDeletePermanentlyDirectlyAction (nullptr),
187 fileTrashDirectlyAction (nullptr),
188 imageInfoModel (nullptr),
189 imageFilterModel (nullptr),
190 dragDropHandler (nullptr),
192 thumbBarDock (nullptr),
193 rightSideBar (nullptr)
199 return imageFilterModel->indexForItemInfo(currentItemInfo);
204 return imageInfoModel->indexForItemInfo(currentItemInfo);
209 return !currentItemInfo.isNull();
214 return currentItemInfo.fileUrl();
219 return imageFilterModel->index(currentIndex().row() + 1, 0);
224 return imageFilterModel->index(currentIndex().row() - 1, 0);
229 return imageFilterModel->index(0, 0);
234 return imageFilterModel->index(imageFilterModel->rowCount() - 1, 0);
239 return imageFilterModel->imageInfo(index);
244 QModelIndex index = imageFilterModel->indexForItemInfo(currentItemInfo);
248 thumbBar->setCurrentIndex(index);
252 thumbBar->setCurrentWhenAvailable(currentItemInfo.id());
258 if (!imageInfoModel->hasImage(info))
260 imageInfoModel->addItemInfoSynchronously(info);
261 imageFilterModel->sort(imageFilterModel->sortColumn());
Definition: collectionlocation.h:41
QString albumRootPath() const
Definition: collectionlocation.cpp:51
bool isNull() const
Definition: collectionlocation.h:136
static CollectionManager * instance()
Definition: collectionmanager.cpp:36
CollectionLocation locationForPath(const QString &filePath)
Definition: collectionmanager_location.cpp:736
Definition: imagewindow_p.h:157
QString toplevelDirectory(const QString &path) override
Definition: imagewindow_p.h:160
Definition: imagewindow_p.h:176
ItemInfo imageInfo(const QModelIndex &index) const
Definition: imagewindow_p.h:237
ThumbBarDock * thumbBarDock
Definition: imagewindow_p.h:285
ItemDragDropHandler * dragDropHandler
Definition: imagewindow_p.h:282
QModelIndex previousIndex() const
Definition: imagewindow_p.h:222
QModelIndex lastIndex() const
Definition: imagewindow_p.h:232
ItemInfo currentItemInfo
Definition: imagewindow_p.h:279
QAction * toMainWindowAction
Definition: imagewindow_p.h:272
const QString configShowThumbbarEntry
Definition: imagewindow_p.h:267
QModelIndex currentSourceIndex() const
Definition: imagewindow_p.h:202
bool currentIsValid() const
Definition: imagewindow_p.h:207
QAction * fileDeletePermanentlyDirectlyAction
Definition: imagewindow_p.h:276
KMainWindow * viewContainer
Definition: imagewindow_p.h:270
QAction * fileDeletePermanentlyAction
Delete actions.
Definition: imagewindow_p.h:275
QMultiMap< QString, QVariant > newFaceTags
Definition: imagewindow_p.h:291
void ensureModelContains(const ItemInfo &info)
Definition: imagewindow_p.h:256
DatabaseVersionManager versionManager
Definition: imagewindow_p.h:289
QModelIndex nextIndex() const
Definition: imagewindow_p.h:217
ItemThumbnailBar * thumbBar
Definition: imagewindow_p.h:284
QUrl currentUrl() const
Definition: imagewindow_p.h:212
ItemFilterModel * imageFilterModel
Definition: imagewindow_p.h:281
QModelIndex currentIndex() const
Definition: imagewindow_p.h:197
QModelIndex firstIndex() const
Definition: imagewindow_p.h:227
ItemListModel * imageInfoModel
Definition: imagewindow_p.h:280
QAction * fileTrashDirectlyAction
Definition: imagewindow_p.h:277
const QString configHorizontalThumbbarEntry
Definition: imagewindow_p.h:268
void setThumbBarToCurrent()
Definition: imagewindow_p.h:242
ItemPropertiesSideBarDB * rightSideBar
Definition: imagewindow_p.h:287
Private()
Definition: imagewindow_p.h:180
Definition: imagewindow.h:48
Definition: itemdragdrop.h:42
Definition: itemfiltermodel.h:125
Definition: iteminfo.h:78
Definition: itemlistmodel.h:39
Definition: itemthumbnailbar.h:36
Definition: thumbbardock.h:84
Definition: versionmanager.h:46
Definition: datefolderview.cpp:43