20#ifndef ORES_QT_MARKET_FIXINGS_MDI_WINDOW_HPP
21#define ORES_QT_MARKET_FIXINGS_MDI_WINDOW_HPP
27#include <QSortFilterProxyModel>
28#include "ores.qt/EntityListMdiWindow.hpp"
29#include "ores.qt/ClientManager.hpp"
30#include "ores.qt/ClientMarketSeriesModel.hpp"
31#include "ores.qt/PaginationWidget.hpp"
32#include "ores.logging/make_logger.hpp"
33#include "ores.marketdata.api/domain/market_series.hpp"
48 inline static std::string_view logger_name =
49 "ores.qt.market_fixings_mdi_window";
51 [[nodiscard]]
static auto& lg() {
53 static auto instance = make_logger(logger_name);
59 const QString& username,
60 QWidget* parent =
nullptr);
66 void doReload()
override;
69 void statusChanged(
const QString& message);
70 void errorOccurred(
const QString& error_message);
75 return tr(
"Refresh fixing series");
80 void onLoadError(
const QString& error_message,
const QString& details = {});
81 void onRowDoubleClicked(
const QModelIndex& index);
82 void onSelectionChanged();
83 void onConnectionStateChanged();
89 void updateActionStates();
91 QVBoxLayout* verticalLayout_;
92 QTableView* tableView_;
94 PaginationWidget* paginationWidget_;
96 QAction* reloadAction_;
97 QAction* viewFixingsAction_;
99 std::unique_ptr<ClientMarketSeriesModel> model_;
100 QSortFilterProxyModel* proxyModel_;
101 ClientManager* clientManager_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Catalog entry for a market data series.
Definition market_series.hpp:44
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:123
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:63
Qt table model for market series fetched from the market data service.
Definition ClientMarketSeriesModel.hpp:37
MDI window listing index fixing series and their historical fixing values.
Definition MarketFixingsMdiWindow.hpp:44
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition MarketFixingsMdiWindow.hpp:74