20#ifndef ORES_QT_CHANGE_REASON_CATEGORY_CONTROLLER_HPP
21#define ORES_QT_CHANGE_REASON_CATEGORY_CONTROLLER_HPP
24#include "ores.qt/EntityController.hpp"
25#include "ores.logging/make_logger.hpp"
26#include "ores.dq.api/domain/change_reason_category.hpp"
30class ChangeReasonCategoryMdiWindow;
31class ChangeReasonCache;
42 inline static std::string_view logger_name =
43 "ores.qt.change_reason_category_controller";
45 [[nodiscard]]
static auto& lg() {
47 static auto instance = make_logger(logger_name);
53 QMainWindow* mainWindow,
57 const QString& username,
58 QObject* parent =
nullptr);
68 void onAddNewRequested();
69 void onShowHistory(
const QString& code);
70 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp,
71 const QStringList& entityIds,
const QString& tenantId);
78 void showHistoryWindow(
const QString& code);
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Groups change reasons into logical categories.
Definition change_reason_category.hpp:46
Shared cache for change reasons used across all entity dialogs.
Definition ChangeReasonCache.hpp:47
Controller for change reason category management windows.
Definition ChangeReasonCategoryController.hpp:38
void closeAllWindows() override
Closes all windows managed by this controller. Must be implemented by derived classes.
Definition ChangeReasonCategoryController.cpp:150
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition ChangeReasonCategoryController.cpp:166
void showListWindow() override
Shows the main list window for this entity. Must be implemented by derived classes.
Definition ChangeReasonCategoryController.cpp:98
MDI window for displaying and managing change reason categories.
Definition ChangeReasonCategoryMdiWindow.hpp:41
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
QMdiSubWindow that can be detached to become a floating window.
Definition DetachableMdiSubWindow.hpp:39
Abstract base class for entity controllers.
Definition EntityController.hpp:50