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:
[legend]
Collaboration diagram for QGoTableWidget:
[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
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
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
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

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
void DeleteCheckedRows (const std::string &iTraceNameID, const std::list< unsigned int > &iTraceIDs)
 delete the rows previously checked by the user
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
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
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
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.
 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
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
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
void ShowAllRows ()
void ShowOnlyRowsForTimePoint (unsigned int iTimePoint)
 hide all rows who have a timepoint different than iTimePoint
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.
virtual ~QGoTableWidget ()
- Public Member Functions inherited from QTableWidget
void cellActivated (int row, int column)
void cellChanged (int row, int column)
void cellClicked (int row, int column)
void cellDoubleClicked (int row, int column)
void cellEntered (int row, int column)
void cellPressed (int row, int column)
QWidgetcellWidget (int row, int column) const
void clear ()
void clearContents ()
void closePersistentEditor (QTableWidgetItem *item)
int column (const QTableWidgetItem *item) const
int columnCount () const
void currentCellChanged (int currentRow, int currentColumn, int previousRow, int previousColumn)
int currentColumn () const
QTableWidgetItemcurrentItem () const
void currentItemChanged (QTableWidgetItem *current, QTableWidgetItem *previous)
int currentRow () const
void editItem (QTableWidgetItem *item)
QList< QTableWidgetItem * > findItems (const QString &text, QFlags< Qt::MatchFlag > flags) const
QTableWidgetItemhorizontalHeaderItem (int column) const
void insertColumn (int column)
void insertRow (int row)
bool isItemSelected (const QTableWidgetItem *item) const
QTableWidgetItemitem (int row, int column) const
void itemActivated (QTableWidgetItem *item)
QTableWidgetItemitemAt (const QPoint &point) const
QTableWidgetItemitemAt (int ax, int ay) const
void itemChanged (QTableWidgetItem *item)
void itemClicked (QTableWidgetItem *item)
void itemDoubleClicked (QTableWidgetItem *item)
void itemEntered (QTableWidgetItem *item)
void itemPressed (QTableWidgetItem *item)
const QTableWidgetItemitemPrototype () const
void itemSelectionChanged ()
void openPersistentEditor (QTableWidgetItem *item)
 QTableWidget (int rows, int columns, QWidget *parent)
 QTableWidget (QWidget *parent)
void removeCellWidget (int row, int column)
void removeColumn (int column)
void removeRow (int row)
int row (const QTableWidgetItem *item) const
int rowCount () const
void scrollToItem (const QTableWidgetItem *item, QAbstractItemView::ScrollHint hint)
QList< QTableWidgetItem * > selectedItems ()
QList< QTableWidgetSelectionRangeselectedRanges () const
void setCellWidget (int row, int column, QWidget *widget)
void setColumnCount (int columns)
void setCurrentCell (int row, int column, QFlags< QItemSelectionModel::SelectionFlag > command)
void setCurrentCell (int row, int column)
void setCurrentItem (QTableWidgetItem *item)
void setCurrentItem (QTableWidgetItem *item, QFlags< QItemSelectionModel::SelectionFlag > command)
void setHorizontalHeaderItem (int column, QTableWidgetItem *item)
void setHorizontalHeaderLabels (const QStringList &labels)
void setItem (int row, int column, QTableWidgetItem *item)
void setItemPrototype (const QTableWidgetItem *item)
void setItemSelected (const QTableWidgetItem *item, bool select)
void setRangeSelected (const QTableWidgetSelectionRange &range, bool select)
void setRowCount (int rows)
void setVerticalHeaderItem (int row, QTableWidgetItem *item)
void setVerticalHeaderLabels (const QStringList &labels)
void sortItems (int column, Qt::SortOrder order)
QTableWidgetItemtakeHorizontalHeaderItem (int column)
QTableWidgetItemtakeItem (int row, int column)
QTableWidgetItemtakeVerticalHeaderItem (int row)
QTableWidgetItemverticalHeaderItem (int row) const
int visualColumn (int logicalColumn) const
QRect visualItemRect (const QTableWidgetItem *item) const
int visualRow (int logicalRow) const
 ~QTableWidget ()
- Public Member Functions inherited from QTableView
void clearSpans ()
int columnAt (int x) const
int columnSpan (int row, int column) const
int columnViewportPosition (int column) const
int columnWidth (int column) const
Qt::PenStyle gridStyle () const
void hideColumn (int column)
void hideRow (int row)
QHeaderViewhorizontalHeader () const
virtual QModelIndex indexAt (const QPoint &pos) const
bool isColumnHidden (int column) const
bool isCornerButtonEnabled () const
bool isRowHidden (int row) const
bool isSortingEnabled () const
 QTableView (QWidget *parent)
void resizeColumnsToContents ()
void resizeColumnToContents (int column)
void resizeRowsToContents ()
void resizeRowToContents (int row)
int rowAt (int y) const
int rowHeight (int row) const
int rowSpan (int row, int column) const
int rowViewportPosition (int row) const
void selectColumn (int column)
void selectRow (int row)
void setColumnHidden (int column, bool hide)
void setColumnWidth (int column, int width)
void setCornerButtonEnabled (bool enable)
void setGridStyle (Qt::PenStyle style)
void setHorizontalHeader (QHeaderView *header)
virtual void setModel (QAbstractItemModel *model)
virtual void setRootIndex (const QModelIndex &index)
void setRowHeight (int row, int height)
void setRowHidden (int row, bool hide)
virtual void setSelectionModel (QItemSelectionModel *selectionModel)
void setShowGrid (bool show)
void setSortingEnabled (bool enable)
void setSpan (int row, int column, int rowSpanCount, int columnSpanCount)
void setVerticalHeader (QHeaderView *header)
void setWordWrap (bool on)
void showColumn (int column)
bool showGrid () const
void showRow (int row)
void sortByColumn (int column)
void sortByColumn (int column, Qt::SortOrder order)
QHeaderViewverticalHeader () const
bool wordWrap () const
 ~QTableView ()
- Public Member Functions inherited from QAbstractItemView
void activated (const QModelIndex &index)
bool alternatingRowColors () const
int autoScrollMargin () const
void clearSelection ()
void clicked (const QModelIndex &index)
void closePersistentEditor (const QModelIndex &index)
QModelIndex currentIndex () const
Qt::DropAction defaultDropAction () const
void doubleClicked (const QModelIndex &index)
DragDropMode dragDropMode () const
bool dragDropOverwriteMode () const
bool dragEnabled () const
void edit (const QModelIndex &index)
EditTriggers editTriggers () const
void entered (const QModelIndex &index)
bool hasAutoScroll () const
ScrollMode horizontalScrollMode () const
QSize iconSize () const
QWidgetindexWidget (const QModelIndex &index) const
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
QAbstractItemDelegateitemDelegate () const
QAbstractItemDelegateitemDelegate (const QModelIndex &index) const
QAbstractItemDelegateitemDelegateForColumn (int column) const
QAbstractItemDelegateitemDelegateForRow (int row) const
virtual void keyboardSearch (const QString &search)
QAbstractItemModelmodel () const
void openPersistentEditor (const QModelIndex &index)
void pressed (const QModelIndex &index)
 QAbstractItemView (QWidget *parent)
virtual void reset ()
QModelIndex rootIndex () const
virtual void scrollTo (const QModelIndex &index, ScrollHint hint)=0
void scrollToBottom ()
void scrollToTop ()
virtual void selectAll ()
QAbstractItemView::SelectionBehavior selectionBehavior () const
QAbstractItemView::SelectionMode selectionMode () const
QItemSelectionModelselectionModel () const
void setAlternatingRowColors (bool enable)
void setAutoScroll (bool enable)
void setAutoScrollMargin (int margin)
void setCurrentIndex (const QModelIndex &index)
void setDefaultDropAction (Qt::DropAction dropAction)
void setDragDropMode (DragDropMode behavior)
void setDragDropOverwriteMode (bool overwrite)
void setDragEnabled (bool enable)
void setDropIndicatorShown (bool enable)
void setEditTriggers (QFlags< QAbstractItemView::EditTrigger > triggers)
void setHorizontalScrollMode (ScrollMode mode)
void setIconSize (const QSize &size)
void setIndexWidget (const QModelIndex &index, QWidget *widget)
void setItemDelegate (QAbstractItemDelegate *delegate)
void setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate)
void setItemDelegateForRow (int row, QAbstractItemDelegate *delegate)
void setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior)
void setSelectionMode (QAbstractItemView::SelectionMode mode)
void setTabKeyNavigation (bool enable)
void setTextElideMode (Qt::TextElideMode mode)
void setVerticalScrollMode (ScrollMode mode)
bool showDropIndicator () const
QSize sizeHintForIndex (const QModelIndex &index) const
bool tabKeyNavigation () const
Qt::TextElideMode textElideMode () const
void update (const QModelIndex &index)
ScrollMode verticalScrollMode () const
void viewportEntered ()
virtual QRect visualRect (const QModelIndex &index) const =0
 ~QAbstractItemView ()
