20#ifndef ORES_QT_PARTY_MDI_WINDOW_HPP
21#define ORES_QT_PARTY_MDI_WINDOW_HPP
25#include <QSortFilterProxyModel>
26#include "ores.qt/EntityListMdiWindow.hpp"
27#include "ores.qt/ClientManager.hpp"
28#include "ores.qt/ImageCache.hpp"
29#include "ores.qt/ClientPartyModel.hpp"
30#include "ores.qt/PaginationWidget.hpp"
31#include "ores.logging/make_logger.hpp"
32#include "ores.refdata.api/domain/party.hpp"
48 inline static std::string_view logger_name =
49 "ores.qt.party_mdi_window";
51 [[nodiscard]]
static auto& lg() {
53 static auto instance = make_logger(logger_name);
61 const QString& username,
63 QWidget* parent =
nullptr);
67 void doReload()
override;
70 void statusChanged(
const QString& message);
71 void errorOccurred(
const QString& error_message);
73 void addNewRequested();
74 void partyDeleted(
const QString& code);
80 void deleteSelected();
81 void viewHistorySelected();
85 void onLoadError(
const QString& error_message,
const QString& details = {});
86 void onSelectionChanged();
87 void onDoubleClicked(
const QModelIndex& index);
91 return tr(
"Refresh parties");
97 void setupConnections();
98 void updateActionStates();
106 QTableView* tableView_;
108 QSortFilterProxyModel* proxyModel_;
112 QAction* reloadAction_;
114 QAction* editAction_;
115 QAction* deleteAction_;
116 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
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Model for displaying parties fetched from the server.
Definition ClientPartyModel.hpp:43
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
MDI window for displaying and managing parties.
Definition PartyMdiWindow.hpp:44
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition PartyMdiWindow.hpp:90
An internal legal entity participating in financial transactions.
Definition party.hpp:37