digiKam
Loading...
Searching...
No Matches
showfotothumbnailbar.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 02-08-2013
7 * Description : Thumbnail bar for Showfoto
8 *
9 * SPDX-FileCopyrightText: 2013 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
10 * SPDX-FileCopyrightText: 2013-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Local Includes
19
21
22namespace ShowFoto
23{
24
25class ShowfotoItemViewToolTip;
26
28{
29 Q_OBJECT
30
31public:
32
33 explicit ShowfotoThumbnailBar(QWidget* const parent = nullptr);
34 ~ShowfotoThumbnailBar() override;
35
41
42 QModelIndex nextIndex(const QModelIndex& index) const;
43 QModelIndex previousIndex(const QModelIndex& index) const;
44 QModelIndex firstIndex() const;
45 QModelIndex lastIndex() const;
46
47 int thumbnailIndexForUrl(const QUrl& url) const;
48
52 void setScrollBarPolicy(Qt::ScrollBarPolicy policy);
53 void setFlow(QListView::Flow newFlow);
54
55 ShowfotoItemInfo findItemByUrl(const QUrl& url);
56
57 void installOverlays();
58
59public Q_SLOTS:
60
61 void slotDockLocationChanged(Qt::DockWidgetArea area);
62
63protected:
64
65 bool event(QEvent*) override;
66
67private:
68
69 // Disable
71 ShowfotoThumbnailBar& operator=(const ShowfotoThumbnailBar&) = delete;
72
73private:
74
75 class Private;
76 Private* const d = nullptr;
77};
78
79} // namespace ShowFoto
Definition showfotocategorizedview.h:32
QSortFilterProxyModel * filterModel() const override
reimplemented from parent class
Definition showfotocategorizedview.cpp:157
Definition showfotoiteminfo.h:38
Definition showfotoitemmodel.h:37
Definition showfotofiltermodel.h:34
Definition showfotothumbnailbar.h:28
void setScrollBarPolicy(Qt::ScrollBarPolicy policy)
Definition showfotothumbnailbar.cpp:121
ShowfotoItemInfo findItemByUrl(const QUrl &url)
Definition showfotothumbnailbar.cpp:208
QModelIndex previousIndex(const QModelIndex &index) const
Definition showfotothumbnailbar.cpp:193
int thumbnailIndexForUrl(const QUrl &url) const
Definition showfotothumbnailbar.cpp:81
bool event(QEvent *) override
Definition showfotothumbnailbar.cpp:176
QModelIndex lastIndex() const
Definition showfotothumbnailbar.cpp:203
void setFlow(QListView::Flow newFlow)
Definition showfotothumbnailbar.cpp:144
void slotDockLocationChanged(Qt::DockWidgetArea area)
Definition showfotothumbnailbar.cpp:105
void setModelsFiltered(ShowfotoItemModel *model, ShowfotoSortFilterModel *filterModel)
QModelIndex nextIndex(const QModelIndex &index) const
Definition showfotothumbnailbar.cpp:188
void installOverlays()
Definition showfotothumbnailbar.cpp:100
~ShowfotoThumbnailBar() override
Definition showfotothumbnailbar.cpp:76
QModelIndex firstIndex() const
Definition showfotothumbnailbar.cpp:198
Definition showfotofolderviewbar.cpp:43