20#ifndef ORES_QT_BUSINESS_CENTRE_MDI_WINDOW_HPP
21#define ORES_QT_BUSINESS_CENTRE_MDI_WINDOW_HPP
25#include <QSortFilterProxyModel>
26#include "ores.qt/EntityListMdiWindow.hpp"
27#include "ores.qt/PaginationWidget.hpp"
28#include "ores.qt/ClientManager.hpp"
29#include "ores.qt/ImageCache.hpp"
30#include "ores.qt/ClientBusinessCentreModel.hpp"
31#include "ores.logging/make_logger.hpp"
32#include "ores.refdata.api/domain/business_centre.hpp"
46 inline static std::string_view logger_name =
47 "ores.qt.business_centre_mdi_window";
49 [[nodiscard]]
static auto& lg() {
51 static auto instance = make_logger(logger_name);
59 const QString& username,
60 QWidget* parent =
nullptr);
64 void doReload()
override;
67 void statusChanged(
const QString& message);
68 void errorOccurred(
const QString& error_message);
70 void addNewRequested();
71 void businessCentreDeleted(
const QString& code);
77 void deleteSelected();
78 void viewHistorySelected();
82 void onLoadError(
const QString& error_message,
const QString& details = {});
83 void onSelectionChanged();
84 void onDoubleClicked(
const QModelIndex& index);
88 return tr(
"Refresh business centres");
95 void setupConnections();
96 void updateActionStates();
103 QTableView* tableView_;
106 QSortFilterProxyModel* proxyModel_;
109 QAction* reloadAction_;
111 QAction* editAction_;
112 QAction* deleteAction_;
113 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
MDI window for displaying and managing business centres.
Definition BusinessCentreMdiWindow.hpp:42
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition BusinessCentreMdiWindow.hpp:87
Model for displaying business centres fetched from the server.
Definition ClientBusinessCentreModel.hpp:45
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:62
Cache for dynamically loaded images (flags, icons) from the server.
Definition ImageCache.hpp:53
Widget providing pagination controls for data tables.
Definition PaginationWidget.hpp:39
Represents a business centre using FpML-style codes.
Definition business_centre.hpp:37