]> git.street.me.uk Git - andy/viking.git/commit - src/vikaggregatelayer.c
Add track and waypoint highlight for the selected layer or individual item.
authorRob Norris <rw_norris@hotmail.com>
Fri, 13 Aug 2010 22:15:36 +0000 (23:15 +0100)
committerRob Norris <rw_norris@hotmail.com>
Thu, 31 Mar 2011 20:35:19 +0000 (21:35 +0100)
commita5dcfdb7c83c0251aa04359d0f98ee49a925738c
treec4093c7a2a2e58e8e5b49bed77d9ac42366d46ab
parent9d7c24ed1a765db2b1d60b92e0cabc104d1237d3
Add track and waypoint highlight for the selected layer or individual item.

Adds VikLayerFuncLayerSelected callback property into the layer, so that action can be taken by the each layer code.
The treeview on selection invokes the layer selection callback. The trwlayer on the selection callback, stores the selected item into the window, and turns highlight on or off as appropriate.
Provided the draw highlight mode is on, the drawing of selected track(s)/ waypoint(s) item(s) is amended, such that a selected track is shown in the highlight colour;
 a selected waypoint has it's text background of the name drawn in the highlight colour or if it has an image associated with it, then that is shown with a highlighted border.
ATM the highlight colour is hard coded to orange.
src/vikaggregatelayer.c
src/vikcoordlayer.c
src/vikdemlayer.c
src/vikgeoreflayer.c
src/vikgpslayer.c
src/viklayer.c
src/viklayer.h
src/vikmapslayer.c
src/viktreeview.c
src/viktrwlayer.c
src/viktrwlayer.h