KDAB / knut

Knut is an automation tool for code transformation using scripts.
Other
5 stars 8 forks source link

Add a way to display log in a ScriptDialog #26

Open narnaud opened 2 weeks ago

narnaud commented 2 weeks ago

Currently, scripts report their output through logging. However, the log output doesn't render whilst the script is running.

This could be a good first step to indicate how far along a script is and to show the user that it's indeed doing something.

We could imagine adding a QPlainTextEdit with a particular name LogOutput or something like that. In the ScriptDialogItem, if we find such QPlainTextEdit, we initalize it in readonly log mode, and redirect the logging output to it. Hint: there's a small syntaxhilighting in GUI that could be used, see LogHighlighter