18#ifndef TERMINALSTRIPDRAWER_H
19#define TERMINALSTRIPDRAWER_H
35 virtual QUuid
uuid()
const = 0;
43 virtual QString
label()
const = 0;
53 virtual QVector<QSharedPointer<AbstractRealTerminalInterface>>
realTerminals()
const = 0;
63 virtual QString
name()
const = 0;
64 virtual QVector<QSharedPointer<AbstractPhysicalTerminalInterface>>
physicalTerminal()
const = 0;
70 TerminalStripDrawer(QSharedPointer<AbstractTerminalStripInterface> strip = QSharedPointer<AbstractTerminalStripInterface> {
nullptr },
71 QSharedPointer<TerminalStripLayoutPattern> layout = QSharedPointer<TerminalStripLayoutPattern>());
73 void setStrip(QSharedPointer<AbstractTerminalStripInterface> strip);
74 void paint(QPainter *painter);
75 QRectF boundingRect()
const;
77 void setLayout(QSharedPointer<TerminalStripLayoutPattern> layout);
78 bool haveLayout()
const;
80 void setPreviewDraw(
bool draw =
true);
87 QSharedPointer <AbstractTerminalStripInterface>
m_strip;
88 QSharedPointer<TerminalStripLayoutPattern>
m_pattern;
89 bool m_preview_draw {
false };
Definition terminalstripdrawer.h:31
virtual QUuid uuid() const =0
AbstractBridgeInterface()
Definition terminalstripdrawer.h:33
virtual ~AbstractBridgeInterface()
Definition terminalstripdrawer.h:34
Definition terminalstripdrawer.h:49
virtual QVector< QSharedPointer< AbstractRealTerminalInterface > > realTerminals() const =0
AbstractPhysicalTerminalInterface()
Definition terminalstripdrawer.h:51
virtual ~AbstractPhysicalTerminalInterface()
Definition terminalstripdrawer.h:52
Definition terminalstripdrawer.h:39
virtual bool isBridged() const =0
AbstractRealTerminalInterface()
Definition terminalstripdrawer.h:41
virtual AbstractBridgeInterface * bridge() const =0
virtual QString label() const =0
virtual ~AbstractRealTerminalInterface()
Definition terminalstripdrawer.h:42
Definition terminalstripdrawer.h:57
virtual QString installation() const =0
virtual QVector< QSharedPointer< AbstractPhysicalTerminalInterface > > physicalTerminal() const =0
virtual QString name() const =0
virtual QString location() const =0
virtual ~AbstractTerminalStripInterface()
Definition terminalstripdrawer.h:60
AbstractTerminalStripInterface()
Definition terminalstripdrawer.h:59
QSharedPointer< AbstractTerminalStripInterface > m_strip
Definition terminalstripdrawer.h:87
QSharedPointer< TerminalStripLayoutPattern > m_pattern
Definition terminalstripdrawer.h:88
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45
Definition demoterminalstrip.cpp:21