34#include <NDEVR/Unit.h>
35#include <NDEVR/Pointer.h>
46 class QCustomComboBox;
47 class QTResourceListener;
80 bool event(QEvent* event)
override;
95 bool m_update_posted =
false;
96 Ui::UnitsDialogUI*
ui;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a constant, unmodifiable pointer that has shared ownership of a dynamically allocated object...
Definition GraphicsPipeline.h:42
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A compact way to present a list of options to the user.
Definition QCustomCombobox.h:53
Handles a grouping of units that can describe any number of data categories.
Definition UnitManager.h:143
A dialog which can be used to set various units for different unit categories, such as selecting the ...
Definition UnitsDialog.h:53
Ui::UnitsDialogUI * ui
Definition UnitsDialog.h:96
ConstPointer< Unit > selectedUnit(const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &reference_unit, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
void setupCombo(UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
void setAutosize(bool auto_size)
void setManager(UnitManager *manager)
void setAllowSubUnit(bool allow_sub_unit)
UnitManager * m_manager
Definition UnitsDialog.h:92
void hideDefaultButtons()
bool event(QEvent *event) override
void updateSurfaceAreaUnitFromUISlot()
void updateWeightUnitFromUISlot()
void hideCoordinateMode()
ConstPointer< Unit > selectedUnit(UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
void setSelectedUnit(UnitCategory type, QCustomComboBox *combo, QCustomComboBox *subcombo=nullptr)
ConstPointer< UnitOption > setupCombo(const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &unit, QCustomComboBox *combo)
UnitsDialog(UnitManager *manager, QWidget *parent=nullptr)
void setupCombo(const Buffer< ConstPointer< UnitOption > > &options, const ConstPointer< Unit > &unit, QCustomComboBox *combo, QCustomComboBox *subcombo)
UnitsDialog(QWidget *parent=nullptr)
void updateVolumeUnitFromUISlot()
QWidget * extraUnitWidget(DynamicPointer< CustomUnit > custom_unit)
void updateOrientationUnitFromUISlot()
void updateSpacialUnitFromUISlot()
bool m_allow_sub_unit
Definition UnitsDialog.h:94
void refreshUnitsDialog()
void updateComboContents()
QTResourceListener * m_resource_listener
Definition UnitsDialog.h:93
void hideSurfaceVolumeUnit()
void resetToDefaultUnits()
UnitCategory
A category of unit describing what it relates to. Any category can have some number of units defined ...
Definition Unit.h:14
Definition FontEditor.h:6