~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to core/utilities/gpssearch/gpssearchview.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Rohan Garg, Philip Muškovac, Felix Geyer
  • Date: 2011-09-23 18:18:55 UTC
  • mfrom: (1.2.36 upstream)
  • Revision ID: package-import@ubuntu.com-20110923181855-ifs67wxkugshev9k
Tags: 2:2.1.1-0ubuntu1
[ Rohan Garg ]
* New upstream release (LP: #834190)
  - debian/control
    + Build with libqtwebkit-dev
 - debian/kipi-plugins-common
    + Install libkvkontakte required by kipi-plugins
 - debian/digikam
    + Install panoramagui

[ Philip Muškovac ]
* New upstream release
  - debian/control:
    + Add libcv-dev, libcvaux-dev, libhighgui-dev, libboost-graph1.46-dev,
      libksane-dev, libxml2-dev, libxslt-dev, libqt4-opengl-dev, libqjson-dev,
      libgpod-dev and libqca2-dev to build-deps
    + Add packages for kipi-plugins, libmediawiki, libkface, libkgeomap and
      libkvkontakte
  - debian/rules:
    + Don't build with gphoto2 since it doesn't build with it.
  - Add kubuntu_fix_test_linking.diff to fix linking of the dngconverter test
  - update install files
  - update kubuntu_01_mysqld_executable_name.diff for new cmake layout
    and rename to kubuntu_mysqld_executable_name.diff
* Fix typo in digikam-data description (LP: #804894)
* Fix Vcs links

[ Felix Geyer ]
* Move library data files to the new packages libkface-data, libkgeomap-data
  and libkvkontakte-data.
* Override version of the embedded library packages to 1.0~digikam<version>.
* Exclude the library packages from digikam-dbg to prevent file conflicts in
  the future.
* Call dh_install with --list-missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2008-05-30
 
7
 * Description : GPS search sidebar tab contents.
 
8
 *
 
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>
 
12
 *
 
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)
 
17
 * any later version.
 
18
 *
 
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.
 
23
 *
 
24
 * ============================================================ */
 
25
 
 
26
#ifndef GPSSEARCHVIEW_H
 
27
#define GPSSEARCHVIEW_H
 
28
 
 
29
// Qt includes
 
30
 
 
31
#include <QWidget>
 
32
 
 
33
// libkgeomap includes
 
34
 
 
35
#include <libkgeomap/modelhelper.h>
 
36
#include <libkgeomap/kgeomap_widget.h>
 
37
 
 
38
// local includes
 
39
 
 
40
#include "statesavingobject.h"
 
41
#include "imagefiltermodel.h"
 
42
 
 
43
namespace Digikam
 
44
{
 
45
 
 
46
class Album;
 
47
class SAlbum;
 
48
class SearchModel;
 
49
class SearchModificationHelper;
 
50
 
 
51
class GPSSearchView : public QWidget, public StateSavingObject
 
52
{
 
53
    Q_OBJECT
 
54
 
 
55
public:
 
56
 
 
57
    GPSSearchView(QWidget* parent, SearchModel* searchModel,
 
58
                  SearchModificationHelper* searchModificationHelper,
 
59
                  ImageFilterModel* imageFilterModel, QItemSelectionModel* itemSelectionModel);
 
60
    ~GPSSearchView();
 
61
 
 
62
    void setActive(bool state);
 
63
 
 
64
    void changeAlbumFromHistory(SAlbum* album);
 
65
 
 
66
    virtual void setConfigGroup(const KConfigGroup& group);
 
67
    void doLoadState();
 
68
    void doSaveState();
 
69
 
 
70
public Q_SLOTS:
 
71
 
 
72
    void slotRefreshMap();
 
73
    void slotClearImages();
 
74
 
 
75
private:
 
76
 
 
77
    bool checkName(QString& name);
 
78
    bool checkAlbum(const QString& name) const;
 
79
 
 
80
    void createNewGPSSearchAlbum(const QString& name);
 
81
 
 
82
private Q_SLOTS:
 
83
 
 
84
    void slotAlbumSelected(Album*);
 
85
 
 
86
    void slotSaveGPSSAlbum();
 
87
    void slotCheckNameEditGPSConditions();
 
88
 
 
89
    void slotRegionSelectionChanged();
 
90
    void slotRemoveCurrentFilter();
 
91
    void slotMapSoloItems(const QList<qlonglong>& idList);
 
92
 
 
93
Q_SIGNALS:
 
94
 
 
95
    void signalMapSoloItems(const QList<qlonglong>& idList, const QString& id);
 
96
 
 
97
private:
 
98
 
 
99
    class GPSSearchViewPriv;
 
100
    GPSSearchViewPriv* const d;
 
101
};
 
102
 
 
103
}  // namespace Digikam
 
104
 
 
105
#endif /* GPSSEARCHVIEW_H */