Went to import the latest set, Alara Reborn, today, only to find set importing wasn't working. It seems that the old Gatherer site has gone and has now been replaced by a new one. I have to rewrite the import module which is extremely tedious.
The daunting bulk of the refactoring that I wanted to do, to rearrange things in a better fashion, is done. The card reference object is now the source data model, with lists being proxies on top of that.
That made handling table layout or, more specifically, specifiying which columns were visible and in what order, much more simple and straightforward than the nonsense I had before.
As fate would have it, I stopped playing Magic: the Gathering, not long after I started this project. Since then I've only been casually collecting.
Looking at the code now, after such a long break, it's really quite bizarre in places, with many things in totally the wrong place. It's also terribly tangled, making refactoring rather difficult. A case in point, the data model shouldn't be directly creating the UI to represent it. The UI should be created in response to a new list being added to the data model. This will be the hardest thing to untangle.... read more
My subversion password is no longer working, so I can't update with the new set and bug fixes needed for it.
The application can now load in the database of (at this time) 14920 unique cards. All cards are displayed in list/deck tables, mana symbols are used for casting costs, all rows are coloured to match the card colour where possible.
The next things to look at are filters and sorting. Qt can't be directly used for filtering through the use of show/hide row because it just seems way too slow. instead I'm going to try and handle it internally. If my idea works then switching filter states should be fast (well, noticably faster than calling show/hide on rows).... read more
Prototype code added to the repository.
Windows:
It should compile without any problem. Windows is my development platform.
Linux:
I have Ubuntu 7.0.4 for building on and testing. The linux build has some really odd failures at the moment; hang up when (effectively) calling QApplication::exec(). I can make a seemingly unconnected change to make that work, but then there's another (although unnoticeable) hang up at app closedown when trying to delete the QApplication instance.... read more
For me this project has two goals:
1. I've used Qt for the past 18 months in a professional capacity but, for the most part, I use all the underlying core technologies it offers, none of the UI stuff which, generally, gets handled by my colleagues. From time to time I need to delve into the UI stuff but my exposure to it is minimal. I wanted a small project that had a fair chunk of UI work to do so I could get more up to speed with it all.... read more