LibrePCB Developers Documentation
GridSettingsDialog Class Referencefinal

This class provides a Dialog (GUI) to change the grid settings of a librepcb::editor::GraphicsView. More...

#include <gridsettingsdialog.h>

Inherits QDialog.

+ Collaboration diagram for GridSettingsDialog:

Classes

struct  Grid
 

Signals

void gridPropertiesChanged (const PositiveLength &interval, const LengthUnit &unit, Theme::GridStyle style)
 

Public Member Functions

 GridSettingsDialog ()=delete
 
 GridSettingsDialog (const GridSettingsDialog &other)=delete
 
 GridSettingsDialog (const PositiveLength &interval, const LengthUnit &unit, Theme::GridStyle style, QWidget *parent=nullptr) noexcept
 
 ~GridSettingsDialog () noexcept
 
const PositiveLengthgetInterval () const noexcept
 
const LengthUnitgetUnit () const noexcept
 
Theme::GridStyle getStyle () const noexcept
 
GridSettingsDialogoperator= (const GridSettingsDialog &rhs)=delete
 

Private Member Functions

void rbtnGroupClicked (int id) noexcept
 
void edtIntervalValueChanged (const PositiveLength &value) noexcept
 
void edtIntervalUnitChanged (const LengthUnit &unit) noexcept
 
void buttonBoxClicked (QAbstractButton *button) noexcept
 

Private Attributes

QScopedPointer< Ui::GridSettingsDialog > mUi
 
Grid mOriginalGrid
 
Grid mCurrentGrid
 

Detailed Description

This class provides a Dialog (GUI) to change the grid settings of a librepcb::editor::GraphicsView.

Constructor & Destructor Documentation

◆ GridSettingsDialog() [1/3]

GridSettingsDialog ( )
delete

◆ GridSettingsDialog() [2/3]

GridSettingsDialog ( const GridSettingsDialog other)
delete

◆ GridSettingsDialog() [3/3]

GridSettingsDialog ( const PositiveLength interval,
const LengthUnit unit,
Theme::GridStyle  style,
QWidget *  parent = nullptr 
)
explicitnoexcept

◆ ~GridSettingsDialog()

~GridSettingsDialog ( )
noexcept

Member Function Documentation

◆ getInterval()

const PositiveLength & getInterval ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getUnit()

const LengthUnit & getUnit ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getStyle()

Theme::GridStyle getStyle ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ operator=()

GridSettingsDialog & operator= ( const GridSettingsDialog rhs)
delete

◆ gridPropertiesChanged

void gridPropertiesChanged ( const PositiveLength interval,
const LengthUnit unit,
Theme::GridStyle  style 
)
signal
+ Here is the caller graph for this function:

◆ rbtnGroupClicked()

void rbtnGroupClicked ( int  id)
privatenoexcept

◆ edtIntervalValueChanged()

void edtIntervalValueChanged ( const PositiveLength value)
privatenoexcept

◆ edtIntervalUnitChanged()

void edtIntervalUnitChanged ( const LengthUnit unit)
privatenoexcept

◆ buttonBoxClicked()

void buttonBoxClicked ( QAbstractButton *  button)
privatenoexcept
+ Here is the call graph for this function:

Member Data Documentation

◆ mUi

QScopedPointer<Ui::GridSettingsDialog> mUi
private

◆ mOriginalGrid

Grid mOriginalGrid
private

◆ mCurrentGrid

Grid mCurrentGrid
private

The documentation for this class was generated from the following files: