20#ifndef LIBREPCB_EDITOR_GRIDSETTINGSDIALOG_H
21#define LIBREPCB_EDITOR_GRIDSETTINGSDIALOG_H
40class GridSettingsDialog;
60 QWidget* parent =
nullptr) noexcept;
90 QScopedPointer<Ui::GridSettingsDialog>
mUi;
The LengthUnit class represents a length unit (millimeters, inches,...) and provides some useful meth...
Definition: lengthunit.h:60
GridStyle
Definition: theme.h:49
This class provides a Dialog (GUI) to change the grid settings of a librepcb::editor::GraphicsView.
Definition: gridsettingsdialog.h:51
GridSettingsDialog()=delete
void edtIntervalValueChanged(const PositiveLength &value) noexcept
Definition: gridsettingsdialog.cpp:102
void edtIntervalUnitChanged(const LengthUnit &unit) noexcept
Definition: gridsettingsdialog.cpp:109
QScopedPointer< Ui::GridSettingsDialog > mUi
Definition: gridsettingsdialog.h:90
void gridPropertiesChanged(const PositiveLength &interval, const LengthUnit &unit, Theme::GridStyle style)
const LengthUnit & getUnit() const noexcept
Definition: gridsettingsdialog.h:67
GridSettingsDialog & operator=(const GridSettingsDialog &rhs)=delete
Grid mOriginalGrid
Definition: gridsettingsdialog.h:91
Grid mCurrentGrid
Definition: gridsettingsdialog.h:92
const PositiveLength & getInterval() const noexcept
Definition: gridsettingsdialog.h:64
Theme::GridStyle getStyle() const noexcept
Definition: gridsettingsdialog.h:68
GridSettingsDialog(const GridSettingsDialog &other)=delete
void rbtnGroupClicked(int id) noexcept
Definition: gridsettingsdialog.cpp:95
void buttonBoxClicked(QAbstractButton *button) noexcept
Definition: gridsettingsdialog.cpp:116
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
Definition: gridsettingsdialog.h:84
PositiveLength interval
Definition: gridsettingsdialog.h:85
Theme::GridStyle style
Definition: gridsettingsdialog.h:87
LengthUnit unit
Definition: gridsettingsdialog.h:86