Skip to content

Commit bc67101

Browse files
author
wonder
committedApr 5, 2006
Removed tool QgsMapToolEmitPoint - it's not used anymore.
(this map tool was only temporary) git-svn-id: http://svn.osgeo.org/qgis/trunk@5170 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0fe2e11 commit bc67101

File tree

11 files changed

+13
-106
lines changed

11 files changed

+13
-106
lines changed
 

‎src/gui/Makefile.am

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ libqgis_guiHEADERS = \
106106
qgsmapserverexport.h \
107107
qgsmaptool.h \
108108
qgsmaptoolcapture.h \
109-
qgsmaptoolemitpoint.h \
110109
qgsmaptoolidentify.h \
111110
qgsmaptoolpan.h \
112111
qgsmaptoolselect.h \
@@ -236,7 +235,6 @@ libqgis_gui_la_SOURCES = \
236235
qgsmapserverexport.cpp \
237236
qgsmaptool.cpp \
238237
qgsmaptoolcapture.cpp \
239-
qgsmaptoolemitpoint.cpp \
240238
qgsmaptoolidentify.cpp \
241239
qgsmaptoolpan.cpp \
242240
qgsmaptoolselect.cpp \

‎src/gui/qgisapp.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@
126126
// Map tools
127127
//
128128
#include "qgsmaptoolcapture.h"
129-
#include "qgsmaptoolemitpoint.h"
130129
#include "qgsmaptoolidentify.h"
131130
#include "qgsmaptoolselect.h"
132131
#include "qgsmaptoolpan.h"
@@ -984,7 +983,6 @@ void QgisApp::setupConnections()
984983
//signal when mouse moved over window (coords display in status bar)
985984
connect(mMapCanvas, SIGNAL(xyCoordinates(QgsPoint &)), this, SLOT(showMouseCoordinate(QgsPoint &)));
986985
//signal when mouse in capturePoint mode and mouse clicked on canvas
987-
connect(mMapCanvas, SIGNAL(xyClickCoordinates(QgsPoint &)), this, SLOT(showCapturePointCoordinate(QgsPoint &)));
988986
connect(mMapCanvas->mapRender(), SIGNAL(setProgress(int,int)), this, SLOT(showProgress(int,int)));
989987
connect(mMapCanvas, SIGNAL(extentsChanged(QgsRect )),this,SLOT(showExtents(QgsRect )));
990988
connect(mMapCanvas, SIGNAL(scaleChanged(QString)), this, SLOT(showScale(QString)));
@@ -3349,6 +3347,9 @@ void QgisApp::capturePoint()
33493347
QgsMapTool* t = new QgsMapToolCapture(mMapCanvas, QgsMapToolCapture::CapturePoint);
33503348
t->setAction(mActionCapturePoint);
33513349
mMapCanvas->setMapTool(t);
3350+
3351+
// FIXME: is this still actual or something old that's not used anymore?
3352+
//connect(t, SIGNAL(xyClickCoordinates(QgsPoint &)), this, SLOT(showCapturePointCoordinate(QgsPoint &)));
33523353
}
33533354

33543355
void QgisApp::captureLine()

‎src/gui/qgsmapcanvas.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,13 +1054,6 @@ void QgsMapCanvas::moveCanvasContents(bool reset)
10541054
}
10551055

10561056

1057-
void QgsMapCanvas::emitPointEvent(QgsPoint& point, Qt::ButtonState state)
1058-
{
1059-
emit xyClickCoordinates(point);
1060-
emit xyClickCoordinates(point,state);
1061-
}
1062-
1063-
10641057
void QgsMapCanvas::updateMap()
10651058
{
10661059
// XXX updating is not possible since we're already in paint loop

‎src/gui/qgsmapcanvas.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ class QgsMapCanvas : public Q3CanvasView
185185
//! used to determine if anti-aliasing is enabled or not
186186
void enableAntiAliasing(bool theFlag);
187187

188-
//! called from QgsMapToolEmitPoint to emit appopriate signal (temporary, should be sorted out)
189-
void emitPointEvent(QgsPoint& point, Qt::ButtonState state);
190-
191188
// following 2 methods should be moved elsewhere or changed to private
192189
// currently used by pan map tool
193190
//! Ends pan action and redraws the canvas.
@@ -231,9 +228,6 @@ class QgsMapCanvas : public Q3CanvasView
231228
void setProgress(int,int);
232229
/** emits current mouse position */
233230
void xyCoordinates(QgsPoint & p);
234-
/** emits mouse position when the canvas is clicked */
235-
void xyClickCoordinates(QgsPoint &p);
236-
void xyClickCoordinates(QgsPoint &p, Qt::ButtonState button);
237231

238232
//! Emitted when the scale of the map changes
239233
void scaleChanged(QString);

‎src/gui/qgsmaptoolcapture.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ void QgsMapToolCapture::canvasReleaseEvent(QMouseEvent * e)
9898

9999
QgsPoint idPoint = toMapCoords(e->pos());
100100

101-
// why emit a signal? [MD]
101+
// emit signal - QgisApp can catch it and save point position to clipboard
102+
// FIXME: is this still actual or something old that's not used anymore?
102103
//emit xyClickCoordinates(idPoint);
103104

104105
//only do the rest for provider with feature addition support

‎src/gui/qgsmaptoolcapture.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ class QgsMapToolCapture : public QgsMapTool
5757

5858

5959
virtual void deactivate();
60+
61+
/*
62+
// FIXME: is this still actual or something old that's not used anymore?
63+
signals:
64+
//! emits mouse position when the canvas is clicked
65+
void xyClickCoordinates(QgsPoint &p);
66+
*/
6067

6168
protected:
6269

‎src/gui/qgsmaptoolemitpoint.cpp

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎src/gui/qgsmaptoolemitpoint.h

Lines changed: 0 additions & 42 deletions
This file was deleted.

‎src/plugins/georeferencer/qgspointdialog.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "qgsimagewarper.h"
2020
#include "qgsgeorefwarpoptionsdialog.h"
2121
#include "qgsmaplayerregistry.h"
22-
#include "qgsmaptoolemitpoint.h"
2322
#include "qgsmaptoolzoom.h"
2423
#include "qgsmaptoolpan.h"
2524
#include "qgsgeorefdatapoint.h"

‎src/plugins/grass/qgsgrassedit.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
#include "qgsapplication.h"
4848
#include "qgsmapcanvas.h"
4949
#include "qgsmaplayer.h"
50-
#include "qgsmaptoolemitpoint.h"
5150
#include "qgsvectorlayer.h"
5251
#include "qgsdataprovider.h"
5352
#include "qgsmaptopixel.h"

‎src/plugins/grass/qgsgrassregion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#include "qgsvectorlayer.h"
5151
#include "qgisiface.h"
5252
#include "qgsmapcanvas.h"
53-
#include "qgsmaptoolemitpoint.h"
53+
#include "qgsmaptool.h"
5454
#include "qgsmaptopixel.h"
5555
#include "qgspoint.h"
5656

0 commit comments

Comments
 (0)
Please sign in to comment.