LibrePCB Developers Documentation
GridSettingsDialog Class Referencefinal

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

#include <gridsettingsdialog.h>

Inherits QDialog.

+ Collaboration diagram for GridSettingsDialog:

Signals

void gridPropertiesChanged (const GridProperties &grid)
 

Public Member Functions

 GridSettingsDialog ()=delete
 
 GridSettingsDialog (const GridSettingsDialog &other)=delete
 
 GridSettingsDialog (const GridProperties &grid, QWidget *parent=nullptr) noexcept
 
 ~GridSettingsDialog () noexcept
 
const GridPropertiesgetGrid () 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
 
GridProperties mOriginalGrid
 
GridProperties mCurrentGrid
 

Detailed Description

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

Constructor & Destructor Documentation

◆ GridSettingsDialog() [1/3]

GridSettingsDialog ( )
delete

◆ GridSettingsDialog() [2/3]

GridSettingsDialog ( const GridSettingsDialog other)
delete

◆ GridSettingsDialog() [3/3]

GridSettingsDialog ( const GridProperties grid,
QWidget *  parent = nullptr 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~GridSettingsDialog()

~GridSettingsDialog ( )
noexcept

Member Function Documentation

◆ getGrid()

const GridProperties& getGrid ( ) const
inlinenoexcept

◆ operator=()

GridSettingsDialog& operator= ( const GridSettingsDialog rhs)
delete

◆ gridPropertiesChanged

void gridPropertiesChanged ( const GridProperties grid)
signal
+ Here is the caller graph for this function:

◆ rbtnGroupClicked()

void rbtnGroupClicked ( int  id)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ edtIntervalValueChanged()

void edtIntervalValueChanged ( const PositiveLength value)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ edtIntervalUnitChanged()

void edtIntervalUnitChanged ( const LengthUnit unit)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buttonBoxClicked()

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

Member Data Documentation

◆ mUi

QScopedPointer<Ui::GridSettingsDialog> mUi
private

◆ mOriginalGrid

GridProperties mOriginalGrid
private

◆ mCurrentGrid

GridProperties mCurrentGrid
private

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