digiKam
albumselectiontreeview.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-06
7  * Description : Albums folder view.
8  *
9  * Copyright (C) 2005-2006 by Joern Ahrens <joern dot ahrens at kdemail dot net>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2009-2011 by Andi Clemens <andi dot clemens at gmail dot com>
12  * Copyright (C) 2009-2011 by Johannes Wienke <languitar at semipol dot de>
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_ALBUM_SELECTION_TREE_VIEW_H
28 #define DIGIKAM_ALBUM_SELECTION_TREE_VIEW_H
29 
30 // Qt includes
31 
32 #include <QTreeView>
33 
34 // Local includes
35 
36 #include "albummodel.h"
37 #include "albumtreeview.h"
39 
40 namespace Digikam
41 {
42 
50 {
51  Q_OBJECT
52 
53 public:
54 
55  AlbumSelectionTreeView(QWidget* const parent,
56  AlbumModel* const model,
57  AlbumModificationHelper* const albumModificationHelper);
58  ~AlbumSelectionTreeView() override;
59 
63  void setEnableToolTips(bool enable);
64 
65 Q_SIGNALS:
66 
72  void signalFindDuplicates(const QList<PAlbum*>& albums);
73 
74 private Q_SLOTS:
75 
76  void slotFindDuplicates();
77  void slotScanForFaces();
78  void slotRepairHiddenItems();
79  void slotRebuildThumbs();
80 
81 private:
82 
88  bool viewportEvent(QEvent* event) override;
89 
90 private:
91 
92  class Private;
93  Private* const d;
94 };
95 
96 } // namespace Digikam
97 
98 #endif // DIGIKAM_ALBUM_SELECTION_TREE_VIEW_H
Definition: albummodel.h:40
Definition: albummodificationhelper.h:46
Definition: albumselectiontreeview.h:50
void signalFindDuplicates(const QList< PAlbum * > &albums)
AlbumSelectionTreeView(QWidget *const parent, AlbumModel *const model, AlbumModificationHelper *const albumModificationHelper)
Definition: albumselectiontreeview.cpp:234
void setEnableToolTips(bool enable)
Definition: albumselectiontreeview.cpp:307
~AlbumSelectionTreeView() override
Definition: albumselectiontreeview.cpp:301
Definition: albumtreeview.h:37
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43