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