QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TerminalStripItem Class Reference

#include <terminalstripitem.h>

Inheritance diagram for TerminalStripItem:
Inheritance graph
Collaboration diagram for TerminalStripItem:
Collaboration graph

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< TerminalStripterminalStrip () 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
 
Diagramdiagram () 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< TerminalStripm_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
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ TerminalStripItem() [1/2]

TerminalStripItem::TerminalStripItem ( QPointer< TerminalStrip strip,
QGraphicsItem *  parent = nullptr 
)

◆ TerminalStripItem() [2/2]

TerminalStripItem::TerminalStripItem ( QGraphicsItem *  parent = nullptr)

Member Function Documentation

◆ boundingRect()

QRectF TerminalStripItem::boundingRect ( ) const
override
Here is the call graph for this function:

◆ mouseDoubleClickEvent()

void TerminalStripItem::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  event)
override
Here is the call graph for this function:

◆ name()

QString TerminalStripItem::name ( ) const
overridevirtual

TerminalStripItem::name.

Returns
usual name of this item

Reimplemented from QetGraphicsItem.

◆ paint()

void TerminalStripItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
override
Here is the call graph for this function:

◆ refreshPending()

void TerminalStripItem::refreshPending ( )
Here is the call graph for this function:

◆ setDefaultLayout()

void TerminalStripItem::setDefaultLayout ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLayout()

void TerminalStripItem::setLayout ( QSharedPointer< TerminalStripLayoutPattern layout)
Here is the call graph for this function:

◆ setTerminalStrip()

void TerminalStripItem::setTerminalStrip ( TerminalStrip strip)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ terminalStrip()

QPointer< TerminalStrip > TerminalStripItem::terminalStrip ( ) const

TerminalStripItem::terminalStrip.

Returns
The strip drawed by this item
Here is the caller graph for this function:

◆ type()

int TerminalStripItem::type ( ) const
inlineoverride

Friends And Related Symbol Documentation

◆ TerminalStripItemXml

friend class TerminalStripItemXml
friend

Member Data Documentation

◆ m_drawer

TerminalStripDrawer::TerminalStripDrawer TerminalStripItem::m_drawer
private

◆ m_pending_strip_uuid

QUuid TerminalStripItem::m_pending_strip_uuid
private

◆ m_strip

QPointer<TerminalStrip> TerminalStripItem::m_strip
private

The documentation for this class was generated from the following files: