tsmacdonald / simulator

MIT License
1 stars 0 forks source link

Use QT for GUI? #1

Open brandon-garcia opened 11 years ago

brandon-garcia commented 11 years ago

I already started side work on a qt-based gui using the existing gui as a reference, shouldn't take very long if I had the focus for it that is... the result would be much easier to modify, be much cleaner, and be less likely to be buggy. The wonders of QT-Creator. If it ever got integrated it would need to be setup as a module of sorts that can interface with the java code (qt is primarily used with c++).

brandon-garcia commented 11 years ago

https://docs.google.com/file/d/0B5n-sv80MSSnQW9qcFoySFY1SUU/edit?usp=sharing

the above link is to a binary executable showing my progress so far. The binary is compiled for x86_64 linux (ubuntu) systems.

tsmacdonald commented 11 years ago

Have you looked into using QT Jambi to make integration easier?

brandon-garcia commented 11 years ago

yeah I have! Once I have more functionality in place i'll work on a java binding. I've made some pretty good progress so far.

brandon-garcia commented 11 years ago

status update:

I haven't been anywhere nearly as focused on this project as I'd like to be due to videogames. So I haven't gotten as far as I'd like to have been by now. I am however maybe about 25% done implementing the gui in c++. I'm going to start writing a JAVA <---> C++ bi-directional interface to start integrating my work into a "qt-integration" branch to make implementation more straightforward. I'm really excited about QT as it's much much easier to develop with without spending too much time visualizing the graphical impact of a few lines of code (layouts and other such nonsense are done visually rather than by written code). It's also much easier to avoid the GUI bugs that currently plague the project. The QT implementation currently has about the same look as it does in the project repository minus the unimplemented bits (trigger/agent/layer creation wizards, the grid itself, file-system stuff, statistics page). if I simply make the aforementioned "wizard" screens perform/look as they do in the master branch it's pretty easy, just somewhat time consuming. File-system stuff appears to be pretty easy which just leaves the grid and statistics graphics implementation probably being the bulk of the remaining work in replacing the GUI.