18#ifndef TERMINALSTRIPBRIDGE_H
19#define TERMINALSTRIPBRIDGE_H
21#include <QSharedPointer>
25#include <QDomDocument>
36 static QVector<QColor>
bridgeColor() {
return QVector<QColor>{Qt::red, Qt::blue, Qt::white, Qt::darkGray, Qt::black};}
39 QSharedPointer<TerminalStripBridge>
sharedRef();
40 QWeakPointer<TerminalStripBridge>
weakRef();
46 static QString
xmlTagName() {
return QStringLiteral(
"terminal_strip_bridge");}
47 QDomElement
toXml(QDomDocument &parent_document)
const;
48 void fromXml(
const QDomElement &dom_element);
49 QUuid
uuid() const noexcept;
The RealTerminal class Represent a real terminal. A real terminal can be a drawn terminal in a folio ...
Definition realterminal.h:43
Definition terminalstripbridge.h:32
static QString xmlTagName()
Definition terminalstripbridge.h:46
void removeTerminals(const QVector< QSharedPointer< RealTerminal > > &real_terminals)
TerminalStripBridge::removeTerminals.
Definition terminalstripbridge.cpp:168
QColor m_color
Definition terminalstripbridge.h:60
void fromXml(const QDomElement &dom_element)
Definition terminalstripbridge.cpp:102
QPointer< TerminalStrip > m_strip
Definition terminalstripbridge.h:58
QWeakPointer< TerminalStripBridge > m_this_weak
Definition terminalstripbridge.h:62
void removeTerminal(const QSharedPointer< RealTerminal > &real_terminal)
Definition terminalstripbridge.cpp:175
bool addTerminals(const QVector< QSharedPointer< RealTerminal > > &real_terminals)
TerminalStripBridge::addTerminals.
Definition terminalstripbridge.cpp:139
QWeakPointer< TerminalStripBridge > weakRef()
TerminalStripBridge::weakRef.
Definition terminalstripbridge.cpp:47
QUuid m_uuid
Definition terminalstripbridge.h:61
QSharedPointer< TerminalStripBridge > sharedRef()
TerminalStripBridge::sharedRef.
Definition terminalstripbridge.cpp:31
void setColor(const QColor &color)
Definition terminalstripbridge.cpp:59
QDomElement toXml(QDomDocument &parent_document) const
TerminalStripBridge::toXml Save this bridge into a QDomElement and return it.
Definition terminalstripbridge.cpp:80
QUuid uuid() const noexcept
TerminalStripBridge::uuid.
Definition terminalstripbridge.cpp:127
QColor color() const
TerminalStripBridge::color.
Definition terminalstripbridge.cpp:55
QVector< QSharedPointer< RealTerminal > > m_real_terminals
Definition terminalstripbridge.h:59
QVector< QSharedPointer< RealTerminal > > realTerminals() const
TerminalStripBridge::realTerminals.
Definition terminalstripbridge.cpp:70
static QVector< QColor > bridgeColor()
Definition terminalstripbridge.h:36
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45