20#ifndef ORES_QT_CHANGE_REASON_CONTROLLER_HPP
21#define ORES_QT_CHANGE_REASON_CONTROLLER_HPP
24#include "ores.qt/EntityController.hpp"
25#include "ores.logging/make_logger.hpp"
26#include "ores.dq/domain/change_reason.hpp"
27#include "ores.dq/domain/change_reason_category.hpp"
31class ChangeReasonMdiWindow;
32class ChangeReasonCache;
43 inline static std::string_view logger_name =
44 "ores.qt.change_reason_controller";
46 [[nodiscard]]
static auto& lg() {
48 static auto instance = make_logger(logger_name);
54 QMainWindow* mainWindow,
57 const QString& username,
59 QObject* parent =
nullptr);
69 void onAddNewRequested();
70 void onShowHistory(
const QString& code);
71 void onNotificationReceived(
const QString& eventType,
const QDateTime& timestamp,
72 const QStringList& entityIds);
79 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:35
Defines a specific reason for record changes.
Definition change_reason.hpp:47
Shared cache for change reasons used across all entity dialogs.
Definition ChangeReasonCache.hpp:47
Controller for change reason management windows.
Definition ChangeReasonController.hpp:39
void closeAllWindows() override
Closes all windows managed by this controller. Must be implemented by derived classes.
Definition ChangeReasonController.cpp:150
void reloadListWindow() override
Reloads the list window. Must be implemented by derived classes.
Definition ChangeReasonController.cpp:166
void showListWindow() override
Shows the main list window for this entity. Must be implemented by derived classes.
Definition ChangeReasonController.cpp:98
MDI window for displaying and managing change reasons.
Definition ChangeReasonMdiWindow.hpp:41
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:90
QMdiSubWindow that can be detached to become a floating window.
Definition DetachableMdiSubWindow.hpp:39
Abstract base class for entity controllers.
Definition EntityController.hpp:50