ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
RoleDetailDialog Class Referencefinal

Dialog widget for viewing role details. More...

#include <RoleDetailDialog.hpp>

Inheritance diagram for RoleDetailDialog:
Inheritance graph
Collaboration diagram for RoleDetailDialog:
Collaboration graph

Public Member Functions

 RoleDetailDialog (QWidget *parent=nullptr)
 
void setRole (const iam::domain::role &role)
 Sets the role to display.
 
const iam::domain::rolegetRole () const
 Gets the current role.
 
void clearDialog ()
 Clears all form fields.
 
- Public Member Functions inherited from DetailDialogBase
virtual bool hasUnsavedChanges () const
 
bool isCloseConfirmed () const
 Returns true if the user has already confirmed closing this dialog.
 
void setChangeReasonCache (ChangeReasonCache *cache)
 Inject the shared change reason cache.
 

Protected Member Functions

QTabWidget * tabWidget () const override
 Returns the dialog's QTabWidget (named "tabWidget" in .ui).
 
QWidget * provenanceTab () const override
 Returns the Provenance tab widget (named "provenanceTab" in .ui).
 
ProvenanceWidgetprovenanceWidget () const override
 Returns the promoted ProvenanceWidget (named "provenanceWidget" in .ui).
 
- Protected Member Functions inherited from DetailDialogBase
void requestClose ()
 Request closure of the container window.
 
void notifySaveSuccess (const QString &message)
 Notify that a save operation completed successfully.
 
void setProvenanceEnabled (bool enabled)
 Enable or disable the Provenance tab.
 
void populateProvenance (int version, const std::string &modified_by, const std::string &performed_by, std::chrono::system_clock::time_point recorded_at, const std::string &change_reason_code, const std::string &change_commentary)
 Populate the embedded ProvenanceWidget with entity data.
 
void clearProvenance ()
 Clear all fields in the embedded ProvenanceWidget.
 
std::optional< change_reason_selectionpromptChangeReason (ChangeReasonDialog::OperationType opType, bool isDirty, std::string_view category="system")
 Show the change reason dialog and return the user's selection.
 

Additional Inherited Members

- Signals inherited from DetailDialogBase
void closeRequested ()
 Emitted when the dialog wants to close its container window.
 
void statusMessage (const QString &message)
 Emitted to show a status message in the status bar.
 
void errorMessage (const QString &message)
 Emitted when an error occurs that should be shown to the user.
 
- Protected Slots inherited from DetailDialogBase
void onCloseClicked ()
 Called when the Close button is clicked.
 
- Static Protected Member Functions inherited from DetailDialogBase
template<typename T >
static std::optional< T > nulloptIfZero (T v)
 Return std::optional(v) when v is non-zero, std::nullopt otherwise.
 

Detailed Description

Dialog widget for viewing role details.

This dialog displays role information in read-only mode including:

Member Function Documentation

◆ setRole()

void setRole ( const iam::domain::role role)

Sets the role to display.

Parameters
roleThe role to display

◆ getRole()

const iam::domain::role & getRole ( ) const

Gets the current role.

Returns
The role being displayed

◆ tabWidget()

QTabWidget * tabWidget ( ) const
overrideprotectedvirtual

Returns the dialog's QTabWidget (named "tabWidget" in .ui).

Implements DetailDialogBase.

◆ provenanceTab()

QWidget * provenanceTab ( ) const
overrideprotectedvirtual

Returns the Provenance tab widget (named "provenanceTab" in .ui).

Implements DetailDialogBase.

◆ provenanceWidget()

ProvenanceWidget * provenanceWidget ( ) const
overrideprotectedvirtual

Returns the promoted ProvenanceWidget (named "provenanceWidget" in .ui).

Implements DetailDialogBase.