20#ifndef ORES_QT_LEG_TYPE_HISTORY_DIALOG_HPP
21#define ORES_QT_LEG_TYPE_HISTORY_DIALOG_HPP
25#include <QTableWidget>
26#include "ores.qt/ClientManager.hpp"
27#include "ores.logging/make_logger.hpp"
28#include "ores.trading.api/domain/leg_type.hpp"
31class LegTypeHistoryDialog;
46 inline static std::string_view logger_name =
47 "ores.qt.leg_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::LegTypeHistoryDialog* ui_;
88 std::vector<trading::domain::leg_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
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Dialog for viewing the version history of a leg type.
Definition LegTypeHistoryDialog.hpp:42
Instrument leg type code (e.g. Fixed, Floating, OIS, CMS, CPI).
Definition leg_type.hpp:35