mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
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:
@@ -35,6 +35,11 @@ CatchTableView::CatchTableView(QWidget *parent)
|
||||
d_cue_card=rda->station()->cueCard();
|
||||
d_cue_port=rda->station()->cuePort();
|
||||
|
||||
//
|
||||
// Dialogs
|
||||
//
|
||||
d_marker_dialog=new RDMarkerDialog("RDCatch",d_cue_card,d_cue_port,this);
|
||||
|
||||
//
|
||||
// Mouse menu
|
||||
//
|
||||
@@ -68,12 +73,12 @@ void CatchTableView::editAudioMenuData()
|
||||
RecordListModel *mod=(RecordListModel *)model();
|
||||
QString cutname=mod->cutName(mod->index(d_mouse_row,0));
|
||||
RDCart *rdcart=new RDCart(RDCut::cartNumber(cutname));
|
||||
RDEditAudio *edit=
|
||||
new RDEditAudio(rdcart,cutname,d_cue_card,d_cue_port,1500,-400,this);
|
||||
if(edit->exec()!=-1) {
|
||||
|
||||
if(d_marker_dialog->
|
||||
exec(RDCut::cartNumber(cutname),RDCut::cutNumber(cutname))) {
|
||||
rdcart->updateLength();
|
||||
}
|
||||
delete edit;
|
||||
|
||||
delete rdcart;
|
||||
}
|
||||
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#include <QAction>
|
||||
#include <QMenu>
|
||||
|
||||
#include <rdmarkerdialog.h>
|
||||
#include <rdtableview.h>
|
||||
|
||||
class CatchTableView : public RDTableView
|
||||
@@ -48,6 +49,7 @@ class CatchTableView : public RDTableView
|
||||
int d_mouse_row;
|
||||
int d_cue_card;
|
||||
int d_cue_port;
|
||||
RDMarkerDialog *d_marker_dialog;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user