About Weights and Cylinders ( Qt Model )

Tomaz Canabrava tcanabrava at kde.org
Fri Apr 12 12:25:13 PDT 2013


Dirk,

helps a lot. :)
finishing the models for those two things.
I worked quite a lot in subsurface today, I think I can alreaday merge a
bit of my code.
Alberto`s code from open / close file was added back ( I changed a few
things, I hope Alberto doesn`t mind. )
and also, I add a bit of `qDebug("Gtk code. port-me")` debugs just to help.

Tomaz


2013/4/12 Dirk Hohndel <dirk at hohndel.org>

> Tomaz Canabrava <tcanabrava at kde.org> writes:
>
> > Hullo,
> >
> > I`m searching how the Cylinders and Weights are stored on the system, but
> > I`m unable to find. It seems that by `add_cb` function, it`s currently
> > added only in the view, but I think that`s wrong ( not the code, but my
> > understanding of it. )
> >
> > Anybody experienced with the C part can give a quick Cylinder-review?
>
> dive.h defines the cylinder_t and there's an array of eight
> (MAX_CYLINDERS) of them in struct dive. That's where all the cylinder
> data is stored - everything else is just for Gtk
>
> similarly weightsystem_t and the array of them in struct dive.
>
> in other words, all the data is in struct dive :-)
> we simply hand around pointers to the one that is being handled (usually
> called cylinder_t *cyl)
>
> Does that help?
>
> /D
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130412/7ff1ac74/attachment.html>


More information about the subsurface mailing list