Use the star widget in it's right place

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Remove the use of this->

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Fix the order of the DiveInformation tab bar.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Merge branch 'useStarWidgets' of git://github.com/tcanabrava/subsurface into Qt
Split report_dives into UI and logic and move to divelist files

Functionality is unchanged, except we now have a nice process_dives
function that deals with all the logic and that gets called from
report_dives from the Gtk code.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
MSVC is c89

In case someone wants to compile this with an outdated C compiler...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Fix building for Windows: cache the Windows-specific variables

Otherwise, we won't link to winsock or set the subsystem correctly.

Signed-off-by: Thiago Macieira <thiago@macieira.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Call the get_date functions with timestamp_t instead of struct tm

This is the much more natural way to use this function, now that I look at
it...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Use Subsurface's data structures for DiveItem

We have these data structures for a reason. They provide context
about the units used and prevent mistakes. And of course they
are used everywhere else so we should use them here, too.

This also tries to display some more data and make things look
a bit more like the Gtk version when it comes to alignment and
formatting.

My guess is this will make Qt developers' eyes bleed. My apologies.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Remove C99 named initialisation

This is one of the C99 features that C++ hasn't adopted (yet).

And as we've discussed on IRC, we may want to avoid C99 since it does
not look like MSVC will support it any time soon.

Signed-off-by: Thiago Macieira <thiago@macieira.org>