|
ORE Studio 0.0.4
|
Dialog for selecting a change reason when saving/deleting entities. More...
#include <ChangeReasonDialog.hpp>
Inherits QDialog.

Public Types | |
| enum class | OperationType { Amend , Delete } |
| Type of operation requiring a change reason. More... | |
Public Member Functions | |
| ChangeReasonDialog (const std::vector< dq::domain::change_reason > &reasons, OperationType operation, bool hasFieldChanges, QWidget *parent=nullptr) | |
| Construct the dialog. | |
| std::string | selectedReasonCode () const |
| Get the selected reason code. | |
| std::string | commentary () const |
| Get the commentary entered by the user. | |
Dialog for selecting a change reason when saving/deleting entities.
This dialog is displayed when a user saves changes to an entity that requires change tracking. It presents a list of applicable reasons and optionally requires commentary based on the selected reason.
Usage:
|
strong |
|
explicit |
Construct the dialog.
| reasons | List of applicable change reasons |
| operation | Type of operation (Amend or Delete) |
| hasFieldChanges | True if any entity fields have been modified. When false, this is a "touch" operation and only "common.non_material_update" is valid. When true, "common.non_material_update" is disabled. |
| parent | Parent widget |
| std::string selectedReasonCode | ( | ) | const |
Get the selected reason code.
| std::string commentary | ( | ) | const |
Get the commentary entered by the user.