GO2cam Javascript API  6.11

Functions

static GO2SEnum::GO2SError GO2SDialogUtil::AddWidgetToTable (String tableName, String widgetName, Number row, Number col)
 
static void GO2SDialogUtil::FillRowFromArray (String name, Array< String > data, Number indRow=-1)
 
static void GO2SDialogUtil::FillTableFromArray (String name, Array< Array< String > > data, Boolean haveLabel=false)
 
static void GO2SDialogUtil::FillTableFromCSV (String name, String path, QChar separator=';')
 
static Number GO2SDialogUtil::GetColumnCount (String name)
 
static Number GO2SDialogUtil::GetCurrentColumnIndex (String name)
 
static Number GO2SDialogUtil::GetCurrentRowIndex (String name)
 
static Number GO2SDialogUtil::GetRowCount (String name)
 
static Array< String > GO2SDialogUtil::GetSelectedColumn (String name)
 
static Array< String > GO2SDialogUtil::GetSelectedRow (String name)
 
static Array< String > GO2SDialogUtil::GetTableColumn (String name, Number col)
 
static Array< String > GO2SDialogUtil::GetTableColumnByName (String name, String col)
 
static Array< String > GO2SDialogUtil::GetTableRow (String name, Number row)
 
static Array< String > GO2SDialogUtil::GetTableRowByName (String row, String name)
 
static String GO2SDialogUtil::GetTableValue (String name, Number row, Number col)
 
static Array< Array< String > > GO2SDialogUtil::GetTableValues (String name)
 
static void GO2SDialogUtil::RemoveColumn (String name, Number indCol)
 
static void GO2SDialogUtil::RemoveRow (String name, Number indRow)
 
static void GO2SDialogUtil::SetCellReadOnly (String name, Number row, Number col, Boolean readOnly=true)
 
static void GO2SDialogUtil::SetColumnCount (String name, Number number)
 
static void GO2SDialogUtil::SetColumnWidth (String name, Number col, Number size)
 
static void GO2SDialogUtil::SetRowCount (String name, Number number)
 
static void GO2SDialogUtil::SetTableColumnNames (String name, Array< String > value)
 
static void GO2SDialogUtil::SetTableRowNames (String name, Array< String > value)
 
static void GO2SDialogUtil::SetTableValue (String name, Number row, Number col, String value)
 

Detailed Description

Methods to manipulate QTableWidget

Function Documentation

◆ AddWidgetToTable()

static GO2SEnum::GO2SError GO2SDialogUtil::AddWidgetToTable ( String tableName,
String widgetName,
Number row,
Number col )
static

Add a widget (button...etc.) to a table

Parameters
[in]tableNamethe name of the table
[in]widgetNamethe name of the widget
[in]rownumber of row
[in]colnumber of column

◆ FillRowFromArray()

static void GO2SDialogUtil::FillRowFromArray ( String name,
Array< String > data,
Number indRow = -1 )
static

Fill a specific row of a table from an array

Remarks
The method will add missing rows if needed
Parameters
[in]namethe name of the table
[in]datathe data to add to the table
[in]indRowthe index of the row to fill. If -1, the last raw is used

◆ FillTableFromArray()

static void GO2SDialogUtil::FillTableFromArray ( String name,
Array< Array< String > > data,
Boolean haveLabel = false )
static

Fill the table from a Number vector (2 dim array rows and columns)

Parameters
[in]namethe name of the table
[in]datathe data to add to the table
[in]haveLabeltrue if the first row is a labels false if is data

◆ FillTableFromCSV()

static void GO2SDialogUtil::FillTableFromCSV ( String name,
String path,
QChar separator = ';' )
static

Fill the table from a CSV file

Parameters
[in]namethe name of the table
[in]paththe path of the .csv
[in]separatorthe separator used in the .csv

◆ GetColumnCount()

static Number GO2SDialogUtil::GetColumnCount ( String name)
static

Get the number of column of the table

Parameters
[in]namename of the table

◆ GetCurrentColumnIndex()

static Number GO2SDialogUtil::GetCurrentColumnIndex ( String name)
static

Get current column position in table

