gui: Implement solver progress presentation
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.
What has changed?
Main Changes
gui-view-model
- Add a
SolverProgressViewModel
gui-view
- Add a
ProgressIndicator
on top of theCrosswordGridPane
gui
- Bind view-model to view
Side Effects
gui-view
-
CrosswordGridPane
padding has been moved to new enclosingStackPane
; This makes the changes concerningCrosswordGridPane
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