digiKam
tagviewsidebarwidget.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 : 2009-12-05
7  * Description : Side Bar Widget for the tag view.
8  *
9  * Copyright (C) 2009-2010 by Johannes Wienke <languitar at semipol dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
12  * Copyright (C) 2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option)
18  * any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  * GNU General Public License for more details.
24  *
25  * ============================================================ */
26 
27 #ifndef DIGIKAM_TAG_VIEW_SIDE_BAR_WIDGET_H
28 #define DIGIKAM_TAG_VIEW_SIDE_BAR_WIDGET_H
29 
30 // Local includes
31 
32 #include "digikam_config.h"
33 #include "albummodel.h"
34 #include "sidebarwidget.h"
35 
36 namespace Digikam
37 {
38 
39 template <class T>
40 class AlbumPointer;
41 
43 {
44 
45  Q_OBJECT
46 
47 public:
48 
49  explicit TagViewSideBarWidget(QWidget* const parent, TagModel* const model);
50  ~TagViewSideBarWidget() override;
51 
52  void setActive(bool active) override;
53  void doLoadState() override;
54  void doSaveState() override;
55  void applySettings() override;
56  void changeAlbumFromHistory(const QList<Album*>& album) override;
57  const QIcon getIcon() override;
58  const QString getCaption() override;
59 
61 
62 private:
63 
64  void setNoTagsAlbum();
65 
66 public Q_SLOTS:
67 
68  void setCurrentAlbum(TAlbum* album);
69  void slotOpenTagManager();
70  void slotToggleTagsSelection(int radioClicked);
71 
72 Q_SIGNALS:
73 
74  void signalFindDuplicates(const QList<TAlbum*>& albums);
75 
76 public:
77 
78  // Declared as public due to use by Private
79  class Private;
80 
81 private:
82 
83  Private* const d;
84 };
85 
86 } // namespace Digikam
87 
88 #endif // DIGIKAM_TAG_VIEW_SIDE_BAR_WIDGET_H
Definition: albumpointer.h:48
Definition: sidebarwidget.h:46
Definition: album.h:420
Definition: albummodel.h:63
Definition: tagviewsidebarwidget.h:43
void applySettings() override
Definition: tagviewsidebarwidget.cpp:199
void setActive(bool active) override
Definition: tagviewsidebarwidget.cpp:160
TagViewSideBarWidget(QWidget *const parent, TagModel *const model)
Definition: tagviewsidebarwidget.cpp:100
void slotOpenTagManager()
Definition: tagviewsidebarwidget.cpp:283
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition: tagviewsidebarwidget.cpp:205
void slotToggleTagsSelection(int radioClicked)
Definition: tagviewsidebarwidget.cpp:291
AlbumPointer< TAlbum > currentAlbum() const
Definition: tagviewsidebarwidget.cpp:224
void signalFindDuplicates(const QList< TAlbum * > &albums)
const QString getCaption() override
Definition: tagviewsidebarwidget.cpp:273
void doSaveState() override
Definition: tagviewsidebarwidget.cpp:188
void doLoadState() override
Definition: tagviewsidebarwidget.cpp:175
void setCurrentAlbum(TAlbum *album)
Definition: tagviewsidebarwidget.cpp:278
~TagViewSideBarWidget() override
Definition: tagviewsidebarwidget.cpp:155
const QIcon getIcon() override
Definition: tagviewsidebarwidget.cpp:268
Definition: datefolderview.cpp:43