diff layer/LayerFactory.h @ 6:02aaea1ffaf7

* Beginnings of session save code * Add spline curve mode to time value layer
author Chris Cannam
date Thu, 12 Jan 2006 17:19:08 +0000
parents 37b110168acf
children 0183ebb725ca
line wrap: on
line diff
--- a/layer/LayerFactory.h	Thu Jan 12 13:45:27 2006 +0000
+++ b/layer/LayerFactory.h	Thu Jan 12 17:19:08 2006 +0000
@@ -44,7 +44,7 @@
     typedef std::set<LayerType> LayerTypeSet;
     LayerTypeSet getValidLayerTypes(Model *model);
 
-    LayerType getLayerType(Layer *);
+    LayerType getLayerType(const Layer *);
 
     Layer *createLayer(LayerType type, View *view,
 		       Model *model = 0, int channel = -1);
@@ -53,6 +53,9 @@
 
     void setModel(Layer *layer, Model *model);
 
+    QString getLayerTypeName(LayerType);
+    LayerType getLayerTypeForName(QString);
+
 protected:
     template <typename LayerClass, typename ModelClass>
     bool trySetModel(Layer *layerBase, Model *modelBase) {