20#ifndef LIBREPCB_EDITOR_CMDBOARDEDIT_H
21#define LIBREPCB_EDITOR_CMDBOARDEDIT_H
26#include "../../undocommand.h"
The BoardDesignRuleCheckSettings class.
Definition boarddesignrulechecksettings.h:44
The BoardDesignRules class.
Definition boarddesignrules.h:45
The Board class represents a PCB of a project and is always part of a circuit.
Definition board.h:73
The Layer class provides all supported geometry layers.
Definition layer.h:42
Predefined colors relevant for PCB fabrication.
Definition pcbcolor.h:41
The CmdBoardEdit class.
Definition cmdboardedit.h:52
QVector< const Layer * > mNewSilkscreenLayersBot
Definition cmdboardedit.h:97
void performRedo() override
Redo the command.
Definition cmdboardedit.cpp:147
void setSilkscreenColor(const PcbColor &c) noexcept
Definition cmdboardedit.cpp:88
void setName(const ElementName &name) noexcept
Definition cmdboardedit.cpp:69
CmdBoardEdit(const CmdBoardEdit &other)=delete
BoardDesignRules mOldDesignRules
Definition cmdboardedit.h:98
const PcbColor * mNewSilkscreenColor
Definition cmdboardedit.h:93
QVector< const Layer * > mOldSilkscreenLayersTop
Definition cmdboardedit.h:94
BoardDesignRuleCheckSettings mNewDrcSettings
Definition cmdboardedit.h:101
PositiveLength mNewPcbThickness
Definition cmdboardedit.h:89
void setInnerLayerCount(int count) noexcept
Definition cmdboardedit.cpp:74
void setDrcSettings(const BoardDesignRuleCheckSettings &settings) noexcept
Definition cmdboardedit.cpp:110
void performUndo() override
Undo the command.
Definition cmdboardedit.cpp:135
void setDesignRules(const BoardDesignRules &rules) noexcept
Definition cmdboardedit.cpp:105
~CmdBoardEdit() noexcept
Definition cmdboardedit.cpp:62
ElementName mNewName
Definition cmdboardedit.h:85
Board & mBoard
Definition cmdboardedit.h:82
const PcbColor * mOldSolderResist
Definition cmdboardedit.h:90
int mOldInnerLayerCount
Definition cmdboardedit.h:86
const PcbColor * mOldSilkscreenColor
Definition cmdboardedit.h:92
QVector< const Layer * > mOldSilkscreenLayersBot
Definition cmdboardedit.h:96
const PcbColor * mNewSolderResist
Definition cmdboardedit.h:91
ElementName mOldName
Definition cmdboardedit.h:84
BoardDesignRules mNewDesignRules
Definition cmdboardedit.h:99
void setSilkscreenLayersTop(const QVector< const Layer * > &l) noexcept
Definition cmdboardedit.cpp:93
void setSilkscreenLayersBot(const QVector< const Layer * > &l) noexcept
Definition cmdboardedit.cpp:99
int mNewInnerLayerCount
Definition cmdboardedit.h:87
BoardDesignRuleCheckSettings mOldDrcSettings
Definition cmdboardedit.h:100
bool performExecute() override
Execute the command the first time.
Definition cmdboardedit.cpp:120
void setSolderResist(const PcbColor *c) noexcept
Definition cmdboardedit.cpp:84
PositiveLength mOldPcbThickness
Definition cmdboardedit.h:88
void setPcbThickness(const PositiveLength &thickness) noexcept
Definition cmdboardedit.cpp:79
QVector< const Layer * > mNewSilkscreenLayersTop
Definition cmdboardedit.h:95
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition elementname.h:84