20#ifndef ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_MDI_WINDOW_HPP
21#define ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_MDI_WINDOW_HPP
25#include <QSortFilterProxyModel>
26#include "ores.qt/EntityListMdiWindow.hpp"
27#include "ores.qt/ClientManager.hpp"
28#include "ores.qt/ClientCodingSchemeAuthorityTypeModel.hpp"
29#include "ores.logging/make_logger.hpp"
30#include "ores.dq.api/domain/coding_scheme_authority_type.hpp"
34class CodingSchemeAuthorityTypeMdiWindow final :
public EntityListMdiWindow {
38 inline static std::string_view logger_name =
39 "ores.qt.coding_scheme_authority_type_mdi_window";
41 [[nodiscard]]
static auto& lg() {
43 static auto instance = make_logger(logger_name);
48 explicit CodingSchemeAuthorityTypeMdiWindow(ClientManager* clientManager,
49 const QString& username,
50 QWidget* parent =
nullptr);
51 ~CodingSchemeAuthorityTypeMdiWindow()
override =
default;
54 void doReload()
override;
57 void statusChanged(
const QString& message);
58 void errorOccurred(
const QString& error_message);
60 void showAuthorityTypeHistory(
const QString& code);
61 void addNewRequested();
65 void onLoadError(
const QString& error_message,
const QString& details = {});
66 void onRowDoubleClicked(
const QModelIndex& index);
69 void onDeleteClicked();
70 void onRefreshClicked();
71 void onSelectionChanged();
72 void onHistoryClicked();
75 QString normalRefreshTooltip()
const override {
76 return tr(
"Refresh authority types");
82 void setupConnections();
83 void updateActionStates();
85 ClientManager* clientManager_;
87 ClientCodingSchemeAuthorityTypeModel* model_;
88 QSortFilterProxyModel* proxyModel_;
89 QTableView* tableView_;
94 QAction* deleteAction_;
95 QAction* refreshAction_;
96 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
Classifies coding schemes by the type of authority that defines them.
Definition coding_scheme_authority_type.hpp:41