20#ifndef ORES_QT_BUSINESS_UNIT_MDI_WINDOW_HPP
21#define ORES_QT_BUSINESS_UNIT_MDI_WINDOW_HPP
25#include <QSortFilterProxyModel>
26#include "ores.qt/EntityListMdiWindow.hpp"
27#include "ores.qt/ClientManager.hpp"
28#include "ores.qt/ClientBusinessUnitModel.hpp"
29#include "ores.qt/PaginationWidget.hpp"
30#include "ores.logging/make_logger.hpp"
31#include "ores.refdata.api/domain/business_unit.hpp"
47 inline static std::string_view logger_name =
48 "ores.qt.business_unit_mdi_window";
50 [[nodiscard]]
static auto& lg() {
52 static auto instance = make_logger(logger_name);
60 const QString& username,
62 QWidget* parent =
nullptr);
66 void doReload()
override;
69 void statusChanged(
const QString& message);
70 void errorOccurred(
const QString& error_message);
72 void addNewRequested();
78 void deleteSelected();
79 void viewHistorySelected();
83 void onLoadError(
const QString& error_message,
const QString& details = {});
84 void onSelectionChanged();
85 void onDoubleClicked(
const QModelIndex& index);
89 return tr(
"Refresh business units");
96 void setupConnections();
97 void updateActionStates();
105 QTableView* tableView_;
107 QSortFilterProxyModel* proxyModel_;
111 QAction* reloadAction_;
113 QAction* editAction_;
114 QAction* deleteAction_;
115 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
Client-side cache of badge definitions and mappings.
Definition BadgeCache.hpp:46
MDI window for displaying and managing business units.
Definition BusinessUnitMdiWindow.hpp:43
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition BusinessUnitMdiWindow.hpp:88
Model for displaying business units fetched from the server.
Definition ClientBusinessUnitModel.hpp:43
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
Internal organizational unit within a party.
Definition business_unit.hpp:37