11#include <QVariantList>
48 QObject* parent =
nullptr);
66 void setName(
const QString& value);
84 return aliasInputText_;
108 return selectedContractIds_;
153 Q_INVOKABLE
bool canAddAlias(
const QString& value)
const;
158 Q_INVOKABLE
void addAlias(
const QString& value);
174 Q_INVOKABLE
void next();
179 Q_INVOKABLE QString
submit();
187 Q_INVOKABLE
void clear();
205 void setCurrentId(
const QString&
id);
216 void reloadFromSelection(
bool forceReload);
220 void clearFormState();
225 bool hasValidAliasSelection()
const;
229 void captureSavedState();
234 void applyFormState(
const QVariantMap& state);
241 void reloadFormState(
bool forceReload,
const QVariantMap& state);
247 QString currentOwnerId_;
249 QVariantList aliases_;
250 QString aliasInputText_;
251 int aliasIndex_ = -1;
253 QVariantList savedAliases_;
254 QVariantList selectedContractIds_;
255 QVariantList savedSelectedContractIds_;
QVariantList contractRows
Q_INVOKABLE void deleteCurrent()
Deletes the selected actor through workspace commands.
Q_INVOKABLE void next()
Selects the next actor row.
void setAliasInputText(const QString &value)
Updates the current alias input text.
Q_INVOKABLE void setContractSelected(const QString &contractId, bool selected)
Adds or removes a contract id from the actor form selection.
Q_INVOKABLE void clear()
Clears the editable actor form.
QVariantList selectedContractIds
QString aliasInputText() const
Returns the current alias input text.
Q_INVOKABLE void previous()
Selects the previous actor row.
int aliasIndex() const
Returns the selected alias index.
void changed()
Emitted when actor view model state changed.
Q_INVOKABLE void selectActor(const QString &id)
Selects an actor for editing.
Q_INVOKABLE bool canAddAlias(const QString &value) const
Checks whether an alias value can be added to the form.
Q_INVOKABLE void addAlias(const QString &value)
Adds an alias to the actor form.
QVariantList aliases() const
Returns editable actor aliases.
ActorViewModel(WorkspaceStore *store, WorkspaceCommands *commands, WorkspaceSelection *selection, WorkspaceSelectors *selectors, QObject *parent=nullptr)
Creates the actor view model bound to workspace roles.
void setAliasIndex(int value)
Updates the selected alias index.
QVariantList selectedContractIds() const
Returns selected contract ids in the actor form.
void setName(const QString &value)
Updates the editable actor name.
Q_INVOKABLE void requestRemoveSelectedAlias()
Removes the currently selected alias when possible.
void setAliases(const QVariantList &value)
Replaces editable actor aliases.
Q_INVOKABLE QString submit()
Creates or updates the actor through workspace commands.
Q_INVOKABLE void enterCreateMode()
Clears selection and opens an empty create form.
void setSelectedContractIds(const QVariantList &value)
Replaces selected contract ids in the actor form.
Maps UI intent to core workspace writer commands.
Tracks the currently selected workspace entities.
Projects workspace store data into QML-facing read models.
Owns the current UI-side workspace snapshot and revision lifecycle.