GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QGoTableWidget Class Reference

inherits from the Qt class QTableWidget, manages all the interactions between the user and the data related to the traces More...

#include <Code/GUI/lib/QGoTableWidget.h>

Inheritance diagram for QGoTableWidget:
Inheritance graph
[legend]
Collaboration diagram for QGoTableWidget:
Collaboration graph
[legend]

Public Types

typedef
GoDBTableWidgetContainer::TWContainerType 
TWContainerType
 

Public Slots

void ChangeCheckStateSelectedRows (std::string iTraceName, std::string iTraceNameID, Qt::CheckState iState)
 uncheck/check the boxes in the check/uncheck column for the rows where at least one cell is selected More...
 
void ChangeVisibilityStateSelectedRows (std::string iTraceName, std::string iTraceNameID, Qt::CheckState iState)
 check/uncheck the visible boxes for the rows where at least one cell is selected More...
 
void CopySelection ()
 convert the text in the selection to a QString with anti slash n and anti slash t and put it in the Clipboard to be pasted in other applications More...
 
void CopyTable ()
 convert the text in the all table and the columns namse to a QString with anti slash n and anti slash t and put it in the Clipboard to be pasted in other applications More...
 

Signals

void CheckedRowsChanged (int iTraceID)
 
void ModifyHighlightListTraces (QStringList, Qt::CheckState)
 
void ModifyVisibilityListTraces (QStringList, Qt::CheckState)
 
void VisibleRowsChanged (int iTraceID)
 

Public Member Functions

void AddValuesForID (const std::vector< std::string > &iColumnsNames, const std::vector< std::string > &iValues, unsigned int iID, const std::string &iColumnNameForTraceID)
 add values in the table for the corresponding traceID and column names More...
 
void DeleteCheckedRows (const std::string &iTraceNameID, const std::list< unsigned int > &iTraceIDs)
 delete the rows previously checked by the user More...
 
void DeleteRowsAndColumns ()
 
void DeleteRowsWithSpecificTimePoints (const QStringList &iListTPs)
 
void DisplayColumnNames (const std::list< std::pair< std::string, std::string > > &iColumnNamesAndToolTip)
 create the table widget items for the columns Header and set the corresponding tooltips for them More...
 
void DisplayInitialContent (const TWContainerType &iTWRowContainer, const std::vector< int > &iIndexColorTraceRowContainer, const std::vector< int > &iIndexColorCollectionRowContainer, const std::string &iTraceName, const std::string &iCollectionName, const std::list< std::pair< std::string, std::string > > &iColumnNames, Qt::CheckState iState, int iIndexShowColumn=0)
 display the columns names and the content of iTWRowContainer in the table More...
 
GoDBCoordinateRow GetCoordinateCenterBoundingBox (unsigned int iTraceID, const std::string &iTraceName)
 calculate the center of the bounding box for the only selected trace and return it as a GoDBCoordinateRow More...
 
std::map< unsigned int,
std::string > 
GetTraceIDAndColumnsValues (const std::string &iTraceIDName, std::string &ioColumnName)
 
QString GetValue (unsigned int iTraceID, const std::string &iTraceName, const std::string &iColumn)
 
void InsertNewRows (const TWContainerType &iTWRowContainer, const std::vector< int > &iIndexColorTraceRowContainer, const std::vector< int > &iIndexColorCollectionRowContainer, const std::string &iTraceName, const std::string &iCollectionName, Qt::CheckState iVisible=Qt::Checked)
 
void InsertOnlyOneNewRow (const TWContainerType &iTWRowContainer, const std::vector< int > &iIndexColorTraceRowContainer, const std::vector< int > &iIndexColorCollectionRowContainer, const std::string &iTraceName, const std::string &iCollectionName, Qt::CheckState iVisible=Qt::Checked)
 Insert a new row and fill the cells with the data contained in the RowContainer. More...
 
 QGoTableWidget (QWidget *parent=0)
 
 QGoTableWidget (int rows, int columns, QWidget *parent=0)
 
