QgsLegendInterface Abstract base class to make QgsLegend available to plugins.
More...
#include <qgslegendinterface.h>
QgsLegendInterface Abstract base class to make QgsLegend available to plugins.
- Note
- added in 1.4
Definition at line 39 of file qgslegendinterface.h.
QgsLegendInterface::QgsLegendInterface |
( |
) | |
|
QgsLegendInterface::~QgsLegendInterface |
( |
) | |
|
|
virtual |
virtual int QgsLegendInterface::addGroup |
( |
QString |
name, |
|
|
bool |
expand = true , |
|
|
QTreeWidgetItem * |
parent = 0 |
|
) |
| |
|
pure virtualslot |
Add a new group a parent group can be given to nest the new group in it.
virtual int QgsLegendInterface::addGroup |
( |
QString |
name, |
|
|
bool |
expand, |
|
|
int |
parentIndex |
|
) |
| |
|
pure virtualslot |
Add a new group a parent group index has to be given to nest the new group in it.
virtual bool QgsLegendInterface::groupExists |
( |
int |
groupIndex) | |
|
|
pure virtual |
Check if a group exists.
- Note
- added in 1.5
void QgsLegendInterface::groupIndexChanged |
( |
int |
oldIndex, |
|
|
int |
newIndex |
|
) |
| |
|
signal |
emitted when a group index has changed
virtual QList< GroupLayerInfo > QgsLegendInterface::groupLayerRelationship |
( |
) | |
|
|
inlinevirtual |
Return the relationship between groups and layers in the legend.
Definition at line 55 of file qgslegendinterface.h.
virtual QStringList QgsLegendInterface::groups |
( |
) | |
|
|
pure virtual |
Return a string list of groups.
virtual bool QgsLegendInterface::isGroupExpanded |
( |
int |
groupIndex) | |
|
|
pure virtual |
Check if a group is expanded.
- Note
- added in 1.5
virtual bool QgsLegendInterface::isGroupVisible |
( |
int |
groupIndex) | |
|
|
pure virtual |
Check if a group is visible.
- Note
- added in 1.5
virtual bool QgsLegendInterface::isLayerVisible |
( |
QgsMapLayer * |
ml) | |
|
|
pure virtual |
Check if a layer is visible.
- Note
- added in 1.5
virtual QList< QgsMapLayer * > QgsLegendInterface::layers |
( |
) | |
const |
|
pure virtual |
Return all layers in the project in legend order.
- Note
- added in 1.5
virtual void QgsLegendInterface::moveLayer |
( |
QgsMapLayer * |
ml, |
|
|
int |
groupIndex |
|
) |
| |
|
pure virtualslot |
virtual void QgsLegendInterface::refreshLayerSymbology |
( |
QgsMapLayer * |
ml) | |
|
|
pure virtualslot |
Refresh layer symbology.
- Note
- added in 1.5
virtual void QgsLegendInterface::removeGroup |
( |
int |
groupIndex) | |
|
|
pure virtualslot |
virtual void QgsLegendInterface::setGroupExpanded |
( |
int |
groupIndex, |
|
|
bool |
expand |
|
) |
| |
|
pure virtualslot |
Collapse or expand a group.
- Note
- added in 1.5
virtual void QgsLegendInterface::setGroupVisible |
( |
int |
groupIndex, |
|
|
bool |
visible |
|
) |
| |
|
pure virtualslot |
Set the visibility of a group.
- Note
- added in 1.5
virtual void QgsLegendInterface::setLayerVisible |
( |
QgsMapLayer * |
ml, |
|
|
bool |
visible |
|
) |
| |
|
pure virtualslot |
Set the visibility of a layer.
- Note
- added in 1.5
The documentation for this class was generated from the following files: