mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[FEATURE] allow opening layer properties from plugins
git-svn-id: http://svn.osgeo.org/qgis/trunk@12814 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
e3cde7ced5
commit
882e7e8873
@ -33,5 +33,9 @@ class QgsLegendInterface : QObject
|
||||
|
||||
//! Move a layer to a group
|
||||
virtual void moveLayer( QgsMapLayer * layer, int groupIndex ) =0;
|
||||
|
||||
//! show layer propeties
|
||||
//! @note added in 1.5
|
||||
virtual void legendLayerShowProperties() =0;
|
||||
};
|
||||
|
||||
|
@ -57,3 +57,8 @@ QStringList QgsAppLegendInterface::groups()
|
||||
{
|
||||
return mLegend->groups();
|
||||
}
|
||||
|
||||
void QgsAppLegendInterface::legendLayerShowProperties()
|
||||
{
|
||||
mLegend->legendLayerShowProperties();
|
||||
}
|
||||
|
@ -58,6 +58,9 @@ class QgsAppLegendInterface : public QgsLegendInterface
|
||||
//! Update an index
|
||||
void updateIndex( QModelIndex oldIndex, QModelIndex newIndex );
|
||||
|
||||
//! Show layer properties
|
||||
void legendLayerShowProperties();
|
||||
|
||||
private:
|
||||
|
||||
//! Pointer to QgsLegend object
|
||||
|
@ -59,6 +59,10 @@ class GUI_EXPORT QgsLegendInterface : public QObject
|
||||
|
||||
//! Move a layer to a group
|
||||
virtual void moveLayer( QgsMapLayer * ml, int groupIndex ) = 0;
|
||||
|
||||
//! Show layer properties dialog
|
||||
// @note added in 1.5
|
||||
virtual void legendLayerShowProperties() = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user