diff 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
line wrap: on
line diff
--- a/framework/Document.h	Wed Oct 24 16:43:20 2007 +0000
+++ b/framework/Document.h	Thu Oct 25 11:32:54 2007 +0000
@@ -190,6 +190,9 @@
     void removeLayerFromView(View *, Layer *);
 
     void toXml(QTextStream &, QString indent, QString extraAttributes) const;
+
+    void setAutoAlignment(bool on) { m_autoAlignment = on; }
+
 signals:
     void layerAdded(Layer *);
     void layerRemoved(Layer *);
@@ -311,6 +314,8 @@
      */
     typedef std::set<Layer *> LayerSet;
     LayerSet m_layers;
+
+    bool m_autoAlignment;
 };
 
 #endif