20#ifndef ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_HISTORY_DIALOG_HPP
21#define ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_HISTORY_DIALOG_HPP
25#include <QTableWidget>
26#include "ores.qt/ClientManager.hpp"
27#include "ores.logging/make_logger.hpp"
28#include "ores.dq/domain/coding_scheme_authority_type.hpp"
31class CodingSchemeAuthorityTypeHistoryDialog;
36class CodingSchemeAuthorityTypeHistoryDialog final :
public QWidget {
40 inline static std::string_view logger_name =
41 "ores.qt.coding_scheme_authority_type_history_dialog";
43 [[nodiscard]]
static auto& lg() {
45 static auto instance = make_logger(logger_name);
50 explicit CodingSchemeAuthorityTypeHistoryDialog(
52 ClientManager* clientManager,
53 QWidget* parent =
nullptr);
54 ~CodingSchemeAuthorityTypeHistoryDialog()
override;
59 void statusChanged(
const QString& message);
60 void errorOccurred(
const QString& error_message);
65 void onVersionSelected();
66 void onOpenVersionClicked();
67 void onRevertClicked();
72 void setupConnections();
73 void updateVersionList();
74 void updateChangesTable(
int currentVersionIndex);
75 void updateFullDetails(
int versionIndex);
76 void updateActionStates();
78 Ui::CodingSchemeAuthorityTypeHistoryDialog* ui_;
80 ClientManager* clientManager_;
81 std::vector<dq::domain::coding_scheme_authority_type> versions_;
84 QAction* openVersionAction_;
85 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
Classifies coding schemes by the type of authority that defines them.
Definition coding_scheme_authority_type.hpp:40