18#ifndef PHYSICALTERMINAL_H
19#define PHYSICALTERMINAL_H
21#include <QSharedPointer>
68 QSharedPointer<PhysicalTerminal>
sharedRef();
69 QWeakPointer<PhysicalTerminal>
weakRef();
71 QDomElement
toXml(QDomDocument &parent_document)
const;
73 void setTerminals(
const QVector<QSharedPointer<RealTerminal>> &terminals);
74 void addTerminal(
const QSharedPointer<RealTerminal> &terminal);
77 bool setLevelOf(
const QSharedPointer<RealTerminal> &terminal,
int level);
87 int levelOf(
const QSharedPointer<RealTerminal> &terminal)
const;
The PhysicalTerminal class Represent a physical terminal. A physical terminal is composed a least by ...
Definition physicalterminal.h:62
int levelOf(const QSharedPointer< RealTerminal > &terminal) const
levelOf
Definition physicalterminal.cpp:180
QWeakPointer< PhysicalTerminal > weakRef()
PhysicalTerminal::weakRef.
Definition physicalterminal.cpp:61
QVector< QSharedPointer< RealTerminal > > realTerminals() const
terminals
Definition physicalterminal.cpp:188
int levelCount() const
levelCount
Definition physicalterminal.cpp:170
void setParentStrip(TerminalStrip *strip)
Definition physicalterminal.cpp:144
void addTerminal(const QSharedPointer< RealTerminal > &terminal)
addTerminals Append the real terminal terminal to this physical terminal.
Definition physicalterminal.cpp:102
void setTerminals(const QVector< QSharedPointer< RealTerminal > > &terminals)
setTerminals Set the RealTerminal who compose this physical terminal. The position of the RealTermina...
Definition physicalterminal.cpp:87
QSharedPointer< PhysicalTerminal > sharedRef()
PhysicalTerminal::sharedRef.
Definition physicalterminal.cpp:45
QUuid m_uuid
Definition physicalterminal.h:98
QPointer< TerminalStrip > m_parent_terminal_strip
Definition physicalterminal.h:96
~PhysicalTerminal()
Definition physicalterminal.cpp:149
int pos() const
Definition physicalterminal.cpp:200
QWeakPointer< PhysicalTerminal > m_this_weak
Definition physicalterminal.h:99
static QString xmlTagName()
Definition physicalterminal.cpp:213
TerminalStrip * terminalStrip() const
PhysicalTerminal::terminalStrip.
Definition physicalterminal.cpp:162
QDomElement toXml(QDomDocument &parent_document) const
toXml
Definition physicalterminal.cpp:70
PhysicalTerminal()
Definition physicalterminal.h:82
bool removeTerminal(const QSharedPointer< RealTerminal > &terminal)
removeTerminal Remove terminal from the list of real terminal
Definition physicalterminal.cpp:113
bool setLevelOf(const QSharedPointer< RealTerminal > &terminal, int level)
setLevelOf Change the level of terminal
Definition physicalterminal.cpp:128
QVector< QSharedPointer< RealTerminal > > m_real_terminal
Definition physicalterminal.h:97
int realTerminalCount() const
Definition physicalterminal.cpp:209
QUuid uuid() const
uuid
Definition physicalterminal.cpp:196
The RealTerminal class Represent a real terminal. A real terminal can be a drawn terminal in a folio ...
Definition realterminal.h:43
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45