Mercurial > hg > svgui
comparison view/ViewManager.h @ 335:2f83b6e3b8ca
* Add Erase tool and mode
* Add icons for Normalize buttons in property boxes, and for Show Peaks
* Add support for velocity in notes -- not yet reflected in display or
editable in the note edit dialog, but they are imported from MIDI,
played, and exported
* Begin work on making pastes align pasted times (subtler than I thought)
author | Chris Cannam |
---|---|
date | Fri, 23 Nov 2007 16:48:23 +0000 |
parents | e74b56f07c73 |
children | e1a9e478b7f2 |
comparison
equal
deleted
inserted
replaced
334:0a74248af622 | 335:2f83b6e3b8ca |
---|---|
64 | 64 |
65 unsigned long getPlaybackFrame() const; | 65 unsigned long getPlaybackFrame() const; |
66 void setPlaybackFrame(unsigned long frame); | 66 void setPlaybackFrame(unsigned long frame); |
67 | 67 |
68 // Only meaningful in solo mode, and used for optional alignment feature | 68 // Only meaningful in solo mode, and used for optional alignment feature |
69 | |
70 //!!! We probably don't want to do this. It's probably better to | |
71 // always have playback frame aligned against the reference model, | |
72 // and have the ViewManager know which is the reference model. | |
73 // That way the ViewManager can assume that all Views report in | |
74 // reference model timeline, and it can convert the playback frame | |
75 // received from the play source (which always operates in literal | |
76 // audio sample frames, i.e. playback model timeline) to the | |
77 // reference timeline itself so the view never has to worry about | |
78 // the difference between playback and reference model. Of course | |
79 // that does mean the ViewManager needs to know about both. | |
80 | |
81 Model *getPlaybackModel() const; | 69 Model *getPlaybackModel() const; |
82 void setPlaybackModel(Model *); | 70 void setPlaybackModel(Model *); |
83 | 71 |
84 size_t alignPlaybackFrameToReference(size_t) const; | 72 size_t alignPlaybackFrameToReference(size_t) const; |
85 size_t alignReferenceToPlaybackFrame(size_t) const; | 73 size_t alignReferenceToPlaybackFrame(size_t) const; |
111 enum ToolMode { | 99 enum ToolMode { |
112 NavigateMode, | 100 NavigateMode, |
113 SelectMode, | 101 SelectMode, |
114 EditMode, | 102 EditMode, |
115 DrawMode, | 103 DrawMode, |
104 EraseMode, | |
116 MeasureMode | 105 MeasureMode |
117 }; | 106 }; |
118 ToolMode getToolMode() const { return m_toolMode; } | 107 ToolMode getToolMode() const { return m_toolMode; } |
119 void setToolMode(ToolMode mode); | 108 void setToolMode(ToolMode mode); |
120 | 109 |