comparison 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
comparison
equal deleted inserted replaced
44:701404725897 45:b11edc8b8ea0
14 #include <QTimer> 14 #include <QTimer>
15 15
16 #include <map> 16 #include <map>
17 17
18 #include "Selection.h" 18 #include "Selection.h"
19 #include "Command.h"
19 20
20 class AudioPlaySource; 21 class AudioPlaySource;
21 class Model; 22 class Model;
22 23
23 /** 24 /**
137 138
138 ToolMode m_toolMode; 139 ToolMode m_toolMode;
139 140
140 bool m_playLoopMode; 141 bool m_playLoopMode;
141 bool m_playSelectionMode; 142 bool m_playSelectionMode;
143
144 void setSelections(const MultiSelection &ms);
145 void signalSelectionChange();
146
147 class SetSelectionCommand : public Command
148 {
149 public:
150 SetSelectionCommand(ViewManager *vm, const MultiSelection &ms);
151 virtual ~SetSelectionCommand();
152 virtual void execute();
153 virtual void unexecute();
154 virtual QString getName() const;
155
156 protected:
157 ViewManager *m_vm;
158 MultiSelection m_oldSelection;
159 MultiSelection m_newSelection;
160 };
142 }; 161 };
143 162
144 #endif 163 #endif
145 164