Opened 14 years ago

Closed 14 years ago

#2185 closed patch (fixed)

Create QgsLegendInterface for the qgis API

Reported by: andresmanz Owned by: wonder
Priority: minor: annoyance Milestone:
Component: GUI Version: Trunk
Keywords: legend interface Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

The patch adds / modifies the following classes:

Functions of QgsLegendInterface:

  • int addGroup( QString name, bool expand );
  • void removeGroup( int groupIndex );
  • void moveLayer( QgsMapLayer *ml, int groupIndex );
  • QStringList groups();
  • [signal] groupIndexChanged( int oldIndex, int newIndex );

Python scripters can get the legend interface with iface.legendInterface() and manage groups with it.

Attachments (1)

qgis_legendiface.patch (19.0 KB ) - added by andresmanz 14 years ago.

Download all attachments as: .zip

Change History (4)

by andresmanz, 14 years ago

Attachment: qgis_legendiface.patch added

comment:1 by andresmanz, 14 years ago

Platform: GentooAll

comment:2 by mhugent, 14 years ago

Owner: changed from nobody to wonder

comment:3 by wonder, 14 years ago

Resolution: fixed
Status: newclosed

Applied (with some modifications) in r12359.

Thanks for the contribution!

Note: See TracTickets for help on using tickets.