Mercurial > hg > svgui
diff layer/Layer.h @ 1489:b402121d8f5f
Add direct method to get source model
author | Chris Cannam |
---|---|
date | Fri, 02 Aug 2019 16:42:32 +0100 |
parents | e540aa5d89cd |
children | 4eafe5a1b655 |
line wrap: on
line diff
--- a/layer/Layer.h Fri Jul 19 16:10:19 2019 +0100 +++ b/layer/Layer.h Fri Aug 02 16:42:32 2019 +0100 @@ -64,6 +64,13 @@ * Return the ID of the model represented in this layer. */ virtual ModelId getModel() const = 0; + + /** + * Return the ID of the source model for the model represented in + * this layer. If the model has no other source, or there is no + * model here, return None. + */ + ModelId getSourceModel() const; /** * Return a zoom constraint object defining the supported zoom