20#ifndef ORES_QT_ORE_LOG_VIEWER_WIDGET_HPP
21#define ORES_QT_ORE_LOG_VIEWER_WIDGET_HPP
31#include <QSortFilterProxyModel>
32#include "ores.qt/ClientManager.hpp"
33#include "ores.qt/ClientTelemetryLogModel.hpp"
34#include "ores.logging/make_logger.hpp"
50 inline static std::string_view logger_name =
"ores.qt.ore_log_viewer_widget";
51 [[nodiscard]]
static auto& lg() {
53 static auto instance = make_logger(logger_name);
59 QWidget* parent =
nullptr);
77 void on_data_loaded();
78 void on_load_error(
const QString& message,
const QString& details);
79 void on_selection_changed(
const QItemSelection& selected,
80 const QItemSelection& deselected);
81 void on_tab_changed(
int index);
85 QTableView* make_table_view(QSortFilterProxyModel* proxy);
86 void update_tab_counts();
89 QString current_result_id_;
91 std::unique_ptr<ClientTelemetryLogModel> model_;
94 QSortFilterProxyModel* ore_proxy_{
nullptr};
95 QSortFilterProxyModel* wrap_proxy_{
nullptr};
96 QSortFilterProxyModel* all_proxy_{
nullptr};
98 QTabWidget* tabs_{
nullptr};
99 QTableView* ore_view_{
nullptr};
100 QTableView* wrap_view_{
nullptr};
101 QTableView* all_view_{
nullptr};
103 QSplitter* splitter_{
nullptr};
104 QTextEdit* detail_pane_{
nullptr};
105 QLabel* status_label_{
nullptr};
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Displays ORE engine and wrapper logs for a single compute result.
Definition OreLogViewerWidget.hpp:46
void load_result(const QString &result_id)
Load logs for the given result id (UUID string).
Definition OreLogViewerWidget.cpp:142
void clear()
Clear all displayed log entries.
Definition OreLogViewerWidget.cpp:154