Debian Codegraph @

core/utilities/geolocation/mapsearches/gpssearchview.h

raw symbols SCIP
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2008-05-30
7 * Description : GPS search sidebar tab contents.
8 *
9 * SPDX-FileCopyrightText: 2008-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2009 by Johannes Wienke <languitar at semipol dot de>
11 * SPDX-FileCopyrightText: 2010-2011 by Michael G. Hansen <mike at mghansen dot de>
12 * SPDX-FileCopyrightText: 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
13 *
14 * SPDX-License-Identifier: GPL-2.0-or-later
15 *
16 * ============================================================ */
17
18 #pragma once
19
20 // Qt includes
21
22 #include <QWidget>
23
24 // Local includes
25
26 #include "geomodelhelper.h"
27 #include "mapwidget.h"
28 #include "statesavingobject.h"
29 #include "itemfiltermodel.h"
30
31 namespace Digikam
32 {
33
34 class Album;
35 class SAlbum;
36 class SearchModel;
37 class SearchModificationHelper;
38
39 class GPSSearchView : public QWidget,
40 public StateSavingObject
41 {
42 Q_OBJECT
43
44 public:
45
46 explicit GPSSearchView(QWidget* const parent,
47 SearchModel* const searchModel,
48 SearchModificationHelper* const searchModificationHelper,
49 ItemFilterModel* const imageFilterModel,
50 QItemSelectionModel* const itemSelectionModel);
51 ~GPSSearchView() override;
52
53 void setActive(bool state);
54
55 void changeAlbumFromHistory(SAlbum* const album);
56
57 void doLoadState() override;
58 void doSaveState() override;
59
60 void setConfigGroup(const KConfigGroup& group) override;
61
62 public Q_SLOTS:
63
64 void slotRefreshMap();
65 void slotClearImages();
66
67 private:
68
69 bool checkName(QString& name);
70 bool checkAlbum(const QString& name) const;
71
72 void createNewGPSSearchAlbum(const QString& name);
73
74 private Q_SLOTS:
75
76 void slotAlbumSelected(Album*);
77
78 void slotSaveGPSSAlbum();
79 void slotCheckNameEditGPSConditions();
80
81 void slotRegionSelectionChanged();
82 void slotRemoveCurrentFilter();
83 void slotMapSoloItems(const QList<qlonglong>& idList);
84
85 void showNonGeolocatedItems();
86
87 Q_SIGNALS:
88
89 void signalMapSoloItems(const QList<qlonglong>& idList, const QString& id);
90
91 private:
92
93 class Private;
94 Private* const d = nullptr;
95 };
96
97 } // namespace Digikam