62 void selectStop(
int index );
70 QSize sizeHint()
const override;
71 void paintEvent( QPaintEvent *event )
override;
83 void setSelectedStopColor(
const QColor &color );
92 void setSelectedStopOffset(
double offset );
99 void setSelectedStopColorSpec( QColor::Spec spec );
115 void setSelectedStopDetails(
const QColor &color,
double offset );
121 void deleteSelectedStop();
129 void setColor1(
const QColor &color );
137 void setColor2(
const QColor &color );
151 void mouseMoveEvent( QMouseEvent *event )
override;
152 void mousePressEvent( QMouseEvent *event )
override;
153 void mouseDoubleClickEvent( QMouseEvent *event )
override;
154 void keyPressEvent( QKeyEvent *event )
override;
157 void dragEnterEvent( QDragEnterEvent *e )
override;
160 void dropEvent( QDropEvent *e )
override;
167 QPixmap transparentBackground();
176 void drawStopMarker( QPainter &painter, QPoint topMiddle,
const QColor &color,
bool selected =
false );
179 double pointToRelativePosition(
int x )
const;
182 int relativePositionToPoint(
double position )
const;
185 bool selectedStopIsMovable()
const;
188 int findClosestStop(
int x,
int threshold = -1 )
const;
196 int mSelectedStop = 0;
199 QPolygonF sOuterTriangle;
202 QPolygonF sInnerTriangle;