itom
Loading...
Searching...
No Matches
DataObjectTable Class Reference
Inheritance diagram for DataObjectTable:
ito::ExtendedDataObjectTable

Public Types

enum  NumberFormat { Standard = 0 , Scientific = 1 , Auto = 2 }
 
enum  HeatmapType {
  Off = 0 , RealColor = 1 , RedYellowGreen = 2 , GreenYellowRed = 3 ,
  RedWhiteGreen = 4 , GreenWhiteRed = 5
}
 

Signals

void activated (int row, int column)
 
void clicked (int row, int column)
 
void doubleClicked (int row, int column)
 
void entered (int row, int column)
 
void pressed (int row, int column)
 
void selectionInformationChanged (const QString &selectionInformation)
 

Public Member Functions

 DataObjectTable (QWidget *parent=0)
 
void setData (QSharedPointer< ito::DataObject > dataObj)
 
QSharedPointer< ito::DataObjectgetData () const
 
bool getReadOnly () const
 
void setReadOnly (bool value)
 
double getMin () const
 
void setMin (double value)
 
double getMax () const
 
void setMax (double value)
 
int getDecimals () const
 
void setDecimals (int value)
 
void setNumberFormat (const NumberFormat &format)
 
NumberFormat getNumberFormat () const
 
Qt::Alignment getAlignment () const
 
void setAlignment (Qt::Alignment alignment)
 
int getEditorDecimals () const
 
void setEditorDecimals (int value)
 
QHeaderView::ResizeMode getHorizontalResizeMode () const
 
void setHorizontalResizeMode (QHeaderView::ResizeMode mode)
 
QHeaderView::ResizeMode getVerticalResizeMode () const
 
void setVerticalResizeMode (QHeaderView::ResizeMode mode)
 
int getDefaultCols () const
 
void setDefaultCols (int value)
 
int getDefaultRows () const
 
void setDefaultRows (int value)
 
QStringList getVerticalLabels () const
 
void setVerticalLabels (QStringList value)
 
QStringList getHorizontalLabels () const
 
void setHorizontalLabels (QStringList value)
 
QStringList getSuffixes () const
 
void setSuffixes (QStringList value)
 
virtual QSize sizeHint () const
 

Protected Member Functions

void createActions ()
 
void restoreSelection (const QModelIndexList &indices)
 
void keyPressEvent (QKeyEvent *e)
 
void contextMenuEvent (QContextMenuEvent *event)
 
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 

Protected Attributes

DataObjectModelm_pModel
 
DataObjectDelegatem_pDelegate
 

Properties

QSharedPointer< ito::DataObjectdata
 
bool readOnly
 
double min
 
double max
 
int decimals
 
int editorDecimals
 
int defaultCols
 
int defaultRows
 
QStringList horizontalLabels
 
QStringList verticalLabels
 
QStringList suffixes
 
QHeaderView::ResizeMode horizontalResizeMode
 
QHeaderView::ResizeMode verticalResizeMode
 
Qt::Alignment alignment
 
NumberFormat numberFormat
 

Private Slots

void _activated (const QModelIndex &index)
 
void _clicked (const QModelIndex &index)
 
void _doubleClicked (const QModelIndex &index)
 
void _entered (const QModelIndex &index)
 
void _pressed (const QModelIndex &index)
 
void copySelectionToClipboard ()
 
void saveSelectionToCSV ()
 
void setDecimalsGUI ()
 
void configureHeatmap ()
 
void numberFormatTriggered (QAction *a)
 
void heatmapTriggered (QAction *a)
 

Private Member Functions

 Q_CLASSINFO ("prop://data", "dataObject that is displaye in the table view")
 
 Q_CLASSINFO ("prop://readOnly", "enable write protection")
 
 Q_CLASSINFO ("prop://min", "minimum acceptable value (if editing is allowed)")
 
 Q_CLASSINFO ("prop://max", "maximum acceptable value (if editing is allowed)")
 
 Q_CLASSINFO ("prop://decimals", "number of visible decimals for floating point numbers")
 
 Q_CLASSINFO ("prop://editorDecimals", "number of possible decimals during the edit of floating point numbers")
 
 Q_CLASSINFO ("prop://defaultCols", "number of column to be shown")
 
 Q_CLASSINFO ("prop://defaultRows", "number of rows to be shown")
 
 Q_CLASSINFO ("prop://horizontalLabels", "list with labels for each shown column (if more columns are shown than labels, a default numbering is used for additional columns)")
 
 Q_CLASSINFO ("prop://verticalLabels", "list with labels for each shown row (if more rows are shown than labels, a default numbering is used for additional rows)")
 
 Q_CLASSINFO ("prop://suffixes", "list with suffixes for each column. If less suffixes than columns are indicated, the last suffix is repeated.")
 
 Q_CLASSINFO ("prop://horizontalResizeMode", "defines the mode how the rows can be resized or are stretched over the available space (ResizeToContents, Interactive, Stretch, Fixed, Custom -> see QHeaderView::ResizeMode).")
 
 Q_CLASSINFO ("prop://verticalResizeMode", "defines the mode how the columns can be resized or are stretched over the available space (ResizeToContents, Interactive, Stretch, Fixed, Custom -> see QHeaderView::ResizeMode).")
 
 Q_CLASSINFO ("prop://alignment", "alignment of the text cells.")
 

Static Private Attributes

static QHash< DataObjectTable *, DataObjectTablePrivate * > PrivateHash
 < todo: convert to classical private class if the addInInterface is incremented for the next time
 

Member Data Documentation

◆ PrivateHash

QHash< DataObjectTable *, DataObjectTablePrivate * > DataObjectTable::PrivateHash
staticprivate
Initial value:
=
QHash<DataObjectTable*, DataObjectTablePrivate*>()

< todo: convert to classical private class if the addInInterface is incremented for the next time


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