void SetCheckStateForTraceID (unsigned int iTraceID, const std::string &iTraceName, Qt::CheckState iState, bool EmitSignal=true)
 set the state of the checkbox for the check/uncheck column and the TraceID row to iState More...
 
void SetVisibleStateForListTraceIDs (const std::list< unsigned int > &iListTraceIDs, Qt::CheckState iState, const std::string &iTraceName)
 update the checkboxes and icon of the visible column for the iListTraceIDs following iState More...
 
void SetVisibleStateForTraceID (unsigned int iTraceID, const std::string &iTraceName, Qt::CheckState iState, bool EmitSignal=true)
 set the state and icon of the checkbox for the IsVisible column and the TraceID row to iState More...
 
void ShowAllRows ()
 
void ShowOnlyRowsForTimePoint (unsigned int iTimePoint)
 hide all rows who have a timepoint different than iTimePoint More...
 
void UpdateRow (const TWContainerType &iTWRowContainer, const std::vector< int > &iIndexColorTraceRowContainer, const std::vector< int > &iIndexColorCollectionRowContainer, const std::string &iTraceName, const std::string &iCollectionName, int iTraceID)
 Replace the data in the cells corresponding to the traceID with the new data contained in the RowContainer. More...
 
virtual ~QGoTableWidget ()
 

Protected Slots

void sortItems (int iColumn, Qt::SortOrder iOrder)
 sort items given one column and one sort order. More...
 
void UpdateColumnsWithCheckBoxes (int iRow, int iColumn)
 check if the cell clicked is from the check/uncheck column or the "Show" column,change the state of the boxes correspondingly and emit the corresponding signal More...
 

Protected Member Functions

bool CheckValueToDisplayData (const std::string &iValue, const std::string &iHeaderCol)
 check if the value is suitable to be displayed, if yes, return true, if not return false so the QTableWidgetChildItem is not created for it More...
 
void DisplayDataForOneRow (const TWContainerType &iTWRowContainer, unsigned int iIndexTWRowContainer, int iIndexTWRow, const std::vector< int > &iIndexColorTraceRowContainer, const std::vector< int > &iIndexColorCollectionRowContainer, const std::string &iTraceName, const std::string &iCollectionName)
 
int findColumnName (const QString &iColumnName)
 return the column index who has a column header matching ColumnName More...
 
int findValueGivenColumn (int iValue, const QString &iColumn)
 return the row index where the given value is located when specifying the column name. More...
 
std::string GetMeanValue (const std::string &iColumnNameOne, const std::string &iColumnNameTwo, unsigned int iRowIndex)
 calculate the mean value for both columns in the given row More...
 
int GetRowForTraceID (unsigned int iTraceID, const std::string &iTraceName)
 return the RowIndex corresponding to the TraceID More...
 
int GetValueForItem (const std::string &iColumnName, int iRowIndex)
 get the value in the table for the given iRowIndex and for the given column name More...
 
void InsertNewRow (const TWContainerType &iTWRowContainer, unsigned int iIndexTWRowContainer, const std::vector< int > &iIndexColorTraceRowContainer, const std::vector< int > &iIndexColorCollectionRowContainer, const std::string &iTraceName, const std::string &iCollectionName, Qt::CheckState iVisible=Qt::Checked)
 
void PrepareRangeToCopy (const QTableWidgetSelectionRange &iRange, QString &istr)
 put the text in the cells which are part of the range in a QString and insert antislash n and antislash t to be read by other applications More...
 
QStringList recordHeaderNamesOrder ()
 
void setCheckedUncheckedStateCheckBox (QTableWidgetItem *iItem, Qt::CheckState iState, bool EmitSignal)
 change the state for the check/uncheck checkbox to iState and emit a signal if EmitSignal = true More...
 
bool setCheckStateCheckBox (QTableWidgetItem *iItem, Qt::CheckState iState)
 change the state for the checkbox to iState and return true if the state has been changed More...
 
