![]() |
QElectroTech 0.100.0-dev
|
The TerminalStripLayoutPattern class A class with all values used to define how a terminal strip must be drawn. Most of the value are public, some values are private and have getter / setter because when these values change we need to compute the change. More...
#include <terminalstriplayoutpattern.h>

Public Member Functions | |
| TerminalStripLayoutPattern () | |
| void | setHeaderTextAlignment (const Qt::Alignment &alignment) |
| Qt::Alignment | headerTextAlignment () const |
| QTextOption | headerTextOption () const |
| void | setTerminalsTextAlignment (const QVector< Qt::Alignment > &alignment) |
| QVector< Qt::Alignment > | terminalsTextAlignment () const |
| QVector< QTextOption > | terminalsTextOption () const |
Public Attributes | |
| QRect | m_header_rect {0,30,50,130} |
| Qt::Orientation | m_header_text_orientation {Qt::Horizontal} |
| QRect | m_spacer_rect {0, 50, 10, 90} |
| QVector< QRect > | m_terminal_rect |
| QVector< QRect > | m_terminals_text_rect |
| QVector< Qt::Orientation > | m_terminals_text_orientation |
| int | m_bridge_point_d {5} |
| QVector< int > | m_bridge_point_y_offset {50,70,90,110} |
| QUuid | m_uuid {QUuid::createUuid()} |
| QString | m_name |
Private Member Functions | |
| void | updateHeaderTextOption () |
| void | updateTerminalsTextOption () |
Private Attributes | |
| Qt::Alignment | m_header_text_alignment {Qt::AlignCenter} |
| QTextOption | m_header_text_option |
| QVector< Qt::Alignment > | m_terminals_text_alignment |
| QVector< QTextOption > | m_terminals_text_option |
The TerminalStripLayoutPattern class A class with all values used to define how a terminal strip must be drawn. Most of the value are public, some values are private and have getter / setter because when these values change we need to compute the change.
The values with name '_y_offset' mean offset is relating to the top of the QGraphicsItem used to display the terminal strip.
The terminal strip can display up to 4 terminal level, the value used for multilevel terminal are stored in several QVector (m_terminal_y_offset, m_terminal_height, m_bridge_point_y_offset). The order of the values are from the most back terminal to the front terminal.
| TerminalStripLayoutPattern::TerminalStripLayoutPattern | ( | ) |

| Qt::Alignment TerminalStripLayoutPattern::headerTextAlignment | ( | ) | const |
| QTextOption TerminalStripLayoutPattern::headerTextOption | ( | ) | const |
| void TerminalStripLayoutPattern::setHeaderTextAlignment | ( | const Qt::Alignment & | alignment | ) |

| void TerminalStripLayoutPattern::setTerminalsTextAlignment | ( | const QVector< Qt::Alignment > & | alignment | ) |

| QVector< Qt::Alignment > TerminalStripLayoutPattern::terminalsTextAlignment | ( | ) | const |
| QVector< QTextOption > TerminalStripLayoutPattern::terminalsTextOption | ( | ) | const |
|
private |

|
private |

| int TerminalStripLayoutPattern::m_bridge_point_d {5} |
| QVector<int> TerminalStripLayoutPattern::m_bridge_point_y_offset {50,70,90,110} |
| QRect TerminalStripLayoutPattern::m_header_rect {0,30,50,130} |
|
private |
|
private |
| Qt::Orientation TerminalStripLayoutPattern::m_header_text_orientation {Qt::Horizontal} |
| QString TerminalStripLayoutPattern::m_name |
| QRect TerminalStripLayoutPattern::m_spacer_rect {0, 50, 10, 90} |
| QVector<QRect> TerminalStripLayoutPattern::m_terminal_rect |
|
private |
|
private |
| QVector<Qt::Orientation> TerminalStripLayoutPattern::m_terminals_text_orientation |
| QVector<QRect> TerminalStripLayoutPattern::m_terminals_text_rect |
| QUuid TerminalStripLayoutPattern::m_uuid {QUuid::createUuid()} |