20#ifndef LIBREPCB_EDITOR_MOVEALIGNDIALOG_H
21#define LIBREPCB_EDITOR_MOVEALIGNDIALOG_H
53 typedef std::optional<PositiveLength>
Interval;
59 MoveAlignDialog(
const QList<Point>& positions,
const QString& settingsPrefix,
60 QWidget* parent =
nullptr) noexcept;
73 virtual bool eventFilter(QObject* watched, QEvent* event)
noexcept override;
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The MoveAlignDialog class.
Definition movealigndialog.h:50
QScopedPointer< Ui::MoveAlignDialog > mUi
Definition movealigndialog.h:78
virtual bool eventFilter(QObject *watched, QEvent *event) noexcept override
Definition movealigndialog.cpp:197
std::optional< PositiveLength > Interval
Definition movealigndialog.h:53
void updateNewPositions() noexcept
Definition movealigndialog.cpp:208
const QList< Point > & getNewPositions() const noexcept
Definition movealigndialog.h:64
const QList< Point > mPositions
Definition movealigndialog.h:80
const QString mSettingsPrefix
Definition movealigndialog.h:79
QList< Point > mPositionsOrdered
Unique; First item = reference position;.
Definition movealigndialog.h:81
QList< Point > mNewPositions
Definition movealigndialog.h:83
static Point calcCenter(const QList< Point > &p) noexcept
Definition movealigndialog.cpp:258
MoveAlignDialog & operator=(const MoveAlignDialog &rhs)=delete
Point mDefaultInterval
Definition movealigndialog.h:82
void positionsChanged(const QList< Point > &positions)
MoveAlignDialog(const MoveAlignDialog &other)=delete
Definition occmodel.cpp:76