18#ifndef TERMINALSTRIPLAYOUTEDITOR_H
19#define TERMINALSTRIPLAYOUTEDITOR_H
21#include <QGraphicsItem>
24#include "../GraphicsItem/demoterminalstrip.h"
25#include "../GraphicsItem/terminalstripdrawer.h"
44 return m_drawer.boundingRect();
49 const QStyleOptionGraphicsItem *option,
50 QWidget *widget =
nullptr)
override
52 Q_UNUSED (option); Q_UNUSED (widget);
53 m_drawer.paint(painter);
70 QWidget *parent =
nullptr);
75 void showEvent(QShowEvent *event)
override;
87 Ui::TerminalStripLayoutEditor *
ui;
88 QSharedPointer<TerminalStripLayoutPattern>
m_layout;
Definition terminalstriplayouteditor.h:34
TerminalStripDrawer::TerminalStripDrawer m_drawer
Definition terminalstriplayouteditor.h:57
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
Definition terminalstriplayouteditor.h:48
PreviewStripItem(QSharedPointer< TerminalStripLayoutPattern > layout)
Definition terminalstriplayouteditor.h:38
QRectF boundingRect() const override
Definition terminalstriplayouteditor.h:43
Definition demoterminalstrip.h:26
Definition terminalstripdrawer.h:68
The TerminalStripLayoutEditor class Widget used to edit the layout of a terminal strip item.
Definition terminalstriplayouteditor.h:65
void updateUi()
Definition terminalstriplayouteditor.cpp:139
bool m_ui_updating
Definition terminalstriplayouteditor.h:89
void showEvent(QShowEvent *event) override
Definition terminalstriplayouteditor.cpp:45
PreviewStripItem m_preview_strip_item
Definition terminalstriplayouteditor.h:90
void valueEdited()
Definition terminalstriplayouteditor.cpp:51
void on_m_display_preview_help_clicked(bool checked)
Definition terminalstriplayouteditor.cpp:223
Ui::TerminalStripLayoutEditor * ui
Definition terminalstriplayouteditor.h:87
void updatePreview()
Definition terminalstriplayouteditor.cpp:217
void resizeEvent(QResizeEvent *event) override
Definition terminalstriplayouteditor.cpp:39
QSharedPointer< TerminalStripLayoutPattern > m_layout
Definition terminalstriplayouteditor.h:88
~TerminalStripLayoutEditor()
Definition terminalstriplayouteditor.cpp:34
The TerminalStripLayoutPattern class A class with all values used to define how a terminal strip must...
Definition terminalstriplayoutpattern.h:41
Definition demoterminalstrip.cpp:21
Definition autonumberingdockwidget.h:26