- Public Member Functions inherited from QAbstractScrollArea
void addScrollBarWidget (QWidget *widget, QFlags< Qt::AlignmentFlag > alignment)
QWidgetcornerWidget () const
QScrollBarhorizontalScrollBar () const
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
QSize maximumViewportSize () const
virtual QSize minimumSizeHint () const
 QAbstractScrollArea (QWidget *parent)
QWidgetList scrollBarWidgets (QFlags< Qt::AlignmentFlag > alignment)
void setCornerWidget (QWidget *widget)
void setHorizontalScrollBar (QScrollBar *scrollBar)
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
void setVerticalScrollBar (QScrollBar *scrollBar)
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
void setViewport (QWidget *widget)
virtual QSize sizeHint () const
QScrollBarverticalScrollBar () const
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
QWidgetviewport () const
 ~QAbstractScrollArea ()
- Public Member Functions inherited from QFrame
QRect frameRect () const
Shadow frameShadow () const
Shape frameShape () const
int frameStyle () const
int frameWidth () const
int lineWidth () const
int midLineWidth () const
 QFrame (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 QFrame (QWidget *parent, QFlags< Qt::WindowType > f)
void setFrameRect (const QRect &)
void setFrameShadow (Shadow)
void setFrameShape (Shape)
void setFrameStyle (int style)
void setLineWidth (int)
void setMidLineWidth (int)
 ~QFrame ()
- Public Member Functions inherited from QWidget
bool acceptDrops () const
QString accessibleDescription () const
QString accessibleName () const
QList< QAction * > actions () const
void activateWindow ()
void addAction (QAction *action)
void addActions (QList< QAction * > actions)
void adjustSize ()
bool autoFillBackground () const
Qt::BackgroundMode backgroundMode () const
QPoint backgroundOffset () const
BackgroundOrigin backgroundOrigin () const
QPalette::ColorRole backgroundRole () const
QSize baseSize () const
QString caption () const
QWidgetchildAt (int x, int y, bool includeThis) const
QWidgetchildAt (const QPoint &p, bool includeThis) const
QWidgetchildAt (int x, int y) const
QWidgetchildAt (const QPoint &p) const
QRect childrenRect () const
QRegion childrenRegion () const
void clearFocus ()
void clearMask ()
bool close (bool alsoDelete)
bool close ()
QColorGroup colorGroup () const
void constPolish () const
QMargins contentsMargins () const
QRect contentsRect () const
Qt::ContextMenuPolicy contextMenuPolicy () const
QCursor cursor () const
void customContextMenuRequested (const QPoint &pos)
void drawText (const QPoint &p, const QString &s)
void drawText (int x, int y, const QString &s)
WId effectiveWinId () const
void ensurePolished () const
void erase ()
void erase (const QRegion &rgn)
void erase (const QRect &rect)
void erase (int x, int y, int w, int h)
Qt::FocusPolicy focusPolicy () const
QWidgetfocusProxy () const
QWidgetfocusWidget () const
const QFontfont () const
QFontInfo fontInfo () const
QFontMetrics fontMetrics () const
QPalette::ColorRole foregroundRole () const
QRect frameGeometry () const
QSize frameSize () const
const QRectgeometry () const
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
virtual HDC getDC () const
void grabGesture (Qt::GestureType gesture, QFlags< Qt::GestureFlag > flags)
void grabKeyboard ()
void grabMouse ()
void grabMouse (const QCursor &cursor)
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
QGraphicsEffectgraphicsEffect () const
QGraphicsProxyWidgetgraphicsProxyWidget () const
bool hasEditFocus () const
bool hasFocus () const
bool hasMouse () const
bool hasMouseTracking () const
int height () const
virtual int heightForWidth (int w) const
void hide ()
const QPixmapicon () const
void iconify ()
QString iconText () const
QInputContextinputContext ()
Qt::InputMethodHints inputMethodHints () const
void insertAction (QAction *before, QAction *action)
void insertActions (QAction *before, QList< QAction * > actions)
bool isActiveWindow () const
bool isAncestorOf (const QWidget *child) const
bool isDesktop () const
bool isDialog () const
bool isEnabled () const
bool isEnabledTo (QWidget *ancestor) const
bool isEnabledToTLW () const
bool isFullScreen () const
bool isHidden () const
bool isInputMethodEnabled () const
bool isMaximized () const
bool isMinimized () const
bool isModal () const
bool isPopup () const
bool isShown () const
bool isTopLevel () const
bool isUpdatesEnabled () const
bool isVisible () const
bool isVisibleTo (QWidget *ancestor) const
bool isVisibleToTLW () const
bool isWindow () const
bool isWindowModified () const
QLayoutlayout () const
Qt::LayoutDirection layoutDirection () const
QLocale locale () const
void lower ()
Qt::HANDLE macCGHandle () const
Qt::HANDLE macQDHandle () const
QPoint mapFrom (QWidget *parent, const QPoint &pos) const
QPoint mapFromGlobal (const QPoint &pos) const
QPoint mapFromParent (const QPoint &pos) const
QPoint mapTo (QWidget *parent, const QPoint &pos) const
QPoint mapToGlobal (const QPoint &pos) const
QPoint mapToParent (const QPoint &pos) const
QRegion mask () const
int maximumHeight () const
QSize maximumSize () const
int maximumWidth () const
int minimumHeight () const
QSize minimumSize () const
int minimumWidth () const
void move (int x, int y)
void move (const QPoint &)
QWidgetnativeParentWidget () const
QWidgetnextInFocusChain () const
QRect normalGeometry () const
void overrideWindowFlags (QFlags< Qt::WindowType > flags)
bool ownCursor () const
bool ownFont () const
bool ownPalette () const
virtual QPaintEnginepaintEngine () const
const QPalettepalette () const
QWidgetparentWidget (bool sameWindow) const
QWidgetparentWidget () const
QPlatformWindow * platformWindow () const
QPlatformWindowFormat platformWindowFormat () const
void polish ()
QPoint pos () const
QWidgetpreviousInFocusChain () const
 QWidget (QWidget *parent, const char *name, QFlags< Qt::WindowType > f)
 QWidget (QWidget *parent, QFlags< Qt::WindowType > f)
void raise ()
void recreate (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt)
QRect rect () const
virtual void releaseDC (HDC hdc) const
void releaseKeyboard ()
void releaseMouse ()
void releaseShortcut (int id)
void removeAction (QAction *action)
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QFlags< QWidget::RenderFlag > renderFlags)
void repaint (const QRect &r, bool b)
void repaint (int x, int y, int w, int h, bool b)
void repaint (const QRegion &rgn, bool b)
void repaint ()
void repaint (int x, int y, int w, int h)
void repaint (const QRegion &rgn)
void repaint (const QRect &rect)
void repaint (bool b)
void reparent (QWidget *parent, QFlags< Qt::WindowType > f, const QPoint &p, bool showIt)
void reparent (QWidget *parent, const QPoint &p, bool showIt)
void resize (int w, int h)
void resize (const QSize &)
bool restoreGeometry (const QByteArray &geometry)
QByteArray saveGeometry () const
void scroll (int dx, int dy)
void scroll (int dx, int dy, const QRect &r)
void setAcceptDrops (bool on)
void setAccessibleDescription (const QString &description)
void setAccessibleName (const QString &name)
void setActiveWindow ()
void setAttribute (Qt::WidgetAttribute attribute, bool on)
void setAutoFillBackground (bool enabled)
void setBackgroundColor (const QColor &color)
void setBackgroundMode (Qt::BackgroundMode widgetBackground, Qt::BackgroundMode paletteBackground)
void setBackgroundOrigin (BackgroundOrigin background)
void setBackgroundPixmap (const QPixmap &pixmap)
void setBackgroundRole (QPalette::ColorRole role)
void setBaseSize (const QSize &)
void setBaseSize (int basew, int baseh)
void setCaption (const QString &c)
void setContentsMargins (int left, int top, int right, int bottom)
void setContentsMargins (const QMargins &margins)
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
void setCursor (const QCursor &)
void setDisabled (bool disable)
void setEditFocus (bool enable)
void setEnabled (bool)
void setEraseColor (const QColor &color)
void setErasePixmap (const QPixmap &pixmap)
void setFixedHeight (int h)
void setFixedSize (const QSize &s)
void setFixedSize (int w, int h)
void setFixedWidth (int w)
void setFocus ()
void setFocus (Qt::FocusReason reason)
void setFocusPolicy (Qt::FocusPolicy policy)
void setFocusProxy (QWidget *w)
void setFont (const QFont &)
void setFont (const QFont &f, bool b)
void setForegroundRole (QPalette::ColorRole role)
void setGeometry (const QRect &)
void setGeometry (int x, int y, int w, int h)
void setGraphicsEffect (QGraphicsEffect *effect)
void setHidden (bool hidden)
void setIcon (const QPixmap &i)
void setIconText (const QString &it)
void setInputContext (QInputContext *context)
void setInputMethodEnabled (bool enabled)
void setInputMethodHints (QFlags< Qt::InputMethodHint > hints)
void setKeyCompression (bool b)
void setLayout (QLayout *layout)
void setLayoutDirection (Qt::LayoutDirection direction)
void setLocale (const QLocale &locale)
void setMask (const QBitmap &bitmap)
void setMask (const QRegion &region)
void setMaximumHeight (int maxh)
void setMaximumSize (const QSize &)
void setMaximumSize (int maxw, int maxh)
void setMaximumWidth (int maxw)
void setMinimumHeight (int minh)
void setMinimumSize (int minw, int minh)
void setMinimumSize (const QSize &)
void setMinimumWidth (int minw)
void setMouseTracking (bool enable)
void setPalette (const QPalette &p, bool b)
void setPalette (const QPalette &)
void setPaletteBackgroundColor (const QColor &color)
void setPaletteBackgroundPixmap (const QPixmap &pixmap)
void setPaletteForegroundColor (const QColor &color)
void setParent (QWidget *parent, QFlags< Qt::WindowType > f)
void setParent (QWidget *parent)
void setPlatformWindow (QPlatformWindow *window)
void setPlatformWindowFormat (const QPlatformWindowFormat &format)
void setShortcutAutoRepeat (int id, bool enable)
void setShortcutEnabled (int id, bool enable)
void setShown (bool shown)
void setSizeIncrement (const QSize &)
void setSizeIncrement (int w, int h)
void setSizePolicy (QSizePolicy::Policy hor, QSizePolicy::Policy ver, bool hfw)
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
void setSizePolicy (QSizePolicy)
void setStatusTip (const QString &)
void setStyle (QStyle *style)
QStylesetStyle (const QString &style)
void setStyleSheet (const QString &styleSheet)
void setToolTip (const QString &)
void setUpdatesEnabled (bool enable)
void setupUi (QWidget *widget)
virtual void setVisible (bool visible)
void setWhatsThis (const QString &)
void setWindowFilePath (const QString &filePath)
void setWindowFlags (QFlags< Qt::WindowType > type)
void setWindowIcon (const QIcon &icon)
void setWindowIconText (const QString &)
void setWindowModality (Qt::WindowModality windowModality)
void setWindowModified (bool)
void setWindowOpacity (qreal level)
void setWindowRole (const QString &role)
void setWindowState (QFlags< Qt::WindowState > windowState)
void setWindowSurface (QWindowSurface *surface)
void setWindowTitle (const QString &)
void show ()
void showFullScreen ()
void showMaximized ()
void showMinimized ()
void showNormal ()
QSize size () const
QSize sizeIncrement () const
QSizePolicy sizePolicy () const
void stackUnder (QWidget *w)
QString statusTip () const
QStylestyle () const
QString styleSheet () const
bool testAttribute (Qt::WidgetAttribute attribute) const
QString toolTip () const
QWidgettopLevelWidget () const
bool underMouse () const
void ungrabGesture (Qt::GestureType gesture)
void unsetCursor ()
void unsetFont ()
void unsetLayoutDirection ()
void unsetLocale ()
void unsetPalette ()
void update (int x, int y, int w, int h)
void update (const QRect &rect)
void update ()
void update (const QRegion &rgn)
void updateGeometry ()
bool updatesEnabled () const
QRect visibleRect () const
QRegion visibleRegion () const
QString whatsThis () const
int width () const
QWidgetwindow () const
QString windowFilePath () const
Qt::WindowFlags windowFlags () const
QIcon windowIcon () const
QString windowIconText () const
Qt::WindowModality windowModality () const
qreal windowOpacity () const
QString windowRole () const
Qt::WindowStates windowState () const
QWindowSurface * windowSurface () const
QString windowTitle () const
Qt::WindowType windowType () const
WId winId () const
int x () const
const QX11Infox11Info () const
Qt::HANDLE x11PictureHandle () const
int y () const
 ~QWidget ()
