20#ifndef ORES_QT_METHODOLOGY_HISTORY_DIALOG_HPP
21#define ORES_QT_METHODOLOGY_HISTORY_DIALOG_HPP
26#include <QTableWidget>
27#include "ores.qt/ClientManager.hpp"
28#include "ores.logging/make_logger.hpp"
29#include "ores.dq.api/domain/methodology.hpp"
32class MethodologyHistoryDialog;
37class MethodologyHistoryDialog final :
public QWidget {
41 inline static std::string_view logger_name =
42 "ores.qt.methodology_history_dialog";
44 [[nodiscard]]
static auto& lg() {
46 static auto instance = make_logger(logger_name);
51 explicit MethodologyHistoryDialog(
52 const std::string& name,
53 ClientManager* clientManager,
54 QWidget* parent =
nullptr);
55 ~MethodologyHistoryDialog()
override;
60 void statusChanged(
const QString& message);
61 void errorOccurred(
const QString& error_message);
66 void onVersionSelected();
67 void onOpenVersionClicked();
68 void onRevertClicked();
73 void setupConnections();
74 void updateVersionList();
75 void updateChangesTable(
int currentVersionIndex);
76 void updateFullDetails(
int versionIndex);
77 void updateActionStates();
79 Ui::MethodologyHistoryDialog* ui_;
81 ClientManager* clientManager_;
82 std::vector<dq::domain::methodology> versions_;
85 QAction* openVersionAction_;
86 QAction* revertAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Describes a methodology for data processing or transformation.
Definition methodology.hpp:33