Added schema for cards.xml
Fix: <color> can appear more than once
Checks if CUSTOM folder was successfully created. If not, prints qDebug message and proceeds as normal except uses default card images instead of custom ones.
I was too hasty and forgot a + and to toLatin1() a QString in the qDebug arg.
Fix #248: the token dialog generates cards irrespective of their case and punctation.
Changed .toLatin1() to .toUtf8().
Merge pull request #246 from pliu037/create-CUSTOM-folder

Picture path/CUSTOM folder creation
Merge pull request #251 from arxanas/case-insensitive-tokens

Fix #248: the token dialog generates cards irrespective of their case and punctuation
Merge pull request #244 from ctrlaltca/cards_xsd

Added schema for cards.xml and tokens.xml in xsd format
Fix compilation warning introduced in #246

/cockatrice/src/main.cpp:162:16: warning: format string is not a string
literal (potentially insecure) [-Wformat-security]
        qDebug("Could not create " +
settingsCache->getPicsPath().toUtf8() + "/CUSTOM. Will fall back on
default card images.");
Merge pull request #254 from ctrlaltca/compilation_warning_246

Fix compilation warning introduced in #246
Added support for PNG images (both for downloading/saving and loading).
Switched back to using QFile instead of QImage for saving as QImage's save function adds overhead to the file size, leaving me unsure whether the original image is affected.
Refactored the magic bytes into two QLists: one containing a list of QStrings representing the supported extensions, the other containing a list of QByteArrays representing the magic bytes in hex.
Refactored the image loading loop to be two nested for loops: the outer loop iterating through the QList of paths to folders in which to search for images and the inner loop iterating through the QList of supported extensions.
Removed the QLists for determining image format. Instead, using QImageReader, both when downloading/saving and when loading, to determine the correct format (Cockatrice now supports all QImageReader-supported formats).
Image loading still uses one for loop to iterate through the QList of paths to folders in which to search for images.
Support loading of files with wrong extension

Like M15’s .png that cockatrice wrongly saved as .jpg
Additionally, move the QImageReader declaration outside of the inner
loop
Merge branch 'ctrlaltca-pr256' into handle-PNGs-2
Merge pull request #256 from pliu037/handle-PNGs-2

Handle PNGs (and other image formats)
add success notification to oracle
Merge pull request #262 from ctrlaltca/fix_134

add success notification to oracle; fixes #134