kcjengr / qtpyvcp

QtPyVCP - Qt and Python based Virtual Control Panel framework for LinuxCNC.
https://www.qtpyvcp.com
Other
88 stars 48 forks source link

Mdi history and mdi line rtn key behaviour #77

Closed joco-nz closed 3 years ago

joco-nz commented 3 years ago

FEATURE: MDIHistory and MDILineEntry did not play nicely together. When pushing the return key after keyboard entry of gcode while the item would execute it would appear as a blank line in the MDIHistory widget. This was caused by the keypress support in MDILine executing the command itself and not passing it to MDIHistory to manage. This pull request fixes that by having MDIHistory set a flag on the MDILine. This flag is tested to determine how MDILine should react to return-key presses.

FEATURE: The highlighting of newly entered items into MDIHistory and executing items was not necessarily obvious or consistent. So now the last entered item is highlighted via the selected highlight colour on the ListWidget. The currently executing line is also highlighted in the same manner along with the existing icon method.