From 4a1ad718ae06bd7635f0922b47bec0c2b9a90d92 Mon Sep 17 00:00:00 2001 From: Arthur Coolen <coolen@astron.nl> Date: Mon, 17 Dec 2012 15:32:18 +0000 Subject: [PATCH] Task #3705:added highlight to stations in main screen --- MAC/Navigator2/panels/objects/swlevel.pnl | 45 +++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/MAC/Navigator2/panels/objects/swlevel.pnl b/MAC/Navigator2/panels/objects/swlevel.pnl index 9d24fc0cff8..e8780cefabe 100644 --- a/MAC/Navigator2/panels/objects/swlevel.pnl +++ b/MAC/Navigator2/panels/objects/swlevel.pnl @@ -188,6 +188,51 @@ DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 LAYER, 0 1 LANG:1 0 +6 16 +"station_highLight" +"" +1 240 10 E E E 1 E 0 E N "_Transparent" E N "Lofar_highLight" E E + "main() +{ + rClick(); +}" 0 + "main() +{ + dblClick(); +}" 0 + +16 0 0 0 0 0 +E E E +0 +1 +LANG:1 0 + +1 +"dashclr"N "_Transparent" +"main() +{ + dpConnect( \"swlevel_stationCallback\",true,DPNAME_NAVIGATOR + g_navigatorID +\".objectTrigger\" ); +} + +void swlevel_stationCallback(string dp1, bool aTrig) { + + LOG_DEBUG(\"swlevel.pnl:swlevel_stationCallback|ObjectTrigger Callback on: \"+dp1+\" trigger: \"+aTrig); + LOG_DEBUG(\"swlevel.pnl:swlevel_stationCallback|Found highlight : \" + highlight + \" Looking for station\"); + bool bHighlight=false; + if (dynContains(highlight,station)) { + bHighlight=true; + } + LOG_DEBUG(\"swlevel.pnl:swlevel_stationCallback|Highlight request: \"+bHighlight); + station_highLight.visible = bHighlight; + +} + +" 0 + "main() +{ + click(); +}" 0 + 0 1 1 2 1 E 1 0 1 2 1 1 E 0 8 33 23 6 0 "level1_text" "" -- GitLab