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:
- QgsLegendInterface (in qgis gui API)
- QgsAppLegendInterface (implements QgsLegendInterface)
- QgsLegend (additional functions for the legend interface)
- QgisInterface (add a member function for getting the legend interface)
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)
Change History (4)
by , 14 years ago
Attachment: | qgis_legendiface.patch added |
---|
comment:1 by , 14 years ago
Platform: | Gentoo → All |
---|
comment:2 by , 14 years ago
Owner: | changed from | to
---|
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Applied (with some modifications) in r12359.
Thanks for the contribution!