|
| std::unique_ptr< QCheckBox > | fAbsVal |
| | Checkbox for absolute value mode.
|
| |
| std::unique_ptr< QLabel > | fFactorLabel |
| | Label for the factor input field.
|
| |
| std::unique_ptr< QLineEdit > | fFactorLineEdit |
| | Input field for the scaling factor.
|
| |
| std::unique_ptr< QPushButton > | fScaleByFactor |
| | Button to apply factor scaling.
|
| |
| std::unique_ptr< QPushButton > | fScaleAutomatic |
| | Button to apply automatic scaling.
|
| |
| std::unique_ptr< QPushButton > | fCancel |
| | Button to cancel the dialog.
|
| |
Dialog for selecting modification options for parameter step sizes.
This dialog provides the user interface for choosing how to modify selected parameter step sizes. It offers two main options:
- Scale by a user-specified factor (multiplicative or absolute value)
- Automatic scaling based on parameter naming conventions
The dialog emits a scale() signal when the user makes a selection, which is then processed by the parent PMusrStep dialog.
| void PModSelect::absoluteValueStateChanged |
( |
int | ival | ) |
|
|
privateslot |
Slot called when the absolute value checkbox state changes.
Handles state changes of the absolute value checkbox.
Updates the UI labels to reflect whether the factor will be used as a multiplier or as an absolute value.
- Parameters
-
| ival | The new checkbox state (Qt::Checked or Qt::Unchecked) |
Updates the UI labels to reflect the current mode:
- When unchecked: Shows "Factor" label and "Scale by Factor" button text
- When checked: Shows "Value" label and "Set Abs. Value" button text
- Parameters
-
| ival | The new checkbox state (Qt::Checked or Qt::Unchecked) |
| void PModSelect::getFactor |
( |
| ) |
|
|
privateslot |
Slot that applies the user-specified factor to selected parameters.
Reads the user-specified factor and emits the scale signal.
Reads the factor value from the input field and the absolute value checkbox state, then emits the scale() signal with these values.
Retrieves the factor value from the input field and the absolute value checkbox state, then emits the scale() signal with automatic=false to indicate manual scaling mode.
| void PModSelect::scaleAuto |
( |
| ) |
|
|
privateslot |
Slot that triggers automatic scaling of selected parameters.
Triggers automatic scaling of selected parameters.
Emits the scale() signal with automatic=true, causing the parent dialog to apply scaling factors based on parameter naming conventions.
Emits the scale() signal with automatic=true and a default factor of 0.01. The parent dialog will then apply scaling factors based on parameter naming conventions using its lookupTable() method.