void SetColorForTable (const TWContainerType &iTWRowContainer, unsigned int iIndexTWRowContainer, const std::vector< int > &iIndexColorRowContainer, const std::string &iNameGroupColor, unsigned int iIndexRowTW)
 get the rgba values from the iTWRowContainer and display them in the column NameGroupColorID More...
 
void SetSelectedColumn (unsigned int iIndexRow)
 Put checkboxes in the column "check/uncheck". More...
 
void SetVisibleColumn (unsigned int iIndexRow, Qt::CheckState iState=Qt::Checked)
 Put checkboxes and icons in the column "Show". More...
 
void setVisibleStateCheckBox (QTableWidgetItem *iItem, Qt::CheckState iState, bool EmitSignal=true)
 change the state and the icon for the "IsVisible" checkbox depending on iState and emit a signal if EmitSignal = true More...
 
QStringList ValuesForSelectedRows (const QString &iColumnName)
 return a list of the values of a specific column for the rows where the user has selected at least one cell. More...
 

Protected Attributes

int PrevCol
 
int PrevOrder
 

Detailed Description

inherits from the Qt class QTableWidget, manages all the interactions between the user and the data related to the traces

Definition at line 54 of file QGoTableWidget.h.

Member Typedef Documentation

Definition at line 63 of file QGoTableWidget.h.

Constructor & Destructor Documentation

QGoTableWidget::QGoTableWidget ( QWidget *  parent = 0)
explicit

Definition at line 46 of file QGoTableWidget.cxx.

QGoTableWidget::QGoTableWidget ( int  rows,
int  columns,
QWidget *  parent = 0 
)
explicit

Definition at line 60 of file QGoTableWidget.cxx.

QGoTableWidget::~QGoTableWidget ( )
virtual

Definition at line 68 of file QGoTableWidget.cxx.

Member Function Documentation

void QGoTableWidget::AddValuesForID ( const std::vector< std::string > &  iColumnsNames,
const std::vector< std::string > &  iValues,
unsigned int  iID,
const std::string &  iColumnNameForTraceID 
)

add values in the table for the corresponding traceID and column names

Parameters
[in]iColumnsNamesnames of the columns to display the values
[in]iValuesvector containing the values in the same order as the column names
[in]iIDID of the trace where to display the values
[in]iColumnNameForTraceIDname of the traceID

Definition at line 789 of file QGoTableWidget.cxx.

void QGoTableWidget::ChangeCheckStateSelectedRows ( std::string  iTraceName,
std::string  iTraceNameID,
Qt::CheckState  iState 
)
slot

uncheck/check the boxes in the check/uncheck column for the rows where at least one cell is selected

Parameters
[in]iTraceNamename of the trace
[in]iTraceNameIDname of the traceID
[in]iStatestate to which the checkboxes need to be modified

Definition at line 736 of file QGoTableWidget.cxx.

void QGoTableWidget::ChangeVisibilityStateSelectedRows ( std::string  iTraceName,
std::string  iTraceNameID,
Qt::CheckState  iState 
)
slot

check/uncheck the visible boxes for the rows where at least one cell is selected

Parameters
[in]iTraceNamename of the trace
[in]iTraceNameIDname of the traceID
[in]iStatestate to which the visibility need to be modified

Definition at line 762 of file QGoTableWidget.cxx.

void QGoTableWidget::CheckedRowsChanged ( int  iTraceID)
signal
bool QGoTableWidget::CheckValueToDisplayData ( const std::string &  iValue,
const std::string &  iHeaderCol 
)
protected

check if the value is suitable to be displayed, if yes, return true, if not return false so the QTableWidgetChildItem is not created for it

Parameters
[in]iValuevalue to be checked
[in]iHeaderColname of the column
Returns
true if the value needs to be displayed, false if not

Definition at line 526 of file QGoTableWidget.cxx.

void QGoTableWidget::CopySelection ( )
slot

convert the text in the selection to a QString with anti slash n and anti slash t and put it in the Clipboard to be pasted in other applications

Definition at line 635 of file QGoTableWidget.cxx.

void QGoTableWidget::CopyTable ( )
slot