Parameters
[in]namename of the table

◆ GetCurrentRowIndex()

static Number GO2SDialogUtil::GetCurrentRowIndex ( String name)
static

Get current row position in table

Parameters
[in]namename of the table

◆ GetRowCount()

static Number GO2SDialogUtil::GetRowCount ( String name)
static

Get the number of row of the table

Parameters
[in]namename of the table

◆ GetSelectedColumn()

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

Get the selected Column of a table

Parameters
[in]namethe name of the input that contain the data

◆ GetSelectedRow()

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

Get the selected row of a table

Parameters
[in]namethe name of the input that contain the data

◆ GetTableColumn()

static Array< String > GO2SDialogUtil::GetTableColumn ( String name,
Number col )
static

Get a column from a table by his index

Parameters
[in]namethe name of the input that contain the data
[in]colindex of the column

◆ GetTableColumnByName()

static Array< String > GO2SDialogUtil::GetTableColumnByName ( String name,
String col )
static

Get a col from a table by his index

Parameters
[in]namethe name of the input that contain the data
[in]colheader name of the column

◆ GetTableRow()

static Array< String > GO2SDialogUtil::GetTableRow ( String name,
Number row )
static

Get a row from a table by his index

Parameters
[in]namethe name of the input that contain the data
[in]rowindex of the column

◆ GetTableRowByName()

static Array< String > GO2SDialogUtil::GetTableRowByName ( String row,
String name )
static

Get a row from a table by his name

Parameters
[in]rowheader name of the row
[in]namethe name of the input that contain the data

◆ GetTableValue()

static String GO2SDialogUtil::GetTableValue ( String name,
Number row,
Number col )
static

Get a specific item from a table

Parameters
[in]namethe name of the table that contain the data
[in]rowindex of the row
[in]colindex of the column

◆ GetTableValues()

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

Get all the value from the table

Parameters
[in]namethe name of the input that contain the data

◆ RemoveColumn()

static void GO2SDialogUtil::RemoveColumn ( String name,
Number indCol )
static

Remove a colomun from a table

Parameters
[in]namethe name of the table
[in]indColindex of the colomun to remove

◆ RemoveRow()

static void GO2SDialogUtil::RemoveRow ( String name,
Number indRow )
static

Remove a row from a table

Parameters
[in]namethe name of the table
[in]indRowindex of the row to remove

◆ SetCellReadOnly()

static void GO2SDialogUtil::SetCellReadOnly ( String name,
Number row,
Number col,
Boolean readOnly = true )
static

Set a cell in read only mode

Parameters
[in]namethe name of the table
[in]rowindex of the row
[in]colindex of the column
[in]readOnlyif true, set the cell read only

◆ SetColumnCount()

static void GO2SDialogUtil::SetColumnCount ( String name,
Number number )
static

Set the number of column of the table

Parameters
[in]namename of the table
[in]numbernumber of column

◆ SetColumnWidth()

static void GO2SDialogUtil::SetColumnWidth ( String name,
Number col,
Number size )
static

Set the column size of the table

Parameters
[in]namename of the table
[in]colindex of the column
[in]sizewidth of column

◆ SetRowCount()

static void GO2SDialogUtil::SetRowCount ( String name,
Number number )
static

Set the number of row of the table

Parameters
[in]namename of the table
[in]numbernumber of row

◆ SetTableColumnNames()

static void GO2SDialogUtil::SetTableColumnNames ( String name,
Array< String > value )
static

Set all column name of the table

Parameters
[in]namethe name of the table that contain the data
[in]valuevalue to set in the cell

◆ SetTableRowNames()

static void GO2SDialogUtil::SetTableRowNames ( String name,
Array< String > value )
static

Set all row name of the table

Parameters
[in]namethe name of the table that contain the data
[in]valuevalue to set in the cell

◆ SetTableValue()

static void GO2SDialogUtil::SetTableValue ( String name,
Number row,
Number col,
String value )
static

Set a cell of the table

Parameters
[in]namethe name of the table that contain the data
[in]rowindex of the row
[in]colindex of the column
[in]valuevalue to set in the cell