20#ifndef LIBREPCB_EDITOR_PARTEDITOR_H
21#define LIBREPCB_EDITOR_PARTEDITOR_H
39class AttributeListModel;
58 QObject* parent =
nullptr) noexcept;
63 void setUiData(const ui::PartData& data,
bool allowEmpty) noexcept;
The Part class.
Definition part.h:46
The AttributeListModel class.
Definition attributelistmodel.h:49
The PartEditor class.
Definition parteditor.h:50
PartEditor(const PartEditor &other)=delete
void execCmd(UndoCommand *cmd)
Definition parteditor.cpp:100
ui::PartData getUiData() const
Definition parteditor.cpp:62
std::shared_ptr< AttributeListModel > mAttributes
Definition parteditor.h:76
void apply()
Definition parteditor.cpp:92
QPointer< UndoStack > mUndoStack
Definition parteditor.h:74
std::shared_ptr< Part > mPart
Definition parteditor.h:73
void setUiData(const ui::PartData &data, bool allowEmpty) noexcept
Definition parteditor.cpp:71
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
The UndoStack class holds UndoCommand objects and provides undo/redo commands.
Definition undostack.h:106
Definition occmodel.cpp:77