Improve terminal_strip

This commit is contained in:
Laurent Trinques
2026-10-15 14:38:11 +02:00
parent 892a899a20
commit e883d2c3bf
11 changed files with 708 additions and 9 deletions
@@ -18,6 +18,7 @@
#ifndef MODELTERMINALDATA_H
#define MODELTERMINALDATA_H
#include <QColor>
#include <QString>
#include "../../qetgraphicsitem/element.h"
#include "../realterminal.h"
@@ -37,6 +38,10 @@ struct modelRealTerminalData
mrtd.conductor_ = real_t->conductor();
mrtd.led_ = real_t->isLed();
mrtd.shield_ = real_t->isShield();
mrtd.color_ = real_t->color();
mrtd.stripe_color_ = real_t->stripeColor();
mrtd.section_ = real_t->section();
mrtd.width_mm_ = real_t->widthMm();
mrtd.type_ = real_t->type();
mrtd.function_ = real_t->function();
mrtd.element_ = real_t->element();
@@ -55,6 +60,10 @@ struct modelRealTerminalData
QString conductor_;
bool led_ = false;
bool shield_ = false;
QColor color_; //Invalid = no color set by the user
QColor stripe_color_; //Second color of a two-tone color, invalid if plain
qreal section_ = 0; //In mm2, 0 = no section set by the user
qreal width_mm_ = 0; //In mm, 0 = no width set by the user
bool bridged_ = false;
ElementData::TerminalType type_ = ElementData::TerminalType::TTGeneric;