Initial import of CVS-v2_8_branch

This commit is contained in:
Fred Gleason
2014-08-12 15:13:02 -04:00
commit afd67c7af8
1508 changed files with 405304 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
## automake.am
##
## Automake.am for rivendell/utils/rddiscimport
##
## (C) Copyright 2002-2006 Fred Gleason <fredg@paravelsystems.com>
##
## $Id: Makefile.am,v 1.1.2.1 2013/12/03 23:34:35 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.
##
## Use automake to process this into a Makefile.in
AM_CPPFLAGS = -Wall -DPREFIX=\"$(prefix)\" -DQTDIR=\"@QT_DIR@\" @QT_CXXFLAGS@
INCLUDES = -I$(top_srcdir)/lib
LIBS = @QT_LIBS@ -L$(top_srcdir)/lib
MOC = @QT_MOC@
# The dependency for qt's Meta Object Compiler (moc)
moc_%.cpp: %.h
$(MOC) $< -o $@
# I18N Stuff
install-exec-local:
mkdir -p $(DESTDIR)$(prefix)/share/rivendell
cp rddiscimport_*.qm $(DESTDIR)$(prefix)/share/rivendell
uninstall:
rm -f $(DESTDIR)$(prefix)/share/rivendell/rddiscimport_*.qm
all:
@QT_BIN@/lupdate rddiscimport.pro
@QT_BIN@/lrelease rddiscimport.pro
bin_PROGRAMS = rddiscimport
dist_rddiscimport_SOURCES = metalibrary.cpp metalibrary.h\
metarecord.cpp metarecord.h\
rddiscimport.cpp rddiscimport.h
nodist_rddiscimport_SOURCES = moc_rddiscimport.cpp
rddiscimport_LDADD = @LIB_RDLIBS@ @LIBVORBIS@
EXTRA_DIST = rddiscimport.pro\
rddiscimport_de.ts\
rddiscimport_es.ts\
rddiscimport_fr.ts\
rddiscimport_nb.ts\
rddiscimport_nn.ts\
rddiscimport_pt_BR.ts
CLEANFILES = *~\
*.idb\
*ilk\
*.obj\
*.pdb\
*.qm\
moc_*
MAINTAINERCLEANFILES = *~\
Makefile.in\
moc_*

View File

@@ -0,0 +1,226 @@
// metalibrary.cpp
//
// Abstract a library of metadata.
//
// (C) Copyright 2013 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: metalibrary.cpp,v 1.1.2.3 2013/12/04 22:22:49 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.
//
#include <stdio.h>
#include <stdlib.h>
#include <rdconf.h>
#include <metalibrary.h>
MetaLibrary::MetaLibrary()
{
}
MetaLibrary::~MetaLibrary()
{
for(unsigned i=0;i<meta_tracks.size();i++) {
delete meta_tracks[i];
}
}
unsigned MetaLibrary::totalTracks()
{
return meta_tracks.size();
}
unsigned MetaLibrary::tracks(const QString &disc_id)
{
unsigned ret=0;
for(unsigned i=0;i<meta_tracks.size();i++) {
if(meta_tracks[i]->discId()==disc_id) {
ret++;
}
}
return ret;
}
MetaRecord *MetaLibrary::track(const QString &disc_id,int track_num)
{
for(unsigned i=0;i<meta_tracks.size();i++) {
if((meta_tracks[i]->discId()==disc_id)&&
(meta_tracks[i]->trackNumber()==track_num)){
return meta_tracks[i];
}
}
return NULL;
}
int MetaLibrary::load(const QString &filename)
{
FILE *f=NULL;
char line[32768];
QStringList f0;
//
// Open Source File
//
if((f=fopen(filename,"r"))==NULL) {
return -1;
}
//
// Load Headers
//
if(fgets(line,32768,f)==NULL) {
fclose(f);
return -1;
}
meta_headers=Split(",",QString(line).lower());
//
// Load Lines
//
while(fgets(line,1024,f)!=NULL) {
f0=Split(",",line);
if(f0.size()==meta_headers.size()) {
LoadLine(f0);
}
}
fclose(f);
return meta_tracks.size();
}
void MetaLibrary::clear()
{
for(unsigned i=0;i<meta_tracks.size();i++) {
delete meta_tracks[i];
}
meta_tracks.clear();
meta_headers.clear();
}
void MetaLibrary::LoadLine(const QStringList fields)
{
MetaRecord *m=new MetaRecord();
meta_tracks.push_back(m);
for(unsigned i=0;i<fields.size();i++) {
if(meta_headers[i]=="disc") {
m->setDiscId(fields[i]);
}
if(meta_headers[i]=="cut") {
m->setTrackNumber(fields[i].toInt()-1);
}
if(meta_headers[i]=="songid") {
m->setSongId(fields[i]);
}
if(meta_headers[i]=="year") {
m->setYear(fields[i].toInt());
}
if(meta_headers[i]=="bpm") {
m->setBeatsPerMinute(fields[i].toInt());
}
if(meta_headers[i]=="title") {
m->setTitle(fields[i]);
}
if(meta_headers[i]=="artist") {
m->setArtist(fields[i]);
}
if(meta_headers[i]=="version") {
m->setVersion(fields[i]);
}
if(meta_headers[i]=="album") {
m->setAlbum(fields[i]);
}
if(meta_headers[i]=="composer") {
m->setComposer(fields[i]);
}
if(meta_headers[i]=="publisher") {
m->setPublisher(fields[i]);
}
if(meta_headers[i]=="client") {
m->setClient(fields[i]);
}
if(meta_headers[i]=="agency") {
m->setAgency(fields[i]);
}
if(meta_headers[i]=="license") {
m->setLicense(fields[i]);
}
if(meta_headers[i]=="recordlabel") {
m->setLabel(fields[i]);
}
if(meta_headers[i]=="isrc") {
m->setIsrc(fields[i]);
}
if(meta_headers[i]=="ending") {
m->setEnding(fields[i]);
}
if(meta_headers[i]=="intro") {
m->setIntroLength(RDSetTimeLength(fields[i]));
}
if(meta_headers[i]=="length") {
m->setLength(RDSetTimeLength(fields[i]));
}
if(meta_headers[i]=="aux3") {
m->setSegueStart(RDSetTimeLength(fields[i]));
}
}
}
QStringList MetaLibrary::Split(const QString &sep,const QString &str)
{
QString buf;
QStringList ret;
bool quoted=false;
for(unsigned i=0;i<str.length();i++) {
switch(str[i]) {
case ',':
if(quoted) {
buf+=str[i];
}
else {
ret.push_back(buf);
buf="";
}
break;
case '"':
quoted=!quoted;
break;
case '\n':
case '\r':
break;
default:
buf+=str[i];
break;
}
}
ret.push_back(buf);
return ret;
}

