Hack to make tank selection work on Mac

This is an ugly hack as it partially breaks the ability to abort a selection
(so if you click outside of the combobox, the last value you hovered over is
selected). But this seems much better than not being able to select a different
tank at all.

Fixes #275

(and by 'Fixes' I mean "hacks to sort of make work"... but the trac automation
is rather inflexible in which words it understands...)

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Fix typo

All hail the groub!

Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Refactoring of the configuration handling.

Before, when clicking the OK button on the preferences GUI, we were
updating in-memory preferences from the GUI, saving them to the
configuration file from the GUI, reloading from the file to the
in-memory preferences. Then, to add to the ducplication, when the
application was exiting, some fields were saved again.
Basically the first step and the last step were useless appart from
the fact the the other steps where missing a few fields here and there.

This patch removes the first step and fixes the missing fields.

Signed-off-by: Patrick Valsecchi <patrick@thus.ch>
ACKed-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Added a configuration option to have gf_low apply at max depth instead of at deepest ceiling.

Signed-off-by: Patrick Valsecchi <patrick@thus.ch>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Rework csvimportdialog to make room for features

This rewires things a bit to make room for new features coming.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Make temperature optional in csv import

This adds a checkbox to be able to import csv files without temperature.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Give room for more options in csv dialog

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Simplify params numbering in parse_csv_file

When we add more fields, we don't need to renumber the whole thing.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Add optional support for po2 import from csv files

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Add optional support for cns import from csv files

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Add optional support for stopdepth import from csv

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Cleanup and bugfix gaschange event printing

When a gaschange to air happened, the code did
name += name=+ tr("air") which probably was due to the block being just
confusing with all the ?:
Unrolls to proper if statements, and fixes the bug.

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Revert "Get rid of the planner"

This reverts commit c4a47a7d60b53c9b2e2ffb874afaf733d43123aa.
Add a travis.yml to test a build.
Preferences: Add some limits to the GF's

Sets the limit for GF's in the preferences panel to 1<=x<=150 and color
it read if gf > 100

Signed-off-by: Anton Lundin <glance@acc.umu.se>
WIP: set backround red on high gf