Replaces push button editors with dynamic buttons#619
Conversation
Replaces usage of the `cafPdmUiPushButtonEditor` with dynamic buttons created directly in the UI ordering. This simplifies the code and allows for more flexible button behavior. The change improves the user interface by providing more context-aware button labels and actions. Removes the following files as a result of the change: * `cafPdmUiPushButtonEditor.h`
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Replaces usage of the
cafPdmUiPushButtonEditorwith dynamic buttons created directly in the UI ordering. This simplifies the code and allows for more flexible button behavior.The change improves the user interface by providing more context-aware button labels and actions.
Removes the following files as a result of the change:
cafPdmUiPushButtonEditor.hPR Type
Enhancement
Description
Replace
cafPdmUiPushButtonEditorwith dynamic buttons in UI orderingMove button logic from
fieldChangedByUito lambda callbacks indefineUiOrderingConvert boolean PDM fields to local member variables where appropriate
Extract complex button handlers into dedicated private methods
Diagram Walkthrough
File Walkthrough
37 files
Replace push button fields with dynamic buttonsReplace push button editors with dynamic buttonsReplace three push button fields with dynamic buttonsReplace element property file command buttonsReplace time step and tracer selection buttonsReplace objective function address selection buttonReplace compute statistics push button with dynamic buttonReplace authentication and data source buttonsReplace pick point button fields with local variablesReplace summary address selection push buttonReplace generate and reset default buttonsReplace objective function address selection buttonReplace edit result address push buttonReplace edit polygon push button with dynamic buttonReplace apply time step selections buttonReplace reset user defined values buttonReplace compute/edit statistics buttonReplace center point pick button with local variableReplace edit polygon push buttonReplace edit polygon button with dynamic buttonReplace pick points button with local variableReplace help button with dynamic buttonReplace create fault reactivation plot buttonReplace scale apply button with dynamic buttonReplace swap ensembles button with dynamic buttonReplace select polygon button with dynamic buttonReplace new filter button with dynamic buttonRemove scale apply button field referenceAdd private method declaration for show regionAdd private method declarations for address selectionAdd private method for edit result address buttonAdd cafPdmUiPushButtonEditor include for compatibilityAdd method declaration and remove button fieldAdd method declaration for address selectionConvert button fields to local member variablesConvert button field to local member variableConvert button field to local member variable28 files