20#ifndef ORES_QT_TENANT_TYPE_HISTORY_DIALOG_HPP
21#define ORES_QT_TENANT_TYPE_HISTORY_DIALOG_HPP
25#include <QTableWidget>
26#include "ores.qt/ClientManager.hpp"
27#include "ores.logging/make_logger.hpp"
28#include "ores.iam.api/domain/tenant_type.hpp"
31class TenantTypeHistoryDialog;
46 inline static std::string_view logger_name =
47 "ores.qt.tenant_type_history_dialog";
49 [[nodiscard]]
static auto& lg() {
51 static auto instance = make_logger(logger_name);
59 QWidget* parent =
nullptr);
65 void statusChanged(
const QString& message);
66 void errorOccurred(
const QString& error_message);
72 void onVersionSelected();
73 void onOpenVersionClicked();
74 void onRevertClicked();
79 void setupConnections();
80 void updateVersionList();
81 void updateChangesTable(
int currentVersionIndex);
82 void updateFullDetails(
int versionIndex);
83 void updateActionStates();
85 Ui::TenantTypeHistoryDialog* ui_;
88 std::vector<iam::domain::tenant_type> versions_;
91 QAction* openVersionAction_;
92 QAction* revertAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Classification of tenant types.
Definition tenant_type.hpp:38
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Dialog for viewing the version history of a tenant type.
Definition TenantTypeHistoryDialog.hpp:42