2022-12-01 Fred Gleason <fredg@paravelsystems.com>

* Modifed the 'Edit Audio' dialog in rdlibrary(1) so the waveform
	display is initially fully scrolled to the left.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2022-12-01 14:34:40 -05:00
parent f0b000b6a4
commit 90987c3374
3 changed files with 14 additions and 2 deletions

View File

@ -23732,3 +23732,6 @@
2022-11-30 Fred Gleason <fredg@paravelsystems.com>
* Added 'Linux Mint' to the set of recognized distros in the
'AR_GET_DISTRO()' macro.
2022-12-01 Fred Gleason <fredg@paravelsystems.com>
* Modifed the 'Edit Audio' dialog in rdlibrary(1) so the waveform
display is initially fully scrolled to the left.

View File

@ -371,7 +371,6 @@ RDMarkerView::RDMarkerView(int width,int height,QWidget *parent)
clear();
d_view=new QGraphicsView(this);
d_wave_factory=new RDWaveFactory(RDWaveFactory::MultiTrack);
d_pointer_fields.push_back("`START_POINT`");
@ -403,6 +402,13 @@ RDMarkerView::RDMarkerView(int width,int height,QWidget *parent)
addAction(tr("Add Fade Up Marker"),this,SLOT(addFadeupData()));
d_add_fadedown_action=d_main_menu->
addAction(tr("Add Fade Down Marker"),this,SLOT(addFadedownData()));
//
// The Home Timer
//
d_home_timer=new QTimer(this);
d_home_timer->setSingleShot(true);
connect(d_home_timer,SIGNAL(timeout()),this,SLOT(gotoHome()));
}
@ -587,7 +593,6 @@ void RDMarkerView::setSelectedMarkers(RDMarkerHandle::PointerRole start_role,
setSelected(d_selected_markers[1]==RDMarkerHandle::FadeUp);
}
}
emit selectedMarkersChanged(d_selected_markers[0],d_selected_markers[1]);
}
@ -705,6 +710,8 @@ bool RDMarkerView::setCut(QString *err_msg,unsigned cartnum,int cutnum)
updateInterlocks();
d_home_timer->start(0);
return true;
}

View File

@ -28,6 +28,7 @@
#include <QList>
#include <QMenu>
#include <QPolygonF>
#include <QTimer>
#include <rdcut.h>
#include <rdwavefactory.h>
@ -195,6 +196,7 @@ class RDMarkerView : public RDWidget
RDMarkerHandle::PointerRole d_selected_markers[2];
int d_wheel_angle;
QGraphicsLineItem *d_reference_line_items[2][2];
QTimer *d_home_timer;
};