#include <terminalstripmodel.h>
Inherits QAbstractTableModel.
|
| enum | Column {
Pos = 0
, Level = 1
, Level0 = 2
, Level1 = 3
,
Level2 = 4
, Level3 = 5
, Label = 6
, Conductor = 7
,
XRef = 8
, Cable = 9
, CableWire = 10
, Type = 11
,
Function = 12
, Led = 13
, Invalid = 99
} |
| |
◆ Column
| Enumerator |
|---|
| Pos | |
| Level | |
| Level0 | |
| Level1 | |
| Level2 | |
| Level3 | |
| Label | |
| Conductor | |
| XRef | |
| Cable | |
| CableWire | |
| Type | |
| Function | |
| Led | |
| Invalid | |
◆ TerminalStripModel()
| TerminalStripModel::TerminalStripModel |
( |
TerminalStrip * |
terminal_strip, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ bridgePixmapFor()
| QPixmap TerminalStripModel::bridgePixmapFor |
( |
const QModelIndex & |
index | ) |
const |
|
private |
◆ buildBridgePixmap()
| void TerminalStripModel::buildBridgePixmap |
( |
const QSize & |
pixmap_size | ) |
|
◆ columnCount()
| int TerminalStripModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
overridevirtual |
◆ columnTypeForIndex()
◆ data()
| QVariant TerminalStripModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
overridevirtual |
◆ dataAtRow()
◆ fillPhysicalTerminalData()
| void TerminalStripModel::fillPhysicalTerminalData |
( |
| ) |
|
|
private |
◆ flags()
| Qt::ItemFlags TerminalStripModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
overridevirtual |
◆ headerData()
| QVariant TerminalStripModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
overridevirtual |
◆ levelForColumn()
◆ modelPhysicalTerminalDataForIndex()
| QVector< modelPhysicalTerminalData > TerminalStripModel::modelPhysicalTerminalDataForIndex |
( |
QModelIndexList |
index_list | ) |
const |
TerminalStripModel::terminalsForIndex.
- Parameters
-
- Returns
- A vector of PhysicalTerminalData represented by index_list. If sereval index point to the same terminal the vector have only one PhysicalTerminalData
◆ modelRealTerminalDataForIndex() [1/2]
| modelRealTerminalData TerminalStripModel::modelRealTerminalDataForIndex |
( |
const QModelIndex & |
index | ) |
const |
◆ modelRealTerminalDataForIndex() [2/2]
| QVector< modelRealTerminalData > TerminalStripModel::modelRealTerminalDataForIndex |
( |
QModelIndexList |
index_list | ) |
const |
TerminalStripModel::realTerminalDataForIndex.
- Parameters
-
- Returns
◆ modifiedmodelRealTerminalData()
TerminalStripModel::modifiedRealTerminalData.
- Returns
- a vector of modified terminal.
◆ physicalDataAtIndex()
TerminalStripModel::physicalDataAtIndex.
- Parameters
-
- Returns
- the physical terminal data at
index. We need to use this method because the model can have more index than physical terminal, because physical terminal can be multi-level and each level have is own row. If index is out of range, return a default PhysicalTerminalData (pos_ is set to -1 by default)
◆ realDataAtIndex()
◆ reload()
| void TerminalStripModel::reload |
( |
| ) |
|
◆ replaceDataAtRow()
◆ rowCount()
| int TerminalStripModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
overridevirtual |
◆ setData()
| bool TerminalStripModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
overridevirtual |
◆ setTerminalStrip()
| void TerminalStripModel::setTerminalStrip |
( |
TerminalStrip * |
terminal_strip | ) |
|
◆ m_bridges_pixmaps
| QHash<QColor, BridgePixmap> TerminalStripModel::m_bridges_pixmaps |
|
private |
◆ m_modified_cell
| QHash<QPointer<Element>, QVector<bool> > TerminalStripModel::m_modified_cell |
|
private |
◆ m_physical_data
◆ m_terminal_strip
The documentation for this class was generated from the following files: