Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add bindings for touch map tool
- Also expose via QgisInterface like other actions
- Loading branch information
Showing
6 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters