20#ifndef ORES_QT_JOB_INSTANCE_MDI_WINDOW_HPP
21#define ORES_QT_JOB_INSTANCE_MDI_WINDOW_HPP
28#include <QSortFilterProxyModel>
29#include "ores.qt/EntityListMdiWindow.hpp"
30#include "ores.qt/ClientManager.hpp"
31#include "ores.qt/ClientJobInstanceModel.hpp"
32#include "ores.logging/make_logger.hpp"
33#include "ores.scheduler.api/messaging/scheduler_protocol.hpp"
47 inline static std::string_view logger_name =
48 "ores.qt.job_instance_mdi_window";
50 [[nodiscard]]
static auto& lg() {
52 static auto instance = make_logger(logger_name);
59 QWidget* parent =
nullptr);
63 void doReload()
override;
66 void statusChanged(
const QString& message);
67 void errorOccurred(
const QString& error_message);
72 return tr(
"Refresh job instances");
77 void onLoadError(
const QString& error_message,
const QString& details = {});
78 void onDoubleClicked(
const QModelIndex& index);
79 void onAutoRefreshToggled(
bool enabled);
80 void onAutoRefreshIntervalChanged(
int seconds);
86 void setupConnections();
88 ClientManager* clientManager_;
91 QTableView* tableView_;
92 ClientJobInstanceModel* model_;
93 QSortFilterProxyModel* proxyModel_;
95 QAction* reloadAction_;
96 QAction* autoRefreshAction_;
97 QSpinBox* intervalSpin_;
98 QTimer* autoRefreshTimer_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AccountController.hpp:32
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:123
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:63
MDI window showing the global job-instance execution history.
Definition JobInstanceMdiWindow.hpp:43
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition JobInstanceMdiWindow.hpp:71
A job_instance enriched with the parent job's display name.
Definition scheduler_protocol.hpp:122