V 10 1 LANG:1 8 (NoName) PANEL,-1 -1 973 694 N "_3DFace" 0 " main() { // -------- Access control ------------------------------------------- // Set the CB Function that Hook the change of Logged User dyn_string exceptionInfo; fwAccessControl_setupPanel(\"xxxDetector_LoggedUserAC\",exceptionInfo); if (dynlen(exceptionInfo)) { xxxDetector_LoggedUserAC(\"\",\"\"); // global \"reject\" } // ---------------------------------------------------------------------- // ---------------- Set the title into the main window ------------------ dcsUiBase_setMainTitle(\"TRD - Main Control Console\"); // ---------------------------------------------------------------------- } " 0 E E E E 1 0 0 0 0 0 ""0 1 E " // ------ Access Control related Functions ------------------------------------ // void xxxDetector_DisableAllAC() { // Put Here all commands to disable objects on panel } void xxxDetector_EnableAC(bool isObserver, bool isOperator, bool isExpert, bool isDeveloper) { if(isObserver) { // Put Here all commands to enable objects on panel // related to Observer grants } if(isOperator) { // Put Here all commands to enable objects on panel // related to Operator grants } if(isExpert) { // Put Here all commands to enable objects on panel // related to Expert grants } if(isDeveloper) { // Put Here all commands to enable objects on panel // related to Developer grants } } void xxxDetector_LoggedUserAC(string dp, string username_from_ui) { // Set the minimum users grants bool isObserver=false; bool isOperator=false; bool isExpert=false; bool isDeveloper=false; // Disable all items in the panel xxxDetector_DisableAllAC(); // Get Grants for the specified user dcsUiBase_getACGrants(isDeveloper,isExpert,isOperator,isObserver); // Now enable - this is related to the specific Policy rules xxxDetector_EnableAC(isObserver,isOperator,isExpert,isDeveloper); } // ------------------------------------------------------------------------------ " 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 6 Layer1 6 1 "bdUser" "" 1 432 198 E E E 1 E 1 E N {0,0,0} E N "_3DFace" E E E E 3 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" E E 0 1 1 2 1 E 1.26302083333333 0 1.26373626373626 -545.625 -250.21978021978 1 E 432 198 1200 744 6 2 "RECTANGLE1" "" 1 290 30 E E E 1 E 1 E N "_Transparent" E N "_3DFace" E E E E 4 0 0 0 0 0 E E E 0 1 LANG:1 0 1 "dashclr"N "_Transparent" "main() { string path; path = getPath(PROJ_PATH + \"/pictures/\"); this.fill(\"[pattern,[fit,bmp,fullTrdBWbigger.bmp]]\"); this.visible = TRUE; }" 0 E 0 1 1 2 1 E 1.07936507936508 0 1.1551724137931 -153.015873015873 -24.655172413793 2 1 0 "pictures/fullTrdBWbigger.bmp" 4294967295 E 290 30 920 610 0 LAYER, 1 1 LANG:1 6 Layer2 0 LAYER, 2 1 LANG:1 6 Layer3 0 LAYER, 3 1 LANG:1 6 Layer4 0 LAYER, 4 1 LANG:1 6 Layer5 0 LAYER, 5 1 LANG:1 6 Layer6 0 LAYER, 6 1 LANG:1 6 Layer7 0 LAYER, 7 1 LANG:1 6 Layer8 0 0