Qt port - baby steps

Dirk Hohndel dirk at hohndel.org
Sat Apr 6 20:56:29 PDT 2013


I started with the "old-timer" part of the work. Something I'm familiar
with since I've done it twice in the history of the project already...
Separating Gtk / UI code from core-logic code.

commit 1d61955be973cfcc67f4e82a65487721a9ae84b8
Author: Dirk Hohndel <dirk at hohndel.org>
Date:   Sat Apr 6 20:49:06 2013 -0700

    Separate Gtk related code from core logic: divelist
    
    This is simplistic & brute force: any function that touches Gtk related
    data structures is moved to divelist-gtk.c, everything else stays in
    divelist.c.
    
    Header files have been adjusted so that this still compiles and appears to
    work. More thought is needed to truly abstract this out, but this seems to
    be a good point to commit this change.
    
    Signed-off-by: Dirk Hohndel <dirk at hohndel.org>


This was pushed to the Qt branch. As the commit message indicates - this
needs more work, and similar things need to be done for most of the
other code. And all of this needs a lot more TLC to make sure that the
interfaces that are now being "ad-hoc-defined" make sense and are useful
to the Qt UI. But I'm hoping that this is a useful step to make things
easier for the folks working on the Qt port.

I figured I'd start with divelist.c as this was (and in some ways still
is) the biggest mess. I'll tackle profile.c next as I think divelist and
profile are the first two things we need to get to work in order to get
something useful in the Qt branch.

/D


More information about the subsurface mailing list