20#ifndef ORES_QT_ORIGIN_DIMENSION_DETAIL_DIALOG_HPP
21#define ORES_QT_ORIGIN_DIMENSION_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/origin_dimension.hpp"
29class OriginDimensionDetailDialog;
45 inline static std::string_view logger_name =
46 "ores.qt.origin_dimension_detail_dialog";
48 [[nodiscard]]
static auto& lg() {
50 static auto instance = make_logger(logger_name);
59 void setUsername(
const std::string& username);
61 void setCreateMode(
bool createMode);
62 void setReadOnly(
bool readOnly);
65 void dimensionSaved(
const QString& code);
66 void dimensionDeleted(
const QString& code);
70 void onDeleteClicked();
71 void onCodeChanged(
const QString& text);
72 void onFieldChanged();
76 void setupConnections();
77 void updateUiFromDimension();
78 void updateDimensionFromUi();
79 void updateSaveButtonState();
82 Ui::OriginDimensionDetailDialog* ui_;
84 std::string username_;
86 bool createMode_{
true};
87 bool readOnly_{
false};
88 bool hasChanges_{
false};
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Classifies datasets by their origin or source type.
Definition origin_dimension.hpp:39
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:90
Base class for all detail dialogs.
Definition DetailDialogBase.hpp:54
Detail dialog for viewing and editing origin dimension records.
Definition OriginDimensionDetailDialog.hpp:41