GSoC Status - Week 1 (VPM-B)
Robert C. Helling
helling at atdotde.de
Thu Jun 18 12:06:10 PDT 2015
On 18 Jun 2015, at 20:56, Jan Darowski <jan.darowski at gmail.com> wrote:
Jan,
> Do you want to do this as proposed or maybe you're busy and I should do it?
actually, this is very easy. You just need to copy the code for one of the other planner checkboxes.
Basically it is a three stage process: You add the checkbox in the designer section of Qt Creator (have a look at what parameters the other checkboxes have), then connect its signals (value changed) to some slot that sets some member of struct prefs (have a look at prefs.h, in subsurface_startup you find the default values). Here I would opt for an enum like enum decomodel {BUEHLMANN, VPMB}. And finally you must make sure that preference is saved and read from the settings.
Use grep and the “Show usage” feature of Creator and you should be able to implement it in less than an hour.
Best
Robert
--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling Elite Master Course Theoretical and Mathematical Physics
Scientific Coordinator
Ludwig Maximilians Universitaet Muenchen, Dept. Physik
print "Just another Phone: +49 89 2180-4523 Theresienstr. 39, rm. B339
stupid .sig\n"; http://www.atdotde.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150618/9834c837/attachment.sig>
More information about the subsurface
mailing list