mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-13 08:05:55 +01:00
Initial import of CVS-v2_8_branch
This commit is contained in:
150
rdlibrary/disk_ripper.h
Normal file
150
rdlibrary/disk_ripper.h
Normal file
@@ -0,0 +1,150 @@
|
||||
// disk_ripper.h
|
||||
//
|
||||
// CD Ripper Dialog for Rivendell
|
||||
//
|
||||
// (C) Copyright 2002-2003 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: disk_ripper.h,v 1.8.4.2.2.3 2014/06/02 17:17:00 cvs Exp $
|
||||
//
|
||||
// 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 DISK_RIPPER_H
|
||||
#define DISK_RIPPER_H
|
||||
|
||||
#include <vector>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <qdialog.h>
|
||||
#include <qdir.h>
|
||||
#include <qlistview.h>
|
||||
#include <qlabel.h>
|
||||
#include <qlineedit.h>
|
||||
#include <qprogressbar.h>
|
||||
#include <qtimer.h>
|
||||
#include <qfile.h>
|
||||
#include <qspinbox.h>
|
||||
#include <qcombobox.h>
|
||||
#include <qcheckbox.h>
|
||||
#include <qtextedit.h>
|
||||
|
||||
#include <rdlistviewitem.h>
|
||||
#include <rdtransportbutton.h>
|
||||
#include <rdcdplayer.h>
|
||||
#include <rdcddbrecord.h>
|
||||
#include <rdcddblookup.h>
|
||||
#include <rdwavedata_dialog.h>
|
||||
|
||||
#include <rdlibrary_conf.h>
|
||||
#include <rd.h>
|
||||
|
||||
|
||||
class DiskRipper : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DiskRipper(QString *filter,QString *group,QString *schedcode,
|
||||
bool profile_rip,QWidget *parent=0,const char *name=0);
|
||||
~DiskRipper();
|
||||
QSize sizeHint() const;
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
private slots:
|
||||
void ejectButtonData();
|
||||
void playButtonData();
|
||||
void stopButtonData();
|
||||
void ripDiskButtonData();
|
||||
void ejectedData();
|
||||
void setCutButtonData();
|
||||
void setMultiButtonData();
|
||||
void setSingleButtonData();
|
||||
void modifyCartLabelData();
|
||||
void clearSelectionData();
|
||||
void mediaChangedData();
|
||||
void playedData(int);
|
||||
void stoppedData();
|
||||
void cddbDoneData(RDCddbLookup::Result);
|
||||
void normalizeCheckData(bool);
|
||||
void autotrimCheckData(bool);
|
||||
void selectionChangedData();
|
||||
void doubleClickedData(QListViewItem *item,const QPoint &pt,int col);
|
||||
void closeData();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
void closeEvent(QCloseEvent *e);
|
||||
|
||||
private:
|
||||
void FocusSelection(int cart_num);
|
||||
void RipTrack(int track,int end_track,QString cutname,QString title);
|
||||
void UpdateRipButton();
|
||||
QString BuildTrackName(int start_track,int end_track) const;
|
||||
RDCdPlayer *rip_cdrom;
|
||||
RDCddbRecord rip_cddb_record;
|
||||
RDCddbLookup *rip_cddb_lookup;
|
||||
QLabel *rip_track_label;
|
||||
QListView *rip_track_list;
|
||||
QPushButton *rip_rip_button;
|
||||
bool rip_rip_aborted;
|
||||
QPushButton *rip_close_button;
|
||||
QLineEdit *rip_album_edit;
|
||||
QLineEdit *rip_artist_edit;
|
||||
QTextEdit *rip_other_edit;
|
||||
QCheckBox *rip_apply_box;
|
||||
QLabel *rip_apply_label;
|
||||
RDTransportButton *rip_eject_button;
|
||||
RDTransportButton *rip_play_button;
|
||||
RDTransportButton *rip_stop_button;
|
||||
QPushButton *rip_setcut_button;
|
||||
QPushButton *rip_setall_button;
|
||||
QPushButton *rip_setsingle_button;
|
||||
QPushButton *rip_cartlabel_button;
|
||||
QPushButton *rip_clear_button;
|
||||
QString rip_cutname;
|
||||
QString rip_track;
|
||||
QString rip_title;
|
||||
QLabel *rip_diskbar_label;
|
||||
QProgressBar *rip_disk_bar;
|
||||
QLabel *rip_trackbar_label;
|
||||
QProgressBar *rip_track_bar;
|
||||
QCheckBox *rip_normalize_box;
|
||||
QSpinBox *rip_normalize_spin;
|
||||
QLabel *rip_normalize_label;
|
||||
QLabel *rip_normalize_unit;
|
||||
QLabel *rip_channels_label;
|
||||
QComboBox *rip_channels_box;
|
||||
int rip_track_number;
|
||||
QLabel *rip_autotrimbox_label;
|
||||
QLabel *rip_normalizebox_label;
|
||||
QCheckBox *rip_autotrim_box;
|
||||
QSpinBox *rip_autotrim_spin;
|
||||
QLabel *rip_autotrim_label;
|
||||
QLabel *rip_autotrim_unit;
|
||||
bool rip_done;
|
||||
QString *rip_filter_text;
|
||||
QString *rip_group_text;
|
||||
QString *rip_schedcode_text;
|
||||
std::vector<QString> rip_cutnames;
|
||||
std::vector<int> rip_end_track;
|
||||
std::vector<RDWaveData *> rip_wave_datas;
|
||||
bool rip_aborting;
|
||||
bool rip_profile_rip;
|
||||
QDir rip_cdda_dir;
|
||||
bool rip_isrc_read;
|
||||
RDWaveDataDialog *rip_wavedata_dialog;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user