46 inline static std::string_view logger_name =
47 "ores.qt.compute_dashboard_mdi_window";
49 [[nodiscard]]
static auto& lg() {
51 static auto instance = make_logger(logger_name);
58 QWidget* parent =
nullptr);
61 QSize sizeHint()
const override {
return {600, 400}; }
67 void statusChanged(
const QString& message);
68 void errorOccurred(
const QString& error_message);
71 void onRefreshToggled(
bool checked);
77 void updateCountLabel(QLabel* label,
int value);
82 QAction* refreshAction_;
83 QAction* autoRefreshAction_;
86 QLabel* totalHostsLabel_;
87 QLabel* idleHostsLabel_;
88 QLabel* totalWorkunitLabel_;
89 QLabel* inProgressLabel_;
90 QLabel* completedLabel_;
91 QLabel* successfulLabel_;
94 QTimer* autoRefreshTimer_;