20#ifndef ORES_QT_LEI_ENTITY_PICKER_HPP
21#define ORES_QT_LEI_ENTITY_PICKER_HPP
28#include <QStandardItemModel>
29#include <QSortFilterProxyModel>
30#include "ores.qt/ClientManager.hpp"
31#include "ores.logging/make_logger.hpp"
32#include "ores.qt/export.hpp"
47 inline static std::string_view logger_name =
48 "ores.qt.lei_entity_picker";
50 [[nodiscard]]
static auto& lg() {
52 static auto instance = make_logger(logger_name);
58 QWidget* parent =
nullptr);
64 QString selectedLei()
const;
70 QString selectedName()
const;
75 bool hasSelection()
const;
108 void onSearchTextChanged(
const QString& text);
109 void onCountryFilterChanged(
int index);
110 void onSelectionChanged();
115 void loadEntitiesForCountry(
const QString& country);
118 QLineEdit* searchEdit_;
119 QComboBox* countryFilter_;
120 QTableView* tableView_;
121 QStandardItemModel* model_;
122 QSortFilterProxyModel* proxyModel_;
123 QLabel* statusLabel_;
124 QString selectedLei_;
125 QString selectedName_;
126 bool countriesLoaded_ =
false;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:123
Reusable widget for searching and selecting an LEI entity.
Definition LeiEntityPicker.hpp:43
void selectionCleared()
Emitted when the selection is cleared.
void loadCompleted(int entityCount)
Emitted when entities are successfully loaded from the server.
void entitySelected(const QString &lei, const QString &name)
Emitted when the user selects an entity.
void loadFailed(const QString &errorMessage)
Emitted when loading entities fails.