Mercurial > hg > svgui
diff widgets/Pane.h @ 42:1bdf285c4eac
* Add "Export Audio File" option
* Make note layer align in frequency with any spectrogram layer on the same
view (if it's set to frequency mode)
* Start to implement mouse editing for ranges of points by dragging the
selection
* First scrappy attempt at a vertical scale for time value layer
author | Chris Cannam |
---|---|
date | Mon, 27 Feb 2006 17:34:41 +0000 |
parents | c43f2c4f66f2 |
children | ad214997dddb |
line wrap: on
line diff
--- a/widgets/Pane.h Fri Feb 24 17:26:11 2006 +0000 +++ b/widgets/Pane.h Mon Feb 27 17:34:41 2006 +0000 @@ -31,6 +31,9 @@ virtual QString getPropertyContainerIconName() const { return "pane"; } virtual bool shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos); + virtual bool shouldIlluminateLocalSelection(QPoint &pos, + bool &closeToLeft, + bool &closeToRight); void setCentreLineVisible(bool visible); bool getCentreLineVisible() const { return m_centreLineVisible; } @@ -55,6 +58,11 @@ Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight); + bool editSelectionStart(QMouseEvent *e); + bool editSelectionDrag(QMouseEvent *e); + bool editSelectionEnd(QMouseEvent *e); + bool selectionIsBeingEdited() const; + bool m_identifyFeatures; QPoint m_identifyPoint; QPoint m_clickPos; @@ -67,6 +75,8 @@ size_t m_dragCentreFrame; bool m_centreLineVisible; size_t m_selectionStartFrame; + Selection m_editingSelection; + int m_editingSelectionEdge; }; #endif