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

#include <UnitsDialog.h>

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

Signals

void edited ()
 

Public Member Functions

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

Protected Slots

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

Protected Member Functions

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

Protected Attributes

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

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 ( UnitType 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 ( UnitType 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 ( UnitType 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 files: