33#include <NDEVR/DesignParameter.h>
34#include <NDEVR/TypeInfo.h>
213 Ui::FieldChooserUI*
ui;
The equivelent of std::vector but with a bit more control.
Provides a constant, unmodifiable pointer that has shared ownership of a dynamically allocated object...
A definition of data that is logically stored in the Model hierarchy.
void setAllowDefaultValue(bool allow_default)
Sets whether a default value input is allowed.
bool allowPolarCoordinates() const
Returns whether polar coordinate types are allowed in the chooser.
void edited()
Emitted when the field selection is edited.
void setExtraContexMenu(QMenu *menu)
Sets an extra context menu to be shown with the field chooser.
void stopClearSignalTimer()
Slot to stop the clear signal timer.
void dimensionsEditedSlot()
Slot called when the dimensions selection is edited.
bool allowColor() const
Returns whether color types are allowed in the chooser.
void channelChanged()
Handles a change in the selected channel.
DesignParameter m_ascii_chosen
The currently chosen design parameter.
bool m_allow_custom
Whether custom field definitions are allowed.
void cleared()
Emitted when the field selection is cleared.
void refreshUI()
Refreshes the UI to reflect the current state and options.
void defaultValueEditedSlot()
Slot called when the default value is edited.
void setSelected(DesignParameter param, const TypeInfo &type)
Sets the currently selected parameter and type.
void setOrientationUnit(const ConstPointer< Unit > spacial_unit)
Sets the orientation unit used for angular fields.
bool allowDecimal() const
Returns whether decimal types are allowed in the chooser.
void onAccepted()
Slot that emits the accepted signal when the accept action is triggered.
void setAllowCustom(bool allow_custom)
Sets whether custom field definitions are allowed.
void typeChanged()
Handles a change in the selected type.
void setClearButtonText(const TranslatedString &text)
Sets the text displayed on the clear button.
ConstPointer< Unit > m_orientation_unit
The orientation unit for angular fields.
void onDelete()
Slot that emits the cleared signal when the delete action is triggered.
DesignParameter getOption() const
Returns the currently chosen design parameter.
void setOptions(const Buffer< DesignParameter > &items)
Sets the available design parameter options for the chooser.
FieldChooser(QWidget *parent=nullptr)
Constructs a FieldChooser widget.
void clearButtonClicked()
Slot called when the clear button is clicked.
void dimensionIndexEdited()
Slot called when the dimension index is edited.
void dimensionsChanged()
Handles a change in the selected dimensions.
void channelEditedSlot()
Slot called when the channel selection is edited.
bool allowCartesianCoordinates() const
Returns whether Cartesian coordinate types are allowed in the chooser.
void typeEditedSlot()
Slot called when the type selection is edited.
void accepted()
Emitted when the field selection is accepted.
void setSpacialUnit(const ConstPointer< Unit > spacial_unit)
Sets the spatial unit used for coordinate fields.
TypeInfo m_type
The currently chosen type information.
TypeInfo getType() const
Returns the currently chosen type information.
bool allowInt() const
Returns whether integer types are allowed in the chooser.
void uncheckAll()
Unchecks all options in the chooser.
bool is_valid
Whether the current selection is valid.
Buffer< DesignParameter > m_options
The available design parameter options.
Ui::FieldChooserUI * ui
The UI form for this widget.
ConstPointer< Unit > m_spacial_unit
The spatial unit for coordinate fields.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Stores information about a type, relevant for certain templated functions.
The primary namespace for the NDEVR SDK.
@ type
The type identifier string for this model node.
Defines a unit of measurement for converting and displaying data values.