| /////////////////////////////////////////////////////////////////////////////// |
| // // |
| // Copyright (c) 2000-2019 Ericsson Telecom AB // |
| // // |
| // All rights reserved. This program and the accompanying materials // |
| // are made available under the terms of the Eclipse Public License v2.0 // |
| // which accompanies this distribution, and is available at // |
| // https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html // |
| /////////////////////////////////////////////////////////////////////////////// |
| |
| /////////////////////////////////////////////////////////// |
| // Module: EPTF_CLL_GUIViewer_Functions |
| // |
| // Purpose: |
| // This module contains functions to GUIViewer feature. |
| // |
| // Module Parameters: |
| // charstring tsp_EPTF_GUIViewer_DBFileName |
| // charstring tsp_EPTF_GUIViewer_guiXMLFileName |
| // |
| // Module depends on: |
| // <EPTF_CLL_UIHandler_WidgetFunctions> |
| // <EPTF_CLL_UIHandler_Definitions> |
| // <EPTF_CLL_Base_Functions> |
| // |
| // Current Owner: |
| // EMIHMIK |
| // |
| // Last Review Date: |
| // 2012-xx-xx |
| // |
| // Detailed Comments: |
| // - |
| // |
| /////////////////////////////////////////////////////////////// |
| module EPTF_CLL_GUIViewer_Functions { |
| |
| import from EPTF_CLL_UIHandler_WidgetFunctions all; |
| import from EPTF_CLL_UIHandler_Definitions all; |
| import from EPTF_CLL_Base_Functions all; |
| |
| modulepar charstring tsp_EPTF_GUIViewer_DBFileName := "EPTF_CLL_GUIViewer.db" |
| modulepar charstring tsp_EPTF_GUIViewer_guiXMLFileName := "EPTF_CLL_GUIViewer.xml" |
| |
| type component EPTF_GUIViewer_CT extends EPTF_UIHandler_CT { |
| } |
| |
| /////////////////////////////////////////////////////////// |
| // Function: f_EPTF_GUIViewer_behaviour |
| // |
| // Purpose: |
| // Basic behaviour of the GUIViewer. |
| // |
| // Parameters: |
| // pl_selfName - *in* *charstring* - The name of the component. |
| // pl_simulation_buildDB_file - *in* *charstring* - parameter definies the file, |
| // what will be used as database to handle dataelements |
| // pl_guiXML - *in* *charstring* - Xml file to see its GUI layout. |
| // |
| // Return Value: |
| // - |
| // |
| // Errors: |
| // - |
| // |
| // Detailed Comments: |
| // With using this behaviour, a Custom GUI XML file layout can be displayed. |
| // |
| /////////////////////////////////////////////////////////// |
| function f_EPTF_GUIViewer_behaviour( |
| in charstring pl_selfName, |
| in charstring pl_simulation_buildDB_file := tsp_EPTF_GUIViewer_DBFileName, |
| in charstring pl_guiXML := tsp_EPTF_GUIViewer_guiXMLFileName |
| ) runs on EPTF_GUIViewer_CT { |
| f_EPTF_UIHandler_init_CT( |
| pl_selfName, |
| pl_connectGUI := true, |
| pl_windowLayout := "", |
| pl_CLI_compRef := null, |
| pl_prefix := tsp_EPTF_UIHandler_CLIPrefix, |
| pl_simulationMode :=true, |
| pl_simulation_buildDB_file := pl_simulation_buildDB_file); |
| |
| f_EPTF_UIHandler_createGUIFromFile(pl_guiXML); |
| |
| } |
| |
| testcase tc_EPTF_GUIViewer() runs on EPTF_GUIViewer_CT { |
| f_EPTF_GUIViewer_behaviour("GUIViewer"); |
| f_EPTF_Base_wait4Shutdown(); |
| f_EPTF_Base_stop(none); |
| |
| } |
| |
| |
| } //module EPTF_CLL_GUIViewer_Functions |
| |
| |