Commit 3bfde6ee authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor typos

parent 802ee66f
......@@ -59,7 +59,7 @@ namespace K3b {
public:
/**
* Although Core is a singlelton it's constructor is not private to make inheritance
* Although Core is a singleton it's constructor is not private to make inheritance
* possible. Just make sure to only create one instance.
*/
explicit Core( QObject* parent = 0 );
......
......@@ -98,7 +98,7 @@ namespace K3b {
/**
* this scans for the program in the given path,
* adds the found bin object to the list and returnes true.
* adds the found bin object to the list and returns true.
* if nothing could be found false is returned.
*/
virtual bool scan( const QString& ) = 0;
......@@ -111,7 +111,7 @@ namespace K3b {
/**
* Builds the path to the program from the \p dir and the \p programName.
* On Windows the .exe extension is added autoamtically.
* On Windows the .exe extension is added automatically.
*/
static QString buildProgramPath( const QString& dir, const QString& programName );
......
......@@ -179,7 +179,7 @@ namespace K3b {
/**
* returns the parent dir of a path.
* CAUTION: this does only work well with absolut paths.
* CAUTION: this does only work well with absolute paths.
*
* Example: /usr/share/doc -> /usr/share/
*/
......
......@@ -59,7 +59,7 @@ K3b::Job::~Job()
// but we do this here for security reasons.
//
if( d->active ) {
qDebug() << "Finishing job in destuctor! This is NOT good. Fix the job.";
qDebug() << "Finishing job in destructor! This is NOT good. Fix the job.";
jobFinished( false );
}
......
......@@ -220,7 +220,7 @@ namespace K3b {
void started();
/**
* Emitted once the job has been finshed. Never emit this signal directly.
* Emitted once the job has been finished. Never emit this signal directly.
* Use jobFinished() instead, otherwise the job will not be properly deregistered
*/
void finished( bool success );
......
......@@ -220,7 +220,7 @@ int K3b::Version::compareSuffix( const QString& suffix1, const QString& suffix2
static QRegExp betaRx( "beta(\\d+)" );
static QRegExp alphaRx( "a(?:lpha)?(\\d+)" );
// first we check if one of the suffixes (or both are empty) becasue that case if simple
// first we check if one of the suffixes (or both are empty) because that case if simple
if( suffix1.isEmpty() ) {
if( suffix2.isEmpty() )
return 0;
......
......@@ -126,7 +126,7 @@ namespace K3b {
* [empty prefix] > rcX > preX > betaX > alphaX = aX (where X is a number)
*
* Every other suffixes are compared alphanumerical.
* An empty prefix is always considered newer than an unknown non-emtpy suffix (e.g. not one of the above.)
* An empty prefix is always considered newer than an unknown non-empty suffix (e.g. not one of the above.)
*
* @return \li -1 if suffix1 is less than suffix2
* \li 0 if suffix1 equals suffix2 (be aware that this is not the same as comparing to strings as
......
......@@ -992,7 +992,7 @@ void K3b::CdCopyJob::slotSessionReaderFinished( bool success )
if( !m_onlyCreateImages ) {
if( m_readerDevice == m_writerDevice ) {
// eject the media (we do this blocking to know if it worked
// becasue if it did not it might happen that k3b overwrites a CD-RW
// because if it did not it might happen that k3b overwrites a CD-RW
// source)
if( !K3b::eject( m_readerDevice ) ) {
blockingInformation( i18n("K3b was unable to eject the source disk. Please do so manually.") );
......
......@@ -418,7 +418,7 @@ int K3b::DataTrackReader::read( unsigned char* buffer, unsigned long sector, uns
}
// here we read every single sector for itself to find the troubleing ones
// here we read every single sector for itself to find the troubling ones
bool K3b::DataTrackReader::retryRead( unsigned char* buffer, unsigned long startSector, unsigned int len )
{
emit debuggingOutput( "K3b::DataTrackReader", QString( "Problem while reading. Retrying from sector %1.").arg(startSector) );
......
......@@ -118,7 +118,7 @@ void K3b::Iso9660ImageWritingJob::slotWriterJobFinished( bool success )
if( !m_simulate && m_verifyData ) {
emit burning(false);
// allright
// alright
// the writerJob should have emitted the "simulation/writing successful" signal
if( !d->verifyJob ) {
......
......@@ -36,7 +36,7 @@ namespace K3b {
* descriptor.
* \li Audio tracks: Rip the track with a 2352 bytes sector size.
* In the case of audio tracks the job will not fail if the checksums
* differ becasue audio CD tracks do not contain error correction data.
* differ because audio CD tracks do not contain error correction data.
* In this case only a warning will be emitted.
*
* Other sector sizes than 2048 bytes for data tracks are not supported yet,
......
......@@ -493,7 +493,7 @@ bool K3b::AudioDecoder::seek( const K3b::Msf& pos )
// First check if we may do a "perfect seek".
// We cannot rely on the decoding plugins to seek perfectly. Especially
// the mp3 decoder does not. But in case we want to split a live recording
// it is absolutely nesseccary to perform a perfect seek.
// it is absolutely necessary to perform a perfect seek.
// So if we did not already decode past the seek position and the difference
// between the current position and the seek position is less than some fixed
// value we simply decode up to the seek position.
......
......@@ -92,7 +92,7 @@ namespace K3b {
* The filetype is only used for informational purposes.
* It is not necessary but highly recommended to implement this method
* as it enhances usability.
* @returne The filetype of the decoded file.
* @return The filetype of the decoded file.
*/
virtual QString fileType() const { return QString(); }
......@@ -113,7 +113,7 @@ namespace K3b {
virtual QString technicalInfo( const QString& ) const;
/**
* returnes -1 on error, 0 when finished, length of data otherwise
* returns -1 on error, 0 when finished, length of data otherwise
* takes care of padding
* calls decodeInternal() to actually decode data
*
......@@ -133,7 +133,7 @@ namespace K3b {
* Seek to the position pos.
* Decoding is started new. That means that the data will be padded to
* length() - pos.
* returnes true on success;
* returns true on success;
*/
bool seek( const Msf& pos );
......
......@@ -75,7 +75,7 @@ namespace K3b {
/**
* Determine the filesize of the encoded file (~)
* default implementation returnes -1 (unknown)
* default implementation returns -1 (unknown)
* First parameter is the extension to be used
*/
virtual long long fileSize( const QString&, const Msf& ) const { return -1; }
......@@ -94,7 +94,7 @@ namespace K3b {
typedef QHash<MetaDataField, QVariant> MetaData;
/**
* The default implementation openes the file for writing with
* The default implementation opens the file for writing with
* writeData. Normally this does not need to be reimplemented.
* @param extension the filetype to be used.
* @param filename path to an output file
......@@ -108,7 +108,7 @@ namespace K3b {
/**
* The default implementation returnes true if openFile (default implementation) has been
* The default implementation returns true if openFile (default implementation) has been
* successfully called. Normally this does not need to be reimplemented but it has to be
* if openFile is reimplemented.
*/
......@@ -123,7 +123,7 @@ namespace K3b {
virtual void closeFile();
/**
* The default implementation returnes the filename set in openFile
* The default implementation returns the filename set in openFile
* or QString() if no file has been opened.
* Normally this does not need to be reimplemented but it has to be
* if openFile is reimplemented.
......@@ -131,7 +131,7 @@ namespace K3b {
virtual QString filename() const;
/**
* Returnes the amount of actually written bytes or -1 if an error
* Returns the amount of actually written bytes or -1 if an error
* occurred.
*
* Be aware that the returned amount of written data may very well differ
......@@ -153,7 +153,7 @@ namespace K3b {
bool initEncoder( const QString& extension, const Msf& length, const MetaData& metaData );
/**
* Called by the deafult implementation of openFile
* Called by the default implementation of openFile
* This calls finishEncoderInternal.
*/
void finishEncoder();
......@@ -161,7 +161,7 @@ namespace K3b {
/**
* Use this to write the data to the file when
* using the default implementation of openFile
* Returnes the number of bytes actually written.
* Returns the number of bytes actually written.
*/
qint64 writeData( const char*, qint64 len );
......
......@@ -48,7 +48,7 @@ namespace K3b {
QList<Plugin*> plugins( const QString& category = QString() ) const;
/**
* Returnes a list of the available categories.
* Returns a list of the available categories.
*/
QStringList categories() const;
......
......@@ -26,7 +26,7 @@ namespace K3b {
* This Iterator iterates over the sources in an audio project
*
* Be aware that this iterator does not properly update when the doc
* changes. A manual update can be issued with first(). This is becasue
* changes. A manual update can be issued with first(). This is because
* an update would either involve slots (this being a QObject) which is
* too much overhead or the AudioDoc would need to have knowledge of all
* the iterators which is also overhead that would be overkill.
......
......@@ -875,7 +875,7 @@ bool K3b::AudioDoc::saveDocumentData( QDomElement* docElem )
for( K3b::AudioDataSource* source = track->firstSource(); source; source = source->next() ) {
// TODO: save a source element with a type attribute and start- and endoffset
// then distict between the different source types.
// then distinct between the different source types.
if( K3b::AudioFile* file = dynamic_cast<K3b::AudioFile*>(source) ) {
QDomElement sourceElem = doc.createElement( "file" );
sourceElem.setAttribute( "url", file->filename() );
......
......@@ -360,7 +360,7 @@ void K3b::AudioJob::slotMaxSpeedJobFinished( bool success )
emit infoMessage( i18n("Unable to determine maximum speed for some reason. Ignoring."), MessageWarning );
// now start the writing
// same code as above. See the commecnts there
// same code as above. See the comments there
if( !prepareWriter() ) {
cleanupAfterError();
jobFinished(false);
......
......@@ -581,7 +581,7 @@ bool K3b::DataDoc::loadDataItem( QDomElement& elem, K3b::DirItem* parent )
QFileInfo f( urlElem.text() );
// We canot use exists() here since this always disqualifies broken symlinks
// We cannot use exists() here since this always disqualifies broken symlinks
if( !f.isFile() && !f.isSymLink() )
d->notFoundFiles.append( urlElem.text() );
......
......@@ -58,7 +58,7 @@ namespace K3b {
QString name() const override;
/**
* The spported media types based on the project size
* The supported media types based on the project size
* and settings (example: if writing mode == TAO we force
* CD media)
*/
......@@ -86,7 +86,7 @@ namespace K3b {
KIO::filesize_t size() const override;
/**
* This is used for multisession where size() also returnes the imported session's size
* This is used for multisession where size() also returns the imported session's size
*/
KIO::filesize_t burningSize() const override;
Msf length() const override;
......@@ -210,7 +210,7 @@ namespace K3b {
void addUrls( const QList<QUrl>& urls ) override;
/**
* Add urls syncroneously
* Add urls synchronously
* This method adds files recursively including symlinks, hidden, and system files.
* If a file already exists the new file's name will be appended a number.
*/
......@@ -219,7 +219,7 @@ namespace K3b {
void clearImportedSession();
/**
* Just a convience method to prevent using setIsoOptions for this
* Just a convenience method to prevent using setIsoOptions for this
* often used value.
*/
void setVolumeID( const QString& );
......@@ -256,11 +256,11 @@ namespace K3b {
void endRemoveItems( DirItem* parent, int start, int end );
/**
* load recursivly
* load recursively
*/
bool loadDataItem( QDomElement& e, DirItem* parent );
/**
* save recursivly
* save recursively
*/
void saveDataItem( DataItem* item, QDomDocument* doc, QDomElement* parent );
......
......@@ -77,7 +77,7 @@ namespace K3b {
virtual void setK3bName( const QString& );
/**
* returns the path as defined by the k3b-hierachy, NOT starting with a slash
* returns the path as defined by the k3b-hierarchy, NOT starting with a slash
* (since this is used for graft-points!)
* directories have a trailing "/"
*/
......@@ -135,7 +135,7 @@ namespace K3b {
Msf blocks() const;
/**
* \returne the dir of the item (or the item itself if it is a dir)
* \return the dir of the item (or the item itself if it is a dir)
*/
virtual DirItem* getDirItem() const { return parent(); }
......
......@@ -577,7 +577,7 @@ void K3b::DataJob::slotVerificationFinished( bool success )
qDebug();
d->copiesDone++;
// reconnect our imager which we deconnected for the verification
// reconnect our imager which we disconnected for the verification
connectImager();
if( k3bcore->globalSettings()->ejectMedia() || d->copiesDone < d->copies )
......
......@@ -271,7 +271,7 @@ K3b::DataItem* K3b::DirItem::findByPath( const QString& p )
if( pos < 0 )
return find( path );
else {
// do it recursivly
// do it recursively
K3b::DataItem* item = find( path.left(pos) );
if( item && item->isDir() )
return ((K3b::DirItem*)item)->findByPath( path.mid( pos+1 ) );
......@@ -284,7 +284,7 @@ K3b::DataItem* K3b::DirItem::findByPath( const QString& p )
bool K3b::DirItem::mkdir( const QString& dirPath )
{
//
// An absolut path always starts at the root item
// An absolute path always starts at the root item
//
if( dirPath[0] == '/' ) {
if( parent() )
......
......@@ -108,7 +108,7 @@ namespace K3b {
private:
/**
* this recursivly updates the size of the directories.
* this recursively updates the size of the directories.
* The size of this dir and the parent dir is updated.
* These values are just used for user information.
*/
......
......@@ -201,7 +201,7 @@ bool K3b::FileItem::isValid() const
QString dest = linkDest();
if( dest[0] == '/' )
return false; // absolut links can never be part of the compilation!
return false; // absolute links can never be part of the compilation!
// parse the link
K3b::DirItem* dir = parent();
......
......@@ -381,7 +381,7 @@ void K3b::IsoImager::initVariables()
d->knownError = false;
// determine symlink handling
// follow links superseeds discard all links which superseeds discard broken links
// follow links supersedes discard all links which supersedes discard broken links
// without rockridge we follow the links or discard all
if( m_doc->isoOptions().followSymbolicLinks() )
d->usedLinkHandling = Private::FOLLOW;
......@@ -621,7 +621,7 @@ bool K3b::IsoImager::addMkisofsParameters( bool printSize )
}
}
// in genisoimage 1.1.3 "they" silently introduced this aweful parameter
// in genisoimage 1.1.3 "they" silently introduced this awful parameter
if (filesGreaterThan2Gb && d->mkisofsBin->hasFeature("genisoimage") && d->mkisofsBin->version() >= K3b::Version(1, 1, 3)) {
*m_process << "-allow-limited-size";
emit infoMessage(i18n("Found files bigger than 2 GB. These files will be fully accessible."),
......
......@@ -175,7 +175,7 @@ K3b::IsoOptions K3b::IsoOptions::load( const KConfigGroup& c, bool loadVolumeDes
options.setHideTRANS_TBL( c.readEntry( "hide TRANS_TBL", options.hideTRANS_TBL() ) );
//
// We need to use the memeber variables here instead of the access methods
// We need to use the member variables here instead of the access methods
// which do not return the actual value of the member variables but the value
// representing the use in mkisofs (i.e. ISOomitVersionNumbers is also enabled
// if ISOmaxFilenameLength is enabled.
......
......@@ -926,7 +926,7 @@ void K3b::CdrdaoWriter::parseCdrdaoMessage()
if ( msgs < 1 )
return;
else if ( msgs > 1) {
// move the read-index forward to the beginnig of the most recent message
// move the read-index forward to the beginning of the most recent message
count = ( msgs-1 ) * ( sizeof(msgSync)+d->progressMsgSize );
m_comSock->seek( count );
qDebug() << "(K3b::CdrdaoParser) " << msgs-1 << " message(s) skipped";
......
......@@ -538,7 +538,7 @@ void K3b::CdrecordWriter::slotStdLine( const QString& line )
//
// cdrecord's output sucks a bit.
// we get track sizes that differ from the sizes in the progress
// info since these are dependant on the writing mode.
// info since these are dependent on the writing mode.
// so we just use the track sizes and do a bit of math...
//
......
......@@ -280,7 +280,7 @@ bool K3b::CdrskinWriter::prepareProcess()
}
else if( d->writingMode == K3b::WritingModeRaw ) {
// These write modes are not supported by cdrskin. They need to be made
// contitional.
// conditional.
// cdrskin supports only -audio and -data.
// Options -xa1, -xa, -xa2, -mode2 do not lead to error but the payload is
// nevertheless written as -data.
......@@ -549,7 +549,7 @@ void K3b::CdrskinWriter::slotStdLine( const QString& line )
//
// cdrskin's output sucks a bit.
// we get track sizes that differ from the sizes in the progress
// info since these are dependant on the writing mode.
// info since these are dependent on the writing mode.
// so we just use the track sizes and do a bit of math...
//
......
......@@ -385,7 +385,7 @@ bool K3b::CueFileParser::findImageFileName( const QString& dataFile )
m_imageFilenameInCue = true;
// first try filename as a hole (absolut)
// first try filename as a whole (absolute)
if( QFile::exists( dataFile ) ) {
setImageFilename( QFileInfo(dataFile).absoluteFilePath() );
return true;
......
......@@ -73,7 +73,7 @@ namespace K3b {
/**
* The media types that are supported by this project type.
* The default implementation returns all writable media types.
* This should NOT take into accout settings like the writing mode
* This should NOT take into account settings like the writing mode
* or anything that can be changed in the burn dialog.
*/
virtual Device::MediaTypes supportedMediaTypes() const;
......
......@@ -114,7 +114,7 @@ void K3b::GrowisofsHandler::handleLine( const QString& line )
m_error = ERROR_OPC;
}
else if( line.contains( "flushing cache" ) ) {
// here is where we already should stop queriying the buffer fill
// here is where we already should stop querying the buffer fill
// since the device is only used there so far...
m_device = 0;
......
......@@ -150,7 +150,7 @@ void K3b::MovixDoc::moveMovixItem( K3b::MovixFileItem* item, K3b::MovixFileItem*
emit itemsRemoved();
// if after == 0 lastIndexOf returnes -1
// if after == 0 lastIndexOf returns -1
int pos = m_movixFiles.lastIndexOf( itemAfter ) + 1;
emit itemsAboutToBeInserted( pos, 1 );
......
......@@ -441,7 +441,7 @@ K3b::FileItem* K3b::MovixDocPreparer::createItem( const QString& localPath, cons
K3b::FileItem* item = new K3b::FileItem( localPath, *d->doc );
dir->addDataItem( item );
// remember the item to remove it becasue the dir cannot be removed
// remember the item to remove it because the dir cannot be removed
if( dir == d->doc->root() )
d->newMovixItems.push( item );
......
......@@ -46,7 +46,7 @@ namespace K3b {
void start() override;
/**
* Useless since this job works syncronously
* Useless since this job works synchronously
*/
void cancel() override;
......
......@@ -50,7 +50,7 @@ K3b::MovixFileItem::~MovixFileItem()
// remove this from parentdir
// it is important to do it here and not
// rely on the K3b::FileItem destructor becasue
// rely on the K3b::FileItem destructor because
// otherwise the doc is not informed early enough
if( parent() )
parent()->takeDataItem( this );
......
......@@ -41,7 +41,7 @@ namespace K3b {
void setK3bName( const QString& ) override;
/**
* returnes the name that the subtitle file must have in
* returns the name that the subtitle file must have in
* order to work with mplayer
*/
static QString subTitleFileName( const QString& );
......
......@@ -46,14 +46,14 @@ namespace K3b {
const QStringList& isolinuxFiles() const { return m_isolinuxFiles; }
/**
* returnes empty string if font was not found
* returns empty string if font was not found
*
* Unused for eMovix versions 0.9.0 and above
*/
QString subtitleFontDir( const QString& font ) const;
/**
* returnes empty string if lang was not found
* returns empty string if lang was not found
*
* Unused for eMovix versions 0.9.0 and above
*/
......
......@@ -114,7 +114,7 @@ KIO::filesize_t K3b::VcdDoc::size() const
KIO::filesize_t K3b::VcdDoc::ISOsize() const
{
// 136000b for vcd iso reseved
// 136000b for vcd iso reserved
long long iso_size = 136000;
if ( vcdOptions() ->CdiSupport() ) {
iso_size += vcdOptions() ->CDIsize();
......@@ -270,7 +270,7 @@ K3b::VcdTrack* K3b::VcdDoc::createTrack( const QUrl& url )
return newTrack;
}
} else if ( isImage( url ) ) { // image track
// woking on ...
// working on ...
// for future use
// photoalbum starts here
// return here the new photoalbum track
......
......@@ -491,7 +491,7 @@ void K3b::VcdJob::slotWriterJobFinished( bool success )
}
if ( success ) {
// allright
// alright
// the writerJob should have emitted the "simulation/writing successful" signal
if ( m_currentcopy >= m_doc->copies() ) {
if ( k3bcore->globalSettings()->ejectMedia() ) {
......
......@@ -477,7 +477,7 @@ bool K3b::CdparanoiaLib::load()
K3b::CdparanoiaLib* K3b::CdparanoiaLib::create()
{
// check if libcdda_interface is avalilable
// check if libcdda_interface is available
if( !s_libInterface->isLoaded() ) {
s_haveLibCdio = true;
......
......@@ -31,8 +31,8 @@ namespace K3b {
* idea to use this for dynamic lists.
*
* Be aware that currently only insertItem works.
* none of the insertStrList or insertStringList methods are implemeted
* yet and also the removeItem methos does not work.
* none of the insertStrList or insertStringList methods are implemented
* yet and also the removeItem methods does not work.