Commit Graph

16 Commits

Author SHA1 Message Date
6770f1ec90 QString::fromLocal8Bit() doesn't work as expected, as we explicitly set the CodecForLocale to UTF-8 in the initialization code. Therefore we can't use QString::fromLocal8Bit() at places where the system's default Codec is needed. Instead we will now get the actual system Codec via QTextCodec::codecForName("System") at those places. That's not nice, but solves the problem. 2011-12-10 01:59:45 +01:00
6e819e45b3 If no BOM was found, check whether decoding the input using the "local 8-Bit" Codepage produces any "replacement" characters (U+FFFD). In that case we assume a decoding error and fall back to Latin-1. 2011-12-08 14:46:11 +01:00
84053a76f4 Use qMin() and qMax() instead of min() and max() macros. Also use qBound() where appropriate. 2011-11-08 15:12:31 +01:00
9276645f1b More fixes for the Cue Sheet parser: Strings don't have to be enclosed in quotes, if they don't contain any whitespace chars, so we should support that case. Also generate a title from the track number, if the Cue Sheet doesn't define a title for the track. 2011-09-24 00:15:50 +02:00
466d339d9d Added support for the non-standard tags "REM DATE" and "REM GENRE" to the CUE Sheet parser. 2011-09-23 21:30:55 +02:00
45dd277e99 Much simplified indexToString() using a QTime object. 2011-05-18 00:36:51 +02:00
352bfd4864 Improved precision of the indexToString() function. The Cue Sheet splitter should be able cut more precise now! 2011-05-17 20:06:01 +02:00
489829fb37 Refactored Cue Sheet splitter thread: Now we simply pass a pointer to the Cue Sheet model into the Cue Sheet splitter thread instead of having to copying all the information in the Cue Sheet import dialog. Also the Cue Sheet import process can now be aborted by the user. 2011-05-16 18:05:50 +02:00
f8f792f23f The Cue Sheet splitter will now also handle input files that are not PCM/Wave. 2011-05-15 18:53:44 +02:00
9296fc32b6 Cue Sheet splitter improvements/fixes + German translation updates. 2011-05-15 15:14:33 +02:00
55b5393768 Implemented Cue Sheet splitter thread. Basic Cue Sheet import should work now, but only uncompressed Wave/PCM files are supported. 2011-05-15 01:45:27 +02:00
564cad5047 First step for Cue Sheet splitting: Call the FileAnalyzer thread in order to analyze all source files. 2011-05-14 18:34:34 +02:00
49dd3f0446 Improve Cue Sheet parser: Calculate duration of each track + make sure each track# isn't used multiple times + refactored error codes into an enum. 2011-05-14 15:54:04 +02:00
3e7c2d59e8 Show working banner while parsing a Cue Sheet file + reject Cue Sheet files larger than 10 MB (these probably are not Cue Sheets, but parsing would take very long). 2011-05-13 13:17:21 +02:00
ecd4c4c762 Implemented a very basic Cue Sheet parser. 2011-05-13 02:44:20 +02:00
c87a9b6217 Added "Cue Sheet" importer to GUI. Actual Cue Sheet parsing and splitting not yet implemented, but the model already works. 2011-05-12 22:57:08 +02:00