LibreCAD
LibreCAD copied to clipboard
Add option to set info to show in Statusbar
Expected behavior
LibreCAD 2.2.2 should has a way to customize info to show in the Statusbar defined with a line of text (something similar to GLib.DateTime.format markup):
- Widget Options
- Statusbar
- Input:
%scale %tooltip %cursorXYwhich would results in something like: [Grid Status: 10/100 | Tip: Specify first point | Cursor: 0.0000 , 0.0000] Even more, it should allow to define math formula with built-in muParser engine. So, to show sum of actual cursor X and Y values user would input the next:%scale %tooltip %cursorXY =%cursorX+%cursorYwhich would results in: [Grid Status: 10/100 | Tip: Specify first point | Cursor: 0.0000 , 0.0000 | 0] or with a custom labels:%scale %tooltip %cursorXY "X+Y = "=%cursorX+%cursorY" mm"where"X+Y = "and" mm"are custom text prefix and suffix labels to show (there should be no spaces between"<prefix_label>"and=and<formula>and<suffix_label>); it would results in: [Grid Status: 10/100 | Tip: Specify first point | Cursor: 0.0000 , 0.0000 | X+Y = 0 mm] - Align: left / center / right / fit width
- Input:
- Statusbar
Observed behavior
Latest LibreCAD 2.2.2_alpha now has a new Statusbar (old converted into the set of toolbars), which actually is an empty and not assigned to show any info.
Steps to reproduce or sample file
Operating System and LibreCAD version info
- Version: 2.2.2 (next release)
- OS: All platforms
Related issues
- https://github.com/LibreCAD/LibreCAD/issues/1849#issuecomment-2380645529
Ahh this could be a good idea, thank you for mentioning it. Could also allow other codes for information shown in things such as... Entity Properties, Entity Info widget, etc. Hope this helps