Skip to content

Commit 35d9b83

Browse files
authored
Merge pull request #4138 from nyalldawson/touch
Rework map touch tool
2 parents 7f1ff08 + a124fbf commit 35d9b83

28 files changed

+114
-380
lines changed

CMakeLists.txt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -269,23 +269,6 @@ IF (WITH_QTMOBILITY)
269269
FIND_PACKAGE(QtMobility 1.1.0)
270270
ENDIF (WITH_QTMOBILITY)
271271

272-
IF (ANDROID)
273-
SET (DEFAULT_WITH_TOUCH TRUE)
274-
ELSE (ANDROID)
275-
SET (DEFAULT_WITH_TOUCH FALSE)
276-
ENDIF (ANDROID)
277-
278-
#Add a touch mode if Qt has Qt Gestures
279-
SET (WITH_TOUCH ${DEFAULT_WITH_TOUCH} CACHE BOOL "Determines if touch interface related code should be build")
280-
281-
IF (WITH_TOUCH)
282-
# following variable is used in qgsconfig.h
283-
SET (HAVE_TOUCH TRUE)
284-
MESSAGE (STATUS "Touch support enabled")
285-
ELSE (WITH_TOUCH)
286-
MESSAGE (STATUS "Touch support disabled")
287-
ENDIF (WITH_TOUCH)
288-
289272
# search for QScintilla2 (C++ lib)
290273
FIND_PACKAGE(QScintilla REQUIRED)
291274

cmake_templates/qgsconfig.h.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@
4848

4949
#cmakedefine HAVE_ORACLE
5050

51-
#cmakedefine HAVE_TOUCH
52-
5351
#cmakedefine HAVE_OSGEARTHQT
5452

5553
#cmakedefine SERVER_SKIP_ECW

doc/api_break.dox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinat
269269
- QgsMapCanvasMap. It is an internal class used by map canvas.
270270
- QgsMapLayerRegistry. Its functionality has been moved to QgsProject.
271271
- QgsMapRenderer. It has been replaced by QgsMapRendererJob with subclasses and QgsMapSettings.
272+
- QgsMapToolTouch. The touch navigation functionality is now built into the standard QgsMapToolPan tool.
272273
- QgsPhotoWidgetWrapper was removed. Use QgsExternalResourceWidgetWrapper instead.
273274
- QgsPseudoColorShader. This shader has been broken for some time and was replaced by QgsSingleBandPseudoColorRenderer.
274275
- QgsProjectBadLayerGuiHandler was removed. It was unused in QGIS code and barely useful. Implement your own QgsProjectBadLayerHandler subclass if needed.
@@ -360,6 +361,7 @@ QgisInterface {#qgis_api_break_3_0_QgisInterface}
360361

361362
- fileMenu() has been removed, use projectMenu() instead.
362363
- actionRemoveLayer was removed as it no longer exists.
364+
- actionTouch was removed, as the corresponding action no longer exists (see notes on QgsMapToolTouch)
363365

364366

365367
QgsAbstractGeometry {#qgis_api_break_3_0_QgsAbstractGeometry}

ms-windows/cygwin/package.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ cmake -D BUILDNAME="cygwin" \
2828
-D WITH_QSPATIALITE=TRUE \
2929
-D WITH_SERVER=TRUE \
3030
-D WITH_GLOBE=TRUE \
31-
-D WITH_TOUCH=TRUE \
3231
-D WITH_ORACLE=FALSE \
3332
-D CMAKE_LEGACY_CYGWIN_WIN32=0 \
3433
-D PYUIC4_PROGRAM=/usr/lib/python2.7/site-packages/PyQt4/pyuic4 \

ms-windows/osgeo4w/package-nightly.cmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ cmake -G Ninja ^
167167
-D WITH_GRASS7=TRUE ^
168168
-D GRASS_PREFIX7=%GRASS72_PATH:\=/% ^
169169
-D WITH_GLOBE=FALSE ^
170-
-D WITH_TOUCH=TRUE ^
171170
-D WITH_ORACLE=TRUE ^
172171
-D WITH_CUSTOM_WIDGETS=TRUE ^
173172
-D CMAKE_BUILD_TYPE=%BUILDCONF% ^

ms-windows/osgeo4w/package.cmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ cmake -G Ninja ^
160160
-D WITH_GRASS7=TRUE ^
161161
-D GRASS_PREFIX7=%GRASS72_PATH:\=/% ^
162162
-D WITH_GLOBE=FALSE ^
163-
-D WITH_TOUCH=TRUE ^
164163
-D WITH_ORACLE=TRUE ^
165164
-D WITH_CUSTOM_WIDGETS=TRUE ^
166165
-D CMAKE_CXX_FLAGS_RELEASE="/MD /MP /O2 /Ob2 /D NDEBUG" ^

python/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ ELSE(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
130130
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} ARM)
131131
ENDIF(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
132132

133-
IF(NOT WITH_TOUCH)
134-
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} HAVE_TOUCH)
135-
ENDIF(NOT WITH_TOUCH)
136-
137133
IF(NOT QT_MOBILITY_LOCATION_FOUND)
138134
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} MOBILITY_LOCATION)
139135
ENDIF(NOT QT_MOBILITY_LOCATION_FOUND)

python/gui/gui.sip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@
117117
%Include qgsmaptoolidentify.sip
118118
%Include qgsmaptoolidentifyfeature.sip
119119
%Include qgsmaptoolpan.sip
120-
%Include qgsmaptooltouch.sip
121120
%Include qgsmaptoolzoom.sip
122121
%Include qgsmaplayerstylemanagerwidget.sip
123122
%Include qgsmessagebar.sip

python/gui/qgisinterface.sip

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,6 @@ class QgisInterface : QObject
404404
// View menu actions
405405
//! Get access to the native pan action. Call trigger() on it to set the default pan map tool.
406406
virtual QAction *actionPan() = 0;
407-
//! Get access to the native touch action.
408-
virtual QAction *actionTouch() = 0;
409407
//! Get access to the native pan to selected action. Call trigger() on it to pan the map canvas to the selection.
410408
virtual QAction *actionPanToSelected() = 0;
411409
//! Get access to the native zoom in action. Call trigger() on it to set the default zoom in map tool.

python/gui/qgsmapcanvas.sip

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
%Feature HAVE_TOUCH
2-
31
/** \ingroup gui
42
* Map canvas is a class for displaying all GIS data types on a canvas.
53
*/
@@ -486,10 +484,9 @@ class QgsMapCanvas : QGraphicsView
486484
void messageEmitted( const QString& title, const QString& message, QgsMessageBar::MessageLevel = QgsMessageBar::INFO );
487485

488486
protected:
489-
%If (HAVE_TOUCH)
487+
490488
//! Overridden standard event to be gestures aware
491489
bool event( QEvent * e );
492-
%End
493490

494491
//! Overridden key press event
495492
void keyPressEvent( QKeyEvent * e );

0 commit comments

Comments
 (0)