digiKam
Loading...
Searching...
No Matches
tagcheckview.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 : 2005-05-05
7 * Description : tags filter view
8 *
9 * SPDX-FileCopyrightText: 2005 by Renchi Raju <renchi dot raju at gmail dot com>
10 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 * SPDX-FileCopyrightText: 2009-2010 by Andi Clemens <andi dot clemens at gmail dot com>
12 * SPDX-FileCopyrightText: 2009-2010 by Johannes Wienke <languitar at semipol dot de>
13 *
14 * SPDX-License-Identifier: GPL-2.0-or-later
15 *
16 * ============================================================ */
17
18#pragma once
19
20// Qt includes
21
22#include <QList>
23
24// Local includes
25
26#include "itemfiltersettings.h"
27#include "tagfolderview.h"
28#include "album.h"
29
30namespace Digikam
31{
32
34{
35 Q_OBJECT
36
37public:
38
46
47public:
48
49 explicit TagCheckView(QWidget* const parent, TagModel* const tagModel);
50
51 QList<TAlbum*> getCheckedTags() const;
52 QList<TAlbum*> getPartiallyCheckedTags() const;
53
56
63 bool checkNewTags() const;
64
65 ~TagCheckView() override;
66
67 void doLoadState() override;
68 void doSaveState() override;
69
70Q_SIGNALS:
71
77 void checkedTagsChanged(const QList<TAlbum*>& includedTags, const QList<TAlbum*>& excludedTags);
78
79public Q_SLOTS:
80
85
86protected:
87
88 void addCustomContextMenuActions(ContextMenuHelper& cmh, Album* album) override;
89
90private Q_SLOTS:
91
96 void slotCheckStateChange(Album* album, Qt::CheckState state);
97
98 void slotCreatedNewTagByContextMenu(TAlbum* tag);
99 void toggleAutoActionSelected(QAction* action);
100
101private:
102
103 class Private;
104 Private* const d = nullptr;
105};
106
107} // namespace Digikam
Abstract base class for all album types.
Definition album.h:57
A helper class to add actions and special menus to the context menu.
Definition contextmenuhelper.h:70
Definition album.h:421
Definition tagcheckview.h:34
ToggleAutoTags
Definition tagcheckview.h:40
@ Children
Definition tagcheckview.h:42
@ NoToggleAuto
Definition tagcheckview.h:41
@ Parents
Definition tagcheckview.h:43
@ ChildrenAndParents
Definition tagcheckview.h:44
void checkedTagsChanged(const QList< TAlbum * > &includedTags, const QList< TAlbum * > &excludedTags)
~TagCheckView() override
Definition tagcheckview.cpp:99
QList< TAlbum * > getPartiallyCheckedTags() const
Definition tagcheckview.cpp:193
void setToggleAutoTags(ToggleAutoTags toggle)
Definition tagcheckview.cpp:216
void slotResetCheckState()
Definition tagcheckview.cpp:104
QList< TAlbum * > getCheckedTags() const
Definition tagcheckview.cpp:175
void addCustomContextMenuActions(ContextMenuHelper &cmh, Album *album) override
Definition tagcheckview.cpp:257
bool checkNewTags() const
Definition tagcheckview.cpp:242
void setCheckNewTags(bool checkNewTags)
Definition tagcheckview.cpp:221
void doSaveState() override
Definition tagcheckview.cpp:166
void doLoadState() override
Definition tagcheckview.cpp:157
ToggleAutoTags getToggleAutoTags() const
Definition tagcheckview.cpp:211
Definition tagfolderview.h:34
Definition albummodel.h:57
Definition datefolderview.cpp:34