From 7fa89422cf9b2015959b6216b59bc6331a0adc2b Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sun, 21 Mar 2021 16:57:32 -0400 Subject: [PATCH] 2021-03-21 Fred Gleason * Changed the color of the audio cursor in 'RDMarkerDialog' to green. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ lib/rdmarkerview.cpp | 5 ++++- lib/rdwavefactory.cpp | 8 +++++++- lib/rdwavefactory.h | 1 + 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc35fe27..73204642 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21315,3 +21315,5 @@ 2021-03-21 Fred Gleason * Added a 'Cut Gain' control to 'RDMarkerDialog'. * Added a 'No Fade on Segue Out' checkbox to 'RDMarkerDialog'. +2021-03-21 Fred Gleason + * Changed the color of the audio cursor in 'RDMarkerDialog' to green. diff --git a/lib/rdmarkerview.cpp b/lib/rdmarkerview.cpp index ba93f41f..fa9b27c4 100644 --- a/lib/rdmarkerview.cpp +++ b/lib/rdmarkerview.cpp @@ -1115,7 +1115,10 @@ void RDMarkerView::WriteWave() DrawMarker(RDMarkerHandle::End,RDMarkerHandle::CutEnd,20); d_cursor=new QGraphicsLineItem(0,0,0,d_height); - d_cursor->setPen(QPen(Qt::black)); + QPen pen(Qt::green); + pen.setWidth(2); + d_cursor->setPen(pen); + d_scene->addItem(d_cursor); d_view->setScene(d_scene); diff --git a/lib/rdwavefactory.cpp b/lib/rdwavefactory.cpp index ebf7f55b..fcbd2cd4 100644 --- a/lib/rdwavefactory.cpp +++ b/lib/rdwavefactory.cpp @@ -76,7 +76,7 @@ QPixmap RDWaveFactory::generate(int height,int x_shrink,int gain, int interval=2*rda->system()->sampleRate()/1152; int msec=2000; for(int i=interval;i<(d_energy.size()/x_shrink);i+=interval) { - p->setPen(Qt::green); + p->setPen(Qt::gray); p->drawLine(i,0,i,height); p->setPen(Qt::red); for(unsigned j=0;j RDWaveFactory::energy() const +{ + return d_energy; +} + + int RDWaveFactory::energySize() const { return d_energy.size()/d_energy_channels; diff --git a/lib/rdwavefactory.h b/lib/rdwavefactory.h index e6db949e..adf1dcef 100644 --- a/lib/rdwavefactory.h +++ b/lib/rdwavefactory.h @@ -37,6 +37,7 @@ class RDWaveFactory int cutNumber() const; QPixmap generate(int height,int x_shrink,int gain,bool incl_scale); bool setCut(QString *err_msg,unsigned cartnum,int cutnum); + QList energy() const; int energySize() const; static int referenceHeight(int height,int gain);