LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GridSettingsDialog Class Referencefinal

This class provides a Dialog (GUI) to change the grid settings of a #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 #GraphicsView.

Author
ubruhin
Date
2014-10-13

Constructor & Destructor Documentation

GridSettingsDialog ( const GridProperties grid,
QWidget *  parent = 0 
)
explicit

+ Here is the call graph for this function:

GridSettingsDialog ( )
private
GridSettingsDialog ( const GridSettingsDialog other)
private

Member Function Documentation

const GridProperties& getGrid ( ) const
inlinenoexcept
void rbtnGroupClicked ( int  id)
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void spbxIntervalChanged ( double  value)
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cbxUnitsChanged ( int  index)
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void btnMul2Clicked ( )
privateslot

+ Here is the caller graph for this function:

void btnDiv2Clicked ( )
privateslot

+ Here is the caller graph for this function:

void buttonBoxClicked ( QAbstractButton *  button)
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gridPropertiesChanged ( const GridProperties grid)
signal

+ Here is the caller graph for this function:

GridSettingsDialog& operator= ( const GridSettingsDialog rhs)
private
void updateInternalRepresentation ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Ui::GridSettingsDialog* mUi
private
GridProperties mOriginalGrid
private
GridProperties mCurrentGrid
private

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