VAPOR3 3.9.4
Public Types | Public Slots | Signals | Public Member Functions | List of all members
VaporTable Class Reference

#include <VaporTable.h>

Inheritance diagram for VaporTable:

Public Types

enum  HighlightFlags { ROWS = (1u << 0) , COLS = (1u << 1) }
 
enum  MutabilityFlags { MUTABLE = (1u << 0) , IMMUTABLE = (1u << 1) }
 
enum  ValidatorFlags { INT = (1u << 0) , DOUBLE = (1u << 1) , STRING = (1u << 2) }
 

Public Slots

void emitCellClicked (int, int)
 
void emitValueChanged (int row=0, int col=0)
 
void emitReturnPressed ()
 

Signals

void valueChanged (int row, int col)
 
void cellClicked (int row, int col)
 
void returnPressed ()
 

Public Member Functions

 VaporTable (QTableWidget *table, bool lastRowIsCheckboxes=false, bool lastColIsCheckboxes=false)
 
void Update (int rows, int columns, std::vector< int > values, std::vector< std::string > rowHeaders=std::vector< std::string >(), std::vector< std::string > colHeaders=std::vector< std::string >())
 
void Update (int rows, int columns, std::vector< double > values, std::vector< std::string > rowHeaders=std::vector< std::string >(), std::vector< std::string > colHeaders=std::vector< std::string >())
 
void Update (int rows, int columns, std::vector< std::string > values, std::vector< std::string > rowHeaders=std::vector< std::string >(), std::vector< std::string > colHeaders=std::vector< std::string >())
 
void Reinit (ValidatorFlags vFlags, MutabilityFlags mFlags, HighlightFlags hFlags)
 
Value GetValue (int row, int col)
 
std::string GetStringValue (int row, int col)
 
void GetValues (std::vector< std::string > &vec)
 
void GetValues (std::vector< int > &vec)
 
void GetValues (std::vector< double > &vec)
 
std::string GetVerticalHeaderItem (int index)
 
std::string GetHorizontalHeaderItem (int index)
 
void SetCheckboxesInFinalColumn (bool enabled)
 
void SetCheckboxesInFinalRow (bool enabled)
 
void EnableDisableCheckboxes (bool enabled)
 
void SetCellMutability (int row, int col)
 
int RowCount () const
 
int ColumnCount () const
 
QWidget * CellWidget (int row, int col)
 
int GetActiveRow () const
 
void SetActiveRow (int row)
 
void SetAutoResizeHeight (bool val)
 
bool GetAutoResizeHeight () const
 
void StretchToColumn (int column)
 
void HideColumn (int column)
 
void ShowToolTips (bool showOrHide)
 
bool GetShowToolTips () const
 
void SetVerticalHeaderWidth (int width)
 

Detailed Description

Definition at line 13 of file VaporTable.h.

Member Enumeration Documentation

◆ HighlightFlags

Enumerator
ROWS 
COLS 

Definition at line 17 of file VaporTable.h.

◆ MutabilityFlags

Enumerator
MUTABLE 
IMMUTABLE 

Definition at line 22 of file VaporTable.h.

◆ ValidatorFlags

Enumerator
INT 
DOUBLE 
STRING 

Definition at line 32 of file VaporTable.h.

Constructor & Destructor Documentation

◆ VaporTable()

VaporTable::VaporTable ( QTableWidget *  table,
bool  lastRowIsCheckboxes = false,
bool  lastColIsCheckboxes = false 
)

Member Function Documentation

◆ cellClicked

void VaporTable::cellClicked ( int  row,
int  col 
)
signal

◆ CellWidget()

QWidget * VaporTable::CellWidget ( int  row,
int  col 
)
inline

Definition at line 67 of file VaporTable.h.

◆ ColumnCount()

int VaporTable::ColumnCount ( ) const
inline

Definition at line 66 of file VaporTable.h.

◆ emitCellClicked

void VaporTable::emitCellClicked ( int  ,
int   
)
slot

◆ emitReturnPressed

void VaporTable::emitReturnPressed ( )
slot

◆ emitValueChanged

void VaporTable::emitValueChanged ( int  row = 0,
int  col = 0 
)
slot

◆ EnableDisableCheckboxes()

void VaporTable::EnableDisableCheckboxes ( bool  enabled)

◆ GetActiveRow()

int VaporTable::GetActiveRow ( ) const

◆ GetAutoResizeHeight()

bool VaporTable::GetAutoResizeHeight ( ) const

◆ GetHorizontalHeaderItem()

std::string VaporTable::GetHorizontalHeaderItem ( int  index)

◆ GetShowToolTips()

bool VaporTable::GetShowToolTips ( ) const

◆ GetStringValue()

std::string VaporTable::GetStringValue ( int  row,
int  col 
)

◆ GetValue()

Value VaporTable::GetValue ( int  row,
int  col 
)

◆ GetValues() [1/3]

void VaporTable::GetValues ( std::vector< double > &  vec)

◆ GetValues() [2/3]

void VaporTable::GetValues ( std::vector< int > &  vec)

◆ GetValues() [3/3]

void VaporTable::GetValues ( std::vector< std::string > &  vec)

◆ GetVerticalHeaderItem()

std::string VaporTable::GetVerticalHeaderItem ( int  index)

◆ HideColumn()

void VaporTable::HideColumn ( int  column)

◆ Reinit()

void VaporTable::Reinit ( ValidatorFlags  vFlags,
MutabilityFlags  mFlags,
HighlightFlags  hFlags 
)

◆ returnPressed

void VaporTable::returnPressed ( )
signal

◆ RowCount()

int VaporTable::RowCount ( ) const
inline

Definition at line 65 of file VaporTable.h.

◆ SetActiveRow()

void VaporTable::SetActiveRow ( int  row)

◆ SetAutoResizeHeight()

void VaporTable::SetAutoResizeHeight ( bool  val)

◆ SetCellMutability()

void VaporTable::SetCellMutability ( int  row,
int  col 
)

◆ SetCheckboxesInFinalColumn()

void VaporTable::SetCheckboxesInFinalColumn ( bool  enabled)

◆ SetCheckboxesInFinalRow()

void VaporTable::SetCheckboxesInFinalRow ( bool  enabled)

◆ SetVerticalHeaderWidth()

void VaporTable::SetVerticalHeaderWidth ( int  width)

◆ ShowToolTips()

void VaporTable::ShowToolTips ( bool  showOrHide)

◆ StretchToColumn()

void VaporTable::StretchToColumn ( int  column)

◆ Update() [1/3]

void VaporTable::Update ( int  rows,
int  columns,
std::vector< double >  values,
std::vector< std::string >  rowHeaders = std::vector< std::string >(),
std::vector< std::string >  colHeaders = std::vector< std::string >() 
)

◆ Update() [2/3]

void VaporTable::Update ( int  rows,
int  columns,
std::vector< int >  values,
std::vector< std::string >  rowHeaders = std::vector< std::string >(),
std::vector< std::string >  colHeaders = std::vector< std::string >() 
)

◆ Update() [3/3]

void VaporTable::Update ( int  rows,
int  columns,
std::vector< std::string >  values,
std::vector< std::string >  rowHeaders = std::vector< std::string >(),
std::vector< std::string >  colHeaders = std::vector< std::string >() 
)

◆ valueChanged

void VaporTable::valueChanged ( int  row,
int  col 
)
signal

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