comparison view/Pane.h @ 1481:e540aa5d89cd by-id

Update for removal of (public) getId from Model
author Chris Cannam
date Fri, 05 Jul 2019 15:34:50 +0100
parents 84c4ddb38415
children 235e08aa2d5d
comparison
equal deleted inserted replaced
1480:232262e38051 1481:e540aa5d89cd
86 public slots: 86 public slots:
87 // view slots 87 // view slots
88 virtual void toolModeChanged() override; 88 virtual void toolModeChanged() override;
89 virtual void zoomWheelsEnabledChanged() override; 89 virtual void zoomWheelsEnabledChanged() override;
90 virtual void viewZoomLevelChanged(View *, ZoomLevel, bool locked) override; 90 virtual void viewZoomLevelChanged(View *, ZoomLevel, bool locked) override;
91 virtual void modelAlignmentCompletionChanged() override; 91 virtual void modelAlignmentCompletionChanged(ModelId) override;
92 92
93 // local slots, not overrides 93 // local slots, not overrides
94 virtual void horizontalThumbwheelMoved(int value); 94 virtual void horizontalThumbwheelMoved(int value);
95 virtual void verticalThumbwheelMoved(int value); 95 virtual void verticalThumbwheelMoved(int value);
96 virtual void verticalZoomChanged(); 96 virtual void verticalZoomChanged();
127 void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers); 127 void wheelHorizontalFine(int pixels, Qt::KeyboardModifiers);
128 128
129 void drawVerticalScale(QRect r, Layer *, QPainter &); 129 void drawVerticalScale(QRect r, Layer *, QPainter &);
130 void drawFeatureDescription(Layer *, QPainter &); 130 void drawFeatureDescription(Layer *, QPainter &);
131 void drawCentreLine(sv_samplerate_t, QPainter &, bool omitLine); 131 void drawCentreLine(sv_samplerate_t, QPainter &, bool omitLine);
132 void drawModelTimeExtents(QRect, QPainter &, const Model &); 132 void drawModelTimeExtents(QRect, QPainter &, ModelId);
133 void drawDurationAndRate(QRect, const Model &, sv_samplerate_t, QPainter &); 133 void drawDurationAndRate(QRect, ModelId, sv_samplerate_t, QPainter &);
134 void drawWorkTitle(QRect, QPainter &, const Model &); 134 void drawWorkTitle(QRect, QPainter &, ModelId);
135 void drawLayerNames(QRect, QPainter &); 135 void drawLayerNames(QRect, QPainter &);
136 void drawEditingSelection(QPainter &); 136 void drawEditingSelection(QPainter &);
137 void drawAlignmentStatus(QRect, QPainter &, const Model &, bool down); 137 void drawAlignmentStatus(QRect, QPainter &, ModelId, bool down);
138 138
139 virtual bool render(QPainter &paint, int x0, sv_frame_t f0, sv_frame_t f1) override; 139 virtual bool render(QPainter &paint, int x0, sv_frame_t f0, sv_frame_t f1) override;
140 140
141 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const; 141 Selection getSelectionAt(int x, bool &closeToLeft, bool &closeToRight) const;
142 142