GEstimator

Database selection and measurement entry — 2026-11-14

Historical migration/design record. Start with the documentation index and current architecture for development. Old plans, branches, API/tool names and validation counts below describe their date; do not treat them as current implementation instructions. See the archive index.

The starting tree was already clean at c813c2c; no duplicate checkpoint commit was needed before this continuation.

Implemented workflow

The old working-table data-source switch and attachment tools are removed from the Schedule/Resources ribbon. Ctrl+L opens the item selector. Dropdown popups throughout the application share the main menu’s theme, focus/hover styling and grouped-item presentation, while native select values, labels and form events are preserved.

Attach versus Add: Attach opens a temporary SQLite snapshot of a source .eproj database and registers it in the current project’s available libraries. It does not import its contents or modify the source file. Add copies chosen schedule items (with required analysis/resource definitions) or resources into the working project. Refresh rates uses the attached snapshot as its code-matched price source. Remember stores the source path for future attachments; it does not make the snapshot a live connection to later source-file changes.

Schedule and Resource pickers now each have a lazy, persistent modal/table for the current project session. Cancel, import and editor switches retain the source, search, category filters, page, row selection, column sizes and scroll. Reopening checks the small attachment list but does not repeat the item query or recreate the table. Hidden pickers keep their geometry while being invisible/inert, so Tabulator does not reset its viewport when hidden. Opening another project destroys the caches. Changing the source or applying a new search/filter still loads authoritative source rows and clears selection, preventing cross-source ID reuse. Import targets and project revisions are captured afresh on each opening.

Text entry and measurement display

Enter accepts a text value or submits its dialog. Shift+Enter or Ctrl+Enter inserts a line break in multiline fields. The table editors use their installed textarea editor’s submit/newline support; other text dialogs use the same keyboard convention. Composition input is left to the input method.

Measurement templates are grouped as General, Civil and E&M. The original Python template renderer supplies accepted cell values and derived fields, including Breakup. Editors keep the original expression: 2*3 displays as 6 after acceptance and reopens as 2*3. Numeric expression validation, calculations and custom render callbacks remain in Python; no frontend evaluation is added. Description cells remain text, as in GTK. Existing integer/length formatting conventions are retained.

NLBH keeps the original optional-factor behavior. Filling only No measures numbers; only L measures length; L/B measures area; L/B/H measures volume. No can multiply any of those. Blank factors do not force the result to zero. Explicit zero-factor handling is also retained from GTK, and an entirely empty record totals zero. Regression cases produce 5, 6, 6, 120 and 0 for representative count/length/area/volume/empty records. Breakup preserves the expression and the blank positions, e.g. [,2*3,,].

Modify & Add with analysis rules

Select schedule items in the database picker and choose Modify & Add with rules…. Create ordered rules or load a saved Bulk Edit Analysis preset. Rules can match calculation rows and resource entries by type and field values. Referenced sub-analyses retain their source calculation rows.

Choose whether the imported rate comes from the imported analysis or the source rate times a multiplier. The preview shows row changes, rule matches, source rates, rates calculated in the destination project, and the rates that will be stored. Add previewed items applies the import in one undo step. The original Modify & Add button uses the rate multiplier and trailing-row replacement from Program Settings.