issues
search
henryksloan
/
sugarcubes
A library and tool for automata and formal languages, inspired by JFLAP
https://henryksloan.github.io/sugarcubes/
GNU Affero General Public License v3.0
26
stars
2
forks
source link
Improved egui top panel with simulation mode
#7
Closed
henryksloan
closed
3 years ago
henryksloan
commented
3 years ago
Substantially refactored top panel components into methods
Added a system of modes (currently Edit and Simulate)
All editing features, including context menus, now only appear in edit mode
The simulation toolbar only appears in simulate mode
Added a dialog to enter an input string and then enter simulate mode
Refactored edit commands into a command pattern
TODO
Undo and redo in edit mode
Better simulate toolbar
More meaningful display of configurations
Current state (possibly in a circle like in JFLAP?)
Remaining string, or:
The whole string with the consumed section grayed out
The same, but with the current symbol in bold/with a rectangular highlight
The whole string with a bold/rectangle to indicate the current symbol
Consistent height of the toolbar, regardless of whether any configurations are present
Rewind button and reset button, or:
A layout like
<<
<
>
>>
The same, but in words:
Reset
Back 1 (or rewind?)
Step
Skip to end
These two alternatives would combine well with being able to select individual configurations
It would also be great to have "delete" options, like "delete selected", "delete unselected"
Consider either a selection system (click, shift-click, ctrl-click) or a checkbox system for selecting
TODO
<<
<
>
>>
Reset
Back 1 (or rewind?)
Step
Skip to end