20#ifndef LIBREPCB_EDITOR_CMDBOARDSPECCTRAIMPORT_H
21#define LIBREPCB_EDITOR_CMDBOARDSPECCTRAIMPORT_H
26#include "../../undocommandgroup.h"
32#include <optional/tl/optional.hpp>
62 enum class Side { Front, Back };
96 std::shared_ptr<MessageLogger> logger);
104 const QString& padStackId) noexcept;
106 const QString& padStackId) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The Board class represents a PCB of a project and is always part of a circuit.
Definition: board.h:73
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Definition: circuit.h:70
The Layer class provides all supported geometry layers.
Definition: layer.h:42
The Length class is used to represent a length (for example 12.75 millimeters)
Definition: length.h:83
The MaskConfig class defines how to add automatic stop mask or solder paste.
Definition: maskconfig.h:45
Generic logger class to pass messages between objects.
Definition: messagelogger.h:43
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition: path.h:58
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The Project class represents a whole (opened) project with all its content.
Definition: project.h:71
The SExpression class.
Definition: sexpression.h:69
Undo command to import a Specctra session (SES)
Definition: cmdboardspecctraimport.h:59
CmdBoardSpecctraImport(Board &board, const SExpression &root, std::shared_ptr< MessageLogger > logger)
Definition: cmdboardspecctraimport.cpp:112
QList< NetOut > mNets
Definition: cmdboardspecctraimport.h:114
static tl::optional< MaskConfig > extractViaExposureConfig(const QString &padStackId) noexcept
Definition: cmdboardspecctraimport.cpp:720
Circuit & mCircuit
Definition: cmdboardspecctraimport.h:109
Board & mBoard
Definition: cmdboardspecctraimport.h:110
Side
Definition: cmdboardspecctraimport.h:62
Project & mProject
Definition: cmdboardspecctraimport.h:108
std::shared_ptr< MessageLogger > mLogger
Definition: cmdboardspecctraimport.h:111
~CmdBoardSpecctraImport() noexcept
Definition: cmdboardspecctraimport.cpp:269
static tl::optional< PositiveLength > extractViaDrillDiameter(const QString &padStackId) noexcept
Definition: cmdboardspecctraimport.cpp:706
bool performExecute() override
Execute the command the first time.
Definition: cmdboardspecctraimport.cpp:276
QHash< QString, PadStackOut > mPadStacks
Definition: cmdboardspecctraimport.h:113
tl::optional< QList< ComponentOut > > mComponents
Definition: cmdboardspecctraimport.h:112
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition: undocommandgroup.h:44
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
Definition: cmdboardspecctraimport.h:64
Side side
Definition: cmdboardspecctraimport.h:67
QString name
Definition: cmdboardspecctraimport.h:65
Point pos
Definition: cmdboardspecctraimport.h:66
Angle rot
Definition: cmdboardspecctraimport.h:68
Definition: cmdboardspecctraimport.h:88
QString netName
Definition: cmdboardspecctraimport.h:89
QList< ViaOut > vias
Definition: cmdboardspecctraimport.h:90
QList< WireOut > wires
Definition: cmdboardspecctraimport.h:91
Definition: cmdboardspecctraimport.h:71
const Layer * endLayer
Definition: cmdboardspecctraimport.h:73
const Layer * startLayer
Definition: cmdboardspecctraimport.h:72
Length diameter
Definition: cmdboardspecctraimport.h:74
Definition: cmdboardspecctraimport.h:77
Point pos
Definition: cmdboardspecctraimport.h:79
QString padStackId
Definition: cmdboardspecctraimport.h:78
Definition: cmdboardspecctraimport.h:82
Length width
Definition: cmdboardspecctraimport.h:84
Path path
Definition: cmdboardspecctraimport.h:85
const Layer * layer
Definition: cmdboardspecctraimport.h:83