Skip to content

pop_editeventvals: rebuild the layout from EEGLAB's geometry #823

Done

Description

@arnodelorme

The pop_editeventvals window is badly laid out in EEGPrep while EEGLAB is fine.

Captures

Linux (jamming) captures of EEGLAB and EEGPrep from the November 28 run are added below, directly visible, by the EEGPrep worker. Fix nothing here before Arno says so, unless this issue is the one test fix named in its summary.

Arno's words

Arno's feedback of November 28, 2026 on the File and Edit comparison report (EEGLAB_vs_EEGPrep_File_and_Edit.pdf, run file-edit-native-2026-11-28 in adelorme-assistant/project_eegprep/reports).

pop_editeventvals is Also, all wrong in Python while it is fine in MATLAB. Sure to reuse the MATLAB parameters when you can in terms of GUI geometry.

Activity

  1. added
    gui-parity
    on Nov 28, 2026
  2. claude commented on Nov 28, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    The geometry rows already copy EEGLAB: [2 0.5], one [1 1 1 1] row per field, then [1.2 0.6 0.6 1 0.6 0.6 1.2] ×2 and [2 1 2]. EEGPrep drops EEGLAB's single [1] spacer row before the button rows, and folds that empty cell into the first 7-column row. The likely "all wrong" sources are EEGPrep-only overrides: a hardcoded window size, margins and row spacing that EEGLAB's inputgui never sets (F16, window taller than content). Labels also differ: field buttons lack (sec)/(ms), and EEGPrep shows "Original value below" where EEGLAB shows a blank, centered original text (F19).

    Relevant code

    Proposed Fix

    Copy EEGLAB's geometry exactly: add the [1] spacer row and split the 7-column rows the same way. Remove the size/content_margins/row_spacing overrides so inputgui sizes the window from content. Label latency/duration buttons latency (sec) ((ms) when epoched). Make original a blank, centered text. Then recapture with tools/visual_parity against EEGLAB. Estimated <60 lines.

    Needed before implementing

    1. Arno's go-ahead (the body says to fix nothing before he does), or confirmation that this issue is the single test fix allowed.
    2. The Linux captures of EEGLAB and EEGPrep from the November 28 run. They are mentioned but not attached, so "all wrong" cannot be checked against the specific defects (overlap, sizing, alignment, fonts).
    3. Should this issue cover only the layout, with the F2/F3 numerical findings and the Return-key bug left in pop_editeventvals (Edit > Event values): graphical and numerical parity with EEGLAB #725?
  3. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The event value editor now uses EEGLAB’s spacer and button rows. The field buttons show the units used for latency and duration. All captions fit, including Append event.

    Pull request #844.

    EEGLAB, EEGPrep before, and EEGPrep after on Linux

    Editable Word report · PDF report

    Verification

    164 GUI, event editor and importer tests passed, with 138 subtests and six deselected MATLAB reference cases. Ruff, ty and pre-commit passed. Windows CI previously measured field-button starts at 239 and 242 px. A long custom field reproduced a 41 px offset locally. The regression now passes with both buttons at the same x and the original window width. The final Xvfb recapture matched the attached PNG and all control coordinates byte for byte. The four sample edit boxes start at x = 377 px and the 135 px Append event caption fits. A separate one-pixel Windows row-height check is tracked in #834 and its proposed fix. CI for the final branch.

    — EEGPrep worker (Codex)

  4. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 pop_editeventvals: keep field buttons aligned under Windows and with longer event names. #859

    — EEGPrep worker (Codex)

  5. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    Pull request #878 (dialogs laid out as EEGLAB's supergui does) was merged into develop on November 29, 2026. pop_editeventvals is not on the new layout yet; it will be moved with the Edit menu and checked in the full rerun on jamming.

    — orchestrator

  6. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    At Arno's request (email of November 29, 2026), pull request #844 was closed without merging: instead of fixing the geometry on the earlier layout, pop_editeventvals will be moved to the new supergui layout merged in #878 with the Edit menu. This issue stays open until that is done and checked in the full rerun on jamming.

    — orchestrator

  7. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Pull request #885 moves pop_editeventvals to the supergui layout merged in #878, with EEGLAB's geometry and control list (empty row above Event Num, field buttons such as Latency (ms), EEGLAB's originally N line). On Linux the window is 697 x 326 pixels against 695 x 326 in MATLAB (396 high on develop). It is stacked on #884, which brings the button label rule of supergui.m. It replaces the closed #844.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions