|
ORE Studio 0.0.4
|
Table model for displaying catalogs in a QTableView. More...
#include <ClientCatalogModel.hpp>
Inherits QAbstractTableModel.

Public Types | |
| enum | Column { Name = 0 , Description , Owner , Version , ModifiedBy , RecordedAt , ColumnCount } |
Signals | |
| void | loadStarted () |
| void | loadFinished () |
| void | errorOccurred (const QString &message, const QString &details={}) |
Public Member Functions | |
| ClientCatalogModel (ClientManager *clientManager, QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| void | loadData () |
| const dq::domain::catalog & | catalogAt (int row) const |
Static Public Member Functions | |
| static std::vector< column_style > const & | columnStyles () |
| Returns a static vector of column styles (built once per process). | |
| static QVector< int > | defaultHiddenColumns () |
| Returns a static QVector of hidden column indices (built once per process). | |
Static Public Attributes | |
| static constexpr std::size_t | kColumnCount = std::size_t(ColumnCount) |
| Column metadata: header text, style, visibility, and width. | |
| static constexpr std::array< ColumnMetadata, kColumnCount > | kColumns |
| static const QSize | kDefaultWindowSize = {800, 500} |
| Default window size for the catalog list window. | |
| static constexpr std::string_view | kSettingsGroup = "CatalogListWindow" |
| Settings group name for persisting window and column state. | |
Table model for displaying catalogs in a QTableView.
Provides async loading from server with recency highlighting for recently modified records. Records modified since the last reload are highlighted with a pulsing color effect.
|
staticconstexpr |
Column metadata: header text, style, visibility, and width.
Order must match the Column enum.