11#include <QVariantList>
13#include <qqmlintegration.h>
272 return manualPathText_;
384 return bookingDateText_;
500 return contractName_;
514 return contractType_;
570 return propertyName_;
647 Q_INVOKABLE
void openImportLog(
const QString& logId,
bool draftAttached,
648 const QString& statementId,
649 const QString& draftId);
657 Q_INVOKABLE
void deleteImportLog(
const QString& logId,
bool draftAttached,
658 const QString& draftId);
844 void bindActions(
Actions* value);
854 void applyDefaultImportSelection();
858 void updateManualPathFromWorkflow();
863 void setSelectedImportFiles(
const QStringList& paths);
868 void setStatusText(
const QString&
text);
873 void queueImportFiles(
const QStringList& paths);
879 QStringList supportedImportFiles(
const QStringList& paths)
const;
884 int activeDraftStackIndex()
const;
890 bool openDraftAtStackIndex(
int index);
895 void syncTransactionDraftFromWorkflow();
899 void reloadCurrentTransactionView();
903 void resetTransactionDraftFields();
909 QString displaySuggestionSummary(
const QString& value)
const;
914 QString currentTransactionId()
const;
919 QStringList currentTransactionPropertyIds()
const;
924 QString currentTransactionActorId()
const;
930 Status* status_ =
nullptr;
935 QString manualPathText_;
936 QStringList selectedImportFiles_;
937 QString appliedDefaultImportPath_;
940 QString lastTransactionId_;
942 QString bookingDateText_;
946 QString contractName_;
947 QString contractType_;
948 QString contractAllocatableMode_;
949 QString propertyName_;
Declares QAction wrappers exposed to the UI layer and QML.
Coordinates asynchronous statement imports and in-memory draft sessions.
Declarations for the UI Navigation component.
Declares the centralized UI settings view model exposed to QML.
Declarations for the UI Status component.
Owns the main window actions and exposes them to QML.
ui::Navigation * navigation
Q_INVOKABLE void initializeImportView()
Initializes import view state when the view is opened.
void setSettings(Settings *value)
Sets settings used for import defaults.
Q_INVOKABLE void commitAmountText()
Commits the amount field to the workflow draft.
QString propertyName() const
Returns the quick-create property name field.
Q_INVOKABLE void startImport()
Starts importing the selected files.
Q_INVOKABLE void finalize()
Finalizes the active statement draft through the import workflow.
void setImportWorkflow(ImportWorkflow *value)
Sets the import workflow used for import runs and draft review.
void setAmountText(const QString &value)
Updates the amount field.
QStringList importSourceLabels
QString amountText() const
Returns the amount field.
QString selectedContractType
Q_INVOKABLE void discard()
Discards the active statement draft.
void setWorkspaceRoles(WorkspaceStore *store, WorkspaceCommands *commands, WorkspaceSelection *selection, WorkspaceSelectors *selectors)
Sets workspace roles used for import logs, catalog and selection.
QVariantList actorOptions
Q_INVOKABLE void selectStatusAtIndex(int index)
Selects a transaction status option.
Q_INVOKABLE void toggleAllocatable()
Toggles the current draft allocatable state.
Q_INVOKABLE void selectContractAtIndex(int index)
Selects a contract option.
Q_INVOKABLE void deleteImportLog(const QString &logId, bool draftAttached, const QString &draftId)
Deletes an import log and attached draft state when requested.
Q_INVOKABLE void selectNextDraft()
Selects the next statement draft.
Q_INVOKABLE void addContract()
Creates and selects a contract for the current draft.
QString contractNamePlaceholder
QVariantList statusOptions
bool canDeleteTransaction
void setStatementName(const QString &value)
Updates the active statement draft name field.
Q_INVOKABLE void addProperty()
Creates and selects a property for the current draft.
Q_INVOKABLE void commitValutaText()
Commits the valuta field to the workflow draft.
Q_INVOKABLE void returnToImport()
Returns from draft review to the import overview.
Q_INVOKABLE void pauseImport()
Pauses the current import job.
ImportViewModel(QObject *parent=nullptr)
Creates the import view model.
Q_INVOKABLE void selectPreviousTransactionDraft()
Selects the previous transaction draft.
QString allocatableSuggestionText
Q_INVOKABLE void cancelCurrentImport()
Cancels the current import job.
Q_INVOKABLE void commitBookingDateText()
Commits the booking date field to the workflow draft.
QString valutaText() const
Returns the valuta field.
void setStatus(Status *value)
Sets shell status output used by import actions.
QString propertySuggestionSummary
Q_INVOKABLE void openImportLog(const QString &logId, bool draftAttached, const QString &statementId, const QString &draftId)
Opens an import log from the sidebar.
Q_INVOKABLE void setPropertySelected(const QString &propertyId, bool selected)
Updates whether a property is selected for the current draft.
bool effectiveAllocatable
double actorSuggestionConfidence
int contractAllocatableModeIndex
int currentTransactionNumber
Q_INVOKABLE int suggestionTone(double confidence) const
Maps suggestion confidence to a presentation tone.
void setContractType(const QString &value)
Updates the quick-create contract type field.
int selectedContractOptionIndex
Q_INVOKABLE void addActor()
Creates and selects an actor for the current draft.
QVariantList contractAllocatableModes
QString contractName() const
Returns the quick-create contract name field.
Q_INVOKABLE void resumeImport()
Resumes a paused import job.
QString importFileSummary
Q_INVOKABLE void browseImportPdf()
Opens a file browser for import PDFs.
QString bookingDateText() const
Returns the booking date field.
void setNameText(const QString &value)
Updates the transaction name field.
Q_INVOKABLE void commitNameText()
Commits the transaction name field to the workflow draft.
QString contractSuggestionSummary
void setPropertyName(const QString &value)
Updates the quick-create property name field.
bool canSelectPreviousTransactionDraft READ canSelectPreviousTransactionDraft
void changed()
Emitted when import view model state changed.
Q_INVOKABLE void addTransactionAfterCurrent()
Adds a transaction draft after the current one.
QVariantList propertyOptions
void setManualPathText(const QString &value)
Updates the manual import path field.
Q_INVOKABLE bool isPropertySelected(const QString &propertyId) const
Returns whether a property is selected for the current draft.
Q_INVOKABLE void selectNextTransactionDraft()
Selects the next transaction draft.
double propertySuggestionConfidence READ propertySuggestionConfidence
Q_INVOKABLE void selectPreviousDraft()
Selects the previous statement draft.
QStringList statementStrategyLabels
Q_INVOKABLE void addSelectedImportFiles()
Adds the manual path field to the selected import files.
double contractSuggestionConfidence READ contractSuggestionConfidence
double allocatableSuggestionConfidence READ allocatableSuggestionConfidence
QString actorName() const
Returns the quick-create actor name field.
Q_INVOKABLE void deleteCurrentTransaction()
Deletes the current transaction draft.
int selectedActorOptionIndex
void setNavigation(Navigation *value)
Sets shell navigation used by import transitions.
void setContractName(const QString &value)
Updates the quick-create contract name field.
bool canSelectNextTransactionDraft READ canSelectNextTransactionDraft
QString actorSuggestionSummary
void setBookingDateText(const QString &value)
Updates the booking date field.
Q_INVOKABLE void cancelQueuedImports()
Cancels queued import jobs.
void setValutaText(const QString &value)
Updates the valuta field.
QString contractType() const
Returns the quick-create contract type field.
Q_INVOKABLE void clearImport()
Clears the local import selection and progress display.
Q_INVOKABLE void selectActorAtIndex(int index)
Selects an actor option.
void setContractAllocatableModeIndex(int index)
Updates selected contract allocatable mode index.
QVariantList contractOptions
void setActorName(const QString &value)
Updates the quick-create actor name field.
void setActions(Actions *value)
Sets shell actions used for browsing files.
Runs PDF imports and holds the active in-memory statement draft session.
Stores the active top-level shell section and settings sub-section.
Stores and exposes globally persisted UI settings for settings-related views.
Exposes the shell status text shown by the main window.
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.
Qt-friendly projection of the currently edited import transaction.