Skip to content
Permalink
Browse files

[FEATURE] allow opening layer properties from plugins

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12814 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jan 21, 2010
1 parent d71a5df commit 8091ca4044faf4943f8a6584e14767776d80599d
@@ -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

0 comments on commit 8091ca4

Please sign in to comment.
You can’t perform that action at this time.