digiKam
taglist.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 : 20013-07-31
7  * Description : Tag List implementation as Quick Access for various
8  * subtrees in Tag Manager
9  *
10  * Copyright (C) 2013 by Veaceslav Munteanu <veaceslav dot munteanu90 at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_TAG_LIST_H
26 #define DIGIKAM_TAG_LIST_H
27 
28 // Qt includes
29 
30 #include <QWidget>
31 
32 namespace Digikam
33 {
34 
35 class TagMngrTreeView;
36 class Album;
37 
38 class TagList : public QWidget
39 {
40  Q_OBJECT
41 
42 public:
43 
44  explicit TagList(TagMngrTreeView* const treeView, QWidget* const parent);
45  ~TagList() override;
46 
50  void saveSettings();
51 
56  void restoreSettings();
57 
62  void enableAddButton(bool value);
63 
64 private Q_SLOTS:
65 
66  void slotAddPressed();
67 
68  void slotSelectionChanged();
69 
70  void slotTagDeleted(Album* album);
71 
72  void slotDeleteSelected();
73 
74 private:
75 
76  class Private;
77  Private* const d;
78 };
79 
80 } // namespace Digikam
81 
82 #endif // DIGIKAM_TAG_LIST_H
Abstract base class for all album types.
Definition: album.h:67
Definition: taglist.h:39
void saveSettings()
saveSettings - save settings to digiKam_tagsmanagerrc KConfig
Definition: taglist.cpp:110
~TagList() override
Definition: taglist.cpp:105
void enableAddButton(bool value)
enableAddButton - disable Add Button when selection is empty or only root tag is selected
Definition: taglist.cpp:277
void restoreSettings()
restoreSettings - read settings from digikam_tagsmanagerrc config and populate model with data
Definition: taglist.cpp:129
TagList(TagMngrTreeView *const treeView, QWidget *const parent)
Definition: taglist.cpp:70
Definition: tagmngrtreeview.h:44
qulonglong value
Definition: itemviewutilities.cpp:592
@ Album
Definition: coredbfields.h:58
Definition: datefolderview.cpp:43