![]() |
NDEVR
API Documentation
|
A Widget for setting up and choosing a Field used for importing and exporting data. More...
Public Member Functions | |
| FieldChooser (QWidget *parent=nullptr) | |
| Constructs a FieldChooser widget. | |
| void | accepted () |
| Emitted when the field selection is accepted. | |
| bool | allowCartesianCoordinates () const |
| Returns whether Cartesian coordinate types are allowed in the chooser. | |
| bool | allowColor () const |
| Returns whether color types are allowed in the chooser. | |
| bool | allowDecimal () const |
| Returns whether decimal types are allowed in the chooser. | |
| bool | allowInt () const |
| Returns whether integer types are allowed in the chooser. | |
| bool | allowPolarCoordinates () const |
| Returns whether polar coordinate types are allowed in the chooser. | |
| void | channelEditedSlot () |
| Slot called when the channel selection is edited. | |
| void | clearButtonClicked () |
| Slot called when the clear button is clicked. | |
| void | cleared () |
| Emitted when the field selection is cleared. | |
| void | defaultValueEditedSlot () |
| Slot called when the default value is edited. | |
| void | dimensionIndexEdited () |
| Slot called when the dimension index is edited. | |
| void | dimensionsEditedSlot () |
| Slot called when the dimensions selection is edited. | |
| void | edited () |
| Emitted when the field selection is edited. | |
| DesignParameter | getOption () const |
| Returns the currently chosen design parameter. | |
| TypeInfo | getType () const |
| Returns the currently chosen type information. | |
| void | onAccepted () |
| Slot that emits the accepted signal when the accept action is triggered. | |
| void | onDelete () |
| Slot that emits the cleared signal when the delete action is triggered. | |
| void | refreshUI () |
| Refreshes the UI to reflect the current state and options. | |
| void | setAllowCustom (bool allow_custom) |
| Sets whether custom field definitions are allowed. | |
| void | setAllowDefaultValue (bool allow_default) |
| Sets whether a default value input is allowed. | |
| void | setClearButtonText (const TranslatedString &text) |
| Sets the text displayed on the clear button. | |
| void | setExtraContexMenu (QMenu *menu) |
| Sets an extra context menu to be shown with the field chooser. | |
| void | setOptions (const Buffer< DesignParameter > &items) |
| Sets the available design parameter options for the chooser. | |
| void | setOrientationUnit (const ConstPointer< Unit > spacial_unit) |
| Sets the orientation unit used for angular fields. | |
| void | setSelected (DesignParameter param, const TypeInfo &type) |
| Sets the currently selected parameter and type. | |
| void | setSpacialUnit (const ConstPointer< Unit > spacial_unit) |
| Sets the spatial unit used for coordinate fields. | |
| void | stopClearSignalTimer () |
| Slot to stop the clear signal timer. | |
| void | typeEditedSlot () |
| Slot called when the type selection is edited. | |
Protected Attributes | |
| bool | is_valid |
| Whether the current selection is valid. | |
| bool | m_allow_custom |
| Whether custom field definitions are allowed. | |
| DesignParameter | m_ascii_chosen |
| The currently chosen design parameter. | |
| Buffer< DesignParameter > | m_options |
| The available design parameter options. | |
| ConstPointer< Unit > | m_orientation_unit |
| The orientation unit for angular fields. | |
| ConstPointer< Unit > | m_spacial_unit |
| The spatial unit for coordinate fields. | |
| TypeInfo | m_type |
| The currently chosen type information. | |
| Ui::FieldChooserUI * | ui |
| The UI form for this widget. | |
A Widget for setting up and choosing a Field used for importing and exporting data.
Definition at line 46 of file FieldChooser.h.
| FieldChooser::FieldChooser | ( | QWidget * | parent = nullptr | ) |
Constructs a FieldChooser widget.
| [in] | parent | The parent widget. |
| bool FieldChooser::allowCartesianCoordinates | ( | ) | const |
Returns whether Cartesian coordinate types are allowed in the chooser.
| bool FieldChooser::allowColor | ( | ) | const |
Returns whether color types are allowed in the chooser.
| bool FieldChooser::allowDecimal | ( | ) | const |
Returns whether decimal types are allowed in the chooser.
| bool FieldChooser::allowInt | ( | ) | const |
Returns whether integer types are allowed in the chooser.
| bool FieldChooser::allowPolarCoordinates | ( | ) | const |
Returns whether polar coordinate types are allowed in the chooser.
|
inline |
Returns the currently chosen design parameter.
Definition at line 99 of file FieldChooser.h.
References m_ascii_chosen.
|
inline |
Returns the currently chosen type information.
Definition at line 104 of file FieldChooser.h.
References m_type.
| void FieldChooser::setAllowCustom | ( | bool | allow_custom | ) |
Sets whether custom field definitions are allowed.
| [in] | allow_custom | True to allow custom field definitions. |
| void FieldChooser::setAllowDefaultValue | ( | bool | allow_default | ) |
Sets whether a default value input is allowed.
| [in] | allow_default | True to allow specifying a default value. |
| void FieldChooser::setClearButtonText | ( | const TranslatedString & | text | ) |
Sets the text displayed on the clear button.
| [in] | text | The translated text for the clear button. |
| void FieldChooser::setExtraContexMenu | ( | QMenu * | menu | ) |
Sets an extra context menu to be shown with the field chooser.
| [in] | menu | The additional context menu. |
| void FieldChooser::setOptions | ( | const Buffer< DesignParameter > & | items | ) |
Sets the available design parameter options for the chooser.
| [in] | items | The buffer of available DesignParameter options. |
| void FieldChooser::setOrientationUnit | ( | const ConstPointer< Unit > | spacial_unit | ) |
Sets the orientation unit used for angular fields.
| [in] | spacial_unit | The orientation unit to use. |
| void FieldChooser::setSelected | ( | DesignParameter | param, |
| const TypeInfo & | type ) |
Sets the currently selected parameter and type.
| [in] | param | The design parameter to select. |
| [in] | type | The type information for the selection. |
| void FieldChooser::setSpacialUnit | ( | const ConstPointer< Unit > | spacial_unit | ) |
Sets the spatial unit used for coordinate fields.
| [in] | spacial_unit | The spatial unit to use. |
|
inline |
Slot to stop the clear signal timer.
Currently a no-op.
Definition at line 187 of file FieldChooser.h.