digiKam
Loading...
Searching...
No Matches
showfotofolderviewbar.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-08-27
7 * Description : a tool bar for Showfoto folder 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 <QWidget>
20#include <QList>
21#include <QAction>
22
23// Local includes
24
25#include "dlayoutbox.h"
26#include "dpluginaction.h"
27
28using namespace Digikam;
29
30namespace ShowFoto
31{
32
33class ShowfotoFolderViewList;
34class ShowfotoFolderViewSideBar;
35
37{
38 Q_OBJECT
39
40public:
41
57
58public:
59
61 ~ShowfotoFolderViewBar() override;
62
63 void setIconSize(int size);
64 int iconSize() const;
65
66 void setFolderViewMode(int mode);
67 int folderViewMode() const;
68
69 void setFolderViewTypeMime(int mime);
70 int folderViewTypeMime() const;
71
72 void setBookmarksVisible(bool b);
73 bool bookmarksVisible() const;
74
75 void setCurrentPath(const QString& path);
76 QString currentPath() const;
77
78 QAction* toolBarAction(const QString& name) const;
79 QList<QAction*> pluginActions() const;
80
81 void registerPluginActions(const QList<DPluginAction*>& actions);
82
83public Q_SLOTS:
84
85 void slotPreviousEnabled(bool);
86 void slotNextEnabled(bool);
87
88Q_SIGNALS:
89
90 void signalTypeMimesChanged(const QString&);
96 void signalGoUp();
99 void signalCustomPathChanged(const QString&);
103
104private Q_SLOTS:
105
106 void slotCustomPathChanged();
107 void slotIconSizeChanged(int);
108 void slotOptionsChanged(QAction*);
109 void slotTypeMimesChanged(int index);
110
111private:
112
113 class Private;
114 Private* const d = nullptr;
115};
116
117} // namespace ShowFoto
Definition dlayoutbox.h:65
Definition showfotofolderviewbar.h:37
~ShowfotoFolderViewBar() override
Definition showfotofolderviewbar.cpp:307
void signalCustomPathChanged(const QString &)
void signalTypeMimesChanged(const QString &)
int iconSize() const
Definition showfotofolderviewbar.cpp:413
void setIconSize(int size)
Definition showfotofolderviewbar.cpp:408
void slotPreviousEnabled(bool)
Definition showfotofolderviewbar.cpp:430
FolderViewTypeMime
Definition showfotofolderviewbar.h:43
@ TYPE_MIME_RAW
Definition showfotofolderviewbar.h:53
@ TYPE_MIME_PNG
Definition showfotofolderviewbar.h:46
@ TYPE_MIME_PGF
Definition showfotofolderviewbar.h:47
@ TYPE_MIME_AVIF
Definition showfotofolderviewbar.h:49
@ TYPE_MIME_DNG
Definition showfotofolderviewbar.h:52
@ TYPE_MIME_TIFF
Definition showfotofolderviewbar.h:45
@ TYPE_MIME_JPEG
Definition showfotofolderviewbar.h:44
@ TYPE_MIME_NORAW
Definition showfotofolderviewbar.h:54
@ TYPE_MIME_HEIF
Definition showfotofolderviewbar.h:48
@ TYPE_MIME_JXL
Definition showfotofolderviewbar.h:50
@ TYPE_MIME_ALL
Definition showfotofolderviewbar.h:55
@ TYPE_MIME_WEBP
Definition showfotofolderviewbar.h:51
void setCurrentPath(const QString &path)
Definition showfotofolderviewbar.cpp:390
QAction * toolBarAction(const QString &name) const
Definition showfotofolderviewbar.cpp:317
int folderViewTypeMime() const
Definition showfotofolderviewbar.cpp:351
void registerPluginActions(const QList< DPluginAction * > &actions)
Definition showfotofolderviewbar.cpp:475
void setFolderViewMode(int mode)
Definition showfotofolderviewbar.cpp:356
QString currentPath() const
Definition showfotofolderviewbar.cpp:403
void signalPluginActionTriggered(QAction *)
int folderViewMode() const
Definition showfotofolderviewbar.cpp:368
void setFolderViewTypeMime(int mime)
Definition showfotofolderviewbar.cpp:345
void slotNextEnabled(bool)
Definition showfotofolderviewbar.cpp:435
void setBookmarksVisible(bool b)
Definition showfotofolderviewbar.cpp:378
QList< QAction * > pluginActions() const
Definition showfotofolderviewbar.cpp:330
bool bookmarksVisible() const
Definition showfotofolderviewbar.cpp:385
Definition showfotofolderviewsidebar.h:42
Definition datefolderview.cpp:34
Definition showfotofolderviewbar.cpp:43