1. 15 Mar, 2016 1 commit
    • Fabio Bas's avatar
      Rework "paths" settings loading and card database loading · 1e3fb6c6
      Fabio Bas authored
       * main.cpp: removed path checking and db loading
       * card database: merge card loading methods into a single one
       * settings cache: take care of returning safe paths for decks,
      replays, etc..
       * main window: if db loading fails (eg. first run), propose to run
      oracle
      
      NSIS: propose to run cockatrice instead of oracle
      
      Rework card database loading
      
       * Move carddatabase-related method out of deckeditor tab
       * Load cards in another thread and render them progressively
       * Optimize database reload after enabled sets change
      
      Fix deck editor column width
      
       * removed the noCard hack.
       * getCard() no more creates cards instead of just returning existing
      ones
       * Fix the “edit tokens” dialog.
       * PictureLoader: avoid trying to download twice the same card
       * PictureLoader: correct return of card background
       * AbstractCardItem: avoid recalculating card color at every paint
      
      Use a different file to save custom tokens
      
      Misc required improvements
      
       * Use nullptr;
       * Refactor CardInfoWidget to use CardInfoPicture and CardInfoText
      instead of duplicating code;
       * Added CardInfo::getColorChar()
       * Fixed some potential crashes
       * removed dead code related to CardInfoWidget
       * Don't require a restart after adding a new custom sets file
       * Bump CMake requirements to 3.1
      1e3fb6c6
  2. 28 Dec, 2015 1 commit
  3. 26 Dec, 2015 2 commits
  4. 23 Sep, 2015 1 commit
  5. 22 Sep, 2015 2 commits
  6. 22 Jul, 2015 1 commit
  7. 23 Jun, 2015 1 commit
  8. 13 Jun, 2015 1 commit
  9. 11 Jun, 2015 2 commits
  10. 20 May, 2015 1 commit
  11. 01 May, 2015 1 commit
    • Fabio Bas's avatar
      Improve sets handling · 66adeb6d
      Fabio Bas authored
      Move the “check unknown sets” method inside the cards database, so that
      it can be executed when the card database gets reloaded after a card
      database update.
      Additionally, show the user a welcome message the first time they run a
      new cockatrice version, so that they know why they get shown the “edit
      sets” window and how to hide/disable sets.
      66adeb6d
  12. 18 Apr, 2015 1 commit
  13. 15 Apr, 2015 1 commit
    • Fabio Bas's avatar
      Speed up deck editor filtering · eb6d067a
      Fabio Bas authored
       * card: cache simpleName for each card
       * deck editor: remove double comparation of searched term with card
      name when sorting
      eb6d067a
  14. 16 Feb, 2015 1 commit
  15. 29 Jan, 2015 1 commit
  16. 24 Dec, 2014 1 commit
    • Fabio Bas's avatar
      Use QPixmapCache for card images · f88621fd
      Fabio Bas authored
      Drop CardInfo’s own pixmap caches; use QPixmapCache instead.
      Use QPixmap references instead of pointers.
      Being stored in QPixmapCache, all card images are now subjected to
      QPixmapCache’s size limit
      f88621fd
  17. 19 Nov, 2014 1 commit
  18. 10 Nov, 2014 1 commit
  19. 08 Nov, 2014 1 commit
  20. 14 Oct, 2014 1 commit
  21. 11 Aug, 2014 1 commit
  22. 07 Aug, 2014 1 commit
  23. 06 Aug, 2014 1 commit
  24. 05 Aug, 2014 2 commits
    • Peng Liu's avatar
      Removed the QLists for determining image format. Instead, using QImageReader,... · 4bb1d28a
      Peng Liu authored
      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.
      4bb1d28a
    • Peng Liu's avatar
      Refactored the magic bytes into two QLists: one containing a list of QStrings... · 8587b8c3
      Peng Liu authored
      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.
      8587b8c3
  25. 30 Jul, 2014 1 commit
  26. 26 Jul, 2014 1 commit
  27. 07 Jul, 2014 1 commit
  28. 30 Jun, 2014 1 commit
  29. 28 Jun, 2014 1 commit
  30. 26 Jun, 2014 1 commit
  31. 25 Jun, 2014 1 commit
  32. 24 Jun, 2014 1 commit
  33. 21 Jun, 2014 2 commits
  34. 15 Jun, 2014 1 commit
  35. 11 Feb, 2014 1 commit