Posts Tagged ‘Qt’

Level Master 2000 – Log view update

April 26th, 2010

It’s time for another Level Master 2000 development update again. I recently updated the log view, so that I can filter the log messages. Currently, I support:

  • Info
  • Warning
  • Error
  • Debug command

It should be quite self-explanatory, except for the Debug command: since the editor front end is Qt/C++, and the backend is Flash/AS3/Pushbutton Engine, I need to communicate between these apps. I do this via XML, and that’s basically what the debug command is. I can simply copy and paste these commands into my the Flash part of the app and now easily start debugging! I’ll post more about the communication flow in a few months, when I’m covering that in my thesis, until that, just enjoy the new logger view:

Level Master 2000: new log view

Level Master 2000: new log view

I also log to files: a normal log file, which contains all entries, and a command log file, which only contains the executed commands. This way I can easily reproduce possible error situations :)

Workspace and level management

April 5th, 2010

Level Master 2000 now has the possibility to switch between different workspaces (must lie within the application root though…seems like a flash restriction) and one can now save and load scenes! Before talking a lot, just take a look at the short video I setup:

Next on my todo list is creating undo/redo commands for creating and deleting entities and components. As soon as that’s done, milestone 1 for my thesis is finished! :)

MOCing around with vftable errors

March 26th, 2010

In case you ever do some Qt programming, and work with QObjects (needed for Qt’s signals and slots), you might run over a strange compiler error, something like “bla bla bla vftable bla bla” (sorry, but I don’t have the exact error message in my head…if I reproduce the error sometime, I’ll update my post).
The clue is, instead of searching for errors in your code, just delete all the MOC and other generated files, clean the solution and rebuild it.
The error should be gone…

Other than that, I really like Qt and Qt Creator. It simplifies life big time! At least as far as it can get with C++ (silent hoooorraayyy for C# ;) ).

Refactoring the Master – Part II

March 20th, 2010

Actually, it’s more a redesign, but as part of the refactoring process, I also integrated group support to the Entity Explorer. And this led me to this new layout (left:new, right:old):

New version of Entity Explorer Old version of the Entity Explorer

As you can see, the components of an entity are now listed in the lower table view. The tooltip of the class column shows the whole package name. This way, one can easily see, out of which components an entity consists of. It’s still not a 100% finished yet (e.g. deleting components is missing), but I think you can get the idea where it’s going to!

Refactoring the Master – Part I

March 17th, 2010

It’s time for some Level Master 2000 news again! I’ve been busy the last few weeks: filling out forms, such that my thesis suggestion gets accepted, and also thinking about how to clean up the monolithic structure I had on the C++ side. Ok, it’s also there on the ActionScript side, but one after the other…
So now, instead of mainly one class, I got over ten, instead of one Qt-UI file, I got six. Now numbers don’t say much, I can only say, I tried to use some loose coupling per signals and slots, which Qt offers, and split the code into classes on a functional basis…this means e.g. a Entity Explorer class, a Property Browser class, and so on.
Speaking of the Entity Explorer, I also am currently redesigning this. I’ll post a comparison as soon as it’s finished!
Then, it’ll be time for the ActionScript side ;)