From 41e3faa7eb3b7f5384f64bf1b4fc7a5c199e6fad Mon Sep 17 00:00:00 2001 From: Arthur Coolen <coolen@astron.nl> Date: Thu, 11 Feb 2016 08:07:44 +0000 Subject: [PATCH] Task #5359: added webbasepanel --- .gitattributes | 1 + .../panels/Reports/LOFAR_WebBasePanel.pnl | 109 ++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 MAC/Navigator2/panels/Reports/LOFAR_WebBasePanel.pnl diff --git a/.gitattributes b/.gitattributes index 6d01dd4cc64..919bcf1b674 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3903,6 +3903,7 @@ MAC/Navigator2/panels/Processes/TBBDriver.pnl -text MAC/Navigator2/panels/Reports/LOFAR_Query.pnl -text MAC/Navigator2/panels/Reports/LOFAR_Reports_main.pnl -text MAC/Navigator2/panels/Reports/LOFAR_System.pnl -text +MAC/Navigator2/panels/Reports/LOFAR_WebBasePanel.pnl -text MAC/Navigator2/panels/Settings/mail.pnl -text MAC/Navigator2/panels/Settings/mail.pnl.bak -text MAC/Navigator2/panels/Test/Event_Viewer.pnl -text diff --git a/MAC/Navigator2/panels/Reports/LOFAR_WebBasePanel.pnl b/MAC/Navigator2/panels/Reports/LOFAR_WebBasePanel.pnl new file mode 100644 index 00000000000..5a0c56f7ec4 --- /dev/null +++ b/MAC/Navigator2/panels/Reports/LOFAR_WebBasePanel.pnl @@ -0,0 +1,109 @@ +V 11 +1 +LANG:1 0 +PANEL,-1 -1 995 718 N "_3DFace" 0 +"main() +{ + // Initialise the Panel + navPanel_initPanel(\"fw_viewBox\"); + + reload(); +} + +// +// Callback for dpConnect to action point. +// If there is an action required this point will tell so +// +void doAction(string aDP, string anAction) { + LOG_DEBUG(\"LOFAR_Scheduler.pnl:doAction| Action required. found: \" + anAction); + // split action into essentials + dyn_string actionString; + if (!navFunct_splitAction(anAction,actionString)) { + return; + } + + LOG_DEBUG(\"LOFAR_Scheduler.pnl:doAction|found actionString: \" + actionString); + + // Reload + if (actionString[1] == \"Reload\") { + reload(); + } +} + +void reload() { + + + // do all actions + // set panel to ready + g_objectReady=true; + + + // trigger that the panel values are calculated and ready + navPanel_setEvent(\"LOFAR_Scheduler.pnl\",\"Update\"); +} +" 0 + E E E E 1 -1 -1 0 140 140 +""0 1 +E "#uses \"navPanel.ctl\" + +string baseDP=\"\"; +" 0 + 2 +"CBRef" "1" +"EClose" E +"" +DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 +LAYER, 0 +1 +LANG:1 0 +29 0 +"WebView_ewo1" +"" +1 0 0 E E E 1 E 1 E N "_3DText" E N "_3DFace" E E + E E +0 0 0 0 0 0 +E E E +0 +1 +LANG:1 0 + +0 +1 +LANG:1 37 MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0 +0 0 0 1050 590 +11 WebView.ewo +0 +"main() +{ + this.load(\"http://www.astron.nl/lofar-schedule/schedule/schedule.php\"); +}" 0 +0 +LAYER, 1 +1 +LANG:1 0 +0 +LAYER, 2 +1 +LANG:1 0 +0 +LAYER, 3 +1 +LANG:1 0 +0 +LAYER, 4 +1 +LANG:1 0 +0 +LAYER, 5 +1 +LANG:1 0 +0 +LAYER, 6 +1 +LANG:1 0 +0 +LAYER, 7 +1 +LANG:1 0 +0 +0 -- GitLab