Functions | |
void | unRecipeFunctions_getSelectedRecipeDp (string &sSelected, dyn_string &exceptionInfo) |
void | unRecipeFunctions_animateSelectionProgressBar (string sDpName) |
public bool | unRecipeFunctions_selectItemInComboBox (string sShape, string sSelect, int indexOtherwise=1) |
public bool | _unRecipeFunctions_showValuesOutOfRange (dyn_int diErrorLines) |
public void | _unRecipeFunctions_setTableColumnBGColor (string tableName, string columnName, string color) |
public void | _unRecipeFunctions_setTableRowBGColor (string tableName, int rowIndex, string color) |
public void | _unRecipeFunctions_setTableCellBGColor (string tableName, int rowIndex, string columnName, string color) |
public void | _unRecipeFunctions_resetRecipeElementsBgColor () |
public void | _unRecipeFunctions_setInvalidRows (dyn_string rows, string sTableName="RecipeElements") |
public string | _unRecipeFunctions_adjustStringToSize (shape hiddenShape, string aString, int width) |
public void | _unRecipeFunctions_setRecipeInstancePanelComponentsEnabled (bool value) |
public void | _unRecipeFunctions_enableRecipeInstanceWarning (bool bEnable, string sMessage="") |
public void | unRecipeFunctions_registerSelectButtonCB (string sDp, bool bSystemConnected) |
public void | unRecipeFunctions_animateSelectButtonCB (string sDp1, bool bLocked, string sDp2, string sSelectedManager) |
public void | unRecipeFunctions_disconnectSelectButton () |
UNICOS Copyright (C) CERN 2017 All rights reserved
unRcpFunctions_gui.ctl This file contains functions related to the graphical user interface.
void unRecipeFunctions_getSelectedRecipeDp | ( | string & | sSelected, | |
dyn_string & | exceptionInfo | |||
) |
Get the data point name of the recipe instance selected in the panel.
sSelected | - [OUT] DP name of the recipe instance selected in the panel. | |
exceptionInfo | - [OUT] Standard exception handling variable. |
Referenced by _unRecipeFunctions_loadHistoryTableInfo(), _unRecipeFunctions_loadPropertiesTableInfo(), unRecipeFunctions_animateSelectionProgressBar(), unRecipeFunctions_editRecipeInstance(), and unRecipeFunctions_loadRecipeInstanceData().
void unRecipeFunctions_animateSelectionProgressBar | ( | string | sDpName | ) |
Method used to animate the selection progress bar in the recipe instance panel.
sDpName | - [IN] Data point name of the selected recipe instance. |
Selection Progress Bar animation
References unRecipeFunctions_getSelectedRecipeDp().
public bool unRecipeFunctions_selectItemInComboBox | ( | string | sShape, | |
string | sSelect, | |||
int | indexOtherwise = 1 | |||
) |
Selects an item in a combo box.
sShape | - [IN] Combo box name. | |
sSelect | - [IN] Item to select. | |
indexOtherwise | - [IN] Index to select in case the selected item does not exist. |
Referenced by unRecipeFunctions_selectPcoRecipes().
public void _unRecipeFunctions_setTableColumnBGColor | ( | string | tableName, | |
string | columnName, | |||
string | color | |||
) |
Set the background color of a column in a table.
tableName | - [IN] The name of the table. | |
columnName | - [IN] The name of the column. | |
color | - [IN] The new color for the column. |
Referenced by unRecipeFunctions_editRecipeInstance(), and unRecipeFunctions_editRecipeValuesAndShowDifferences().
public void _unRecipeFunctions_setTableRowBGColor | ( | string | tableName, | |
int | rowIndex, | |||
string | color | |||
) |
Set the background color of a row in a table.
tableName | - [IN] The name of the table. | |
rowIndex | - [IN] The row index. | |
color | - [IN] The new color for the row. |
Referenced by _unRecipeFunctions_resetRecipeElementsBgColor(), and _unRecipeFunctions_setInvalidRows().
public void _unRecipeFunctions_setTableCellBGColor | ( | string | tableName, | |
int | rowIndex, | |||
string | columnName, | |||
string | color | |||
) |
Set the background color of a cell in a table.
tableName | - [IN] The name of the table. | |
rowIndex | - [IN] The row index. | |
columnName | - [IN] The name of the column. | |
color | - [IN] The new color for the row. |
Referenced by unRecipeFunctions_activateRecipes(), unRecipeFunctions_adoptOnlineValues(), unRecipeFunctions_checkRecipeStatus(), and unRecipeFunctions_compareOnlineValues().
public void _unRecipeFunctions_resetRecipeElementsBgColor | ( | ) |
Restore the original colors in the recipe elements table (recipe instance panel).
References _unRecipeFunctions_setTableRowBGColor().
Referenced by unRecipeFunctions_cancelEditRecipeInstance(), unRecipeFunctions_loadRecipeInstanceData(), and unRecipeFunctions_saveRecipeInstance().
public void _unRecipeFunctions_setInvalidRows | ( | dyn_string | rows, | |
string | sTableName = "RecipeElements" | |||
) |
Set the background color of the rows in the RecipeElements table that contains invalid values.
rows | - [IN] Indices of the invalid rows. | |
sTableName | - [IN] Name of the table where the invalid rows must be set. |
References _unRecipeFunctions_setTableRowBGColor().
Referenced by unRecipeFunctions_loadRecipeClassData(), and unRecipeFunctions_loadRecipeInstanceData().
public string _unRecipeFunctions_adjustStringToSize | ( | shape | hiddenShape, | |
string | aString, | |||
int | width | |||
) |
Method used to trim a label to the appropriate size.
hiddenShape | - [IN] Hidden shape (label) to calculate the width of the string. | |
aString | - [IN] String to be trimmed if its width is bigger than the size specified. | |
width | - [IN] Width of the shape where the label will be placed. |
Referenced by unUnRcpClass_WidgetCB(), and unUnRcpInstance_WidgetCB().
public void _unRecipeFunctions_setRecipeInstancePanelComponentsEnabled | ( | bool | value | ) |
Enable/disable some graphical components of the recipe instance panel (required for the recipe activation).
value | - [IN] The value for the enabled property of the graphical components. |
Referenced by _unRecipeFunctions_resetRecipeActivation(), and unRecipeFunctions_activateRecipe().
public void _unRecipeFunctions_enableRecipeInstanceWarning | ( | bool | bEnable, | |
string | sMessage = "" | |||
) |
Function to show/hide the recipe instance warning message.
bEnable | - [IN] Flag to specify the visibility of the warning message. | |
sMessage | - [IN] Message to display in the WarningText label. |
Referenced by _unRecipeFunctions_dpConnectRcpClassElementsCB(), _unRecipeFunctions_dpConnectRcpValuesCB(), unRecipeFunctions_loadRecipeInstanceData(), and unRecipeFunctions_saveRecipeInstance().
public void unRecipeFunctions_registerSelectButtonCB | ( | string | sDp, | |
bool | bSystemConnected | |||
) |
Registers the callback to the select button
sDp | - [IN] | |
bSystemConnected | - [IN] |
References unRecipeFunctions_disconnectSelectButton().
public void unRecipeFunctions_animateSelectButtonCB | ( | string | sDp1, | |
bool | bLocked, | |||
string | sDp2, | |||
string | sSelectedManager | |||
) |
public void unRecipeFunctions_disconnectSelectButton | ( | ) |
Disconnection of the select button
Referenced by unRecipeFunctions_registerSelectButtonCB().