convert the text in the all table and the columns namse to a QString with anti slash n and anti slash t and put it in the Clipboard to be pasted in other applications

Definition at line 653 of file QGoTableWidget.cxx.

void QGoTableWidget::DeleteCheckedRows ( const std::string &  iTraceNameID,
const std::list< unsigned int > &  iTraceIDs 
)

delete the rows previously checked by the user

Parameters
[in]iTraceNameIDname of the traceID displayed in the table
[in]iTraceIDslist of the traceIDs for which the rows need to be deleted

Definition at line 587 of file QGoTableWidget.cxx.

void QGoTableWidget::DeleteRowsAndColumns ( )

Definition at line 1066 of file QGoTableWidget.cxx.

void QGoTableWidget::DeleteRowsWithSpecificTimePoints ( const QStringList &  iListTPs)

Definition at line 1043 of file QGoTableWidget.cxx.

void QGoTableWidget::DisplayColumnNames ( const std::list< std::pair< std::string, std::string > > &  iColumnNamesAndToolTip)

create the table widget items for the columns Header and set the corresponding tooltips for them

Parameters
[in]iColumnNamesAndToolTiplist of all the names of the columns to be displayed in the table with their tooltips

Definition at line 252 of file QGoTableWidget.cxx.

void QGoTableWidget::DisplayDataForOneRow ( const TWContainerType iTWRowContainer,
unsigned int  iIndexTWRowContainer,
int  iIndexTWRow,
const std::vector< int > &  iIndexColorTraceRowContainer,
const std::vector< int > &  iIndexColorCollectionRowContainer,
const std::string &  iTraceName,
const std::string &  iCollectionName 
)
protected

Definition at line 394 of file QGoTableWidget.cxx.

void QGoTableWidget::DisplayInitialContent ( const TWContainerType iTWRowContainer,
const std::vector< int > &  iIndexColorTraceRowContainer,
const std::vector< int > &  iIndexColorCollectionRowContainer,
const std::string &  iTraceName,
const std::string &  iCollectionName,
const std::list< std::pair< std::string, std::string > > &  iColumnNames,
Qt::CheckState  iState,
int  iIndexShowColumn = 0 
)

display the columns names and the content of iTWRowContainer in the table

Todo:
Lydie: check if code reduction with a class member variable Tracename and a method to return TraceNameID from TraceName
Parameters
[in]iTWRowContainercontains the data to be displayed and the corresponding info to know how to display them
[in]iIndexColorTraceRowContainerindex to know where to find the color of the trace in the iTWRowContainer
[in]iIndexColorCollectionRowContainerindex to know where to find the color of the collection in the iTWRowContainer
[in]iTraceNamename of the trace
[in]iCollectionNamename of the collection
[in]iColumnNameslist of the column names to be displayed
[in]iStateif true, the isvisible is checked
[in]iIndexShowColumnindex of the show column in the TW Container( for contour and mesh)

Definition at line 302 of file QGoTableWidget.cxx.

int QGoTableWidget::findColumnName ( const QString &  iColumnName)
protected

return the column index who has a column header matching ColumnName

Parameters
[in]iColumnNamename of the column the index is needed
Returns
index of the column

Definition at line 116 of file QGoTableWidget.cxx.

int QGoTableWidget::findValueGivenColumn ( int  iValue,
const QString &  iColumn 
)
protected

return the row index where the given value is located when specifying the column name.

Parameters
[in]iValuevalue to be look for
[in]iColumnname of the column in which to look for
Returns
the row index where the value was found

Definition at line 88 of file QGoTableWidget.cxx.

GoDBCoordinateRow QGoTableWidget::GetCoordinateCenterBoundingBox ( unsigned int  iTraceID,
const std::string &  iTraceName 
)

calculate the center of the bounding box for the only selected trace and return it as a GoDBCoordinateRow

Parameters
[in]iTraceIDID for the trace the center of bounding box needs to be calculated
[in]iTraceNamename of the trace
Returns
GoDBCoordinateRow corresponds to the center of the bounding box for the trace

