[QGIS-trac] [Quantum GIS] #2469: advancedDigitizeToolBar is not visible for plugin development

Quantum GIS qgis at qgis.org
Thu Feb 25 08:46:46 EST 2010


#2469: advancedDigitizeToolBar is not visible for plugin development
-----------------------------------------+----------------------------------
   Reporter:  skiefer                    |              Owner:  gsherman     
       Type:  enhancement                |             Status:  new          
   Priority:  minor: annoyance           |          Milestone:  Version 1.5.0
  Component:  Build/Install              |            Version:  HEAD         
   Keywords:  plugin c++ python toolbar  |   Platform_version:               
   Platform:  All                        |           Must_fix:  No           
Status_info:  0                          |  
-----------------------------------------+----------------------------------
 There is no function in the main qgis interface to retrieve the advanced
 digitize toolbar from a plugin (in my case while developing in python).
 In fact i identified that there is no member exposing this toolbar.
 I am not a c++ developer, but I believe the following places (at least)
 must be changed, respectively other places. Whatsoever, it worked for me
 with this changes:

 qgisinterface.h:

 after line 190:
     virtual QToolBar *advancedDigitizeToolBar() = 0;

 qgisappinterface.cpp:

 after line 233:
 QToolBar *QgisAppInterface::advancedDigitizeToolBar() { return
 qgis->advancedDigitizeToolBar(); }

 qgisinterface.sip:

 after line 144:
     virtual QToolBar *advancedDigitizeToolBar() = 0;

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2469>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list