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

« back to all changes in this revision

Viewing changes to extra/libkgeomap/libkgeomap/html_widget.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
 * @file
 
3
 *
 
4
 * This file is a part of digiKam project
 
5
 * <a href="http://www.digikam.org">http://www.digikam.org</a>
 
6
 *
 
7
 * @date   2009-12-01
 
8
 * @brief  Widget for displaying HTML in the backends
 
9
 *
 
10
 * @author Copyright (C) 2009-2010 by Michael G. Hansen
 
11
 *         <a href="mailto:mike at mghansen dot de">mike at mghansen dot de</a>
 
12
 * @author Copyright (C) 2010 by Gilles Caulier
 
13
 *         <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a>
 
14
 *
 
15
 * This program is free software; you can redistribute it
 
16
 * and/or modify it under the terms of the GNU General
 
17
 * Public License as published by the Free Software Foundation;
 
18
 * either version 2, or (at your option) 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 HTML_WIDGET_H
 
28
#define HTML_WIDGET_H
 
29
 
 
30
// KDE includes
 
31
 
 
32
#include <khtml_part.h>
 
33
 
 
34
// local includes
 
35
 
 
36
#include "kgeomap_primitives.h"
 
37
#include "libkgeomap_export.h"
 
38
 
 
39
namespace KGeoMap
 
40
{
 
41
 
 
42
class KGeoMapSharedData;
 
43
 
 
44
class KGEOMAP_EXPORT HTMLWidget : public KHTMLPart
 
45
{
 
46
    Q_OBJECT
 
47
 
 
48
public:
 
49
 
 
50
    HTMLWidget(QWidget* const parent = 0);
 
51
    ~HTMLWidget();
 
52
 
 
53
    void loadInitialHTML(const QString& initialHTML);
 
54
    QVariant runScript(const QString& scriptCode);
 
55
    bool runScript2Coordinates(const QString& scriptCode, GeoCoordinates* const coordinates);
 
56
    void mouseModeChanged(const MouseModes mouseMode);
 
57
    void setSelectionRectangle(const GeoCoordinates::Pair& searchCoordinates);
 
58
    void removeSelectionRectangle();
 
59
    void centerOn(const qreal west, const qreal north, const qreal east, const qreal south, const bool useSaneZoomLevel = true);
 
60
    void setSharedKGeoMapObject(KGeoMapSharedData* const sharedData);
 
61
 
 
62
protected:
 
63
 
 
64
    bool eventFilter(QObject* object, QEvent* event);
 
65
    void khtmlMousePressEvent(khtml::MousePressEvent* e);
 
66
    void khtmlMouseReleaseEvent(khtml::MouseReleaseEvent* e);
 
67
    void khtmlMouseMoveEvent(khtml::MouseMoveEvent *e);
 
68
 
 
69
protected Q_SLOTS:
 
70
 
 
71
    void slotHTMLCompleted();
 
72
    void slotScanForJSMessages();
 
73
 
 
74
Q_SIGNALS:
 
75
 
 
76
    void signalHTMLEvents(const QStringList& events);
 
77
    void signalJavaScriptReady();
 
78
    void selectionHasBeenMade(const KGeoMap::GeoCoordinates::Pair& coordinatesRect);
 
79
 
 
80
private:
 
81
 
 
82
    class HTMLWidgetPrivate;
 
83
    HTMLWidgetPrivate* const d;
 
84
    KGeoMapSharedData* s;
 
85
};
 
86
 
 
87
} /* namespace KGeoMap */
 
88
 
 
89
#endif /* HTML_WIDGET_H */