comparison widgets/Pane.h @ 17:0183ebb725ca

* Add ability to create empty layers for editing * Add first basic editing capability (adding points to a time instant layer) * Add various keyboard and mouse shortcuts for navigation &c * Add ability to resize a selection by dragging its edges * Add maximum zoom level
author Chris Cannam
date Thu, 26 Jan 2006 16:15:40 +0000
parents 01849cd277e6
children 651e4e868bcc
comparison
equal deleted inserted replaced
16:02a718909b2d 17:0183ebb725ca
51 virtual void mouseMoveEvent(QMouseEvent *e); 51 virtual void mouseMoveEvent(QMouseEvent *e);
52 virtual void mouseDoubleClickEvent(QMouseEvent *e); 52 virtual void mouseDoubleClickEvent(QMouseEvent *e);
53 virtual void leaveEvent(QEvent *e); 53 virtual void leaveEvent(QEvent *e);
54 virtual void wheelEvent(QWheelEvent *e); 54 virtual void wheelEvent(QWheelEvent *e);
55 55
56 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight);
57
56 bool m_identifyFeatures; 58 bool m_identifyFeatures;
57 QPoint m_identifyPoint; 59 QPoint m_identifyPoint;
58 QPoint m_clickPos; 60 QPoint m_clickPos;
59 QPoint m_mousePos; 61 QPoint m_mousePos;
60 bool m_clickedInRange; 62 bool m_clickedInRange;
61 bool m_shiftPressed; 63 bool m_shiftPressed;
62 bool m_ctrlPressed; 64 bool m_ctrlPressed;
65 bool m_navigating;
66 bool m_resizing;
63 size_t m_dragCentreFrame; 67 size_t m_dragCentreFrame;
64 bool m_centreLineVisible; 68 bool m_centreLineVisible;
65 size_t m_selectionStartFrame; 69 size_t m_selectionStartFrame;
66 }; 70 };
67 71