QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
TerminalStripLayoutPattern Class Reference

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>

Collaboration diagram for TerminalStripLayoutPattern:
Collaboration graph

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()}

Detailed Description

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)

Parameters
patterns
document
Returns
Parameters
element
Returns
Parameters
pattern
document
Returns
Parameters
layout
element

Constructor & Destructor Documentation

◆ TerminalStripLayoutPattern()

TerminalStripLayoutPattern::TerminalStripLayoutPattern ( )
Here is the call graph for this function:

Member Function Documentation

◆ font()

QFont TerminalStripLayoutPattern::font ( ) const
Here is the caller graph for this function:

◆ headerTextAlignment()

Qt::Alignment TerminalStripLayoutPattern::headerTextAlignment ( ) const

◆ headerTextOption()

QTextOption TerminalStripLayoutPattern::headerTextOption ( ) const

◆ setFont()

void TerminalStripLayoutPattern::setFont ( const QFont & font)
Here is the call graph for this function:

◆ setHeaderTextAlignment()

void TerminalStripLayoutPattern::setHeaderTextAlignment ( const Qt::Alignment & alignment)

TerminalStripLayoutPattern::setHeaderTextAlignment Set text alignment to.

Parameters
alignment.If alignment have no flag this function do nothing
alignment
Here is the call graph for this function:

◆ setTerminalsTextAlignment()

void TerminalStripLayoutPattern::setTerminalsTextAlignment ( const Qt::Alignment & alignment)

TerminalStripLayoutPattern::setTerminalsTextAlignment Set text alignment to.

Parameters
alignment.If alignment have no flag this function do nothing
alignment
Here is the call graph for this function:

◆ setXrefTextAlignment()

void TerminalStripLayoutPattern::setXrefTextAlignment ( const Qt::Alignment & alignment)

TerminalStripLayoutPattern::setXrefTextAlignment Set text alignment to.

Parameters
alignment.If alignment have no flag this function do nothing
alignment
Here is the call graph for this function:

◆ terminalsTextAlignment()

Qt::Alignment TerminalStripLayoutPattern::terminalsTextAlignment ( ) const

◆ terminalsTextOption()

QTextOption TerminalStripLayoutPattern::terminalsTextOption ( ) const

◆ updateHeaderTextOption()

void TerminalStripLayoutPattern::updateHeaderTextOption ( )
private
Here is the caller graph for this function:

◆ updateTerminalsTextOption()

void TerminalStripLayoutPattern::updateTerminalsTextOption ( )
private
Here is the caller graph for this function:

◆ xrefTextAlignment()

Qt::Alignment TerminalStripLayoutPattern::xrefTextAlignment ( ) const

◆ xrefTextOption()

QTextOption TerminalStripLayoutPattern::xrefTextOption ( ) const

Member Data Documentation

◆ m_bridge_point_d

qreal TerminalStripLayoutPattern::m_bridge_point_d {5}

◆ m_bridge_point_y_offset

QVector<qreal> TerminalStripLayoutPattern::m_bridge_point_y_offset {50,70,90,110}

◆ m_font

QFont TerminalStripLayoutPattern::m_font
private

◆ m_header_rect

QRectF TerminalStripLayoutPattern::m_header_rect {0,30,50,130}

◆ m_header_text_alignment

Qt::Alignment TerminalStripLayoutPattern::m_header_text_alignment {Qt::AlignCenter}
private

◆ m_header_text_option

QTextOption TerminalStripLayoutPattern::m_header_text_option
private

◆ m_header_text_orientation

Qt::Orientation TerminalStripLayoutPattern::m_header_text_orientation {Qt::Horizontal}

◆ m_name

QString TerminalStripLayoutPattern::m_name

◆ m_spacer_rect

QRectF TerminalStripLayoutPattern::m_spacer_rect {0, 50, 10, 90}

◆ m_terminal_rect

QVector<QRectF> TerminalStripLayoutPattern::m_terminal_rect
Initial value:
{
QRectF{0, 0, 20, 190},
QRectF{0, 10, 20, 170},
QRectF{0, 20, 20, 150},
QRectF{0, 30, 20, 130}
}

◆ m_terminals_text_alignment

Qt::Alignment TerminalStripLayoutPattern::m_terminals_text_alignment {Qt::AlignRight | Qt::AlignVCenter}
private

◆ m_terminals_text_height

qreal TerminalStripLayoutPattern::m_terminals_text_height {50}

◆ m_terminals_text_option

QTextOption TerminalStripLayoutPattern::m_terminals_text_option {QTextOption()}
private

◆ m_terminals_text_orientation

Qt::Orientation TerminalStripLayoutPattern::m_terminals_text_orientation {Qt::Vertical}

◆ m_terminals_text_y

qreal TerminalStripLayoutPattern::m_terminals_text_y {35}

◆ m_uuid

QUuid TerminalStripLayoutPattern::m_uuid {QUuid::createUuid()}

◆ m_xref_text_alignment

Qt::Alignment TerminalStripLayoutPattern::m_xref_text_alignment {Qt::AlignLeft | Qt::AlignVCenter}
private

◆ m_xref_text_height

qreal TerminalStripLayoutPattern::m_xref_text_height {60}

◆ m_xref_text_option

QTextOption TerminalStripLayoutPattern::m_xref_text_option {QTextOption()}
private

◆ m_xref_text_orientation

Qt::Orientation TerminalStripLayoutPattern::m_xref_text_orientation {Qt::Vertical}

◆ m_xref_text_y

qreal TerminalStripLayoutPattern::m_xref_text_y {95}

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