Skip to content
Permalink
Browse files

Added some comments based on chats with Martin

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5127 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Apr 1, 2006
1 parent a1116cc commit fc2bf5268e2bca18693dee37705db98270fefb0d
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsmaptool.h
@@ -46,10 +46,16 @@ class QgsMapTool
//! Called when rendering has finished
virtual void renderComplete() {}

/** Use this to associate a button, toolbutton, menu entry etc
* that inherits qaction to this maptool. Then when the setMapTool
* method of mapcanvas is called the action state will be set to on.
* Usually this will cause e.g. a toolbutton to appear pressed in and
* the previously used toolbutton to pop out. */
void setAction(QAction* action) { mAction = action; }

QAction* action() { return mAction; }

/** TODO change this method name to bool isZoomTool() ???? */
virtual QString toolName() { return "generic tool"; }

//! called when set as currently active map tool

0 comments on commit fc2bf52

Please sign in to comment.
You can’t perform that action at this time.