unRecipe 9.1.0
|
Functions | |
void | unRecipeFunctions_getSelectedRecipeDp (string &sSelected, dyn_string &exceptionInfo) |
void | unRecipeFunctions_animateSelectionProgressBar (string sDpName) |
bool | unRecipeFunctions_selectItemInComboBox (string sShape, string sSelect, int indexOtherwise=1) |
void | _unRecipeFunctions_setTableColumnBGColor (string tableName, string columnName, string color) |
void | _unRecipeFunctions_setTableRowBGColor (string tableName, int rowIndex, string color) |
void | _unRecipeFunctions_setTableCellBGColor (string tableName, int rowIndex, string columnName, string color) |
void | _unRecipeFunctions_resetRecipeElementsBgColor () |
void | _unRecipeFunctions_setInvalidRows (dyn_string rows, string sTableName="RecipeElements") |
string | _unRecipeFunctions_adjustStringToSize (shape hiddenShape, string aString, int width) |
void | _unRecipeFunctions_setRecipeInstancePanelComponentsEnabled (bool value) |
void | _unRecipeFunctions_enableRecipeInstanceWarning (bool bEnable, string sMessage="") |
void | unRecipeFunctions_registerSelectButtonCB (string sDp, bool bSystemConnected) |
void | unRecipeFunctions_animateSelectButtonCB (string sDp1, bool bLocked, string sDp2, string sSelectedManager) |
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. |
void unRecipeFunctions_animateSelectionProgressBar | ( | string | sDpName | ) |
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. |
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. |
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. |
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. |
void _unRecipeFunctions_resetRecipeElementsBgColor | ( | ) |
Restore the original colors in the recipe elements table (recipe instance panel).
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. |
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. |
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. |
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. |
void unRecipeFunctions_registerSelectButtonCB | ( | string | sDp, |
bool | bSystemConnected | ||
) |
void unRecipeFunctions_animateSelectButtonCB | ( | string | sDp1, |
bool | bLocked, | ||
string | sDp2, | ||
string | sSelectedManager | ||
) |
void unRecipeFunctions_disconnectSelectButton | ( | ) |
Disconnection of the select button