GO2cam Javascript API  6.11

Functions

static void GO2SDialogUtil::AddItemCombo (String name, String text, String icon="")
 
static void GO2SDialogUtil::ClearCombo (String name)
 
static Array< String > GO2SDialogUtil::GetComboData (String name)
 
static Number GO2SDialogUtil::GetComboIndex (String name)
 
static String GO2SDialogUtil::GetComboText (String name)
 
static void GO2SDialogUtil::RemoveItemCombo (String name, Number index)
 
static void GO2SDialogUtil::SetComboIndex (String name, Number index)
 
static void GO2SDialogUtil::SetComboText (String name, String item)
 

Detailed Description

Methods to manipulate QComboBox

Function Documentation

◆ AddItemCombo()

static void GO2SDialogUtil::AddItemCombo ( String name,
String text,
String icon = "" )
static

Set image for combo item

Parameters
[in]namethe name of the combobox
[in]texttext of the label
[in]iconpath of the icon

◆ ClearCombo()

static void GO2SDialogUtil::ClearCombo ( String name)
static

Clear combo box

Parameters
[in]namethe name of the combobox

◆ GetComboData()

static Array< String > GO2SDialogUtil::GetComboData ( String name)
static

Get all the item text of a QComboBox item

Parameters
[in]namethe name of the QComboBox in the .ui file

◆ GetComboIndex()

static Number GO2SDialogUtil::GetComboIndex ( String name)
static

Get the index of the selected QComboBox item (starts at 0)

Parameters
[in]namethe name of the QComboBox in the .ui file

◆ GetComboText()

static String GO2SDialogUtil::GetComboText ( String name)
static

Get the text of the selected QComboBox item

Parameters
[in]namethe name of the QComboBox in the .ui file

◆ RemoveItemCombo()

static void GO2SDialogUtil::RemoveItemCombo ( String name,
Number index )
static

Remove item from combo box

Parameters
[in]namethe name of the combobox
[in]indexindex of the item to delete

◆ SetComboIndex()

static void GO2SDialogUtil::SetComboIndex ( String name,
Number index )
static

Set the selected item in a QComboBox item

Parameters
[in]namethe name of the QComboBox in the .ui file
[in]indexitem index (starts at 0)

◆ SetComboText()

static void GO2SDialogUtil::SetComboText ( String name,
String item )
static

Set the selected item in a QComboBox item

Parameters
[in]namethe name of the QComboBox in the .ui file
[in]itemitem name (must already exist in the combo list)