Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create QgsLegendInterface for the qgis API #12245

Closed
qgib opened this issue Dec 3, 2009 · 1 comment
Closed

Create QgsLegendInterface for the qgis API #12245

qgib opened this issue Dec 3, 2009 · 1 comment
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience

Comments

@qgib
Copy link
Contributor

qgib commented Dec 3, 2009

Author Name: Andres Manz - (Andres Manz -)
Original Redmine Issue: 2185

Redmine category:gui
Assignee: Martin Dobias


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.


@qgib
Copy link
Contributor Author

qgib commented Dec 7, 2009

Author Name: Martin Dobias (@wonder-sk)


Applied (with some modifications) in 94317ce (SVN r12360).

Thanks for the contribution!


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib qgib added Feature Request GUI/UX Related to QGIS application GUI or User Experience labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request GUI/UX Related to QGIS application GUI or User Experience
Projects
None yet
Development

No branches or pull requests

1 participant