- Public Member Functions inherited from QObject
bool blockSignals (bool block)
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
const QObjectList & children () const
const char * className () const
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
void deleteLater ()
void destroyed (QObject *obj)
bool disconnect (const QObject *receiver, const char *method)
bool disconnect (const char *signal, const QObject *receiver, const char *method)
void dumpObjectInfo ()
void dumpObjectTree ()
QList< QByteArraydynamicPropertyNames () const
virtual bool eventFilter (QObject *watched, QEvent *event)
findChild (const QString &name) const
QList< T > findChildren (const QRegExp &regExp) const
QList< T > findChildren (const QString &name) const
bool inherits (const char *className) const
void insertChild (QObject *object)
void installEventFilter (QObject *filterObj)
bool isA (const char *className) const
bool isWidgetType () const
void killTimer (int id)
virtual const QMetaObjectmetaObject () const
void moveToThread (QThread *targetThread)
const char * name () const
const char * name (const char *defaultName) const
QString objectName () const
QObjectparent () const
QVariant property (const char *name) const
 QObject (QObject *parent)
 QObject (QObject *parent, const char *name)
void removeChild (QObject *object)
void removeEventFilter (QObject *obj)
void setName (const char *name)
void setObjectName (const QString &name)
void setParent (QObject *parent)
bool setProperty (const char *name, const QVariant &value)
bool signalsBlocked () const
int startTimer (int interval)
QThreadthread () const
virtual  ~QObject ()
- Public Member Functions inherited from QPaintDevice
int colorCount () const
int depth () const
int heightMM () const
int logicalDpiX () const
int logicalDpiY () const
int numColors () const
bool paintingActive () const
int physicalDpiX () const
int physicalDpiY () const
int widthMM () const
int x11Cells () const
Qt::HANDLE x11Colormap () const
bool x11DefaultColormap () const
bool x11DefaultVisual () const
int x11Depth () const
Display * x11Display () const
int x11Screen () const
void * x11Visual () const
virtual  ~QPaintDevice ()

