Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
41:f2c416cbdaa9 | 42:1bdf285c4eac |
---|---|
29 public: | 29 public: |
30 Pane(QWidget *parent = 0); | 30 Pane(QWidget *parent = 0); |
31 virtual QString getPropertyContainerIconName() const { return "pane"; } | 31 virtual QString getPropertyContainerIconName() const { return "pane"; } |
32 | 32 |
33 virtual bool shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos); | 33 virtual bool shouldIlluminateLocalFeatures(const Layer *layer, QPoint &pos); |
34 virtual bool shouldIlluminateLocalSelection(QPoint &pos, | |
35 bool &closeToLeft, | |
36 bool &closeToRight); | |
34 | 37 |
35 void setCentreLineVisible(bool visible); | 38 void setCentreLineVisible(bool visible); |
36 bool getCentreLineVisible() const { return m_centreLineVisible; } | 39 bool getCentreLineVisible() const { return m_centreLineVisible; } |
37 | 40 |
38 virtual QString toXmlString(QString indent = "", | 41 virtual QString toXmlString(QString indent = "", |
53 virtual void leaveEvent(QEvent *e); | 56 virtual void leaveEvent(QEvent *e); |
54 virtual void wheelEvent(QWheelEvent *e); | 57 virtual void wheelEvent(QWheelEvent *e); |
55 | 58 |
56 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight); | 59 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight); |
57 | 60 |
61 bool editSelectionStart(QMouseEvent *e); | |
62 bool editSelectionDrag(QMouseEvent *e); | |
63 bool editSelectionEnd(QMouseEvent *e); | |
64 bool selectionIsBeingEdited() const; | |
65 | |
58 bool m_identifyFeatures; | 66 bool m_identifyFeatures; |
59 QPoint m_identifyPoint; | 67 QPoint m_identifyPoint; |
60 QPoint m_clickPos; | 68 QPoint m_clickPos; |
61 QPoint m_mousePos; | 69 QPoint m_mousePos; |
62 bool m_clickedInRange; | 70 bool m_clickedInRange; |
65 bool m_navigating; | 73 bool m_navigating; |
66 bool m_resizing; | 74 bool m_resizing; |
67 size_t m_dragCentreFrame; | 75 size_t m_dragCentreFrame; |
68 bool m_centreLineVisible; | 76 bool m_centreLineVisible; |
69 size_t m_selectionStartFrame; | 77 size_t m_selectionStartFrame; |
78 Selection m_editingSelection; | |
79 int m_editingSelectionEdge; | |
70 }; | 80 }; |
71 | 81 |
72 #endif | 82 #endif |
73 | 83 |