digiKam
Loading...
Searching...
No Matches
showfotostackviewsidebar.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 : 2021-09-27
7 * Description : Side Bar Widget for the Showfoto stack view.
8 *
9 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// QT includes
18
19#include <QList>
20#include <QUrl>
21#include <QListView>
22#include <QPixmap>
23#include <QWidget>
24#include <QEvent>
25#include <QAction>
26#include <QStringList>
27#include <QModelIndex>
28
29// Local includes
30
31#include "statesavingobject.h"
33#include "dpluginaction.h"
34
35using namespace Digikam;
36
37namespace ShowFoto
38{
39
40class ShowfotoThumbnailBar;
41class Showfoto;
42
43class ShowfotoStackViewSideBar : public QWidget,
45{
46 Q_OBJECT
47
48public:
49
50 explicit ShowfotoStackViewSideBar(Showfoto* const parent);
52
53 void setThumbbar(ShowfotoThumbnailBar* const thumbbar);
54
55 void doLoadState() override;
56 void doSaveState() override;
57 const QIcon getIcon();
58 const QString getCaption();
59
60 void setSortOrder(int order);
61 int sortOrder() const;
62
63 void setSortRole(int role);
64 int sortRole() const;
65
66 void registerPluginActions(const QList<DPluginAction*>& actions);
67 QList<QAction*> pluginActions() const;
68
69 QList<QUrl> urls() const;
70 QUrl currentUrl() const;
71
72 int iconSize() const;
73
74private Q_SLOTS:
75
76 void slotPluginActionTriggered();
77
78Q_SIGNALS:
79
81 void signalLoadContentsFromFiles(const QStringList& files, const QString& current);
84 void signalRemoveItemInfos(const QList<ShowfotoItemInfo>& infos);
85
86private:
87
89
90private:
91
92 class Private;
93 Private* const d = nullptr;
94};
95
96} // namespace ShowFoto
Definition statesavingobject.h:66
Definition showfotoiteminfo.h:38
Definition showfotostackviewsidebar.h:45
int sortOrder() const
Definition showfotostackviewsidebar.cpp:141
void doSaveState() override
Definition showfotostackviewsidebar.cpp:232
void registerPluginActions(const QList< DPluginAction * > &actions)
Definition showfotostackviewsidebar.cpp:162
QList< QUrl > urls() const
Definition showfotostackviewsidebar.cpp:125
void signalLoadContentsFromFiles(const QStringList &files, const QString &current)
void setSortOrder(int order)
Definition showfotostackviewsidebar.cpp:135
~ShowfotoStackViewSideBar() override
Definition showfotostackviewsidebar.cpp:115
int iconSize() const
Definition showfotostackviewsidebar.cpp:157
QUrl currentUrl() const
Definition showfotostackviewsidebar.cpp:130
const QIcon getIcon()
Definition showfotostackviewsidebar.cpp:205
void setSortRole(int role)
Definition showfotostackviewsidebar.cpp:146
void setThumbbar(ShowfotoThumbnailBar *const thumbbar)
Definition showfotostackviewsidebar.cpp:120
void signalShowfotoItemInfoActivated(const ShowfotoItemInfo &info)
void signalRemoveItemInfos(const QList< ShowfotoItemInfo > &infos)
int sortRole() const
Definition showfotostackviewsidebar.cpp:152
void doLoadState() override
Definition showfotostackviewsidebar.cpp:215
const QString getCaption()
Definition showfotostackviewsidebar.cpp:210
QList< QAction * > pluginActions() const
Definition showfotostackviewsidebar.cpp:200
Definition showfotothumbnailbar.h:28
Definition showfoto.h:34
Definition datefolderview.cpp:34
Definition showfotofolderviewbar.cpp:43