digiKam
labelssidebarwidget.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 : Labels sidebar widgets
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_LABELS_SIDE_BAR_WIDGET_H
28 #define DIGIKAM_LABELS_SIDE_BAR_WIDGET_H
29 
30 // Local includes
31 
32 #include "album.h"
33 #include "sidebarwidget.h"
34 #include "labelstreeview.h"
35 
36 namespace Digikam
37 {
38 
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit LabelsSideBarWidget(QWidget* const parent);
46  ~LabelsSideBarWidget() override;
47 
49 
50  void setActive(bool active) override;
51  void applySettings() override;
52  void changeAlbumFromHistory(const QList<Album*>& album) override;
53  void doLoadState() override;
54  void doSaveState() override;
55  const QIcon getIcon() override;
56  const QString getCaption() override;
57 
58  QHash<LabelsTreeView::Labels, QList<int> > selectedLabels();
59 
60 private:
61 
62  class Private;
63  Private* const d;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_LABELS_SIDE_BAR_WIDGET_H
Definition: labelssidebarwidget.h:40
LabelsSideBarWidget(QWidget *const parent)
Definition: labelssidebarwidget.cpp:65
const QString getCaption() override
Definition: labelssidebarwidget.cpp:126
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition: labelssidebarwidget.cpp:106
~LabelsSideBarWidget() override
Definition: labelssidebarwidget.cpp:84
void doSaveState() override
Definition: labelssidebarwidget.cpp:116
void setActive(bool active) override
Definition: labelssidebarwidget.cpp:94
LabelsTreeView * labelsTree()
Definition: labelssidebarwidget.cpp:89
void applySettings() override
Definition: labelssidebarwidget.cpp:102
QHash< LabelsTreeView::Labels, QList< int > > selectedLabels()
Definition: labelssidebarwidget.cpp:131
void doLoadState() override
Definition: labelssidebarwidget.cpp:111
const QIcon getIcon() override
Definition: labelssidebarwidget.cpp:121
Definition: labelstreeview.h:43
Definition: sidebarwidget.h:46
Definition: datefolderview.cpp:43