Skip to content

gui: Implement solver progress presentation

Antoine Belvire requested to merge feature/14_gui_present_solver_progress into master

Context

Implements #14 (closed).

Solvers may indicate their progress - typically the percentage of boxes filled - to the application. This MR adds the presentation of this progress to GUI.

There are two cases:

  • Solver gives information about its progress, in which case a "definite progress" indicator is displayed.
  • Solver does not give information about their progress, in which case a "indefinite progress" indicator is displayed.

Solver progress presentation

What has changed?

Main Changes

gui-view-model

  • Add a SolverProgressViewModel

gui-view

  • Add a ProgressIndicator on top of the CrosswordGridPane

gui

  • Bind view-model to view

Side Effects

gui-view

  • CrosswordGridPane padding has been moved to new enclosing StackPane; This makes the changes concerning CrosswordGridPane max height and max width definitions introduced in !43 (merged) not necessary anymore. Didn't revert them though, as current code is more robust to style change.
  • Move this padding definition in CSS where it belongs.
Edited by Antoine Belvire

Merge request reports