20#ifndef ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_DETAIL_DIALOG_HPP
21#define ORES_QT_CODING_SCHEME_AUTHORITY_TYPE_DETAIL_DIALOG_HPP
23#include "ores.qt/ClientManager.hpp"
24#include "ores.qt/DetailDialogBase.hpp"
25#include "ores.logging/make_logger.hpp"
26#include "ores.dq/domain/coding_scheme_authority_type.hpp"
29class CodingSchemeAuthorityTypeDetailDialog;
34class CodingSchemeAuthorityTypeDetailDialog final :
public DetailDialogBase {
38 inline static std::string_view logger_name =
39 "ores.qt.coding_scheme_authority_type_detail_dialog";
41 [[nodiscard]]
static auto& lg() {
43 static auto instance = make_logger(logger_name);
48 explicit CodingSchemeAuthorityTypeDetailDialog(QWidget* parent =
nullptr);
49 ~CodingSchemeAuthorityTypeDetailDialog()
override;
51 void setClientManager(ClientManager* cm) { clientManager_ = cm; }
52 void setUsername(
const std::string& username) { username_ = username; }
53 void setCreateMode(
bool create);
55 void setReadOnly(
bool readOnly);
58 void authorityTypeSaved(
const QString& code);
59 void authorityTypeDeleted(
const QString& code);
63 void onDeleteClicked();
66 void setupConnections();
69 Ui::CodingSchemeAuthorityTypeDetailDialog* ui_;
70 ClientManager* clientManager_;
71 std::string username_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Classifies coding schemes by the type of authority that defines them.
Definition coding_scheme_authority_type.hpp:40