View File

@@ -0,0 +1,52 @@
// metalibrary.h
//
// Abstract a library of metadata.
//
// (C) Copyright 2013 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: metalibrary.h,v 1.1.2.1 2013/12/03 23:34:35 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 METALIBRARY_H
#define METALIBRARY_H
#include <vector>
#include <qstring.h>
#include <qstringlist.h>
#include <metarecord.h>
class MetaLibrary
{
public:
MetaLibrary();
~MetaLibrary();
unsigned totalTracks();
unsigned tracks(const QString &disc_id);
MetaRecord *track(const QString &disc_id,int track_num);
int load(const QString &filename);
void clear();
private:
void LoadLine(const QStringList fields);
QStringList Split(const QString &sep,const QString &str);
std::vector<MetaRecord *> meta_tracks;
QStringList meta_headers;
};
#endif // METALIBRARY_H

View File

@@ -0,0 +1,337 @@
// metarecord.cpp
//
// Container class for metadata
//
// (C) Copyright 2013 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: metarecord.cpp,v 1.1.2.3 2013/12/04 22:22:49 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.
//
#include <metarecord.h>
MetaRecord::MetaRecord(const QString &disc_id,int track_num)
{
meta_disc_id=disc_id;
meta_track_number=track_num;
}
MetaRecord::MetaRecord()
{
meta_disc_id="";
meta_track_number=0;
}
QString MetaRecord::discId() const
{
return meta_disc_id;
}
void MetaRecord::setDiscId(const QString &disc_id)
{
meta_disc_id=disc_id;
}
int MetaRecord::trackNumber() const
{
return meta_track_number;
}
void MetaRecord::setTrackNumber(int track_num)
{
meta_track_number=track_num;
}
QString MetaRecord::songId() const
{
return meta_song_id;
}
void MetaRecord::setSongId(const QString &str)
{
meta_song_id=str;
}
QString MetaRecord::title() const
{
return meta_title;
}
void MetaRecord::setTitle(const QString &str)
{
meta_title=str;
}
QString MetaRecord::artist() const
{
return meta_artist;
}
void MetaRecord::setArtist(const QString &str)
{
meta_artist=str;
}
QString MetaRecord::version() const
{
return meta_version;
}
void MetaRecord::setVersion(const QString &str)
{
meta_version=str;
}
QString MetaRecord::ending() const
{
return meta_ending;
}
void MetaRecord::setEnding(const QString &str)
{
meta_ending=str;
}
int MetaRecord::introLength() const
{
return meta_intro_length;
}
void MetaRecord::setIntroLength(int msecs)
{
meta_intro_length=msecs;
}
int MetaRecord::length() const
{
return meta_length;
}
void MetaRecord::setLength(int msecs)
{
meta_length=msecs;
}
int MetaRecord::year() const
{
return meta_year;
}
void MetaRecord::setYear(int year)
{
meta_year=year;
}
QString MetaRecord::album() const
{
return meta_album;
}
void MetaRecord::setAlbum(const QString &str)
{
meta_album=str;
}
QString MetaRecord::composer() const
{
return meta_composer;
}
void MetaRecord::setComposer(const QString &str)
{
meta_composer=str;
}
QString MetaRecord::publisher() const
{
return meta_publisher;
}
void MetaRecord::setPublisher(const QString &str)
{
meta_publisher=str;
}
QString MetaRecord::license() const
{
return meta_license;
}
void MetaRecord::setLicense(const QString &str)
{
meta_license=str;
}
QString MetaRecord::label() const
{
return meta_label;
}
void MetaRecord::setLabel(const QString &str)
{
meta_label=str;
}
QString MetaRecord::client() const
{
return meta_client;
}
void MetaRecord::setClient(const QString &str)
{
meta_client=str;
}
QString MetaRecord::agency() const
{
return meta_agency;
}
void MetaRecord::setAgency(const QString &str)
{
meta_agency=str;
}
QString MetaRecord::isrc() const
{
return meta_isrc;
}
void MetaRecord::setIsrc(const QString &str)
{
meta_isrc=str;
}
int MetaRecord::beatsPerMinute() const
{
return meta_beats_per_minute;
}
void MetaRecord::setBeatsPerMinute(int bpm)
{
meta_beats_per_minute=bpm;
}
int MetaRecord::segueStart() const
{
return meta_segue_start;
}
void MetaRecord::setSegueStart(int msec)
{
meta_segue_start=msec;
}
int MetaRecord::segueEnd() const
{
return meta_segue_end;
}
void MetaRecord::setSegueEnd(int msec)
{
meta_segue_end=msec;
}
void MetaRecord::getMetadata(RDWaveData *data,int track_len)
{
data->setTitle(meta_title);
data->setArtist(meta_artist);
data->setReleaseYear(meta_year);
data->setAlbum(meta_album);
data->setLabel(meta_label);
data->setComposer(meta_composer);
data->setPublisher(meta_publisher);
data->setIsrc(meta_isrc);
data->setLicensingOrganization(meta_license);
data->setIntroStartPos(0);
data->setIntroEndPos(meta_intro_length);
if(meta_segue_start>=0) {
data->setSegueStartPos(meta_segue_start);
data->setSegueEndPos(track_len);
}
data->setTmciSongId(meta_song_id);
data->setBeatsPerMinute(meta_beats_per_minute);
if(!meta_ending.isEmpty()) {
data->setEndType((RDWaveData::EndType)((const char *)meta_ending)[0]);
}
}
void MetaRecord::clear()
{
meta_song_id="";
meta_title="";
meta_artist="";
meta_version="";
meta_ending="";
meta_intro_length=0;
meta_length=-1;
meta_year=0;
meta_album="";
meta_composer="";
meta_publisher="";
meta_license="";
meta_label="";
meta_client="";
meta_agency="";
meta_isrc="";
meta_beats_per_minute=0;
meta_segue_start=-1;
meta_segue_end=-1;
}

