summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/gpssync/gpsmapwidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-19 18:22:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-19 18:22:05 +0000
commit57e10fedbcb8c3e8c6590ff0935dbf017ce5587f (patch)
tree3000a7649ca4e40e43f9e7feed963236a0b0f56b /kipi-plugins/gpssync/gpsmapwidget.h
downloadkipi-plugins-57e10fedbcb8c3e8c6590ff0935dbf017ce5587f.tar.gz
kipi-plugins-57e10fedbcb8c3e8c6590ff0935dbf017ce5587f.zip
Import abandoned KDE3 version of kipi plugins
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/kipi-plugins@1077221 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kipi-plugins/gpssync/gpsmapwidget.h')
-rw-r--r--kipi-plugins/gpssync/gpsmapwidget.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/kipi-plugins/gpssync/gpsmapwidget.h b/kipi-plugins/gpssync/gpsmapwidget.h
new file mode 100644
index 0000000..3ca2e52
--- /dev/null
+++ b/kipi-plugins/gpssync/gpsmapwidget.h
@@ -0,0 +1,82 @@
+/* ============================================================
+ *
+ * This file is a part of kipi-plugins project
+ * http://www.kipi-plugins.org
+ *
+ * Date : 2006-09-28
+ * Description : a widget to display a GPS web map locator.
+ *
+ * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
+ * Copyright 2008 by Gerhard Kulzer <gerhard at kulzer dot net>
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * ============================================================ */
+
+#ifndef GPSMAPWIDGET_H
+#define GPSMAPWIDGET_H
+
+// Qt includes.
+
+#include <qstring.h>
+
+// KDE includes.
+
+#include <khtml_part.h>
+
+namespace KIPIGPSSyncPlugin
+{
+
+class GPSMapWidgetPrivate;
+
+class GPSMapWidget : public KHTMLPart
+{
+ Q_OBJECT
+
+public:
+
+ GPSMapWidget(QWidget* parent);
+ ~GPSMapWidget();
+
+ void setGPSPosition(const QString& lat, const QString& lon);
+
+ void setZoomLevel(int zoomLevel);
+ int zoomLevel();
+
+ void setMapType(const QString& mapType);
+ QString mapType();
+
+ void setFileName(const QString& fileName);
+ QString fileName();
+
+ void resized();
+
+signals:
+
+ void signalNewGPSLocationFromMap(const QString&, const QString&, const QString&);
+
+protected:
+
+ void khtmlMouseMoveEvent(khtml::MouseMoveEvent*);
+ void khtmlMouseReleaseEvent(khtml::MouseReleaseEvent *);
+
+private:
+
+ void extractGPSPositionfromStatusbar(const QString& txt);
+
+private:
+
+ GPSMapWidgetPrivate *d;
+};
+
+} // namespace KIPIGPSSyncPlugin
+
+#endif /* GPSMAPWIDGET_H */