20#ifndef ORES_QT_SUBJECT_AREA_HISTORY_DIALOG_HPP
21#define ORES_QT_SUBJECT_AREA_HISTORY_DIALOG_HPP
25#include <QTableWidget>
26#include "ores.qt/ClientManager.hpp"
27#include "ores.logging/make_logger.hpp"
28#include "ores.dq/domain/subject_area.hpp"
31class SubjectAreaHistoryDialog;
36class SubjectAreaHistoryDialog final :
public QWidget {
40 inline static std::string_view logger_name =
41 "ores.qt.subject_area_history_dialog";
43 [[nodiscard]]
static auto& lg() {
45 static auto instance = make_logger(logger_name);
50 explicit SubjectAreaHistoryDialog(
52 const QString& domain_name,
53 ClientManager* clientManager,
54 QWidget* parent =
nullptr);
55 ~SubjectAreaHistoryDialog()
override;
60 void statusChanged(
const QString& message);
61 void errorOccurred(
const QString& error_message);
67 void onVersionSelected();
68 void onOpenVersionClicked();
69 void onRevertClicked();
74 void setupConnections();
75 void updateVersionList();
76 void updateChangesTable(
int currentVersionIndex);
77 void updateFullDetails(
int versionIndex);
78 void updateActionStates();
80 Ui::SubjectAreaHistoryDialog* ui_;
83 ClientManager* clientManager_;
84 std::vector<dq::domain::subject_area> versions_;
87 QAction* openVersionAction_;
88 QAction* revertAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Represents a subdivision within a data domain.
Definition subject_area.hpp:38