comparison layer/LayerFactory.h @ 53:68869408f5c7

* Restore proper channel selection support for new layers * Use binary mode for SV file I/O on Windows * Commands for selection
author Chris Cannam
date Wed, 15 Mar 2006 18:11:23 +0000
parents f2fe98a7c57e
children 01ab51f72e84
comparison
equal deleted inserted replaced
52:f2fe98a7c57e 53:68869408f5c7
47 LayerTypeSet getValidLayerTypes(Model *model); 47 LayerTypeSet getValidLayerTypes(Model *model);
48 LayerTypeSet getValidEmptyLayerTypes(); 48 LayerTypeSet getValidEmptyLayerTypes();
49 49
50 LayerType getLayerType(const Layer *); 50 LayerType getLayerType(const Layer *);
51 51
52 Layer *createLayer(LayerType type, int channel = -1); 52 Layer *createLayer(LayerType type);
53 53
54 QString getLayerPresentationName(LayerType type); 54 QString getLayerPresentationName(LayerType type);
55 55
56 void setModel(Layer *layer, Model *model); 56 void setModel(Layer *layer, Model *model);
57 Model *createEmptyModel(LayerType type, Model *baseModel); 57 Model *createEmptyModel(LayerType type, Model *baseModel);
58
59 int getChannel(Layer *layer);
60 void setChannel(Layer *layer, int channel);
58 61
59 QString getLayerIconName(LayerType); 62 QString getLayerIconName(LayerType);
60 QString getLayerTypeName(LayerType); 63 QString getLayerTypeName(LayerType);
61 LayerType getLayerTypeForName(QString); 64 LayerType getLayerTypeForName(QString);
62 65