[GRASS-dev] [GRASS GIS] #2080: wxGUI: changing properties of barscale or legend

GRASS GIS trac at osgeo.org
Mon Sep 16 02:32:18 PDT 2013

#2080: wxGUI: changing properties of barscale or legend
 Reporter:  martinl                            |       Owner:  grass-dev@…              
     Type:  enhancement                        |      Status:  new                      
 Priority:  normal                             |   Milestone:  7.0.0                    
Component:  wxGUI                              |     Version:  unspecified              
 Keywords:  decorations, d.barscale, d.legend  |    Platform:  All                      
      Cpu:  All                                |  
Changes (by hamish):

  * keywords:  decorations => decorations, d.barscale, d.legend
  * platform:  Unspecified => All
  * cpu:  Unspecified => All


 > Right click shows contextual menu with one item 'Hide'.

 how would you make that "discoverable" for new users without them having
 to read the docs in frustration to find out how to do it? perhaps clicking
 the barscale/legend icons in the top bar could present a drop down menu?
 (?)  [afair the reason that Macs only have one mouse button was to force
 the programmers to come up with intuitive solutions]

 I can't find a ticket for it right now in a search, but the other big
 issue with the GUI legends and barscales is the full-window "glass pane"
 slide. If you grab on one side of the decoration it works, on the other
 side it doesn't. the solution seems to be to render the graphic at=50,50,
 then crop away to ~15 pixels around the outer extent of the graphics so
 grabbing the top-"glass pane" will move the decoration you expect, not the
 one who's "glass pane" happens to be on top. ..or find some other method
 to overlay them on the map canvas.

 Another issue with the current method is that the north arrows (which
 should probably be presented separate to the barscales in the GUI (perhaps
 using wrapper scripts?) tend to get clipped off the edge of the
 transparent background layer they are rendered on when using the default
 placement. Otherwise I would have liked to swap the default GUI
 legend/barscale placement top-bottom.


Ticket URL: <https://trac.osgeo.org/grass/ticket/2080#comment:2>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list