Rivendellaudio/rdlibrary/audio_cart.h
Fred Gleason c37731acad 2021-02-24 Fred Gleason <fredg@paravelsystems.com>
* Fixed various regression in rdlibrary(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
2021-02-24 21:02:30 -05:00

86 lines
2.2 KiB
C++

// audio_cart.h
//
// The audio cart editor for RDLibrary.
//
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
#ifndef AUDIO_CART_H
#define AUDIO_CART_H
#include <rdcart.h>
#include <rdcutlistmodel.h>
#include <rdtableview.h>
#include <rdwidget.h>
#include "audio_controls.h"
#include "globals.h"
extern bool import_active;
class AudioCart : public RDWidget
{
Q_OBJECT
public:
AudioCart(AudioControls *controls,RDCart *cart,QString *path,bool select_cut,
bool profile_rip,QWidget *parent=0);
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
RDCutListModel *cutListModel();
public slots:
void changeCutScheduling(int sched);
private slots:
void addCutData();
void deleteCutData();
void copyCutData();
void pasteCutData();
void editCutData();
void recordCutData();
void doubleClickedData(const QModelIndex &index);
void ripCutData();
void importCutData();
/**
* fork() a child process and start an external audio application to open a
* cut of audio.
**/
void extEditorCutData();
signals:
void cartDataChanged();
void audioChanged();
private:
QModelIndex SingleSelectedLine() const;
RDCart *rdcart_cart;
RDTableView *rdcart_cut_view;
RDCutListModel *rdcart_cut_model;
unsigned rdcart_average_length;
QString *rdcart_import_path;
bool rdcart_select_cut;
AudioControls *rdcart_controls;
QPushButton *paste_cut_button;
bool rdcart_modification_allowed;
bool rdcart_import_metadata;
bool rdcart_profile_rip;
bool rdcart_use_weighting;
};
#endif // AUDIO_CART_H