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

* Modified rdcatch(1) to use 'RDMarkerDialog' instead of
	'RDEditAudio'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-03-25 13:00:34 -04:00
parent 18446ebff1
commit a689a694eb
3 changed files with 14 additions and 4 deletions

View File

@@ -21349,3 +21349,6 @@
available 'In' and 'Out' possibilities. available 'In' and 'Out' possibilities.
2021-03-25 Fred Gleason <fredg@paravelsystems.com> 2021-03-25 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up 'RDMarkerDialog', 'RDMarkerPlayer' and 'RDMarkerView'. * Cleaned up 'RDMarkerDialog', 'RDMarkerPlayer' and 'RDMarkerView'.
2021-03-25 Fred Gleason <fredg@paravelsystems.com>
* Modified rdcatch(1) to use 'RDMarkerDialog' instead of
'RDEditAudio'.

View File

@@ -35,6 +35,11 @@ CatchTableView::CatchTableView(QWidget *parent)
d_cue_card=rda->station()->cueCard(); d_cue_card=rda->station()->cueCard();
d_cue_port=rda->station()->cuePort(); d_cue_port=rda->station()->cuePort();
//
// Dialogs
//
d_marker_dialog=new RDMarkerDialog("RDCatch",d_cue_card,d_cue_port,this);
// //
// Mouse menu // Mouse menu
// //
@@ -68,12 +73,12 @@ void CatchTableView::editAudioMenuData()
RecordListModel *mod=(RecordListModel *)model(); RecordListModel *mod=(RecordListModel *)model();
QString cutname=mod->cutName(mod->index(d_mouse_row,0)); QString cutname=mod->cutName(mod->index(d_mouse_row,0));
RDCart *rdcart=new RDCart(RDCut::cartNumber(cutname)); RDCart *rdcart=new RDCart(RDCut::cartNumber(cutname));
RDEditAudio *edit=
new RDEditAudio(rdcart,cutname,d_cue_card,d_cue_port,1500,-400,this); if(d_marker_dialog->
if(edit->exec()!=-1) { exec(RDCut::cartNumber(cutname),RDCut::cutNumber(cutname))) {
rdcart->updateLength(); rdcart->updateLength();
} }
delete edit;
delete rdcart; delete rdcart;
} }

View File

@@ -24,6 +24,7 @@
#include <QAction> #include <QAction>
#include <QMenu> #include <QMenu>
#include <rdmarkerdialog.h>
#include <rdtableview.h> #include <rdtableview.h>
class CatchTableView : public RDTableView class CatchTableView : public RDTableView
@@ -48,6 +49,7 @@ class CatchTableView : public RDTableView
int d_mouse_row; int d_mouse_row;
int d_cue_card; int d_cue_card;
int d_cue_port; int d_cue_port;
RDMarkerDialog *d_marker_dialog;
}; };