QElectroTech 0.100.0-dev
|
#include <terminalstripitem.h>
Public Types | |
enum | { Type = UserType + 1011 } |
Public Member Functions | |
TerminalStripItem (QPointer< TerminalStrip > strip, QGraphicsItem *parent=nullptr) | |
TerminalStripItem (QGraphicsItem *parent=nullptr) | |
void | setTerminalStrip (TerminalStrip *strip) |
QPointer< TerminalStrip > | terminalStrip () const |
TerminalStripItem::terminalStrip. | |
int | type () const override |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
QRectF | boundingRect () const override |
QString | name () const override |
TerminalStripItem::name. | |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
void | refreshPending () |
void | setLayout (QSharedPointer< TerminalStripLayoutPattern > layout) |
Public Member Functions inherited from QetGraphicsItem | |
QetGraphicsItem (QGraphicsItem *parent=nullptr) | |
QetGraphicsItem::QetGraphicsItem Default constructor. | |
~QetGraphicsItem () override=0 | |
Diagram * | diagram () const |
virtual void | setPos (const QPointF &p) |
virtual void | setPos (qreal x, qreal y) |
virtual bool | isMovable () const |
virtual void | setMovable (bool movable) |
bool | isHovered () const |
virtual void | editProperty () |
QET::GraphicsItemState | state () const |
QetGraphicsItem::state. | |
Private Member Functions | |
void | setDefaultLayout () |
Private Attributes | |
QPointer< TerminalStrip > | m_strip |
TerminalStripDrawer::TerminalStripDrawer | m_drawer |
QUuid | m_pending_strip_uuid |
Friends | |
class | TerminalStripItemXml |
Additional Inherited Members | |
Protected Member Functions inherited from QetGraphicsItem | |
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) override |
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
QetGraphicsItem::mouseReleaseEvent handle mouse release click. | |
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
Protected Attributes inherited from QetGraphicsItem | |
bool | is_movable_ |
bool | m_first_move |
bool | snap_to_grid_ |
QPointF | m_mouse_to_origin_movement |
QET::GraphicsItemState | m_state = QET:: GIOK |
TerminalStripItem::TerminalStripItem | ( | QPointer< TerminalStrip > | strip, |
QGraphicsItem * | parent = nullptr |
||
) |
TerminalStripItem::TerminalStripItem | ( | QGraphicsItem * | parent = nullptr | ) |
|
override |
|
override |
|
overridevirtual |
|
override |
void TerminalStripItem::refreshPending | ( | ) |
|
private |
void TerminalStripItem::setLayout | ( | QSharedPointer< TerminalStripLayoutPattern > | layout | ) |
void TerminalStripItem::setTerminalStrip | ( | TerminalStrip * | strip | ) |
QPointer< TerminalStrip > TerminalStripItem::terminalStrip | ( | ) | const |
TerminalStripItem::terminalStrip.
|
inlineoverride |
|
friend |
|
private |
|
private |
|
private |