digiKam
showfotofolderviewbookmarks.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 places
8  *
9  * Copyright (C) 2021-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef SHOWFOTO_FOLDER_VIEW_BOOKMARKS_H
25 #define SHOWFOTO_FOLDER_VIEW_BOOKMARKS_H
26 
27 // Qt includes
28 
29 #include <QList>
30 #include <QAction>
31 #include <QWidget>
32 #include <QString>
33 #include <QTreeWidgetItem>
34 
35 class KConfigGroup;
36 
37 namespace ShowFoto
38 {
39 
40 class ShowfotoFolderViewSideBar;
41 
42 class ShowfotoFolderViewBookmarks : public QWidget
43 {
44  Q_OBJECT
45 
46 public:
47 
50 
51  void saveSettings(KConfigGroup&);
52  void readSettings(const KConfigGroup&);
53 
54  QTreeWidgetItem* topBookmarksItem() const;
55 
56  QAction* toolBarAction(const QString& name) const;
58 
59 Q_SIGNALS:
60 
62 
63 private Q_SLOTS:
64 
65  void slotLoadContents(const QString& path);
66  void slotBookmarkDoubleClicked(QTreeWidgetItem*);
67  void slotBookmarkSelectionChanged();
68  void slotAddBookmark(const QString&);
69  void slotAddBookmark();
70  void slotDelBookmark();
71  void slotEdtBookmark();
72 
73 private:
74 
75  class Private;
76  Private* const d;
77 };
78 
79 } // namespace ShowFoto
80 
81 #endif // SHOWFOTO_FOLDER_VIEW_BOOKMARKS_H
Definition: showfotofolderviewbookmarks.h:43
QAction * toolBarAction(const QString &name) const
Definition: showfotofolderviewbookmarks.cpp:199
~ShowfotoFolderViewBookmarks() override
Definition: showfotofolderviewbookmarks.cpp:194
QTreeWidgetItem * topBookmarksItem() const
Definition: showfotofolderviewbookmarks.cpp:212
void readSettings(const KConfigGroup &)
Definition: showfotofolderviewbookmarks.cpp:358
void saveSettings(KConfigGroup &)
Definition: showfotofolderviewbookmarks.cpp:332
ShowfotoFolderViewBookmarks(ShowfotoFolderViewSideBar *const sidebar)
Definition: showfotofolderviewbookmarks.cpp:97
QList< QAction * > pluginActions() const
Definition: showfotofolderviewbookmarks.cpp:436
Definition: showfotofolderviewsidebar.h:52
Definition: showfotofolderviewbar.cpp:52