20#ifndef ORES_QT_PRICING_ENGINE_TYPE_DETAIL_DIALOG_HPP
21#define ORES_QT_PRICING_ENGINE_TYPE_DETAIL_DIALOG_HPP
24#include "ores.qt/ClientManager.hpp"
25#include "ores.qt/DetailDialogBase.hpp"
26#include "ores.logging/make_logger.hpp"
27#include "ores.analytics.api/domain/pricing_engine_type.hpp"
31class PricingEngineTypeDetailDialog;
47 inline static std::string_view logger_name =
48 "ores.qt.pricing_engine_type_detail_dialog";
50 [[nodiscard]]
static auto& lg() {
52 static auto instance = make_logger(logger_name);
61 void setUsername(
const std::string& username);
63 void setCreateMode(
bool createMode);
64 void setReadOnly(
bool readOnly);
68 void typeSaved(
const QString& code);
69 void typeDeleted(
const QString& code);
73 void onDeleteClicked();
74 void onCodeChanged(
const QString& text);
75 void onFieldChanged();
85 void setupConnections();
86 void updateUiFromType();
87 void updateTypeFromUi();
88 void updateSaveButtonState();
92 Ui::PricingEngineTypeDetailDialog* ui_;
94 std::string username_;
96 bool createMode_{
true};
97 bool readOnly_{
false};
98 bool hasChanges_{
false};
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Analytics-specific product taxonomy for ORE pricing engines.
Definition pricing_engine_type.hpp:38
Detail dialog for viewing and editing pricing engine type records.
Definition PricingEngineTypeDetailDialog.hpp:43
ProvenanceWidget * provenanceWidget() const override
Returns the promoted ProvenanceWidget (named "provenanceWidget" in .ui).
Definition PricingEngineTypeDetailDialog.cpp:57
bool hasUnsavedChanges() const override
Definition PricingEngineTypeDetailDialog.hpp:81
QTabWidget * tabWidget() const override
Returns the dialog's QTabWidget (named "tabWidget" in .ui).
Definition PricingEngineTypeDetailDialog.cpp:49
QWidget * provenanceTab() const override
Returns the Provenance tab widget (named "provenanceTab" in .ui).
Definition PricingEngineTypeDetailDialog.cpp:53
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:123
Base class for all detail dialogs.
Definition DetailDialogBase.hpp:75
Widget displaying the 6 standard record provenance fields.
Definition ProvenanceWidget.hpp:40