Skip to content

Phase 2.2: ToolBar and StatusBar Integration #192

@bedaHovorka

Description

@bedaHovorka

Parent Issue: #187 (Goal 7: Simulation Speed Control)
Depends On: #191 (Phase 2.1)

Tasks

  • Add show/hide methods to ToolBar for simulation controls
  • Add speed indicator to StatusBar
  • Wire both to SimulationRunner PropertyChangeListener
  • Ensure EDT-safe updates via SwingUtilities.invokeLater

Files

Modified:

  • src/main/kotlin/cz/vutbr/fit/interlockSim/gui/ToolBar.kt (+20 lines)
  • src/main/kotlin/cz/vutbr/fit/interlockSim/gui/StatusBar.kt (+15 lines)

Acceptance Criteria

  • Control panel appears when simulation starts
  • Control panel hidden when simulation stops
  • StatusBar shows speed when != 1.0x
  • No EDT violations (verified with RepaintManager checks)
  • Panel integrates seamlessly with existing toolbar layout

Key Design Points

  • ToolBar adds/removes SimulationControlPanel dynamically
  • StatusBar speed indicator only visible during non-1x speeds
  • PropertyChangeListener for automatic updates
  • EDT thread safety for all UI updates

Estimate

1 day

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions