20#ifndef LIBREPCB_EDITOR_CMDCOMPONENTSIGNALEDIT_H
21#define LIBREPCB_EDITOR_CMDCOMPONENTSIGNALEDIT_H
26#include "../../cmd/cmdlistelementinsert.h"
27#include "../../cmd/cmdlistelementremove.h"
28#include "../../cmd/cmdlistelementsswap.h"
29#include "../../undocommand.h"
The ComponentSignal class represents one signal of a component.
Definition: componentsignal.h:45
The SignalRole class provides all supported electrical signal roles.
Definition: signalrole.h:42
The CmdComponentSignalEdit class.
Definition: cmdcomponentsignaledit.h:48
void performRedo() override
Redo the command.
Definition: cmdcomponentsignaledit.cpp:116
CmdComponentSignalEdit()=delete
void setIsClock(bool clock) noexcept
Definition: cmdcomponentsignaledit.cpp:86
QString mNewForcedNetName
Definition: cmdcomponentsignaledit.h:85
~CmdComponentSignalEdit() noexcept
Definition: cmdcomponentsignaledit.cpp:54
CircuitIdentifier mOldName
Definition: cmdcomponentsignaledit.h:80
void setIsRequired(bool required) noexcept
Definition: cmdcomponentsignaledit.cpp:76
bool mOldIsRequired
Definition: cmdcomponentsignaledit.h:86
bool mOldIsNegated
Definition: cmdcomponentsignaledit.h:88
void setRole(const SignalRole &role) noexcept
Definition: cmdcomponentsignaledit.cpp:66
void performUndo() override
Undo the command.
Definition: cmdcomponentsignaledit.cpp:107
QString mOldForcedNetName
Definition: cmdcomponentsignaledit.h:84
SignalRole mNewRole
Definition: cmdcomponentsignaledit.h:83
bool mNewIsClock
Definition: cmdcomponentsignaledit.h:91
void setForcedNetName(const QString &name) noexcept
Definition: cmdcomponentsignaledit.cpp:71
void setName(const CircuitIdentifier &name) noexcept
Definition: cmdcomponentsignaledit.cpp:61
bool mNewIsRequired
Definition: cmdcomponentsignaledit.h:87
ComponentSignal & mSignal
Definition: cmdcomponentsignaledit.h:78
bool mNewIsNegated
Definition: cmdcomponentsignaledit.h:89
CmdComponentSignalEdit(const CmdComponentSignalEdit &other)=delete
bool mOldIsClock
Definition: cmdcomponentsignaledit.h:90
void setIsNegated(bool negated) noexcept
Definition: cmdcomponentsignaledit.cpp:81
bool performExecute() override
Execute the command the first time.
Definition: cmdcomponentsignaledit.cpp:95
SignalRole mOldRole
Definition: cmdcomponentsignaledit.h:82
CircuitIdentifier mNewName
Definition: cmdcomponentsignaledit.h:81
The CmdListElementInsert class.
Definition: cmdlistelementinsert.h:46
The CmdListElementRemove class.
Definition: cmdlistelementremove.h:46
The CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77
type_safe::constrained_type< QString, CircuitIdentifierConstraint, CircuitIdentifierVerifier > CircuitIdentifier
Definition: circuitidentifier.h:96
Definition: componentsignal.h:119