20#ifndef LIBREPCB_EDITOR_MOVEALIGNDIALOG_H
21#define LIBREPCB_EDITOR_MOVEALIGNDIALOG_H
27#include <optional/tl/optional.hpp>
58 MoveAlignDialog(
const QList<Point>& positions,
const QString& settingsPrefix,
59 QWidget* parent =
nullptr) noexcept;
72 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:79
The MoveAlignDialog class.
Definition: movealigndialog.h:49
QScopedPointer< Ui::MoveAlignDialog > mUi
Definition: movealigndialog.h:77
virtual bool eventFilter(QObject *watched, QEvent *event) noexcept override
Definition: movealigndialog.cpp:197
void updateNewPositions() noexcept
Definition: movealigndialog.cpp:208
const QList< Point > & getNewPositions() const noexcept
Definition: movealigndialog.h:63
tl::optional< PositiveLength > Interval
Definition: movealigndialog.h:52
const QList< Point > mPositions
Definition: movealigndialog.h:79
const QString mSettingsPrefix
Definition: movealigndialog.h:78
QList< Point > mPositionsOrdered
Unique; First item = reference position;.
Definition: movealigndialog.h:80
QList< Point > mNewPositions
Definition: movealigndialog.h:82
static Point calcCenter(const QList< Point > &p) noexcept
Definition: movealigndialog.cpp:258
MoveAlignDialog & operator=(const MoveAlignDialog &rhs)=delete
Point mDefaultInterval
Definition: movealigndialog.h:81
void positionsChanged(const QList< Point > &positions)
MoveAlignDialog(const MoveAlignDialog &other)=delete
Definition: occmodel.cpp:77