digiKam
gpssearchsidebarwidget.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 : 2009-12-05
7  * Description : Side Bar Widget for the gps search.
8  *
9  * Copyright (C) 2009-2010 by Johannes Wienke <languitar at semipol dot de>
10  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  * Copyright (C) 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
12  * Copyright (C) 2010 by Aditya Bhatt <adityabhatt1991 at gmail dot com>
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_GPS_SEARCH_SIDE_BAR_WIDGET_H
28 #define DIGIKAM_GPS_SEARCH_SIDE_BAR_WIDGET_H
29 
30 // Local includes
31 
32 #include "digikam_config.h"
33 #include "albummodel.h"
35 #include "sidebarwidget.h"
36 #include "itemfiltermodel.h"
37 #include "gpssearchview.h"
38 
39 namespace Digikam
40 {
41 
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit GPSSearchSideBarWidget(QWidget* const parent,
49  SearchModel* const searchModel,
50  SearchModificationHelper* const searchModificationHelper,
51  ItemFilterModel* const imageFilterModel,
52  QItemSelectionModel* const itemSelectionModel);
53  ~GPSSearchSideBarWidget() override;
54 
55  void setActive(bool active) override;
56  void doLoadState() override;
57  void doSaveState() override;
58  void applySettings() override;
59  void changeAlbumFromHistory(const QList<Album*>& album) override;
60  const QIcon getIcon() override;
61  const QString getCaption() override;
62 
63 Q_SIGNALS:
64 
65  void signalMapSoloItems(const QList<qlonglong>&, const QString&);
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 };
72 
73 } // namespace Digikam
74 
75 #endif // DIGIKAM_GPS_SEARCH_SIDE_BAR_WIDGET_H
Definition: gpssearchsidebarwidget.h:43
GPSSearchSideBarWidget(QWidget *const parent, SearchModel *const searchModel, SearchModificationHelper *const searchModificationHelper, ItemFilterModel *const imageFilterModel, QItemSelectionModel *const itemSelectionModel)
Definition: gpssearchsidebarwidget.cpp:68
void signalMapSoloItems(const QList< qlonglong > &, const QString &)
void changeAlbumFromHistory(const QList< Album * > &album) override
Definition: gpssearchsidebarwidget.cpp:121
void doSaveState() override
Definition: gpssearchsidebarwidget.cpp:112
void doLoadState() override
Definition: gpssearchsidebarwidget.cpp:107
~GPSSearchSideBarWidget() override
Definition: gpssearchsidebarwidget.cpp:97
void setActive(bool active) override
Definition: gpssearchsidebarwidget.cpp:102
void applySettings() override
Definition: gpssearchsidebarwidget.cpp:117
const QIcon getIcon() override
Definition: gpssearchsidebarwidget.cpp:126
const QString getCaption() override
Definition: gpssearchsidebarwidget.cpp:131
Definition: itemfiltermodel.h:125
Definition: albummodel.h:95
Definition: searchmodificationhelper.h:59
Definition: sidebarwidget.h:46
Definition: datefolderview.cpp:43