View File

@@ -0,0 +1,105 @@
// metarecord.h
//
// Container class for metadata
//
// (C) Copyright 2013 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: metarecord.h,v 1.1.2.3 2013/12/04 22:22:49 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 METARECORD_H
#define METARECORD_H
#include <qstring.h>
#include <rdwavedata.h>
class MetaRecord
{
public:
MetaRecord(const QString &disc_id,int track_num);
MetaRecord();
QString discId() const;
void setDiscId(const QString &disc_id);
int trackNumber() const;
void setTrackNumber(int track_num);
QString songId() const;
void setSongId(const QString &str);
QString title() const;
void setTitle(const QString &str);
QString artist() const;
void setArtist(const QString &str);
QString version() const;
void setVersion(const QString &str);
QString ending() const;
void setEnding(const QString &str);
int introLength() const;
void setIntroLength(int msecs);
int length() const;
void setLength(int msecs);
int year() const;
void setYear(int year);
QString album() const;
void setAlbum(const QString &str);
QString composer() const;
void setComposer(const QString &str);
QString publisher() const;
void setPublisher(const QString &str);
QString license() const;
void setLicense(const QString &str);
QString label() const;
void setLabel(const QString &str);
QString client() const;
void setClient(const QString &str);
QString agency() const;
void setAgency(const QString &str);
QString isrc() const;
void setIsrc(const QString &str);
int beatsPerMinute() const;
void setBeatsPerMinute(int bpm);
int segueStart() const;
void setSegueStart(int msec);
int segueEnd() const;
void setSegueEnd(int msec);
void getMetadata(RDWaveData *data,int track_len);
void clear();
private:
QString meta_disc_id;
int meta_track_number;
QString meta_song_id;
QString meta_title;
QString meta_artist;
QString meta_version;
QString meta_ending;
int meta_intro_length;
int meta_length;
int meta_year;
QString meta_album;
QString meta_composer;
QString meta_license;
QString meta_publisher;
QString meta_label;
QString meta_client;
QString meta_agency;
QString meta_isrc;
int meta_beats_per_minute;
int meta_segue_start;
int meta_segue_end;
};
#endif // METARECORD_H

View File

