digiKam
Loading...
Searching...
No Matches
showfotofolderviewbookmarkdlg.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 : Showfoto folder view bookmark edit dialog
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 <QString>
20#include <QDialog>
21
22// Local includes
23
24#include "digikam_config.h"
25
26namespace ShowFoto
27{
28
29class ShowfotoFolderViewBookmarkList;
30
31class ShowfotoFolderViewBookmarkDlg : public QDialog
32{
33 Q_OBJECT
34
35public:
36
38 bool create = false);
40
41 void setTitle(const QString& title);
42 QString title() const;
43
44 void setIcon(const QString& icon);
45 QString icon() const;
46
47 void setPath(const QString& path);
48 QString path() const;
49
50public:
51
52 static bool bookmarkDialog(ShowfotoFolderViewBookmarkList* const parent,
53 QString& title,
54 QString& icon,
55 QString& path,
56 bool create = false);
57
58private Q_SLOTS:
59
60 void slotIconChanged();
61 void slotIconResetClicked();
62 void slotAccept();
63 void slotModified();
64 void slotHelp();
65
66private:
67
68 bool canAccept() const;
69
70private:
71
72 class Private;
73 Private* const d = nullptr;
74};
75
76} // namespace ShowFoto
Definition showfotofolderviewbookmarkdlg.h:32
void setPath(const QString &path)
Definition showfotofolderviewbookmarkdlg.cpp:258
void setTitle(const QString &title)
Definition showfotofolderviewbookmarkdlg.cpp:248
QString title() const
Definition showfotofolderviewbookmarkdlg.cpp:233
~ShowfotoFolderViewBookmarkDlg() override
Definition showfotofolderviewbookmarkdlg.cpp:199
QString path() const
Definition showfotofolderviewbookmarkdlg.cpp:243
QString icon() const
Definition showfotofolderviewbookmarkdlg.cpp:238
void setIcon(const QString &icon)
Definition showfotofolderviewbookmarkdlg.cpp:253
static bool bookmarkDialog(ShowfotoFolderViewBookmarkList *const parent, QString &title, QString &icon, QString &path, bool create=false)
Definition showfotofolderviewbookmarkdlg.cpp:291
Definition showfotofolderviewbookmarklist.h:35
Definition showfotofolderviewbar.cpp:43