20 #ifndef LIBREPCB_EDITOR_FOOTPRINTLISTMODEL_H 21 #define LIBREPCB_EDITOR_FOOTPRINTLISTMODEL_H 76 void add(const QPersistentModelIndex& itemIndex) noexcept;
77 void copy(const QPersistentModelIndex& itemIndex) noexcept;
78 void remove(const QPersistentModelIndex& itemIndex) noexcept;
79 void moveUp(const QPersistentModelIndex& itemIndex) noexcept;
80 void moveDown(const QPersistentModelIndex& itemIndex) noexcept;
83 int rowCount(const QModelIndex& parent = QModelIndex()) const override;
84 int columnCount(const QModelIndex& parent = QModelIndex()) const override;
85 QVariant
data(const QModelIndex& index,
86 int role = Qt::DisplayRole) const override;
87 QVariant
headerData(
int section, Qt::Orientation orientation,
88 int role = Qt::DisplayRole) const override;
89 Qt::ItemFlags
flags(const QModelIndex& index) const override;
90 bool setData(const QModelIndex& index, const QVariant& value,
91 int role = Qt::EditRole) override;
98 const std::shared_ptr<const
Footprint>& footprint,
Definition: occmodel.cpp:77
The Package class represents a package of a component (including footprint and 3D model) ...
Definition: package.h:59
The UndoStack class holds UndoCommand objects and provides undo/redo commands.
Definition: undostack.h:106
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
std::tuple< Length, Length, Length > Point3D
Definition: length.h:989
std::tuple< Angle, Angle, Angle > Angle3D
Definition: angle.h:461
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:84