@@ -0,0 +1,761 @@
// rddiscimport.cpp
//
// A Qt-based application for importing TM Century GoldDisc CDs
//
// (C) Copyright 2013 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: rddiscimport.cpp,v 1.1.2.10 2014/01/21 21:59:33 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.
//
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <qapplication.h>
#include <qwindowsstyle.h>
#include <qtextcodec.h>
#include <qfiledialog.h>
#include <qmessagebox.h>
#include <qstringlist.h>
#include <qfiledialog.h>
#include <rdescape_string.h>
#include <rdcmd_switch.h>
#include <rdconf.h>
#include <rddatedialog.h>
#include <rdgroup.h>
#include <rdcart.h>
#include <rdcut.h>
#include <rdaudioimport.h>
#include <rddatedecode.h>
#include <rdlistviewitem.h>
#include <rdprofile.h>
#include <rdcart.h>
#include <rdcut.h>
#include <rdwavedata.h>
#include <rdsystem.h>
#include <rddiscimport.h>
MainWidget::MainWidget(QWidget *parent,const char *name)
: QWidget(parent,name)
{
dg_user=NULL;
dg_group=NULL;
//
// Read Command Options
//
RDCmdSwitch *cmd=
new RDCmdSwitch(qApp->argc(),qApp->argv(),"RDDiscImport","\n");
delete cmd;
//
// Set Window Size
//
setMinimumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
SetCaption();
//
// Load Local Configs
//
dg_config=new RDConfig();
dg_config->load();
//
// Get Temporary File
//
dg_tempfile=RDTempFile();
//
// Open Database
//
dg_db=QSqlDatabase::addDatabase(dg_config->mysqlDriver());
if(!dg_db) {
QMessageBox::warning(this,tr("Database Error"),
tr("Can't Connect","Unable to connect to mySQL Server!"));
exit(0);
}
dg_db->setDatabaseName(dg_config->mysqlDbname());
dg_db->setUserName(dg_config->mysqlUsername());
dg_db->setPassword(dg_config->mysqlPassword());
dg_db->setHostName(dg_config->mysqlHostname());
if(!dg_db->open()) {
QMessageBox::warning(this,tr("Can't Connect"),
tr("Unable to connect to mySQL Server!"));
dg_db->removeDatabase(dg_config->mysqlDbname());
exit(0);
}
//
// Fonts
//
QFont main_font("helvetica",12,QFont::Normal);
main_font.setPixelSize(12);
setFont(main_font);
QFont label_font("helvetica",12,QFont::Bold);
label_font.setPixelSize(12);
setFont(main_font);
//
// Configuration Elements
//
dg_system=new RDSystem();
dg_station=new RDStation(dg_config->stationName(),this);
dg_library_conf=new RDLibraryConf(dg_config->stationName(),0);
dg_ripc=new RDRipc(dg_config->stationName(),this);
connect(dg_ripc,SIGNAL(userChanged()),this,SLOT(userChangedData()));
dg_ripc->connectHost("localhost",RIPCD_TCP_PORT,dg_config->password());
//
// Metadata Index Library
//
dg_metalibrary=new MetaLibrary();
//
// CD Player
//
dg_player=new RDCdPlayer(NULL,this);
connect(dg_player,SIGNAL(mediaChanged()),this,SLOT(mediaChangedData()));
connect(dg_player,SIGNAL(ejected()),this,SLOT(ejectData()));
dg_player->setDevice(dg_library_conf->ripperDevice());
dg_ripper=new RDCdRipper(NULL,this);
dg_ripper->setDevice(dg_library_conf->ripperDevice());
dg_ripper->setDestinationFile(dg_tempfile);
dg_importer=new RDAudioImport(dg_station,dg_config,this);
dg_importer->setSourceFile(dg_tempfile);
dg_importer->setUseMetadata(false);
//
// Index File
//
dg_indexfile_edit=new QLineEdit(this);
dg_indexfile_label=new QLabel(dg_indexfile_edit,tr("Index File")+":",this);
dg_indexfile_label->setFont(label_font);
dg_indexfile_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
dg_indexfile_button=new QPushButton(tr("Select"),this);
dg_indexfile_button->setFont(main_font);
connect(dg_indexfile_button,SIGNAL(clicked()),
this,SLOT(indexFileSelectedData()));
//
// Group List
//
dg_group_box=new QComboBox(this);
dg_group_label=new QLabel(dg_group_box,tr("Destination Group")+":",this);
dg_group_label->setFont(label_font);
dg_group_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
connect(dg_group_box,SIGNAL(activated(int)),
this,SLOT(groupActivatedData(int)));
//
// User Defined Field
//
dg_userdef_edit=new QLineEdit(this);
dg_userdef_label=new QLabel(dg_userdef_edit,tr("User Defined")+":",this);
dg_userdef_label->setFont(label_font);
dg_userdef_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
//
// Track List
//
dg_track_list=new RDListView(this);
//db_track_list->setFont(default_font);
dg_track_list->setAllColumnsShowFocus(true);
dg_track_list->setItemMargin(5);
dg_track_list->setSelectionMode(QListView::Single);
dg_track_list->setSortColumn(-1);
connect(dg_track_list,
SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
this,
SLOT(trackDoubleClickedData(QListViewItem *,const QPoint &,int)));
dg_track_list->addColumn("#");
dg_track_list->setColumnAlignment(0,Qt::AlignHCenter);
dg_track_list->addColumn(tr("Title"));
dg_track_list->setColumnAlignment(1,Qt::AlignLeft);
dg_track_list->addColumn(tr("Artist"));
dg_track_list->setColumnAlignment(2,Qt::AlignLeft);
dg_track_list->addColumn(tr("Length"));
dg_track_list->setColumnAlignment(3,Qt::AlignRight);
//
// Progress Bars
//
dg_disc_label=new QLabel(tr("Disk Progress"),this);
dg_disc_label->setFont(label_font);
dg_disc_label->setDisabled(true);
dg_disc_bar=new QProgressBar(this);
dg_disc_bar->setDisabled(true);
dg_track_label=new QLabel(tr("Track Progress"),this);
dg_track_label->setFont(label_font);
dg_track_label->setDisabled(true);
dg_track_bar=new QProgressBar(this);
dg_track_bar->setTotalSteps(dg_ripper->totalSteps()+1);
dg_track_bar->setDisabled(true);
connect(dg_ripper,SIGNAL(progressChanged(int)),
dg_track_bar,SLOT(setProgress(int)));
//
// Disc ID
//
dg_discid_edit=new QLineEdit(this);
dg_discid_label=new QLabel(dg_discid_edit,tr("Disc ID")+":",this);
dg_discid_label->setFont(label_font);
dg_discid_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
connect(dg_discid_edit,SIGNAL(textChanged(const QString &)),
this,SLOT(discIdChangedData(const QString &)));
//
// Rip Button
//
dg_rip_button=new QPushButton(tr("Rip Disc"),this);
dg_rip_button->setFont(label_font);
connect(dg_rip_button,SIGNAL(clicked()),this,SLOT(ripData()));
//
// Channels
//
dg_channels_box=new QComboBox(this);
dg_channels_box->insertItem("1");
dg_channels_box->insertItem("2");
dg_channels_box->setCurrentItem(dg_library_conf->defaultChannels()-1);
dg_channels_label=new QLabel(dg_channels_box,tr("Channels")+":",this);
dg_channels_label->setFont(label_font);
dg_channels_label->setAlignment(AlignRight|AlignVCenter);
//
// Autotrim Check Box
//
dg_autotrim_box=new QCheckBox(tr("Autotrim"),this);
dg_autotrim_box->setChecked(true);
dg_autotrim_box->setFont(label_font);
dg_autotrim_box->setChecked(dg_library_conf->trimThreshold()!=0);
connect(dg_autotrim_box,SIGNAL(toggled(bool)),
this,SLOT(autotrimCheckData(bool)));
//
// Autotrim Level
//
dg_autotrim_spin=new QSpinBox(this);
dg_autotrim_spin->setRange(-99,0);
dg_autotrim_spin->setValue(dg_library_conf->trimThreshold()/100);
dg_autotrim_label=new QLabel(dg_autotrim_spin,tr("Level")+":",this);
dg_autotrim_label->setFont(label_font);
dg_autotrim_label->setAlignment(AlignRight|AlignVCenter);
dg_autotrim_unit=new QLabel(tr("dBFS"),this);
dg_autotrim_unit->setFont(label_font);
dg_autotrim_unit->setAlignment(AlignLeft|AlignVCenter);
//
// Normalize Check Box
//
dg_normalize_box=new QCheckBox(tr("Normalize"),this);
dg_normalize_box->setChecked(true);
dg_normalize_box->setFont(label_font);
dg_normalize_box->setChecked(dg_library_conf->ripperLevel()!=0);
connect(dg_normalize_box,SIGNAL(toggled(bool)),
this,SLOT(normalizeCheckData(bool)));
//
// Normalize Level
//
dg_normalize_spin=new QSpinBox(this);
dg_normalize_spin->setRange(-30,0);
dg_normalize_spin->setValue(dg_library_conf->ripperLevel()/100);
dg_normalize_label=new QLabel(dg_normalize_spin,tr("Level:"),this);
dg_normalize_label->setFont(label_font);
dg_normalize_label->setAlignment(AlignRight|AlignVCenter);
dg_normalize_unit=new QLabel(tr("dBFS"),this);
dg_normalize_unit->setFont(label_font);
dg_normalize_unit->setAlignment(AlignLeft|AlignVCenter);
//
// Eject Button
//
dg_eject_button=new RDTransportButton(RDTransportButton::Eject,this,"");
connect(dg_eject_button,SIGNAL(clicked()),dg_player,SLOT(eject()));
//
// Close Button
//
dg_close_button=new QPushButton(tr("Close"),this);
dg_close_button->setFont(label_font);
connect(dg_close_button,SIGNAL(clicked()),this,SLOT(quitMainWidget()));
LoadConfig();
dg_group=new RDGroup(dg_group_name);
if(!dg_player->open()) {
QMessageBox::warning(this,"RDDiscImport - "+tr("Ripper Error"),
tr("Unable to open CD-ROM device at")+" "+
" \""+dg_library_conf->ripperDevice()+"\".");
exit(256);
}
if(dg_metalibrary->load(dg_indexfile_edit->text())&&
(!dg_indexfile_edit->text().isEmpty())<0) {
QMessageBox::warning(this,"RDDiscImport - "+tr("Read Error"),
tr("Unable to read index file!"));
return;
}
}
QSize MainWidget::sizeHint() const
{
return QSize(700,700);
}
void MainWidget::indexFileSelectedData()
{
QString filename;
int lines;
filename=QFileDialog::getOpenFileName(dg_indexfile_edit->text(),
"CSV Files *.csv",this,"",
tr("RDDiscImport - Open Index File"));
dg_metalibrary->clear();
if((lines=dg_metalibrary->load(filename))<0) {
QMessageBox::warning(this,"RDDiscImport - "+tr("Read Error"),
tr("Unable to read index file!"));
return;
}
else {
dg_indexfile_edit->setText(filename);
QMessageBox::information(this,"RDDiscImport - "+tr("File Read"),
tr("Loaded")+QString().sprintf(" %d ",lines)+
tr("records."));
}
SaveConfig();
}
void MainWidget::groupActivatedData(int)
{
if(dg_group!=NULL) {
delete dg_group;
}
dg_group=new RDGroup(dg_group_box->currentText());
SaveConfig();
}
void MainWidget::autotrimCheckData(bool state)
{
dg_autotrim_spin->setEnabled(state);
dg_autotrim_label->setEnabled(state);
dg_autotrim_unit->setEnabled(state);
}
void MainWidget::trackDoubleClickedData(QListViewItem *it,const QPoint &pt,
int row)
{
RDListViewItem *item=(RDListViewItem *)it;
if(item->id()) {
item->setTextColor(Qt::gray);
item->setId(false);
dg_rip_enableds[item->text(0).toInt()-1]=false;
}
else {
item->setTextColor(Qt::black);
item->setId(true);
dg_rip_enableds[item->text(0).toInt()-1]=true;
}
}
void MainWidget::normalizeCheckData(bool state)
{
dg_normalize_spin->setEnabled(state);
dg_normalize_label->setEnabled(state);
dg_normalize_unit->setEnabled(state);
}
void MainWidget::mediaChangedData()
{
dg_rip_enableds.clear();
dg_track_list->clear();
for(int i=(dg_player->tracks()-1);i>=0;i--) {
dg_rip_enableds.push_back(false);
RDListViewItem *item=new RDListViewItem(dg_track_list);
item->setId(false);
item->setTextColor(Qt::gray);
item->setText(0,QString().sprintf("%d",i+1));
item->setText(1,tr("Track")+QString().sprintf(" %d",i+1));
item->setText(3,RDGetTimeLength(dg_player->trackLength(i+1),false,false));
}
dg_discid_label->setDisabled(dg_player->tracks()==0);
dg_discid_edit->setDisabled(dg_player->tracks()==0);
}
void MainWidget::discIdChangedData(const QString &str)
{
MetaRecord *meta=NULL;
RDListViewItem *item=NULL;
bool matched=false;
item=(RDListViewItem *)dg_track_list->firstChild();
while(item!=NULL) {
if((meta=dg_metalibrary->track(str,item->text(0).toInt()-1))==NULL) {
item->setText(1,tr("Track")+
QString().sprintf(" %d",item->text(0).toInt()));
item->setText(2,"");
item->setTextColor(Qt::gray);
item->setId(false);
dg_rip_enableds[item->text(0).toInt()-1]=false;
}
else {
item->setText(1,meta->title());
item->setText(2,meta->artist());
item->setTextColor(Qt::black);
item->setId(true);
dg_rip_enableds[item->text(0).toInt()-1]=true;
matched=true;
}
item=(RDListViewItem *)item->nextSibling();
}
dg_rip_button->setEnabled(matched);
}
void MainWidget::ripData()
{
RDCart *cart=NULL;
RDCut *cut=NULL;
RDWaveData *data=NULL;
unsigned cartnum;
RDAudioImport::ErrorCode import_err;
RDAudioConvert::ErrorCode conv_err;
//
// Sanity Checks
//
if(dg_group->freeCartQuantity()<dg_player->tracks()) {
QMessageBox::warning(this,"RDDiscImport - "+tr("Ripper Error"),
tr("There are insufficient free cart numbers available in the")+
"\""+dg_group->name()+"\" "+tr("group")+"!");
return;
}
//
// Lock Down the GUI
//
LockGui(false);
//
// Load Importer Settings
//
RDSettings *s=new RDSettings();
if(dg_library_conf->defaultFormat()==1) {
s->setFormat(RDSettings::MpegL2Wav);
}
else {
s->setFormat(RDSettings::Pcm16);
}
s->setChannels(dg_channels_box->currentItem()+1);
s->setSampleRate(dg_system->sampleRate());
s->setBitRate(dg_library_conf->defaultBitrate());
if(dg_normalize_box->isChecked()) {
s->setNormalizationLevel(dg_normalize_spin->value());
}
if(dg_autotrim_box->isChecked()) {
s->setAutotrimLevel(dg_autotrim_spin->value());
}
dg_importer->setDestinationSettings(s);
//
// Rip and Import
//
dg_disc_bar->setTotalSteps(dg_player->tracks());
for(int i=0;i<dg_player->tracks();i++) {
if(dg_rip_enableds[i]) {
MetaRecord *r=dg_metalibrary->track(dg_discid_edit->text(),i);
if(r!=NULL) {
dg_disc_bar->setProgress(i);
dg_track_label->setText(QString().sprintf("Track %d: ",i+1)+
r->title()+" - "+r->artist());
dg_ripper->rip(i);
if((cartnum=dg_group->nextFreeCart())>0) {
cart=new RDCart(cartnum);
cart->create(dg_group->name(),RDCart::Audio);
cart->addCut(dg_library_conf->defaultFormat(),
dg_library_conf->defaultBitrate(),
dg_channels_box->currentItem()+1,"",r->discId());
cut=new RDCut(cartnum,1);
dg_importer->setCartNumber(cartnum);
dg_importer->setCutNumber(1);
if((import_err=dg_importer->
runImport(dg_user->name(),dg_user->password(),&conv_err))==
RDAudioImport::ErrorOk) {
data=new RDWaveData();
r->getMetadata(data,dg_player->trackLength(i+1));
if(!dg_autotrim_box->isChecked()) {
data->setStartPos(0);
data->setEndPos(dg_player->trackLength(i+1));
}
data->setUserDefined(dg_userdef_edit->text().
replace("%d",dg_discid_edit->text()).
replace("%t",QString().sprintf("%d",i+1)));
cart->setMetadata(data);
cut->setMetadata(data);
delete data;
}
else {
QMessageBox::warning(this,"RDDiscImport - "+tr("Import Error"),
tr("Unable to import track audio!")+"\n"+
"["+
RDAudioImport::errorText(import_err,conv_err)+
"].");
return;
}
delete cut;
delete cart;
}
}
}
}
delete s;
//
// Reset Progress Bars
//
dg_disc_bar->reset();
dg_track_bar->reset();
//
// Unlock the GUI
//
LockGui(true);
dg_player->eject();
qApp->processEvents();
QMessageBox::information(this,"RDDiscImport - "+tr("Ripper Status"),
tr("Rip Complete!"));
}
void MainWidget::ejectData()
{
dg_track_list->clear();
dg_discid_label->setDisabled(true);
dg_discid_edit->setDisabled(true);
dg_discid_edit->clear();
dg_rip_button->setDisabled(true);
}
void MainWidget::userChangedData()
{
QStringList groups;
if(dg_user!=NULL) {
delete dg_user;
}
dg_group_box->clear();
dg_user=new RDUser(dg_ripc->user());
groups=dg_user->groups();
for(unsigned i=0;i<groups.size();i++) {
dg_group_box->insertItem(groups[i]);
if(dg_group_name==groups[i]) {
dg_group_box->setCurrentItem(i);
}
}
SetCaption();
}
void MainWidget::quitMainWidget()
{
if(dg_close_button->isEnabled()) {
SaveConfig();
unlink(dg_tempfile);
qApp->quit();
}
}
void MainWidget::resizeEvent(QResizeEvent *e)
{
dg_indexfile_label->setGeometry(10,10,115,20);
dg_indexfile_edit->setGeometry(130,10,size().width()-220,20);
dg_indexfile_button->setGeometry(size().width()-70,7,60,26);
dg_group_label->setGeometry(10,40,115,20);
dg_group_box->setGeometry(130,40,200,20);
dg_userdef_label->setGeometry(350,40,95,20);
dg_userdef_edit->setGeometry(450,40,size().width()-460,20);
dg_track_list->setGeometry(10,72,size().width()-20,size().height()-232);
dg_disc_label->setGeometry(15,size().height()-157,size().width()-20,20);
dg_disc_bar->setGeometry(10,size().height()-140,size().width()-20,20);
dg_track_label->setGeometry(15,size().height()-117,size().width()-20,20);
dg_track_bar->setGeometry(10,size().height()-100,size().width()-20,20);
dg_discid_label->setGeometry(10,size().height()-70,60,20);
dg_discid_edit->setGeometry(75,size().height()-70,60,20);
dg_rip_button->setGeometry(10,size().height()-43,130,30);
dg_channels_box->setGeometry(340,size().height()-75,50,20);
dg_channels_label->setGeometry(250,size().height()-75,75,20);
dg_autotrim_box->setGeometry(200,size().height()-48,80,15);
dg_autotrim_spin->setGeometry(340,size().height()-50,40,20);
dg_autotrim_label->setGeometry(290,size().height()-50,45,20);
dg_autotrim_unit->setGeometry(385,size().height()-50,40,20);
dg_normalize_box->setGeometry(200,size().height()-21,113,15);
dg_normalize_spin->setGeometry(340,size().height()-23,40,20);
dg_normalize_label->setGeometry(290,size().height()-23,45,20);
dg_normalize_unit->setGeometry(385,size().height()-23,40,20);
dg_eject_button->setGeometry(size().width()-200,size().height()-60,80,50);
dg_close_button->setGeometry(size().width()-90,size().height()-60,80,50);
}
void MainWidget::LockGui(bool state)
{
dg_indexfile_edit->setEnabled(state);
dg_indexfile_button->setEnabled(state);
dg_group_box->setEnabled(state);
dg_disc_label->setDisabled(state);
dg_disc_bar->setDisabled(state);
dg_track_label->setDisabled(state);
dg_track_bar->setDisabled(state);
dg_discid_edit->setEnabled(state);
dg_eject_button->setEnabled(state);
dg_channels_box->setEnabled(state);
if(state) {
dg_autotrim_box->setEnabled(true);
if(dg_autotrim_box->isChecked()) {
dg_autotrim_spin->setEnabled(true);
}
dg_normalize_box->setEnabled(true);
if(dg_normalize_box->isChecked()) {
dg_normalize_spin->setDisabled(true);
}
}
else {
dg_autotrim_box->setDisabled(true);
dg_autotrim_spin->setDisabled(true);
dg_normalize_box->setDisabled(true);
dg_normalize_spin->setDisabled(true);
}
dg_rip_button->setEnabled(state);
dg_close_button->setEnabled(state);
}
void MainWidget::SetCaption()
{
QString username=tr("[unknown]");
if(dg_user!=NULL) {
username=dg_user->name();
}
setCaption(tr("RDDiscImport")+" v"+VERSION+" "+tr("User")+": "+username);
}
void MainWidget::LoadConfig()
{
RDProfile *p=new RDProfile();
p->setSource(RDHomeDir()+"/.rddiscimportrc");
dg_indexfile_edit->setText(p->stringValue("RDDiscImport","IndexFile"));
dg_group_name=p->stringValue("RDDiscImport","Group");
dg_userdef_edit->setText(p->stringValue("RDDiscImport","UserDefTemplate",
"Ripped from disc %d track %t"));
delete p;
}
void MainWidget::SaveConfig()
{
FILE *f=NULL;
if((f=fopen(RDHomeDir()+"/.rddiscimportrc","w"))==NULL) {
return;
}
fprintf(f,"[RDDiscImport]\n");
fprintf(f,"IndexFile=%s\n",(const char *)dg_indexfile_edit->text());
fprintf(f,"Group=%s\n",(const char *)dg_group_box->currentText());
fprintf(f,"UserDefTemplate=%s\n",(const char *)dg_userdef_edit->text());
dg_group_name=dg_group_box->currentText();
fclose(f);
}
int main(int argc,char *argv[])
{
QApplication a(argc,argv);
//
// Load Translations
//
QTranslator qt(0);
qt.load(QString(QTDIR)+QString("/translations/qt_")+QTextCodec::locale(),
".");
a.installTranslator(&qt);
QTranslator rd(0);
rd.load(QString(PREFIX)+QString("/share/rivendell/librd_")+
QTextCodec::locale(),".");
a.installTranslator(&rd);
QTranslator rdhpi(0);
rdhpi.load(QString(PREFIX)+QString("/share/rivendell/librdhpi_")+
QTextCodec::locale(),".");
a.installTranslator(&rdhpi);
QTranslator tr(0);
tr.load(QString(PREFIX)+QString("/share/rivendell/rddiscimport_")+
QTextCodec::locale(),".");
a.installTranslator(&tr);
//
// Start Event Loop
//
MainWidget *w=new MainWidget(NULL,"main");
a.setMainWidget(w);
w->setGeometry(QRect(QPoint(0,0),w->sizeHint()));
w->show();
return a.exec();
}

