![]() |
QElectroTech 0.200.1-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) |
| TerminalStripLayoutPattern::setHeaderTextAlignment Set text alignment to. | |
| Qt::Alignment | headerTextAlignment () const |
| QTextOption | headerTextOption () const |
| QFont | font () const |
| void | setFont (const QFont &font) |
| void | setTerminalsTextAlignment (const Qt::Alignment &alignment) |
| TerminalStripLayoutPattern::setTerminalsTextAlignment Set text alignment to. | |
| Qt::Alignment | terminalsTextAlignment () const |
| QTextOption | terminalsTextOption () const |
| void | setXrefTextAlignment (const Qt::Alignment &alignment) |
| TerminalStripLayoutPattern::setXrefTextAlignment Set text alignment to. | |
| Qt::Alignment | xrefTextAlignment () const |
| QTextOption | xrefTextOption () const |
Public Attributes | |
| QRectF | m_header_rect {0,30,50,130} |
| Qt::Orientation | m_header_text_orientation {Qt::Horizontal} |
| QRectF | m_spacer_rect {0, 50, 10, 90} |
| QVector< QRectF > | m_terminal_rect |
| qreal | m_terminals_text_height {50} |
| qreal | m_terminals_text_y {35} |
| Qt::Orientation | m_terminals_text_orientation {Qt::Vertical} |
| qreal | m_xref_text_height {60} |
| qreal | m_xref_text_y {95} |
| Qt::Orientation | m_xref_text_orientation {Qt::Vertical} |
| qreal | m_bridge_point_d {5} |
| QVector< qreal > | 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 | |
| QFont | m_font |
| Qt::Alignment | m_header_text_alignment {Qt::AlignCenter} |
| QTextOption | m_header_text_option |
| Qt::Alignment | m_terminals_text_alignment {Qt::AlignRight | Qt::AlignVCenter} |
| Qt::Alignment | m_xref_text_alignment {Qt::AlignLeft | Qt::AlignVCenter} |
| QTextOption | m_terminals_text_option {QTextOption()} |
| QTextOption | m_xref_text_option {QTextOption()} |
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 TerminalStripLayoutPatternXml class A class with static function used to save/restor a.
TerminalStripLayoutPatternXml::fromXml LOad a xml element with tag name terminal_strip_layout_pattern.
TerminalStripLayoutPatternXml::toXml Save a xml element with tag name terminal_strip_layout_pattern.
TerminalStripLayoutPatternXml::fromXml Load a vector of main xml element with tagg name 'terminal_strip_layouts_pattern' who itself have several child with tag name 'terminal_strip_layout_pattern' (layout without 'S' at the end) for every.
TerminalStripLayoutPatternXml::toXml Save a vector of xml element with tagg name 'terminal_strip_layouts_pattern' who itself embedded each single.
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.
into a xml element with tag name 'terminal_strip_layout_pattern' (layout without 'S' at the end)
| patterns | |
| document |
| element |
| pattern | |
| document |
| layout | |
| element |
| TerminalStripLayoutPattern::TerminalStripLayoutPattern | ( | ) |

| QFont TerminalStripLayoutPattern::font | ( | ) | const |

| Qt::Alignment TerminalStripLayoutPattern::headerTextAlignment | ( | ) | const |
| QTextOption TerminalStripLayoutPattern::headerTextOption | ( | ) | const |
| void TerminalStripLayoutPattern::setFont | ( | const QFont & | font | ) |

| void TerminalStripLayoutPattern::setHeaderTextAlignment | ( | const Qt::Alignment & | alignment | ) |
TerminalStripLayoutPattern::setHeaderTextAlignment Set text alignment to.
| alignment. | If alignment have no flag this function do nothing |
| alignment |

| void TerminalStripLayoutPattern::setTerminalsTextAlignment | ( | const Qt::Alignment & | alignment | ) |
TerminalStripLayoutPattern::setTerminalsTextAlignment Set text alignment to.
| alignment. | If alignment have no flag this function do nothing |
| alignment |

| void TerminalStripLayoutPattern::setXrefTextAlignment | ( | const Qt::Alignment & | alignment | ) |
TerminalStripLayoutPattern::setXrefTextAlignment Set text alignment to.
| alignment. | If alignment have no flag this function do nothing |
| alignment |

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

|
private |

| Qt::Alignment TerminalStripLayoutPattern::xrefTextAlignment | ( | ) | const |
| QTextOption TerminalStripLayoutPattern::xrefTextOption | ( | ) | const |
| qreal TerminalStripLayoutPattern::m_bridge_point_d {5} |
| QVector<qreal> TerminalStripLayoutPattern::m_bridge_point_y_offset {50,70,90,110} |
|
private |
| QRectF TerminalStripLayoutPattern::m_header_rect {0,30,50,130} |
|
private |
|
private |
| Qt::Orientation TerminalStripLayoutPattern::m_header_text_orientation {Qt::Horizontal} |
| QString TerminalStripLayoutPattern::m_name |
| QRectF TerminalStripLayoutPattern::m_spacer_rect {0, 50, 10, 90} |
| QVector<QRectF> TerminalStripLayoutPattern::m_terminal_rect |
|
private |
| qreal TerminalStripLayoutPattern::m_terminals_text_height {50} |
|
private |
| Qt::Orientation TerminalStripLayoutPattern::m_terminals_text_orientation {Qt::Vertical} |
| qreal TerminalStripLayoutPattern::m_terminals_text_y {35} |
| QUuid TerminalStripLayoutPattern::m_uuid {QUuid::createUuid()} |
|
private |
| qreal TerminalStripLayoutPattern::m_xref_text_height {60} |
|
private |
| Qt::Orientation TerminalStripLayoutPattern::m_xref_text_orientation {Qt::Vertical} |
| qreal TerminalStripLayoutPattern::m_xref_text_y {95} |