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 (const GridProperties &grid, QWidget *parent=0)
 
 ~GridSettingsDialog ()
 
const GridPropertiesgetGrid () const noexcept
 

Private Slots

void rbtnGroupClicked (int id)
 
void spbxIntervalChanged (double value)
 
void cbxUnitsChanged (int index)
 
void btnMul2Clicked ()
 
void btnDiv2Clicked ()
 
void buttonBoxClicked (QAbstractButton *button)
 

Private Member Functions

 GridSettingsDialog ()
 
 GridSettingsDialog (const GridSettingsDialog &other)
 
GridSettingsDialogoperator= (const GridSettingsDialog &rhs)
 
void updateInternalRepresentation () noexcept
 

Private Attributes

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 ( const GridProperties grid,
QWidget *  parent = 0 
)
explicit
+ Here is the call graph for this function:

◆ ~GridSettingsDialog()

◆ GridSettingsDialog() [2/3]

GridSettingsDialog ( )
private

◆ GridSettingsDialog() [3/3]

GridSettingsDialog ( const GridSettingsDialog other)
private

Member Function Documentation

◆ getGrid()

const GridProperties& getGrid ( ) const
inlinenoexcept

◆ rbtnGroupClicked

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

◆ spbxIntervalChanged

void spbxIntervalChanged ( double  value)
privateslot
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cbxUnitsChanged

void cbxUnitsChanged ( int  index)
privateslot
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ btnMul2Clicked

void btnMul2Clicked ( )
privateslot
+ Here is the caller graph for this function:

◆ btnDiv2Clicked

void btnDiv2Clicked ( )
privateslot
+ Here is the caller graph for this function:

◆ buttonBoxClicked

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

◆ gridPropertiesChanged

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

◆ operator=()

GridSettingsDialog& operator= ( const GridSettingsDialog rhs)
private

◆ updateInternalRepresentation()

void updateInternalRepresentation ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mUi

Ui::GridSettingsDialog* mUi
private

◆ mOriginalGrid

GridProperties mOriginalGrid
private

◆ mCurrentGrid

GridProperties mCurrentGrid
private

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