File indexing completed on 2025-01-19 03:50:44
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-12-05 0007 * Description : Side Bar Widget for People 0008 * 0009 * SPDX-FileCopyrightText: 2009-2010 by Johannes Wienke <languitar at semipol dot de> 0010 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * SPDX-FileCopyrightText: 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com> 0012 * SPDX-FileCopyrightText: 2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com> 0013 * 0014 * SPDX-License-Identifier: GPL-2.0-or-later 0015 * 0016 * ============================================================ */ 0017 0018 #ifndef DIGIKAM_PEOPLE_SIDE_BAR_WIDGET_H 0019 #define DIGIKAM_PEOPLE_SIDE_BAR_WIDGET_H 0020 0021 // Local includes 0022 0023 #include "albummodel.h" 0024 #include "searchmodificationhelper.h" 0025 #include "sidebarwidget.h" 0026 0027 namespace Digikam 0028 { 0029 0030 class PeopleSideBarWidget : public SidebarWidget 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit PeopleSideBarWidget(QWidget* const parent, 0037 TagModel* const tagModel, 0038 SearchModificationHelper* const searchModificationHelper); 0039 ~PeopleSideBarWidget() override; 0040 0041 void setActive(bool active) override; 0042 void doLoadState() override; 0043 void doSaveState() override; 0044 void applySettings() override; 0045 void changeAlbumFromHistory(const QList<Album*>& album) override; 0046 const QIcon getIcon() override; 0047 const QString getCaption() override; 0048 0049 private Q_SLOTS: 0050 0051 void slotInit(); 0052 void slotScanForFaces(); 0053 void slotScanComplete(); 0054 0055 Q_SIGNALS: 0056 0057 void requestFaceMode(bool on); 0058 void signalFindDuplicates(const QList<TAlbum*>& albums); 0059 0060 private: 0061 0062 class Private; 0063 Private* const d; 0064 }; 0065 0066 } // namespace Digikam 0067 0068 #endif // DIGIKAM_PEOPLE_SIDE_BAR_WIDGET_H