20#ifndef ORES_QT_ROLE_DETAIL_DIALOG_HPP
21#define ORES_QT_ROLE_DETAIL_DIALOG_HPP
24#include "ores.iam.api/domain/role.hpp"
25#include "ores.qt/ClientManager.hpp"
26#include "ores.qt/DetailDialogBase.hpp"
27#include "ores.logging/make_logger.hpp"
31class RoleDetailDialog;
49 inline static std::string_view logger_name =
50 "ores.qt.role_detail_dialog";
52 [[nodiscard]]
static auto& lg() {
54 static auto instance = make_logger(logger_name);
89 void populatePermissionsList();
92 std::unique_ptr<Ui::RoleDetailDialog> ui_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Represents a named collection of permissions that can be assigned to accounts.
Definition role.hpp:41
Base class for all detail dialogs.
Definition DetailDialogBase.hpp:74
Widget displaying the 6 standard record provenance fields.
Definition ProvenanceWidget.hpp:39
Dialog widget for viewing role details.
Definition RoleDetailDialog.hpp:45
ProvenanceWidget * provenanceWidget() const override
Returns the promoted ProvenanceWidget (named "provenanceWidget" in .ui).
Definition RoleDetailDialog.cpp:53
QTabWidget * tabWidget() const override
Returns the dialog's QTabWidget (named "tabWidget" in .ui).
Definition RoleDetailDialog.cpp:51
void setRole(const iam::domain::role &role)
Sets the role to display.
Definition RoleDetailDialog.cpp:55
const iam::domain::role & getRole() const
Gets the current role.
Definition RoleDetailDialog.hpp:74
void clearDialog()
Clears all form fields.
Definition RoleDetailDialog.cpp:72
QWidget * provenanceTab() const override
Returns the Provenance tab widget (named "provenanceTab" in .ui).
Definition RoleDetailDialog.cpp:52