20#ifndef ORES_QT_NATURE_DIMENSION_DETAIL_DIALOG_HPP
21#define ORES_QT_NATURE_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/nature_dimension.hpp"
29class NatureDimensionDetailDialog;
34class NatureDimensionDetailDialog final :
public DetailDialogBase {
38 inline static std::string_view logger_name =
39 "ores.qt.nature_dimension_detail_dialog";
41 [[nodiscard]]
static auto& lg() {
43 static auto instance = make_logger(logger_name);
48 explicit NatureDimensionDetailDialog(QWidget* parent =
nullptr);
49 ~NatureDimensionDetailDialog()
override;
51 void setClientManager(ClientManager* clientManager);
52 void setUsername(
const std::string& username);
54 void setCreateMode(
bool createMode);
55 void setReadOnly(
bool readOnly);
58 void dimensionSaved(
const QString& code);
59 void dimensionDeleted(
const QString& code);
63 void onDeleteClicked();
64 void onCodeChanged(
const QString& text);
65 void onFieldChanged();
69 void setupConnections();
70 void updateUiFromDimension();
71 void updateDimensionFromUi();
72 void updateSaveButtonState();
75 Ui::NatureDimensionDetailDialog* ui_;
76 ClientManager* clientManager_;
77 std::string username_;
79 bool createMode_{
true};
80 bool readOnly_{
false};
81 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 data nature (actual vs. synthetic).
Definition nature_dimension.hpp:39