20#ifndef ORES_QT_CATALOG_MDI_WINDOW_HPP
21#define ORES_QT_CATALOG_MDI_WINDOW_HPP
25#include "ores.qt/EntityListMdiWindow.hpp"
26#include "ores.qt/ClientCatalogModel.hpp"
27#include "ores.qt/ClientManager.hpp"
28#include "ores.dq.api/domain/catalog.hpp"
29#include "ores.logging/make_logger.hpp"
43 inline static std::string_view logger_name =
"ores.qt.catalog_mdi_window";
45 [[nodiscard]]
static auto& lg() {
47 static auto instance = make_logger(logger_name);
53 const QString& username,
54 QWidget* parent =
nullptr);
57 void doReload()
override;
60 void statusChanged(
const QString& message);
61 void errorOccurred(
const QString& message);
63 void addNewRequested();
64 void showCatalogHistory(
const QString& name);
69 void onDeleteClicked();
70 void onHistoryClicked();
71 void onRefreshClicked();
72 void onDoubleClicked(
const QModelIndex& index);
76 return tr(
"Refresh catalogs");
82 void setupConnections();
83 void updateActionStates();
87 QTableView* tableView_;
92 QAction* deleteAction_;
93 QAction* historyAction_;
94 QAction* refreshAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Represents a logical grouping of related datasets.
Definition catalog.hpp:39
MDI window for displaying and managing catalogs.
Definition CatalogMdiWindow.hpp:39
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition CatalogMdiWindow.hpp:75
Table model for displaying catalogs in a QTableView.
Definition ClientCatalogModel.hpp:42
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:62