OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::Table Class Reference

#include "Table.h"

Inheritance diagram for ot::Table:
ManageAccessTable ManageGroupsTable ManageOwnerTable

Public Slots

void slotSaveRequested (void)
 

Signals

void saveRequested (void)
 
void modifiedChanged (bool _isModified)
 

Public Member Functions

 Table (QWidget *_parentWidget=(QWidget *) nullptr)
 
 Table (int _rows, int _columns, QWidget *_parentWidget=(QWidget *) nullptr)
 
virtual ~Table ()
 
virtual void setupFromConfig (const TableCfg &_config)
 
virtual TableCfg createConfig (void) const
 
void setContentChanged (bool _changed=true)
 
bool getContentChanged (void) const
 
void setSelectedCellsBackground (const ot::Color &_color)
 
void setSelectedCellsBackground (const QColor &_color)
 
void prepareForDataChange (void)
 
QRect getSelectionBoundingRect (void) const
 

Static Public Member Functions

static QRect getSelectionBoundingRect (const QList< QTableWidgetSelectionRange > &_selections)
 

Protected Member Functions

virtual void showEvent (QShowEvent *_event) override
 
virtual void hideEvent (QHideEvent *_event) override
 

Constructor & Destructor Documentation

◆ Table() [1/2]

ot::Table::Table ( QWidget * _parentWidget = (QWidget*)nullptr)

◆ Table() [2/2]

ot::Table::Table ( int _rows,
int _columns,
QWidget * _parentWidget = (QWidget*)nullptr )

◆ ~Table()

ot::Table::~Table ( )
virtual

Member Function Documentation

◆ createConfig()

ot::TableCfg ot::Table::createConfig ( void ) const
virtual

◆ getContentChanged()

bool ot::Table::getContentChanged ( void ) const
inline

◆ getSelectionBoundingRect() [1/2]

QRect ot::Table::getSelectionBoundingRect ( const QList< QTableWidgetSelectionRange > & _selections)
static

◆ getSelectionBoundingRect() [2/2]

QRect ot::Table::getSelectionBoundingRect ( void ) const
inline

◆ hideEvent()

void ot::Table::hideEvent ( QHideEvent * _event)
overrideprotectedvirtual

◆ modifiedChanged

void ot::Table::modifiedChanged ( bool _isModified)
signal

◆ prepareForDataChange()

void ot::Table::prepareForDataChange ( void )

◆ saveRequested

void ot::Table::saveRequested ( void )
signal

◆ setContentChanged()

void ot::Table::setContentChanged ( bool _changed = true)

◆ setSelectedCellsBackground() [1/2]

void ot::Table::setSelectedCellsBackground ( const ot::Color & _color)

◆ setSelectedCellsBackground() [2/2]

void ot::Table::setSelectedCellsBackground ( const QColor & _color)

◆ setupFromConfig()

void ot::Table::setupFromConfig ( const TableCfg & _config)
virtual

◆ showEvent()

void ot::Table::showEvent ( QShowEvent * _event)
overrideprotectedvirtual

◆ slotSaveRequested

void ot::Table::slotSaveRequested ( void )
slot

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