API Documentation
Loading...
Searching...
No Matches
UnitsDialog Class Reference

A dialog which can be used to set various units for different unit categories, such as selecting the various properties by which to show angles. More...

#include <UnitsDialog.h>

Inheritance diagram for UnitsDialog:
[legend]
Collaboration diagram for UnitsDialog:
[legend]

Signals

void edited ()
 

Public Member Functions

void hideAngleUnit ()
 
void hideCoordinateMode ()
 
void hideDefaultButtons ()
 
void hideSpacialLabels ()
 
void hideSurfaceVolumeUnit ()
 
void refreshUnitsDialog ()
 
void removeScrollArea ()
 
void resetToDefaultUnits ()
 
void setAllowSubUnit (bool allow_sub_unit)
 
void setAutosize (bool auto_size)
 
void setManager (UnitManager *manager)
 
 UnitsDialog (QWidget *parent=nullptr)
 
 UnitsDialog (UnitManager *manager, QWidget *parent=nullptr)
 

Protected Slots

void updateOrientationUnitFromUISlot ()
 
void updateSpacialUnitFromUISlot ()
 
void updateSurfaceAreaUnitFromUISlot ()
 
void updateVolumeUnitFromUISlot ()
 
void updateWeightUnitFromUISlot ()
 

Protected Member Functions

bool event (QEvent *event) override
 
QWidget * extraUnitWidget (DynamicPointer< CustomUnit > custom_unit)
 
void initialize ()
 
void retranslate ()
 
ConstPointer< UnitselectedUnit (const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &reference_unit, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
 
ConstPointer< UnitselectedUnit (UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
 
void setSelectedUnit (UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
 
void setup ()
 
ConstPointer< UnitOptionsetupCombo (const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &unit, QCustomComboBox *combo)
 
void setupCombo (const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &unit, QCustomComboBox *combo, QCustomComboBox *subcombo)
 
void setupCombo (UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
 
void updateComboContents ()
 
void updateFromUnit ()
 

Protected Attributes

bool m_allow_sub_unit
 
UnitManagerm_manager
 
QTResourceListenerm_resource_listener
 
bool m_update_posted = false
 
Ui::UnitsDialogUI * ui
 

Detailed Description

A dialog which can be used to set various units for different unit categories, such as selecting the various properties by which to show angles.


Constructor & Destructor Documentation

◆ UnitsDialog() [1/2]

UnitsDialog ( QWidget * parent = nullptr)

◆ UnitsDialog() [2/2]

UnitsDialog ( UnitManager * manager,
QWidget * parent = nullptr )

Member Function Documentation

◆ edited

void edited ( )
signal

◆ event()

bool event ( QEvent * event)
overrideprotected

◆ extraUnitWidget()

QWidget * extraUnitWidget ( DynamicPointer< CustomUnit > custom_unit)
protected

◆ hideAngleUnit()

void hideAngleUnit ( )

◆ hideCoordinateMode()

void hideCoordinateMode ( )

◆ hideDefaultButtons()

void hideDefaultButtons ( )

◆ hideSpacialLabels()

void hideSpacialLabels ( )

◆ hideSurfaceVolumeUnit()

void hideSurfaceVolumeUnit ( )

◆ initialize()

void initialize ( )
protected

◆ refreshUnitsDialog()

void refreshUnitsDialog ( )

◆ removeScrollArea()

void removeScrollArea ( )

◆ resetToDefaultUnits()

void resetToDefaultUnits ( )

◆ retranslate()

void retranslate ( )
protected

◆ selectedUnit() [1/2]

ConstPointer< Unit > selectedUnit ( const Buffer< ConstPointer< UnitOption > > & options,
const ConstPointer< Unit > & reference_unit,
QCustomComboBox * combo,
QCustomComboBox * subcombo = nullptr )
protected

◆ selectedUnit() [2/2]

ConstPointer< Unit > selectedUnit ( UnitCategory type,
QCustomComboBox * combo,
QCustomComboBox * subcombo = nullptr )
protected

◆ setAllowSubUnit()

void setAllowSubUnit ( bool allow_sub_unit)

◆ setAutosize()

void setAutosize ( bool auto_size)

◆ setManager()

void setManager ( UnitManager * manager)

◆ setSelectedUnit()

void setSelectedUnit ( UnitCategory type,
QCustomComboBox * combo,
QCustomComboBox * subcombo = nullptr )
protected

◆ setup()

void setup ( )
protected

◆ setupCombo() [1/3]

ConstPointer< UnitOption > setupCombo ( const Buffer< ConstPointer< UnitOption > > & options,
const ConstPointer< Unit > & unit,
QCustomComboBox * combo )
protected

◆ setupCombo() [2/3]

void setupCombo ( const Buffer< ConstPointer< UnitOption > > & options,
const ConstPointer< Unit > & unit,
QCustomComboBox * combo,
QCustomComboBox * subcombo )
protected

◆ setupCombo() [3/3]

void setupCombo ( UnitCategory type,
QCustomComboBox * combo,
QCustomComboBox * subcombo = nullptr )
protected

◆ updateComboContents()

void updateComboContents ( )
protected

◆ updateFromUnit()

void updateFromUnit ( )
protected

◆ updateOrientationUnitFromUISlot

void updateOrientationUnitFromUISlot ( )
protectedslot

◆ updateSpacialUnitFromUISlot

void updateSpacialUnitFromUISlot ( )
protectedslot

◆ updateSurfaceAreaUnitFromUISlot

void updateSurfaceAreaUnitFromUISlot ( )
protectedslot

◆ updateVolumeUnitFromUISlot

void updateVolumeUnitFromUISlot ( )
protectedslot

◆ updateWeightUnitFromUISlot

void updateWeightUnitFromUISlot ( )
protectedslot

Member Data Documentation

◆ m_allow_sub_unit

bool m_allow_sub_unit
protected

◆ m_manager

UnitManager* m_manager
protected

◆ m_resource_listener

QTResourceListener* m_resource_listener
protected

◆ m_update_posted

bool m_update_posted = false
protected

◆ ui

Ui::UnitsDialogUI* ui
protected

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