1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : GPS search sidebar tab contents.
9
* Copyright (C) 2008-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
* Copyright (C) 2009 by Johannes Wienke <languitar at semipol dot de>
11
* Copyright (C) 2010-2011 by Michael G. Hansen <mike at mghansen dot de>
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)
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.
24
* ============================================================ */
26
#ifndef GPSSEARCHVIEW_H
27
#define GPSSEARCHVIEW_H
33
// libkgeomap includes
35
#include <libkgeomap/modelhelper.h>
36
#include <libkgeomap/kgeomap_widget.h>
40
#include "statesavingobject.h"
41
#include "imagefiltermodel.h"
49
class SearchModificationHelper;
51
class GPSSearchView : public QWidget, public StateSavingObject
57
GPSSearchView(QWidget* parent, SearchModel* searchModel,
58
SearchModificationHelper* searchModificationHelper,
59
ImageFilterModel* imageFilterModel, QItemSelectionModel* itemSelectionModel);
62
void setActive(bool state);
64
void changeAlbumFromHistory(SAlbum* album);
66
virtual void setConfigGroup(const KConfigGroup& group);
72
void slotRefreshMap();
73
void slotClearImages();
77
bool checkName(QString& name);
78
bool checkAlbum(const QString& name) const;
80
void createNewGPSSearchAlbum(const QString& name);
84
void slotAlbumSelected(Album*);
86
void slotSaveGPSSAlbum();
87
void slotCheckNameEditGPSConditions();
89
void slotRegionSelectionChanged();
90
void slotRemoveCurrentFilter();
91
void slotMapSoloItems(const QList<qlonglong>& idList);
95
void signalMapSoloItems(const QList<qlonglong>& idList, const QString& id);
99
class GPSSearchViewPriv;
100
GPSSearchViewPriv* const d;
103
} // namespace Digikam
105
#endif /* GPSSEARCHVIEW_H */