diff --git a/ChangeLog b/ChangeLog index e760d38e..6a350c6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21330,3 +21330,6 @@ 2021-03-22 Fred Gleason * Implemented movable reference lines for 'Cut Gain' adjustments in 'RDMarkerDialog'. +2021-03-22 Fred Gleason + * Added 'L' and 'R' channel labels when viewing a stereo cut to the + waveform display in 'RDMarkerDialog'. diff --git a/lib/rdmarkerview.cpp b/lib/rdmarkerview.cpp index 71327551..00b48006 100644 --- a/lib/rdmarkerview.cpp +++ b/lib/rdmarkerview.cpp @@ -350,7 +350,7 @@ RDMarkerHandle::PointerType RDMarkerHandle::pointerType(RDMarkerHandle::PointerR RDMarkerView::RDMarkerView(int width,int height,QWidget *parent) - : QWidget(parent) + : RDWidget(parent) { d_width=width; d_height=height; @@ -1115,6 +1115,23 @@ void RDMarkerView::WriteWave() } SetReferenceLines(); + // + // Channel Labels + // + if(d_channels==2) { + QGraphicsTextItem *t_item=new QGraphicsTextItem("L"); + t_item->setFont(QFont(font().family(),24,QFont::Normal)); + t_item->setDefaultTextColor(Qt::red); + d_scene->addItem(t_item); + t_item->setPos(LEFT_MARGIN,-5); + + t_item=new QGraphicsTextItem("R"); + t_item->setFont(QFont(font().family(),24,QFont::Normal)); + t_item->setDefaultTextColor(Qt::red); + d_scene->addItem(t_item); + t_item->setPos(LEFT_MARGIN,d_scene->height()/2-5); + } + // // Markers // diff --git a/lib/rdmarkerview.h b/lib/rdmarkerview.h index d845f9ba..28c1bb7e 100644 --- a/lib/rdmarkerview.h +++ b/lib/rdmarkerview.h @@ -31,6 +31,7 @@ #include #include +#include class RDMarkerHandle : public QGraphicsPolygonItem { @@ -77,7 +78,7 @@ class RDMarkerHandle : public QGraphicsPolygonItem }; -class RDMarkerView : public QWidget +class RDMarkerView : public RDWidget { Q_OBJECT; public: