Reefnet Sensus dataloggers report in mbar (CSV import)

Sensus dataloggers report depth in (absolute) millibar. This simple
fix corrects the CSV import. The depth is now computed correctly.

Signed-off-by: Jan Mulder <jlmulder@planet.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Correctly handle dive selection after editing dives

It's a tricky problem as we need to remember this across a divelist sort
(as the user might have edited the date / time). The old code made not one
but two incorrect assumptions.
a) it assumed that the added or edited (but previously manually added)
dive was the last one in the dive list (clearly wrong when adding a dive
that has an earlier date)
b) it ignored the fact that refreshDisplay() would select the top dive in
the list if no dive was selected

This patch addresses both of them and makes the code easier to understand.

Fixes #480

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Fixing dive notes escape characters in worldmap exporter

Replacing the newlines in the string with <br> and changing the
single quote to its HTML number.

Also minor coding style updates to previous commit.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Edit name option for bookmarks

Add the option to edit the name of a bookmark to be more meaningful for
the user they prefer.
It works just as simple bookmarks and can be removed and hidden.
It won't accept names longer than 22 characters because longer names will
display as garbage text.
Also changed the code from displaying flag depending on event name to
depending on event type.

Signed-off-by: Yousef Hamza <jo.adama.93@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Random small whitespace cleanups

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add option of saving subsurface userid in xml
Fixes #473

Changes Made:
1. Choose if User ID is to be saved during import of divelogs from
   subsurface webservice. Save function must be called once for change
   to take effect.
2. Checkbox retains the last set option or as per present xml.
3. Suitable modifications made in parse-xml.c
4. If userid is present in xml, saving option is enabled, else
   disabled. For manually enabling it, use the webservices dialogbox.
5. The userid in the xml file does not override the settings until
   manually done so via webservices dialogbox.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>