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

#include <terminalstripdrawer.h>

Collaboration diagram for TerminalStripDrawer::TerminalStripDrawer:
Collaboration graph

Public Member Functions

 TerminalStripDrawer (QSharedPointer< AbstractTerminalStripInterface > strip=QSharedPointer< AbstractTerminalStripInterface > { nullptr }, QSharedPointer< TerminalStripLayoutPattern > layout=QSharedPointer< TerminalStripLayoutPattern >())
 TerminalStripDrawer::TerminalStripDrawer.
 
void setStrip (QSharedPointer< AbstractTerminalStripInterface > strip)
 
void paint (QPainter *painter)
 TerminalStripDrawer::paint.
 
QRectF boundingRect () const
 
void setLayout (QSharedPointer< TerminalStripLayoutPattern > layout)
 
bool haveLayout () const
 
void setPreviewDraw (bool draw=true)
 

Private Member Functions

int height () const
 
int width () const
 

Private Attributes

QSharedPointer< AbstractTerminalStripInterfacem_strip
 
QSharedPointer< TerminalStripLayoutPatternm_pattern
 
bool m_preview_draw { false }
 

Constructor & Destructor Documentation

◆ TerminalStripDrawer()

TerminalStripDrawer::TerminalStripDrawer::TerminalStripDrawer ( QSharedPointer< AbstractTerminalStripInterface strip = QSharedPointer<AbstractTerminalStripInterface> { nullptr },
QSharedPointer< TerminalStripLayoutPattern layout = QSharedPointer<TerminalStripLayoutPattern>() 
)

TerminalStripDrawer::TerminalStripDrawer.

Parameters
strip
pattern

Member Function Documentation

◆ boundingRect()

QRectF TerminalStripDrawer::TerminalStripDrawer::boundingRect ( ) const
Here is the caller graph for this function:

◆ haveLayout()

bool TerminalStripDrawer::TerminalStripDrawer::haveLayout ( ) const
Here is the caller graph for this function:

◆ height()

int TerminalStripDrawer::TerminalStripDrawer::height ( ) const
private

◆ paint()

void TerminalStripDrawer::TerminalStripDrawer::paint ( QPainter *  painter)

TerminalStripDrawer::paint.

Parameters
painter
Here is the caller graph for this function:

◆ setLayout()

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

◆ setPreviewDraw()

void TerminalStripDrawer::TerminalStripDrawer::setPreviewDraw ( bool  draw = true)
Here is the caller graph for this function:

◆ setStrip()

void TerminalStripDrawer::TerminalStripDrawer::setStrip ( QSharedPointer< AbstractTerminalStripInterface strip)
Here is the caller graph for this function:

◆ width()

int TerminalStripDrawer::TerminalStripDrawer::width ( ) const
private

Member Data Documentation

◆ m_pattern

QSharedPointer<TerminalStripLayoutPattern> TerminalStripDrawer::TerminalStripDrawer::m_pattern
private

◆ m_preview_draw

bool TerminalStripDrawer::TerminalStripDrawer::m_preview_draw { false }
private

◆ m_strip

QSharedPointer<AbstractTerminalStripInterface> TerminalStripDrawer::TerminalStripDrawer::m_strip
private

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