[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:
jef 2010-01-21 20:17:29 +00:00
parent e3cde7ced5
commit 882e7e8873
4 changed files with 16 additions and 0 deletions

View File

@ -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;
};

View File

@ -57,3 +57,8 @@ QStringList QgsAppLegendInterface::groups()
{
return mLegend->groups();
}
void QgsAppLegendInterface::legendLayerShowProperties()
{
mLegend->legendLayerShowProperties();
}

View File

@ -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

View File

@ -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