digiKam
tagfilterview.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 : 2000-12-05
7  * Description : filter view for the right sidebar
8  *
9  * Copyright (C) 2009-2010 by Johannes Wienke <languitar at semipol dot de>
10  * Copyright (C) 2010-2011 by Andi Clemens <andi dot clemens at gmail dot com>
11  * Copyright (C) 2011-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_TAG_FILTER_VIEW_H
27 #define DIGIKAM_TAG_FILTER_VIEW_H
28 
29 // Qt includes
30 
31 #include <QWidget>
32 
33 // Local includes
34 
35 #include "tagcheckview.h"
36 
37 namespace Digikam
38 {
39 
40 class TagModel;
41 
48 {
49  Q_OBJECT
50 
51 public:
52 
59  explicit TagFilterView(QWidget* const parent, TagModel* const tagFilterModel);
60 
64  ~TagFilterView() override;
65 
66 private Q_SLOTS:
67 
68  void slotDeleteTagByContextMenu(TAlbum* tag);
69 
70 protected:
71 
72  void addCustomContextMenuActions(ContextMenuHelper& cmh, Album* album) override;
73  void handleCustomContextMenuAction(QAction* action, const AlbumPointer<Album>& album) override;
74 
75 private:
76 
77  class Private;
78  Private* const d;
79 };
80 
81 } // nameSpace Digikam
82 
83 #endif // DIGIKAM_TAG_FILTER_VIEW_H
Definition: albumpointer.h:48
Abstract base class for all album types.
Definition: album.h:67
A helper class to add actions and special menus to the context menu.
Definition: contextmenuhelper.h:80
Definition: album.h:420
Definition: tagcheckview.h:44
Definition: tagfilterview.h:48
void addCustomContextMenuActions(ContextMenuHelper &cmh, Album *album) override
Definition: tagfilterview.cpp:100
~TagFilterView() override
Definition: tagfilterview.cpp:95
TagFilterView(QWidget *const parent, TagModel *const tagFilterModel)
Definition: tagfilterview.cpp:75
void handleCustomContextMenuAction(QAction *action, const AlbumPointer< Album > &album) override
Definition: tagfilterview.cpp:131
Definition: albummodel.h:63
Definition: datefolderview.cpp:43