QElectroTech 0.100.0-dev
|
#include <terminalstripdrawer.h>
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< AbstractTerminalStripInterface > | m_strip |
QSharedPointer< TerminalStripLayoutPattern > | m_pattern |
bool | m_preview_draw { false } |
TerminalStripDrawer::TerminalStripDrawer::TerminalStripDrawer | ( | QSharedPointer< AbstractTerminalStripInterface > | strip = QSharedPointer<AbstractTerminalStripInterface> { nullptr } , |
QSharedPointer< TerminalStripLayoutPattern > | layout = QSharedPointer<TerminalStripLayoutPattern>() |
||
) |
TerminalStripDrawer::TerminalStripDrawer.
strip | |
pattern |
QRectF TerminalStripDrawer::TerminalStripDrawer::boundingRect | ( | ) | const |
bool TerminalStripDrawer::TerminalStripDrawer::haveLayout | ( | ) | const |
|
private |
void TerminalStripDrawer::TerminalStripDrawer::paint | ( | QPainter * | painter | ) |
void TerminalStripDrawer::TerminalStripDrawer::setLayout | ( | QSharedPointer< TerminalStripLayoutPattern > | layout | ) |
void TerminalStripDrawer::TerminalStripDrawer::setPreviewDraw | ( | bool | draw = true | ) |
void TerminalStripDrawer::TerminalStripDrawer::setStrip | ( | QSharedPointer< AbstractTerminalStripInterface > | strip | ) |
|
private |
|
private |
|
private |
|
private |