mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +01:00
2021-01-19 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDLibraryModel::isCut() and 'RDLibraryModel::cutRow() methods. * Refactored 'RDCutDialog' to use the model-based API. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#include <qgroupbox.h>
|
||||
#include <qmessagebox.h>
|
||||
|
||||
#include <rdcut_dialog.h>
|
||||
#include <rdcut_path.h>
|
||||
#include <rdescape_string.h>
|
||||
#include <rdmatrix.h>
|
||||
@@ -59,6 +58,12 @@ EditRecording::EditRecording(int id,std::vector<int> *adds,QString *filter,
|
||||
//
|
||||
edit_recording=new RDRecording(id);
|
||||
|
||||
//
|
||||
// Dialogs
|
||||
//
|
||||
edit_cut_dialog=new RDCutDialog(edit_filter,&edit_group,&edit_schedcode,
|
||||
false,true,true,"RDCatch",this);
|
||||
|
||||
//
|
||||
// Active Button
|
||||
//
|
||||
@@ -560,6 +565,7 @@ EditRecording::EditRecording(int id,std::vector<int> *adds,QString *filter,
|
||||
|
||||
EditRecording::~EditRecording()
|
||||
{
|
||||
delete edit_cut_dialog;
|
||||
delete edit_station_box;
|
||||
if(edit_deck!=NULL) {
|
||||
delete edit_deck;
|
||||
@@ -685,16 +691,11 @@ void EditRecording::selectCutData()
|
||||
{
|
||||
QString str;
|
||||
|
||||
RDCutDialog *cut=
|
||||
new RDCutDialog(&edit_cutname,"RDCatch",edit_filter,NULL,NULL,false,true);
|
||||
switch(cut->exec()) {
|
||||
case 0:
|
||||
if(edit_cut_dialog->exec(&edit_cutname)) {
|
||||
edit_description_edit->setText(RDCutPath(edit_cutname));
|
||||
str=QString(tr("Cut"));
|
||||
edit_destination_edit->setText(tr("Cut")+" "+edit_cutname);
|
||||
break;
|
||||
}
|
||||
delete cut;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user