Definition at line 816 of file QGoTableWidget.cxx.

std::string QGoTableWidget::GetMeanValue ( const std::string &  iColumnNameOne,
const std::string &  iColumnNameTwo,
unsigned int  iRowIndex 
)
protected

calculate the mean value for both columns in the given row

Parameters
[in]iColumnNameOnename of the first column
[in]iColumnNameTwoname of the second column
[in]iRowIndexindex of the row for which the mean value is needed
Returns
the mean value of both columns in the given row

Definition at line 859 of file QGoTableWidget.cxx.

int QGoTableWidget::GetRowForTraceID ( unsigned int  iTraceID,
const std::string &  iTraceName 
)
protected

return the RowIndex corresponding to the TraceID

Parameters
[in]iTraceIDID of the Trace
[in]iTraceNamename of the trace
Returns
the index of the row where the traceID was found

Definition at line 208 of file QGoTableWidget.cxx.

std::map< unsigned int, std::string > QGoTableWidget::GetTraceIDAndColumnsValues ( const std::string &  iTraceIDName,
std::string &  ioColumnName 
)
Returns
a map with all the traceIDs and the values of the column for which a cell of a column is selected
Parameters
[in]iTraceIDNamename of the column for TraceID
[in,out]ioColumnNamename of the column of the values

Definition at line 957 of file QGoTableWidget.cxx.

QString QGoTableWidget::GetValue ( unsigned int  iTraceID,
const std::string &  iTraceName,
const std::string &  iColumn 
)

Definition at line 838 of file QGoTableWidget.cxx.

int QGoTableWidget::GetValueForItem ( const std::string &  iColumnName,
int  iRowIndex 
)
protected

get the value in the table for the given iRowIndex and for the given column name

Parameters
[in]iColumnNamename of the column for which the value is needed
[in]iRowIndexindex of the row for which the value is needed
Returns
corresponding value for the item

Definition at line 849 of file QGoTableWidget.cxx.

void QGoTableWidget::InsertNewRow ( const TWContainerType iTWRowContainer,
unsigned int  iIndexTWRowContainer,
const std::vector< int > &  iIndexColorTraceRowContainer,
const std::vector< int > &  iIndexColorCollectionRowContainer,
const std::string &  iTraceName,
const std::string &  iCollectionName,
Qt::CheckState  iVisible = Qt::Checked 
)
protected

Definition at line 454 of file QGoTableWidget.cxx.

void QGoTableWidget::InsertNewRows ( const TWContainerType iTWRowContainer,
const std::vector< int > &  iIndexColorTraceRowContainer,
const std::vector< int > &  iIndexColorCollectionRowContainer,
const std::string &  iTraceName,
const std::string &  iCollectionName,
Qt::CheckState  iVisible = Qt::Checked 
)

Definition at line 474 of file QGoTableWidget.cxx.

void QGoTableWidget::InsertOnlyOneNewRow ( const TWContainerType iTWRowContainer,
const std::vector< int > &  iIndexColorTraceRowContainer,
const std::vector< int > &  iIndexColorCollectionRowContainer,
const std::string &  iTraceName,
const std::string &  iCollectionName,
Qt::CheckState  iVisible = Qt::Checked 
)

Insert a new row and fill the cells with the data contained in the RowContainer.

Parameters
[in]iTWRowContainercontains the data to be displayed and the corresponding info to know how to display them for one row only
[in]iIndexColorTraceRowContainerindex to know where to find the color of the trace in the iTWRowContainer
[in]iIndexColorCollectionRowContainerindex to know where to find the color of the collection in the iTWRowContainer
[in]iTraceNamename of the trace
[in]iCollectionNamename of the collection

Definition at line 497 of file QGoTableWidget.cxx.

void QGoTableWidget::ModifyHighlightListTraces ( QStringList  ,
Qt::CheckState   
)
signal
void QGoTableWidget::ModifyVisibilityListTraces ( QStringList  ,
Qt::CheckState   
)
signal
void QGoTableWidget::PrepareRangeToCopy ( const QTableWidgetSelectionRange &  iRange,
QString &  istr 
)
protected