View File

@@ -0,0 +1,131 @@
// rddiscimport.h
//
// A Qt-based application for importing TM Century GoldDisc CDs
//
// (C) Copyright 2013 Fred Gleason <fredg@paravelsystems.com>
//
// $Id: rddiscimport.h,v 1.1.2.4 2013/12/04 22:15:21 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 RDDISCIMPORT_H
#define RDDISCIMPORT_H
#include <vector>
#include <map>
#include <qcheckbox.h>
#include <qwidget.h>
#include <qsize.h>
#include <qsizepolicy.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qspinbox.h>
#include <qprogressbar.h>
#include <rdcdplayer.h>
#include <rdcdripper.h>
#include <rdaudioimport.h>
#include <rdconfig.h>
#include <rddb.h>
#include <rdgroup.h>
#include <rdlistview.h>
#include <rdlibrary_conf.h>
#include <rdsystem.h>
#include <rdstation.h>
#include <rduser.h>
#include <rdripc.h>
#include <rdtransportbutton.h>
#include <metalibrary.h>
#define RDDISCIMPORT_USAGE "\n"
class MainWidget : public QWidget
{
Q_OBJECT
public:
MainWidget(QWidget *parent=0,const char *name=0);
QSize sizeHint() const;
private slots:
void indexFileSelectedData();
void groupActivatedData(int);
void autotrimCheckData(bool state);
void trackDoubleClickedData(QListViewItem *item,const QPoint &pt,int row);
void ripData();
void normalizeCheckData(bool state);
void mediaChangedData();
void discIdChangedData(const QString &str);
void ejectData();
void userChangedData();
void quitMainWidget();
protected:
void resizeEvent(QResizeEvent *e);
private:
void LockGui(bool state);
void SetCaption();
void LoadConfig();
void SaveConfig();
QLabel *dg_indexfile_label;
QLineEdit *dg_indexfile_edit;
QPushButton *dg_indexfile_button;
QLabel *dg_group_label;
QComboBox *dg_group_box;
QLabel *dg_userdef_label;
QLineEdit *dg_userdef_edit;
RDListView *dg_track_list;
QLabel *dg_disc_label;
QProgressBar *dg_disc_bar;
QLabel *dg_track_label;
QProgressBar *dg_track_bar;
QLabel *dg_discid_label;
QLineEdit *dg_discid_edit;
QPushButton *dg_rip_button;
QLabel *dg_channels_label;
QComboBox *dg_channels_box;
QLabel *dg_autotrim_label;
QCheckBox *dg_autotrim_box;
QSpinBox *dg_autotrim_spin;
QLabel *dg_autotrim_unit;
QLabel *dg_normalize_label;
QCheckBox *dg_normalize_box;
QSpinBox *dg_normalize_spin;
QLabel *dg_normalize_unit;
RDTransportButton *dg_eject_button;
QPushButton *dg_close_button;
MetaLibrary *dg_metalibrary;
RDCdPlayer *dg_player;
RDCdRipper *dg_ripper;
RDAudioImport *dg_importer;
RDGroup *dg_group;
RDRipc *dg_ripc;
RDUser *dg_user;
RDSystem *dg_system;
RDStation *dg_station;
RDLibraryConf *dg_library_conf;
QSqlDatabase *dg_db;
RDConfig *dg_config;
QString dg_group_name;
QString dg_tempfile;
std::vector<bool> dg_rip_enableds;
};
#endif // RDDISCIMPORT_H

