20#ifndef ORES_QT_DATASET_BUNDLE_DETAIL_DIALOG_HPP
21#define ORES_QT_DATASET_BUNDLE_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/dataset_bundle.hpp"
29class DatasetBundleDetailDialog;
45 inline static std::string_view logger_name =
46 "ores.qt.dataset_bundle_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 bundleSaved(
const QString& code);
66 void bundleDeleted(
const QString& code);
70 void onDeleteClicked();
71 void onCodeChanged(
const QString& text);
72 void onFieldChanged();
76 void setupConnections();
77 void updateUiFromBundle();
78 void updateBundleFromUi();
79 void updateSaveButtonState();
82 Ui::DatasetBundleDetailDialog* 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
A named collection of datasets designed to work together.
Definition dataset_bundle.hpp:41
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:90
Detail dialog for viewing and editing dataset bundle records.
Definition DatasetBundleDetailDialog.hpp:41
Base class for all detail dialogs.
Definition DetailDialogBase.hpp:54