2021-03-22 Fred Gleason <fredg@paravelsystems.com>

* Added 'L' and 'R' channel labels when viewing a stereo cut to the
	waveform display in 'RDMarkerDialog'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-03-22 12:28:54 -04:00
parent e1d3a756cc
commit 69445291fd
3 changed files with 23 additions and 2 deletions

View File

@@ -21330,3 +21330,6 @@
2021-03-22 Fred Gleason <fredg@paravelsystems.com>
* Implemented movable reference lines for 'Cut Gain' adjustments
in 'RDMarkerDialog'.
2021-03-22 Fred Gleason <fredg@paravelsystems.com>
* Added 'L' and 'R' channel labels when viewing a stereo cut to the
waveform display in 'RDMarkerDialog'.

View File

@@ -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
//

View File

@@ -31,6 +31,7 @@
#include <rdcut.h>
#include <rdwavefactory.h>
#include <rdwidget.h>
class RDMarkerHandle : public QGraphicsPolygonItem
{
@@ -77,7 +78,7 @@ class RDMarkerHandle : public QGraphicsPolygonItem
};
class RDMarkerView : public QWidget
class RDMarkerView : public RDWidget
{
Q_OBJECT;
public: