18#ifndef TERMINALSTRIPITEM_H
19#define TERMINALSTRIPITEM_H
21#include <QGraphicsObject>
25#include "../../qetgraphicsitem/qetgraphicsitem.h"
36 TerminalStripItem(QPointer<TerminalStrip> strip, QGraphicsItem *parent =
nullptr);
42 enum {
Type = UserType + 1011};
45 void paint(QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget)
override;
47 QString
name()
const override;
51 void setLayout(QSharedPointer<TerminalStripLayoutPattern> layout);
Definition qetgraphicsitem.h:28
Definition terminalstripdrawer.h:68
The TerminalStrip class This class hold all the datas and configurations of a terminal strip (but the...
Definition terminalstrip.h:45
Definition terminalstripitem.h:30
@ Type
Definition terminalstripitem.h:42
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition terminalstripitem.cpp:68
QUuid m_pending_strip_uuid
Definition terminalstripitem.h:59
void setTerminalStrip(TerminalStrip *strip)
Definition terminalstripitem.cpp:48
QPointer< TerminalStrip > m_strip
Definition terminalstripitem.h:57
int type() const override
Definition terminalstripitem.h:43
void refreshPending()
Definition terminalstripitem.cpp:106
void setDefaultLayout()
Definition terminalstripitem.cpp:127
TerminalStripDrawer::TerminalStripDrawer m_drawer
Definition terminalstripitem.h:58
QRectF boundingRect() const override
Definition terminalstripitem.cpp:81
QPointer< TerminalStrip > terminalStrip() const
TerminalStripItem::terminalStrip.
Definition terminalstripitem.cpp:64
void setLayout(QSharedPointer< TerminalStripLayoutPattern > layout)
Definition terminalstripitem.cpp:122
QString name() const override
TerminalStripItem::name.
Definition terminalstripitem.cpp:93
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) override
Definition terminalstripitem.cpp:97
Definition terminalstripitemxml.h:28