Skip to main content

Module splits

Module splits 

Source
Expand description

Multi-row split editor widget for transaction-create forms.

§Key scheme (while Splits field is focused)

KeyEffect
TabNext cell (col→next row’s first col); at the last cell of
the last row it YIELDS to the outer form (→ Date)
BackTabPrevious cell; at (row 0, col 0) it YIELDS to the outer
form (→ Note)
UpPrev Select option (col is Select) / prev row
DownNext Select option (col is Select) / next row
EnterSubmit the transaction (from anywhere in the form)
Ctrl+N / +Add a new row below (inherits the fetched option lists)
- / Ctrl+DRemove the focused row (minimum 1 kept)

The outer form cycles Date→Note→Splits→Date; the boundary yields above let the user leave the Splits editor by Tab/BackTab without submitting.

Structs§

SplitRow
One from→to split row with four account/commodity selects and two amount editors.
SplitRowPrefill
Pre-fill data for one row of the transaction-edit form.
SplitsWidget
Multi-row split editor.

Enums§

FocusedSubWidget
Mutable reference to the focused sub-widget for intent routing in event.rs.

Constants§

COL_FROM
COL_FROM_COMM
COL_TO
COL_TO_AMOUNT
COL_TO_COMM
COL_VALUE