comparison framework/Document.h @ 47:d97a7ed7aa39

* Add auto-alignment toggle to Document * Make MainWindowBase cope if there is no time ruler layer
author Chris Cannam
date Thu, 25 Oct 2007 11:32:54 +0000
parents 9ea770d93fae
children c6328c8d6536
comparison
equal deleted inserted replaced
46:7fbe1c99d5d8 47:d97a7ed7aa39
188 * Remove the given layer from the given view. 188 * Remove the given layer from the given view.
189 */ 189 */
190 void removeLayerFromView(View *, Layer *); 190 void removeLayerFromView(View *, Layer *);
191 191
192 void toXml(QTextStream &, QString indent, QString extraAttributes) const; 192 void toXml(QTextStream &, QString indent, QString extraAttributes) const;
193
194 void setAutoAlignment(bool on) { m_autoAlignment = on; }
195
193 signals: 196 signals:
194 void layerAdded(Layer *); 197 void layerAdded(Layer *);
195 void layerRemoved(Layer *); 198 void layerRemoved(Layer *);
196 void layerAboutToBeDeleted(Layer *); 199 void layerAboutToBeDeleted(Layer *);
197 200
309 * And these are the layers. We also control the lifespans of 312 * And these are the layers. We also control the lifespans of
310 * these (usually through the commands used to add and remove them). 313 * these (usually through the commands used to add and remove them).
311 */ 314 */
312 typedef std::set<Layer *> LayerSet; 315 typedef std::set<Layer *> LayerSet;
313 LayerSet m_layers; 316 LayerSet m_layers;
317
318 bool m_autoAlignment;
314 }; 319 };
315 320
316 #endif 321 #endif