20#ifndef ORES_QT_CURRENCY_MARKET_TIER_MDI_WINDOW_HPP
21#define ORES_QT_CURRENCY_MARKET_TIER_MDI_WINDOW_HPP
25#include <QSortFilterProxyModel>
26#include "ores.qt/EntityListMdiWindow.hpp"
27#include "ores.qt/ClientManager.hpp"
28#include "ores.qt/ClientCurrencyMarketTierModel.hpp"
29#include "ores.qt/PaginationWidget.hpp"
30#include "ores.logging/make_logger.hpp"
31#include "ores.refdata.api/domain/currency_market_tier.hpp"
45 inline static std::string_view logger_name =
46 "ores.qt.currency_market_tier_mdi_window";
48 [[nodiscard]]
static auto& lg() {
50 static auto instance = make_logger(logger_name);
57 const QString& username,
58 QWidget* parent =
nullptr);
62 void doReload()
override;
65 void statusChanged(
const QString& message);
66 void errorOccurred(
const QString& error_message);
68 void addNewRequested();
69 void typeDeleted(
const QString& code);
75 void deleteSelected();
76 void viewHistorySelected();
80 void onLoadError(
const QString& error_message,
const QString& details = {});
81 void onSelectionChanged();
82 void onDoubleClicked(
const QModelIndex& index);
86 return tr(
"Refresh currency market tiers");
93 void setupConnections();
94 void updateActionStates();
100 QTableView* tableView_;
102 QSortFilterProxyModel* proxyModel_;
106 QAction* reloadAction_;
108 QAction* editAction_;
109 QAction* deleteAction_;
110 QAction* historyAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Model for displaying currency market tiers fetched from the server.
Definition ClientCurrencyMarketTierModel.hpp:41
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
MDI window for displaying and managing currency market tiers.
Definition CurrencyMarketTierMdiWindow.hpp:41
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition CurrencyMarketTierMdiWindow.hpp:85
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:62
Widget providing pagination controls for data tables.
Definition PaginationWidget.hpp:39
Valid currency market tier classifications.
Definition currency_market_tier.hpp:38