674005383bAdded a button and the functionality to clear all downloaded images (all images within subfolders at picsPath/downloadedPics) under Settings.
Peng Liu
2014-08-07 11:54:26 -0400
8b588c6fd3Merge branch 'ctrlaltca-pr256' into handle-PNGs-2
Peng Liu
2014-08-06 04:55:27 -0400
6502a182e8Support loading of files with wrong extension
Fabio Bas
2014-08-06 09:31:22 +0200
4bb1d28ae7Removed 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.
Peng Liu
2014-08-05 05:40:51 -0400
605479694dRemoved some redundant code. Factored out translations.
Peng Liu
2014-08-05 08:50:42 -0400
8587b8c349Refactored 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.
Peng Liu
2014-08-05 03:48:30 -0400
75122c3c9dSwitched 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.
Peng Liu
2014-08-04 17:01:58 -0400
387086cb4cAdded support for PNG images (both for downloading/saving and loading).
Peng Liu
2014-08-04 15:45:49 -0400
a9eaf65a82Changed .toLatin1() to .toUtf8().
Peng Liu
2014-08-02 23:44:31 -0400
309494111cFix#248: the token dialog generates cards irrespective of their case and punctation.
Waleed Khan
2014-08-02 19:32:24 -0400
b3fa99ef36I was too hasty and forgot a + and to toLatin1() a QString in the qDebug arg.
Peng Liu
2014-07-31 23:04:30 -0400
077d9f2745Checks if CUSTOM folder was successfully created. If not, prints qDebug message and proceeds as normal except uses default card images instead of custom ones.
Peng Liu
2014-07-31 17:30:15 -0400
8be4a14fccBefore: If default is checked, Oracle will always save to the AppData path. If a path to cards.xml is set, Oracle will update that cards.xml. If Oracle is run before a path to cards.xml is set, if default is checked, cards.xml will be saved on the AppData path. Furthermore, this path will be set as the cards.xml path for both Oracle and Cockatrice. If Oracle is run before a path to cards.xml is set, if default is NOT checked, cards.xml will be saved at the selected path and this path will be set as the cards.xml path for both Oracle and Cockatrice. If a path to cards.xml is set, if default is NOT checked, cards.xml will be saved at the selected path but this path will NOT be set as the cards.xml path for either Oracle or Cockatrice. This allows people who already have a cards.xml (which may be customized), to still obtain clean copies of cards.xml through Oracle without overwriting their own
Peng Liu
2014-07-31 15:33:11 -0400