Skip to content

Commit

Permalink
Added some comments based on chats with Martin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5127 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 1, 2006
1 parent 7aae2b2 commit 26a96f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsmaptool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26a96f8

Please sign in to comment.