jprenaud.info

life of a hydrologist in exile up north
  • rss
  • Home
  • About me
  • Comment on Sudicky et al. [2007] in WRR
  • Publications
  • About this site

GUI development with Qt for hydrostab

JP Renaud | July 29 2008

At the moment, I am spending a lot of time finishing programming projects before I swap jobs at the end of September.

It’s never too late to learn something and I am discover graphical user interface GUI programming, something that always fascinated me but that I had no experience of whatsoever (apart from the work on the MS Windows version of CHASM which is very limited in terms of user interface).

I have started to develop a small GUI for the C++ slope stability program (called hydrostab) for which I got NERC funding. I chose to implement the GUI with the Qt toolkit which is cross platform (so technically it can be compiled for MS Windows and MAC OS X although I have only developed on Linux so far). At the moment, it looks like this:

Screenshot of the development of the run widget in hydrostab

It’s not much yet at all, it’s very busy, badly organised and please forgive me the fact that nothing is properly aligned etc… So far, I have tried to make functions work and been mostly familiarising myself with the toolkit.

The important thing is that the application is multi-threaded. I have implemented the time loop in a separate thread. It means that the simulation can be controlled from the GUI during runtime. So far, the simulation can be started, paused, resumed and stopped. The example above shows a simulation that was started, paused, resumed and the confirmation dialogue before stopping it for good. It works very well so far and it will be really useful in the future. Imagine, you could for instance:

  1. start the simulation, pause it, look at the first computed results and amend the parameters if necessary. No more need to wait for everything to finish.
  2. set up several simulations (several slopes or several configurations of the same slope) and run them all together in separate threads. This is something some of my colleagues interested in optimisation and econometrics might be interested.

In a way, it is related to some of the high performance computing work that I have been involved with for another project but the whole graphical aspect is very new for me.

There is still a lot of work to do but it going in the right direction I think. The next step will be to create a GUI for designing the slope so that the program does not rely on the CHASM4 data format which is very limiting.

Comments
No Comments »
Categories
code, hydrostab, qt, slope stability
Comments rss Comments rss
Trackback Trackback

Useful info

  • Publications
  • About this site

Random mugshots

dsc01677.jpg dsc01349.jpg dsc03901 dsc04196.jpg

Calendar

August 2008
M T W T F S S
« Jul    
 123
45678910
11121314151617
18192021222324
25262728293031

Archives

  • July 2008
  • June 2008
  • February 2008
  • December 2007
  • November 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • October 2006
  • September 2006
  • August 2006

RSS Recent reading

  • Reply to comment by J.-P. Renaud et al. on ?An assessment of the tracer-based approach to quantifying groundwater contributions to streamflow?
  • Fully conservative coupling of HEC-RAS with MODFLOW to simulate stream-aquifer interactions in a drainage basin
  • The ecological significance of exchange processes between rivers and groundwater
  • Capillary pressure as a unique function of electric permittivity and water saturation

Categories

  • code
  • comment
  • estel
  • fedora
  • field work
  • fortran
  • friends
  • groundwater
  • HPC
  • hydrology
  • hydrostab
  • interesting
  • kubuntu
  • Links
  • linux
  • misc
  • news
  • off topic
  • papers
  • qt
  • rants
  • reading of the week
  • review
  • screencast
  • SEPA
  • slope stability
  • software
  • subversion
  • talks
  • teaching
  • tecplot
  • test
  • University of Bristol

RSS Recent tunes

  • Lara St. John – BWV 1043 / I. Vivace
  • Badly Drawn Boy – Using Our Feet
  • U2 – Mysterious Ways
  • Shakira – La Pared

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox