mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Add bindings for touch map tool
- Also expose via QgisInterface like other actions
This commit is contained in:
parent
4e36df0670
commit
1e7e763af1
@ -289,6 +289,7 @@ class QgisInterface : QObject
|
|||||||
|
|
||||||
//! View menu actions
|
//! View menu actions
|
||||||
virtual QAction *actionPan() = 0;
|
virtual QAction *actionPan() = 0;
|
||||||
|
virtual QAction *actionTouch() = 0;
|
||||||
virtual QAction *actionPanToSelected() = 0;
|
virtual QAction *actionPanToSelected() = 0;
|
||||||
virtual QAction *actionZoomIn() = 0;
|
virtual QAction *actionZoomIn() = 0;
|
||||||
virtual QAction *actionZoomOut() = 0;
|
virtual QAction *actionZoomOut() = 0;
|
||||||
|
26
python/gui/qgsmaptooltouch.sip
Normal file
26
python/gui/qgsmaptooltouch.sip
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
class QgsMapToolTouch : QgsMapTool
|
||||||
|
{
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include <qgsmaptooltouch.h>
|
||||||
|
%End
|
||||||
|
|
||||||
|
public:
|
||||||
|
//! constructor
|
||||||
|
QgsMapToolTouch( QgsMapCanvas* canvas );
|
||||||
|
|
||||||
|
~QgsMapToolTouch();
|
||||||
|
|
||||||
|
void activate();
|
||||||
|
void deactivate();
|
||||||
|
|
||||||
|
//! Overridden mouse move event
|
||||||
|
virtual void canvasMoveEvent( QMouseEvent * e );
|
||||||
|
|
||||||
|
//! Overridden mouse release event
|
||||||
|
virtual void canvasReleaseEvent( QMouseEvent * e );
|
||||||
|
|
||||||
|
//! Overridden Mouse double click event.
|
||||||
|
virtual void canvasDoubleClickEvent( QMouseEvent * e );
|
||||||
|
|
||||||
|
virtual bool isTransient() { return true; }
|
||||||
|
}
|
@ -251,6 +251,7 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
QAction *actionPan() { return mActionPan; }
|
QAction *actionPan() { return mActionPan; }
|
||||||
|
QAction *actionTouch() { return mActionTouch; }
|
||||||
QAction *actionPanToSelected() { return mActionPanToSelected; }
|
QAction *actionPanToSelected() { return mActionPanToSelected; }
|
||||||
QAction *actionZoomIn() { return mActionZoomIn; }
|
QAction *actionZoomIn() { return mActionZoomIn; }
|
||||||
QAction *actionZoomOut() { return mActionZoomOut; }
|
QAction *actionZoomOut() { return mActionZoomOut; }
|
||||||
|
@ -411,6 +411,7 @@ QAction *QgisAppInterface::actionEditSeparator2() { return 0; }
|
|||||||
|
|
||||||
//! View menu actions
|
//! View menu actions
|
||||||
QAction *QgisAppInterface::actionPan() { return qgis->actionPan(); }
|
QAction *QgisAppInterface::actionPan() { return qgis->actionPan(); }
|
||||||
|
QAction *QgisAppInterface::actionTouch() { return qgis->actionTouch(); }
|
||||||
QAction *QgisAppInterface::actionPanToSelected() { return qgis->actionPanToSelected(); }
|
QAction *QgisAppInterface::actionPanToSelected() { return qgis->actionPanToSelected(); }
|
||||||
QAction *QgisAppInterface::actionZoomIn() { return qgis->actionZoomIn(); }
|
QAction *QgisAppInterface::actionZoomIn() { return qgis->actionZoomIn(); }
|
||||||
QAction *QgisAppInterface::actionZoomOut() { return qgis->actionZoomOut(); }
|
QAction *QgisAppInterface::actionZoomOut() { return qgis->actionZoomOut(); }
|
||||||
|
@ -260,6 +260,7 @@ class QgisAppInterface : public QgisInterface
|
|||||||
|
|
||||||
//! View menu actions
|
//! View menu actions
|
||||||
virtual QAction *actionPan();
|
virtual QAction *actionPan();
|
||||||
|
virtual QAction *actionTouch();
|
||||||
virtual QAction *actionPanToSelected();
|
virtual QAction *actionPanToSelected();
|
||||||
virtual QAction *actionZoomIn();
|
virtual QAction *actionZoomIn();
|
||||||
virtual QAction *actionZoomOut();
|
virtual QAction *actionZoomOut();
|
||||||
|
@ -401,6 +401,7 @@ class GUI_EXPORT QgisInterface : public QObject
|
|||||||
|
|
||||||
//! View menu actions
|
//! View menu actions
|
||||||
virtual QAction *actionPan() = 0;
|
virtual QAction *actionPan() = 0;
|
||||||
|
virtual QAction *actionTouch() = 0;
|
||||||
virtual QAction *actionPanToSelected() = 0;
|
virtual QAction *actionPanToSelected() = 0;
|
||||||
virtual QAction *actionZoomIn() = 0;
|
virtual QAction *actionZoomIn() = 0;
|
||||||
virtual QAction *actionZoomOut() = 0;
|
virtual QAction *actionZoomOut() = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user