put the text in the cells which are part of the range in a QString and insert antislash n and antislash t to be read by other applications

Parameters
[in]iRangeselected cells
[in,out]istrtext of the selected cells

Definition at line 679 of file QGoTableWidget.cxx.

QStringList QGoTableWidget::recordHeaderNamesOrder ( )
protected

Definition at line 133 of file QGoTableWidget.cxx.

void QGoTableWidget::setCheckedUncheckedStateCheckBox ( QTableWidgetItem *  iItem,
Qt::CheckState  iState,
bool  EmitSignal 
)
protected

change the state for the check/uncheck checkbox to iState and emit a signal if EmitSignal = true

Parameters
[in]iItemitem in the tablewidget where there is a checkbox in the "Checked/Unchecked" column
[in]iStatestate to which the Checkbox needs to be set
[in]EmitSignalif true, a signal will be emitted with the corresponding TraceID

Definition at line 873 of file QGoTableWidget.cxx.

bool QGoTableWidget::setCheckStateCheckBox ( QTableWidgetItem *  iItem,
Qt::CheckState  iState 
)
protected

change the state for the checkbox to iState and return true if the state has been changed

Parameters
[in]iItemitem with a checkbox
[in]iStatestate to which the checkbox needs to be set

Definition at line 922 of file QGoTableWidget.cxx.

void QGoTableWidget::SetCheckStateForTraceID ( unsigned int  iTraceID,
const std::string &  iTraceName,
Qt::CheckState  iState,
bool  EmitSignal = true 
)

set the state of the checkbox for the check/uncheck column and the TraceID row to iState

Parameters
[in]iTraceIDtraceID for which the checkbox state needs to be set
[in]iTraceNamename of the trace
[in]iStatestate to which the checkbox needs to be set
[in]EmitSignalif set to true, will emit a signal to tell if the state has changed, if set to false will not emit,set to true by default

Definition at line 184 of file QGoTableWidget.cxx.

void QGoTableWidget::SetColorForTable ( const TWContainerType iTWRowContainer,
unsigned int  iIndexTWRowContainer,
const std::vector< int > &  iIndexColorRowContainer,
const std::string &  iNameGroupColor,
unsigned int  iIndexRowTW 
)
protected

get the rgba values from the iTWRowContainer and display them in the column NameGroupColorID

Parameters
[in]iTWRowContainercontains the data to be displayed
[in]iIndexColorRowContainerindex of the iTWRowContainer to find the rgba values
[in]iNameGroupColorname of the trace for which the color needs to be displayed
[in]iStartRowindex of the first row where to display the color

Definition at line 358 of file QGoTableWidget.cxx.

void QGoTableWidget::SetSelectedColumn ( unsigned int  iIndexRow)
protected

Put checkboxes in the column "check/uncheck".

Parameters
[in]iNbOfRowsnumber of rows for which to put a checkbox
[in]iStartedRowindex of the first row where to put a checkbox

Definition at line 322 of file QGoTableWidget.cxx.

void QGoTableWidget::SetVisibleColumn ( unsigned int  iIndexRow,
Qt::CheckState  iState = Qt::Checked 
)
protected

Put checkboxes and icons in the column "Show".

Parameters
[in]iNbOfRowsnumber of rows for which to put a checkbox and an icon
[in]iStartedRowindex of the first row where to put a checkbox and an icon
[in]iStatestate to which the checkboxes need to be set

Definition at line 340 of file QGoTableWidget.cxx.

void QGoTableWidget::setVisibleStateCheckBox ( QTableWidgetItem *  iItem,
Qt::CheckState  iState,
bool  EmitSignal = true 
)
protected

change the state and the icon for the "IsVisible" checkbox depending on iState and emit a signal if EmitSignal = true

Parameters
[in]iItemitem in the tablewidget where there is a checkbox in the "IsVisible" column
[in]iStatestate to which the Checkbox and the icon need to be set
[in]EmitSignalif true, a signal will be emitted with the corresponding TraceID

