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

* Added a 'RDMarkerView' class.
	* Added a 'RDMarkerDialog' class.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-03-12 11:08:45 -05:00
parent f2b8f6ddba
commit e5631a1b5f
20 changed files with 955 additions and 8 deletions

View File

@@ -37,6 +37,7 @@ MainWidget::MainWidget(QWidget *parent)
d_cut_number=-1;
d_scene=NULL;
bool track_mode_set=false;
d_show_scale=false;
//
// Open the database
@@ -69,6 +70,10 @@ MainWidget::MainWidget(QWidget *parent)
}
rda->cmdSwitch()->setProcessed(i,true);
}
if(rda->cmdSwitch()->key(i)=="--show-scale") {
d_show_scale=true;
rda->cmdSwitch()->setProcessed(i,true);
}
if(rda->cmdSwitch()->key(i)=="--track-mode") {
if(rda->cmdSwitch()->value(i)=="single") {
d_track_mode=RDWaveFactory::SingleTrack;
@@ -219,7 +224,7 @@ void MainWidget::resizeEvent(QResizeEvent *e)
void MainWidget::UpdateWave()
{
QPixmap pix=d_factory->generate(200,d_shrink_factor_edit->text().toInt(),
100*d_audio_gain_spin->value());
100*d_audio_gain_spin->value(),d_show_scale);
if(d_scene!=NULL) {
d_scene->deleteLater();