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/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);
56 QSize sizeHint()
const override {
return QSize(800, 500); }
59 void reload()
override;
62 void statusChanged(
const QString& message);
63 void errorOccurred(
const QString& message);
65 void addNewRequested();
66 void showCatalogHistory(
const QString& name);
71 void onDeleteClicked();
72 void onHistoryClicked();
73 void onRefreshClicked();
74 void onDoubleClicked(
const QModelIndex& index);
78 return tr(
"Refresh catalogs");
84 void setupConnections();
85 void updateActionStates();
89 QTableView* tableView_;
94 QAction* deleteAction_;
95 QAction* historyAction_;
96 QAction* refreshAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
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:77
Table model for displaying catalogs in a QTableView.
Definition ClientCatalogModel.hpp:40
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:90
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:56