comparison view/Pane.h @ 827:ea098f7565eb

Merge from branch tonioni
author Chris Cannam
date Fri, 18 Jul 2014 15:38:21 +0100
parents 43256b925e15
children 4a578a360011
comparison
equal deleted inserted replaced
823:2d4af227fd32 827:ea098f7565eb
60 virtual void toXml(QTextStream &stream, QString indent = "", 60 virtual void toXml(QTextStream &stream, QString indent = "",
61 QString extraAttributes = "") const; 61 QString extraAttributes = "") const;
62 62
63 static void registerShortcuts(KeyReference &kr); 63 static void registerShortcuts(KeyReference &kr);
64 64
65 enum PaneType {
66 Normal = 0,
67 TonyMain = 1,
68 TonySelection = 2
69 };
70
65 signals: 71 signals:
66 void paneInteractedWith(); 72 void paneInteractedWith();
67 void rightButtonMenuRequested(QPoint position); 73 void rightButtonMenuRequested(QPoint position);
68 void dropAccepted(QStringList uriList); 74 void dropAccepted(QStringList uriList);
69 void dropAccepted(QString text); 75 void dropAccepted(QString text);
105 virtual void wheelEvent(QWheelEvent *e); 111 virtual void wheelEvent(QWheelEvent *e);
106 virtual void resizeEvent(QResizeEvent *e); 112 virtual void resizeEvent(QResizeEvent *e);
107 virtual void dragEnterEvent(QDragEnterEvent *e); 113 virtual void dragEnterEvent(QDragEnterEvent *e);
108 virtual void dropEvent(QDropEvent *e); 114 virtual void dropEvent(QDropEvent *e);
109 115
116 void wheelVertical(int sign, Qt::KeyboardModifiers);
117 void wheelHorizontal(int sign, Qt::KeyboardModifiers);
118 void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers);
119
110 void drawVerticalScale(QRect r, Layer *, QPainter &); 120 void drawVerticalScale(QRect r, Layer *, QPainter &);
111 void drawFeatureDescription(Layer *, QPainter &); 121 void drawFeatureDescription(Layer *, QPainter &);
112 void drawCentreLine(int, QPainter &, bool omitLine); 122 void drawCentreLine(int, QPainter &, bool omitLine);
113 void drawModelTimeExtents(QRect, QPainter &, const Model *); 123 void drawModelTimeExtents(QRect, QPainter &, const Model *);
114 void drawDurationAndRate(QRect, const Model *, int, QPainter &); 124 void drawDurationAndRate(QRect, const Model *, int, QPainter &);
163 int m_selectionStartFrame; 173 int m_selectionStartFrame;
164 Selection m_editingSelection; 174 Selection m_editingSelection;
165 int m_editingSelectionEdge; 175 int m_editingSelectionEdge;
166 mutable int m_scaleWidth; 176 mutable int m_scaleWidth;
167 177
178 int m_pendingWheelAngle;
179
168 enum DragMode { 180 enum DragMode {
169 UnresolvedDrag, 181 UnresolvedDrag,
170 VerticalDrag, 182 VerticalDrag,
171 HorizontalDrag, 183 HorizontalDrag,
172 FreeDrag 184 FreeDrag