Definition at line 890 of file QGoTableWidget.cxx.

void QGoTableWidget::SetVisibleStateForListTraceIDs ( const std::list< unsigned int > &  iListTraceIDs,
Qt::CheckState  iState,
const std::string &  iTraceName 
)

update the checkboxes and icon of the visible column for the iListTraceIDs following iState

Parameters
[in]iListTraceIDslist of the IDs for the traces with visiblity to be set to iState
[in]iStatestate to which the column IsVisible needs to be modified for iListTraceIDs
[in]iTraceNamename of the trace

Definition at line 167 of file QGoTableWidget.cxx.

void QGoTableWidget::SetVisibleStateForTraceID ( unsigned int  iTraceID,
const std::string &  iTraceName,
Qt::CheckState  iState,
bool  EmitSignal = true 
)

set the state and icon of the checkbox for the IsVisible column and the TraceID row to iState

Parameters
[in]iTraceIDtraceID for which the IsVisible checkbox state needs to be set
[in]iTraceNamename of the trace
[in]iStatestate to which the checkbox and the icon need to be set
[in]EmitSignalif set to true, will emit a signal to tell if the state has changed, if set to false will not emit,set to true by default

Definition at line 148 of file QGoTableWidget.cxx.

void QGoTableWidget::ShowAllRows ( )

Definition at line 1033 of file QGoTableWidget.cxx.

void QGoTableWidget::ShowOnlyRowsForTimePoint ( unsigned int  iTimePoint)

hide all rows who have a timepoint different than iTimePoint

Parameters
[in]iTimePointcurrent timepoint

Definition at line 1006 of file QGoTableWidget.cxx.

void QGoTableWidget::sortItems ( int  iColumn,
Qt::SortOrder  iOrder 
)
protectedslot

sort items given one column and one sort order.

Parameters
[in]iColumnindex of the column to be sorted
[in]iOrderorder for the column to be sorted

Definition at line 75 of file QGoTableWidget.cxx.

void QGoTableWidget::UpdateColumnsWithCheckBoxes ( int  iRow,
int  iColumn 
)
protectedslot

check if the cell clicked is from the check/uncheck column or the "Show" column,change the state of the boxes correspondingly and emit the corresponding signal

Parameters
[in]iRowindex of the row clicked
[in]iColumnindex of the column clicked

Definition at line 604 of file QGoTableWidget.cxx.

void QGoTableWidget::UpdateRow ( const TWContainerType iTWRowContainer,
const std::vector< int > &  iIndexColorTraceRowContainer,
const std::vector< int > &  iIndexColorCollectionRowContainer,
const std::string &  iTraceName,
const std::string &  iCollectionName,
int  iTraceID 
)

Replace the data in the cells corresponding to the traceID with the new data contained in the RowContainer.

Parameters
[in]iTWRowContainercontains the data to be displayed and the corresponding info to know how to display them for one row only
[in]iIndexColorTraceRowContainerindex to know where to find the color of the trace in the iTWRowContainer
[in]iIndexColorCollectionRowContainerindex to know where to find the color of the collection in the iTWRowContainer
[in]iTraceNamename of the trace
[in]iCollectionNamename of the collection
[in]iTraceIDID of the trace to be updated

Definition at line 543 of file QGoTableWidget.cxx.

QStringList QGoTableWidget::ValuesForSelectedRows ( const QString &  iColumnName)
protected

return a list of the values of a specific column for the rows where the user has selected at least one cell.

Parameters
[in]iColumnNamename of the column to look for value
Returns
QStringList of the values for the column where the user has selected at least once cell in the same row

Definition at line 230 of file QGoTableWidget.cxx.

void QGoTableWidget::VisibleRowsChanged ( int  iTraceID)
signal

Member Data Documentation

int QGoTableWidget::PrevCol
protected

Definition at line 293 of file QGoTableWidget.h.

int QGoTableWidget::PrevOrder
protected

Definition at line 294 of file QGoTableWidget.h.


The documentation for this class was generated from the following files: