Small Steps

There’s been some progress over the last couple of days. I fixed a small issue with exception handling in Parsek. Turns out Qt disables exceptions by default and Parsek was crashing even though it was trying to catch exceptions from the protocol library. Parsek’s event handler now catches DisconnectedExceptions when reading or writing to the server, though it does not do anything with them yet. More importantly, downloading the universe’s objects is coming closer to functionality. The program correctly receives the objects from the universe, I was able to read and verify (using tpclient-pywx) the information in the object frames in the debugger. However, the Qt model is still broken and needs some work. The model view design in Qt is a little bit confusing but the QAbstractModel class is pretty sweet. When properly configured, you can just use any of the pre-created viewer widgets (QTreeView, QTableView, etc) to instantly display the data. Right now I’m having trouble getting the view to refresh as the information is loaded in from the server. The Boost + Qt integration here is getting a little hard to keep track of. I hope to have this resolved in the next couple of days and be able to post some screenshots of the object viewer. Thankfully there some good Qt examples out there for this type of thing…

Leave a Reply