View File

@@ -0,0 +1,35 @@
# utils.pro
#
# The utils/ QMake project file for Rivendell
#
# (C) Copyright 2003-2006 Fred Gleason <fredg@paravelsystems.com>
#
# $Id: rddiscimport.pro,v 1.1.2.2 2013/12/04 18:06:36 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.
SOURCES += metalibrary.cpp
SOURCES += metarecord.cpp
SOURCES += rddiscimport.cpp
HEADERS += metalibrary.h
HEADERS += metarecord.h
HEADERS += rddiscimport.h
TRANSLATIONS += rddiscimport_de.ts
TRANSLATIONS += rddiscimport_es.ts
TRANSLATIONS += rddiscimport_fr.ts
TRANSLATIONS += rddiscimport_nb.ts
TRANSLATIONS += rddiscimport_nn.ts
TRANSLATIONS += rddiscimport_pt_BR.ts

View File

@@ -0,0 +1,166 @@
<!DOCTYPE TS><TS>
<context>
<name>MainWidget</name>
<message>
<source>Database Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<comment>Unable to connect to mySQL Server!</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to connect to mySQL Server!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Destination Group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Artist</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disk Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disc ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Channels</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Autotrim</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dBFS</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Normalize</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Read Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to read index file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>There are insufficient free cart numbers available in the</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Status</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Complete!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport - Open Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>File Read</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>records.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>[unknown]</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to import track audio!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Length</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Defined</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to open CD-ROM device at</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,166 @@
<!DOCTYPE TS><TS>
<context>
<name>MainWidget</name>
<message>
<source>Database Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<comment>Unable to connect to mySQL Server!</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to connect to mySQL Server!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Destination Group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Artist</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disk Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disc ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Channels</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Autotrim</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dBFS</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Normalize</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Read Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to read index file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>There are insufficient free cart numbers available in the</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Status</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Complete!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport - Open Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>File Read</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>records.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>[unknown]</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to import track audio!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Length</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Defined</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to open CD-ROM device at</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,166 @@
<!DOCTYPE TS><TS>
<context>
<name>MainWidget</name>
<message>
<source>Database Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<comment>Unable to connect to mySQL Server!</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to connect to mySQL Server!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Destination Group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Artist</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disk Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disc ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Channels</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Autotrim</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dBFS</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Normalize</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Read Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to read index file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>There are insufficient free cart numbers available in the</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Status</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Complete!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport - Open Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>File Read</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>records.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>[unknown]</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to import track audio!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Length</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Defined</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to open CD-ROM device at</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,166 @@
<!DOCTYPE TS><TS>
<context>
<name>MainWidget</name>
<message>
<source>Database Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<comment>Unable to connect to mySQL Server!</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to connect to mySQL Server!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Destination Group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Artist</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disk Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disc ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Channels</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Autotrim</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dBFS</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Normalize</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Read Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to read index file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>There are insufficient free cart numbers available in the</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Status</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Complete!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport - Open Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>File Read</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>records.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>[unknown]</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to import track audio!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Length</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Defined</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to open CD-ROM device at</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,166 @@
<!DOCTYPE TS><TS>
<context>
<name>MainWidget</name>
<message>
<source>Database Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<comment>Unable to connect to mySQL Server!</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to connect to mySQL Server!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Destination Group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Artist</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disk Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disc ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Channels</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Autotrim</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dBFS</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Normalize</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Read Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to read index file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>There are insufficient free cart numbers available in the</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Status</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Complete!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport - Open Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>File Read</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>records.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>[unknown]</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to import track audio!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Length</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Defined</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to open CD-ROM device at</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>

View File

@@ -0,0 +1,166 @@
<!DOCTYPE TS><TS>
<context>
<name>MainWidget</name>
<message>
<source>Database Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<comment>Unable to connect to mySQL Server!</comment>
<translation type="unfinished"></translation>
</message>
<message>
<source>Can&apos;t Connect</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to connect to mySQL Server!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Select</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Destination Group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Artist</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disk Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track Progress</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Disc ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Disc</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Channels</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Autotrim</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>dBFS</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Normalize</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Level:</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Close</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Read Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to read index file!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>There are insufficient free cart numbers available in the</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>group</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Ripper Status</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Rip Complete!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport - Open Index File</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>File Read</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>records.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Track</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>[unknown]</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>RDDiscImport</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Import Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to import track audio!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Length</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>User Defined</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Unable to open CD-ROM device at</source>
<translation type="unfinished"></translation>
</message>
</context>
</TS>