20#ifndef ORES_QT_ORIGIN_DIMENSION_MDI_WINDOW_HPP
21#define ORES_QT_ORIGIN_DIMENSION_MDI_WINDOW_HPP
25#include <QSortFilterProxyModel>
26#include "ores.qt/EntityListMdiWindow.hpp"
27#include "ores.qt/ClientManager.hpp"
28#include "ores.qt/ClientOriginDimensionModel.hpp"
29#include "ores.logging/make_logger.hpp"
30#include "ores.dq/domain/origin_dimension.hpp"
44 inline static std::string_view logger_name =
45 "ores.qt.origin_dimension_mdi_window";
47 [[nodiscard]]
static auto& lg() {
49 static auto instance = make_logger(logger_name);
56 const QString& username,
57 QWidget* parent =
nullptr);
60 QSize sizeHint()
const override;
63 void reload()
override;
66 void statusChanged(
const QString& message);
67 void errorOccurred(
const QString& error_message);
69 void addNewRequested();
70 void dimensionDeleted(
const QString& code);
71 void showDimensionHistory(
const QString& code);
76 void deleteSelected();
77 void viewHistorySelected();
81 void onLoadError(
const QString& error_message,
const QString& details = {});
82 void onSelectionChanged();
83 void onDoubleClicked(
const QModelIndex& index);
86 void showHeaderContextMenu(
const QPoint& pos);
90 return tr(
"Refresh origin dimensions");
97 void setupColumnVisibility();
98 void setupConnections();
99 void updateActionStates();
101 void restoreSettings();
107 QTableView* tableView_;
109 QSortFilterProxyModel* proxyModel_;
112 QAction* reloadAction_;
114 QAction* editAction_;
115 QAction* deleteAction_;
116 QAction* historyAction_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Classifies datasets by their origin or source type.
Definition origin_dimension.hpp:39
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:90
Model for displaying origin dimensions fetched from the server.
Definition ClientOriginDimensionModel.hpp:40
Base class for entity list MDI windows providing stale indicator support.
Definition EntityListMdiWindow.hpp:56
MDI window for displaying and managing origin dimensions.
Definition OriginDimensionMdiWindow.hpp:40
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition OriginDimensionMdiWindow.hpp:89