20#ifndef ORES_QT_FEATURE_FLAG_MDI_WINDOW_HPP
21#define ORES_QT_FEATURE_FLAG_MDI_WINDOW_HPP
26#include <QSortFilterProxyModel>
28#include "ores.qt/EntityListMdiWindow.hpp"
29#include "ores.qt/ClientManager.hpp"
30#include "ores.logging/make_logger.hpp"
31#include "ores.qt/ClientFeatureFlagModel.hpp"
45 inline static std::string_view logger_name =
46 "ores.qt.feature_flag_mdi_window";
48 [[nodiscard]]
static auto& lg() {
50 static auto instance = make_logger(logger_name);
56 const QString& username,
57 QWidget* parent =
nullptr);
62 QSize sizeHint()
const override;
65 void statusChanged(
const QString& message);
66 void errorOccurred(
const QString& error_message);
67 void selectionChanged(
int selection_count);
68 void addNewRequested();
70 void showHistoryRequested(
const QString& name);
71 void featureFlagDeleted(
const QString& name);
74 void reload()
override;
77 void deleteSelected();
82 return tr(
"Refresh feature flags");
87 void onLoadError(
const QString& error_message,
const QString& details = {});
88 void onRowDoubleClicked(
const QModelIndex& index);
89 void onSelectionChanged();
90 void onConnectionStateChanged();
93 void updateActionStates();
94 void setupReloadAction();
97 QVBoxLayout* verticalLayout_;
98 QTableView* featureFlagTableView_;
101 QAction* reloadAction_;
103 QAction* editAction_;
104 QAction* deleteAction_;
105 QAction* historyAction_;
107 std::unique_ptr<ClientFeatureFlagModel> featureFlagModel_;
108 QSortFilterProxyModel* proxyModel_;
109 ClientManager* clientManager_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Model for displaying feature flags fetched from the server.
Definition ClientFeatureFlagModel.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
MDI window for displaying and managing feature flags.
Definition FeatureFlagMdiWindow.hpp:41
QString normalRefreshTooltip() const override
Get the normal (non-stale) tooltip text for the refresh action.
Definition FeatureFlagMdiWindow.hpp:81
Represents a feature flag in the domain layer.
Definition feature_flags.hpp:31