Protected Slots

void sortItems (int iColumn, Qt::SortOrder iOrder)
 sort items given one column and one sort order.
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

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
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
int findValueGivenColumn (int iValue, const QString &iColumn)
 return the row index where the given value is located when specifying the column name.
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
int GetRowForTraceID (unsigned int iTraceID, const std::string &iTraceName)
 return the RowIndex corresponding to the TraceID
int GetValueForItem (const std::string &iColumnName, int iRowIndex)
 get the value in the table for the given iRowIndex and for the given column name
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
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
bool setCheckStateCheckBox (QTableWidgetItem *iItem, Qt::CheckState iState)
 change the state for the checkbox to iState and return true if the state has been changed
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
void SetSelectedColumn (unsigned int iIndexRow)
 Put checkboxes in the column "check/uncheck".
void SetVisibleColumn (unsigned int iIndexRow, Qt::CheckState iState=Qt::Checked)
 Put checkboxes and icons in the column "Show".
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
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.
- Protected Member Functions inherited from QTableWidget
virtual void dropEvent (QDropEvent *event)
virtual bool dropMimeData (int row, int column, const QMimeData *data, Qt::DropAction action)
virtual bool event (QEvent *e)
QModelIndex indexFromItem (QTableWidgetItem *item) const
QTableWidgetItemitemFromIndex (const QModelIndex &index) const
QList< QTableWidgetItem * > items (const QMimeData *data) const
virtual QMimeDatamimeData (const QList< QTableWidgetItem * > items) const
virtual QStringList mimeTypes () const
virtual Qt::DropActions supportedDropActions () const
- Protected Member Functions inherited from QTableView
void columnCountChanged (int oldCount, int newCount)
void columnMoved (int column, int oldIndex, int newIndex)
void columnResized (int column, int oldWidth, int newWidth)
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
virtual int horizontalOffset () const
virtual bool isIndexHidden (const QModelIndex &index) const
virtual QModelIndex moveCursor (CursorAction cursorAction, QFlags< Qt::KeyboardModifier > modifiers)
virtual void paintEvent (QPaintEvent *event)
void rowCountChanged (int oldCount, int newCount)
void rowMoved (int row, int oldIndex, int newIndex)
void rowResized (int row, int oldHeight, int newHeight)
virtual QModelIndexList selectedIndexes () const
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
virtual void setSelection (const QRect &rect, QFlags< QItemSelectionModel::SelectionFlag > flags)
virtual int sizeHintForColumn (int column) const
virtual int sizeHintForRow (int row) const
virtual void timerEvent (QTimerEvent *event)
virtual void updateGeometries ()
virtual int verticalOffset () const
virtual QStyleOptionViewItem viewOptions () const
- Protected Member Functions inherited from QAbstractItemView
virtual void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
virtual void commitData (QWidget *editor)
virtual void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
QPoint dirtyRegionOffset () const
virtual void dragEnterEvent (QDragEnterEvent *event)
virtual void dragLeaveEvent (QDragLeaveEvent *event)
virtual void dragMoveEvent (QDragMoveEvent *event)
DropIndicatorPosition dropIndicatorPosition () const
virtual bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event)
virtual void editorDestroyed (QObject *editor)
void executeDelayedItemsLayout ()
virtual void focusInEvent (QFocusEvent *event)
virtual bool focusNextPrevChild (bool next)
virtual void focusOutEvent (QFocusEvent *event)
int horizontalStepsPerItem () const
virtual void inputMethodEvent (QInputMethodEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void mouseDoubleClickEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void resizeEvent (QResizeEvent *event)
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
void scheduleDelayedItemsLayout ()
void scrollDirtyRegion (int dx, int dy)
virtual
QItemSelectionModel::SelectionFlags 
selectionCommand (const QModelIndex &index, const QEvent *event) const
void setDirtyRegion (const QRegion &region)
void setHorizontalStepsPerItem (int steps)
void setState (State state)
void setVerticalStepsPerItem (int steps)
virtual void startDrag (QFlags< Qt::DropAction > supportedActions)
State state () const
int verticalStepsPerItem () const
virtual bool viewportEvent (QEvent *event)
virtual QRegion visualRegionForSelection (const QItemSelection &selection) const =0
- Protected Member Functions inherited from QAbstractScrollArea
virtual void contextMenuEvent (QContextMenuEvent *e)
virtual void scrollContentsBy (int dx, int dy)
void setupViewport (QWidget *viewport)
void setViewportMargins (const QMargins &margins)
void setViewportMargins (int left, int top, int right, int bottom)
virtual void wheelEvent (QWheelEvent *e)
- Protected Member Functions inherited from QFrame
virtual void changeEvent (QEvent *ev)
- Protected Member Functions inherited from QWidget
virtual void actionEvent (QActionEvent *event)
virtual void closeEvent (QCloseEvent *event)
void create (WId window, bool initializeWindow, bool destroyOldWindow)
void destroy (bool destroyWindow, bool destroySubWindows)
virtual void enterEvent (QEvent *event)
bool focusNextChild ()
bool focusPreviousChild ()
virtual void hideEvent (QHideEvent *event)
virtual void keyReleaseEvent (QKeyEvent *event)
virtual void languageChange ()
virtual void leaveEvent (QEvent *event)
virtual bool macEvent (EventHandlerCallRef caller, EventRef event)
virtual int metric (PaintDeviceMetric m) const
virtual void moveEvent (QMoveEvent *event)
virtual bool qwsEvent (QWSEvent *event)
void resetInputContext ()
virtual void showEvent (QShowEvent *event)
virtual void tabletEvent (QTabletEvent *event)
void updateMicroFocus ()
virtual bool winEvent (MSG *message, long *result)
virtual bool x11Event (XEvent *event)
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
virtual void childEvent (QChildEvent *event)
virtual void connectNotify (const char *signal)
virtual void customEvent (QEvent *event)
virtual void disconnectNotify (const char *signal)
int receivers (const char *signal) const
QObjectsender () const
int senderSignalIndex () const
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice ()

Protected Attributes

int PrevCol
int PrevOrder

Additional Inherited Members

- Static Public Member Functions inherited from QWidget
QWidgetfind (WId id)
QWidgetkeyboardGrabber ()
QWidgetmouseGrabber ()
void setTabOrder (QWidget *first, QWidget *second)
QWidgetMapper * wmapper ()
- Public Attributes inherited from QAbstractItemView
typedef EditTriggers
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
- Properties inherited from QTableWidget
 columnCount
 rowCount

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

\xrefitem todo 37.   
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: