20#ifndef ORES_QT_COMMODITY_INSTRUMENT_HISTORY_DIALOG_HPP
21#define ORES_QT_COMMODITY_INSTRUMENT_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/commodity_instrument.hpp"
31class CommodityInstrumentHistoryDialog;
43 inline static std::string_view logger_name =
44 "ores.qt.commodity_instrument_history_dialog";
46 [[nodiscard]]
static auto& lg() {
48 static auto instance = make_logger(logger_name);
56 QWidget* parent =
nullptr);
62 void statusChanged(
const QString& message);
63 void errorOccurred(
const QString& error_message);
69 void onVersionSelected();
70 void onOpenVersionClicked();
71 void onRevertClicked();
76 void setupConnections();
77 void updateVersionList();
78 void updateChangesTable(
int currentVersionIndex);
79 void updateFullDetails(
int versionIndex);
80 void updateActionStates();
82 Ui::CommodityInstrumentHistoryDialog* ui_;
85 std::vector<trading::domain::commodity_instrument> versions_;
88 QAction* openVersionAction_;
89 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 commodity instrument.
Definition CommodityInstrumentHistoryDialog.hpp:39
Commodity instrument economics for all commodity ORE product types.
Definition commodity_instrument.hpp:48