Skip to content

Commit

Permalink
Removed tool QgsMapToolEmitPoint - it's not used anymore.
Browse files Browse the repository at this point in the history
(this map tool was only temporary)


git-svn-id: http://svn.osgeo.org/qgis/trunk@5170 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 5, 2006
1 parent 0fe2e11 commit bc67101
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 106 deletions.
2 changes: 0 additions & 2 deletions src/gui/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ libqgis_guiHEADERS = \
qgsmapserverexport.h \
qgsmaptool.h \
qgsmaptoolcapture.h \
qgsmaptoolemitpoint.h \
qgsmaptoolidentify.h \
qgsmaptoolpan.h \
qgsmaptoolselect.h \
Expand Down Expand Up @@ -236,7 +235,6 @@ libqgis_gui_la_SOURCES = \
qgsmapserverexport.cpp \
qgsmaptool.cpp \
qgsmaptoolcapture.cpp \
qgsmaptoolemitpoint.cpp \
qgsmaptoolidentify.cpp \
qgsmaptoolpan.cpp \
qgsmaptoolselect.cpp \
Expand Down
5 changes: 3 additions & 2 deletions src/gui/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
// Map tools
//
#include "qgsmaptoolcapture.h"
#include "qgsmaptoolemitpoint.h"
#include "qgsmaptoolidentify.h"
#include "qgsmaptoolselect.h"
#include "qgsmaptoolpan.h"
Expand Down Expand Up @@ -984,7 +983,6 @@ void QgisApp::setupConnections()
//signal when mouse moved over window (coords display in status bar)
connect(mMapCanvas, SIGNAL(xyCoordinates(QgsPoint &)), this, SLOT(showMouseCoordinate(QgsPoint &)));
//signal when mouse in capturePoint mode and mouse clicked on canvas
connect(mMapCanvas, SIGNAL(xyClickCoordinates(QgsPoint &)), this, SLOT(showCapturePointCoordinate(QgsPoint &)));
connect(mMapCanvas->mapRender(), SIGNAL(setProgress(int,int)), this, SLOT(showProgress(int,int)));
connect(mMapCanvas, SIGNAL(extentsChanged(QgsRect )),this,SLOT(showExtents(QgsRect )));
connect(mMapCanvas, SIGNAL(scaleChanged(QString)), this, SLOT(showScale(QString)));
Expand Down Expand Up @@ -3349,6 +3347,9 @@ void QgisApp::capturePoint()
QgsMapTool* t = new QgsMapToolCapture(mMapCanvas, QgsMapToolCapture::CapturePoint);
t->setAction(mActionCapturePoint);
mMapCanvas->setMapTool(t);

// FIXME: is this still actual or something old that's not used anymore?
//connect(t, SIGNAL(xyClickCoordinates(QgsPoint &)), this, SLOT(showCapturePointCoordinate(QgsPoint &)));
}

void QgisApp::captureLine()
Expand Down
7 changes: 0 additions & 7 deletions src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,13 +1054,6 @@ void QgsMapCanvas::moveCanvasContents(bool reset)
}


void QgsMapCanvas::emitPointEvent(QgsPoint& point, Qt::ButtonState state)
{
emit xyClickCoordinates(point);
emit xyClickCoordinates(point,state);
}


void QgsMapCanvas::updateMap()
{
// XXX updating is not possible since we're already in paint loop
Expand Down
6 changes: 0 additions & 6 deletions src/gui/qgsmapcanvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ class QgsMapCanvas : public Q3CanvasView
//! used to determine if anti-aliasing is enabled or not
void enableAntiAliasing(bool theFlag);

//! called from QgsMapToolEmitPoint to emit appopriate signal (temporary, should be sorted out)
void emitPointEvent(QgsPoint& point, Qt::ButtonState state);

// following 2 methods should be moved elsewhere or changed to private
// currently used by pan map tool
//! Ends pan action and redraws the canvas.
Expand Down Expand Up @@ -231,9 +228,6 @@ class QgsMapCanvas : public Q3CanvasView
void setProgress(int,int);
/** emits current mouse position */
void xyCoordinates(QgsPoint & p);
/** emits mouse position when the canvas is clicked */
void xyClickCoordinates(QgsPoint &p);
void xyClickCoordinates(QgsPoint &p, Qt::ButtonState button);

//! Emitted when the scale of the map changes
void scaleChanged(QString);
Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgsmaptoolcapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ void QgsMapToolCapture::canvasReleaseEvent(QMouseEvent * e)

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

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

//only do the rest for provider with feature addition support
Expand Down
7 changes: 7 additions & 0 deletions src/gui/qgsmaptoolcapture.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ class QgsMapToolCapture : public QgsMapTool


virtual void deactivate();

/*
// FIXME: is this still actual or something old that's not used anymore?
signals:
//! emits mouse position when the canvas is clicked
void xyClickCoordinates(QgsPoint &p);
*/

protected:

Expand Down
43 changes: 0 additions & 43 deletions src/gui/qgsmaptoolemitpoint.cpp

This file was deleted.

42 changes: 0 additions & 42 deletions src/gui/qgsmaptoolemitpoint.h

This file was deleted.

1 change: 0 additions & 1 deletion src/plugins/georeferencer/qgspointdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "qgsimagewarper.h"
#include "qgsgeorefwarpoptionsdialog.h"
#include "qgsmaplayerregistry.h"
#include "qgsmaptoolemitpoint.h"
#include "qgsmaptoolzoom.h"
#include "qgsmaptoolpan.h"
#include "qgsgeorefdatapoint.h"
Expand Down
1 change: 0 additions & 1 deletion src/plugins/grass/qgsgrassedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include "qgsapplication.h"
#include "qgsmapcanvas.h"
#include "qgsmaplayer.h"
#include "qgsmaptoolemitpoint.h"
#include "qgsvectorlayer.h"
#include "qgsdataprovider.h"
#include "qgsmaptopixel.h"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassregion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include "qgsvectorlayer.h"
#include "qgisiface.h"
#include "qgsmapcanvas.h"
#include "qgsmaptoolemitpoint.h"
#include "qgsmaptool.h"
#include "qgsmaptopixel.h"
#include "qgspoint.h"

Expand Down

0 comments on commit bc67101

Please sign in to comment.