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...
|
| | UnitsDialog (QWidget *parent=nullptr) |
| | Constructs a UnitsDialog with an optional parent.
|
| | UnitsDialog (UnitManager *manager, QWidget *parent=nullptr) |
| | Constructs a UnitsDialog bound to a specific UnitManager.
|
|
void | edited () |
| | Signal emitted when any unit selection has been edited.
|
|
void | hideAngleUnit () |
| | Hides the angle unit selection section.
|
|
void | hideCoordinateMode () |
| | Hides the coordinate mode selection section.
|
|
void | hideDefaultButtons () |
| | Hides the default/reset buttons from the dialog.
|
|
void | hideSpacialLabels () |
| | Hides the spatial dimension labels in the dialog.
|
|
void | hideSurfaceVolumeUnit () |
| | Hides the surface area and volume unit selection sections.
|
|
void | refreshUnitsDialog () |
| | Refreshes all combo box contents to reflect current unit options.
|
|
void | removeScrollArea () |
| | Removes the scroll area wrapper from the dialog layout.
|
|
void | resetToDefaultUnits () |
| | Resets all unit selections to their default values.
|
| void | setAllowSubUnit (bool allow_sub_unit) |
| | Enables or disables the sub-unit selection combo boxes.
|
| void | setAutosize (bool auto_size) |
| | Enables or disables automatic resizing of the dialog.
|
| void | setManager (UnitManager *manager) |
| | Sets the UnitManager that this dialog configures.
|
|
|
bool | event (QEvent *event) override |
| | Handles events, including language-change retranslation.
|
| QWidget * | extraUnitWidget (DynamicPointer< CustomUnit > custom_unit) |
| | Creates an additional widget for editing a custom unit.
|
|
void | initialize () |
| | Performs one-time initialization of the dialog layout and connections.
|
|
void | retranslate () |
| | Retranslates all user-facing text in the dialog.
|
| ConstPointer< Unit > | selectedUnit (const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &reference_unit, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr) |
| | Returns the unit selected from a list of options.
|
| ConstPointer< Unit > | selectedUnit (UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr) |
| | Returns the unit currently selected in the combo for a given category.
|
| void | setSelectedUnit (UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr) |
| | Applies the selected unit for a given category to the UnitManager.
|
|
void | setup () |
| | Configures the dialog layout and combo box connections.
|
| ConstPointer< UnitOption > | setupCombo (const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &unit, QCustomComboBox *combo) |
| | Sets up a combo box and returns the selected unit option.
|
| void | setupCombo (const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &unit, QCustomComboBox *combo, QCustomComboBox *subcombo) |
| | Sets up a combo box with specific unit options and a reference unit.
|
| void | setupCombo (UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr) |
| | Sets up a combo box for the given unit category.
|
|
void | updateComboContents () |
| | Updates all combo box contents based on the current UnitManager state.
|
|
void | updateFromUnit () |
| | Updates the UI to reflect the current UnitManager state.
|
|
void | updateOrientationUnitFromUISlot () |
| | Slot that applies the orientation unit selection from the UI to the UnitManager.
|
|
void | updateSpacialUnitFromUISlot () |
| | Slot that applies the spatial unit selection from the UI to the UnitManager.
|
|
void | updateSurfaceAreaUnitFromUISlot () |
| | Slot that applies the surface area unit selection from the UI to the UnitManager.
|
|
void | updateVolumeUnitFromUISlot () |
| | Slot that applies the volume unit selection from the UI to the UnitManager.
|
|
void | updateWeightUnitFromUISlot () |
| | Slot that applies the weight unit selection from the UI to the UnitManager.
|
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.
Definition at line 53 of file UnitsDialog.h.