20#ifndef ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_CONTROLLER_HPP
21#define ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_CONTROLLER_HPP
25#include "ores.qt/EntityController.hpp"
26#include "ores.qt/ClientManager.hpp"
27#include "ores.logging/make_logger.hpp"
28#include "ores.dq.api/domain/coding_scheme_authority_type.hpp"
32class CodingSchemeAuthorityTypeMdiWindow;
33class DetachableMdiSubWindow;
34class ChangeReasonCache;
36class CodingSchemeAuthorityTypeController final :
public EntityController {
40 inline static std::string_view logger_name =
41 "ores.qt.coding_scheme_authority_type_controller";
43 [[nodiscard]]
static auto& lg() {
45 static auto instance = make_logger(logger_name);
50 CodingSchemeAuthorityTypeController(
51 QMainWindow* mainWindow,
53 ClientManager* clientManager,
54 ChangeReasonCache* changeReasonCache,
55 const QString& username,
56 QObject* parent =
nullptr);
58 void showListWindow()
override;
59 void closeAllWindows()
override;
60 void reloadListWindow()
override;
63 void statusMessage(
const QString& message);
64 void errorMessage(
const QString& error);
68 void onAddNewRequested();
69 void onShowHistory(
const QString& code);
75 EntityListMdiWindow* listWindow()
const override;
80 void showHistoryWindow(
const QString& code);
82 ChangeReasonCache* changeReasonCache_{
nullptr};
83 CodingSchemeAuthorityTypeMdiWindow* listWindow_;
84 DetachableMdiSubWindow* listMdiSubWindow_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Classifies coding schemes by the type of authority that defines them.
Definition coding_scheme_authority_type.hpp:41