diff base/ViewManager.h @ 45:b11edc8b8ea0

* 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 7bf163161b88
children b1d51d0521c3
line wrap: on
line diff
--- a/base/ViewManager.h	Mon Mar 13 17:55:19 2006 +0000
+++ b/base/ViewManager.h	Wed Mar 15 18:11:23 2006 +0000
@@ -16,6 +16,7 @@
 #include <map>
 
 #include "Selection.h"
+#include "Command.h"
 
 class AudioPlaySource;
 class Model;
@@ -139,6 +140,24 @@
 
     bool m_playLoopMode;
     bool m_playSelectionMode;
+
+    void setSelections(const MultiSelection &ms);
+    void signalSelectionChange();
+
+    class SetSelectionCommand : public Command
+    {
+    public:
+	SetSelectionCommand(ViewManager *vm, const MultiSelection &ms);
+	virtual ~SetSelectionCommand();
+	virtual void execute();
+	virtual void unexecute();
+	virtual QString getName() const;
+
+    protected:
+	ViewManager *m_vm;
+	MultiSelection m_oldSelection;
+	MultiSelection m_newSelection;
+    };
 };
 
 #endif