]> git.street.me.uk Git - andy/viking.git/commit - src/vikdemlayer.c
Enable widget sensitivity in the layer properties to be controlled.
authorRob Norris <rw_norris@hotmail.com>
Thu, 26 Sep 2013 18:13:42 +0000 (19:13 +0100)
committerRob Norris <rw_norris@hotmail.com>
Wed, 16 Oct 2013 22:45:10 +0000 (23:45 +0100)
commitdb43cfa4df71667eeb27da8db6a48d3ab63e2fea
tree8139d38a4d587ee03a8f9854e93d50b734064e5a
parentb1f2d51fcb9b4e8534c56781f85651f98b010353
Enable widget sensitivity in the layer properties to be controlled.

Some settings are only relevant when other settings are in the right state.

Allow control of the sensitivities to be adjusted when changes to the widget values have been made.
Changes to each widget have to be considered separately (referenced via the parameter enumeration numbers).

Also expose the label widgets so they many be controlled.

ATM control these settings:
Maps:
 Auto Download -> Auto Download Only Missing
TrackWaypoints:
 Waypoint Draw Labels -> Font Size, Colour, BG Colour & BG Translucency.
 Waypoint Draw Image -> Image Size, Image Alpha + Cache Size.
 Track Draw Mode -> All Tracks Colour

NB Since most track settings have been split across into the Advanced tab,
 IMHO controlling sensitivities of widgets in another tab is not obvious,
 so these relationships have not been changed.
13 files changed:
src/preferences.c
src/uibuilder.c
src/uibuilder.h
src/vikaggregatelayer.c
src/vikcoordlayer.c
src/vikdemlayer.c
src/vikgeoreflayer.c
src/vikgpslayer.c
src/viklayer.c
src/viklayer.h
src/viklayer_defaults.c
src/vikmapslayer.c
src/viktrwlayer.c