YDialogSpy – openSUSE Lizards https://lizards.opensuse.org Blogs and Ramblings of the openSUSE Members Fri, 06 Mar 2020 11:29:40 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.5 YDialogSpy Can Now Show Widget Properties https://lizards.opensuse.org/2008/09/12/ydialogspy-can-now-show-widget-properties/ https://lizards.opensuse.org/2008/09/12/ydialogspy-can-now-show-widget-properties/#comments Fri, 12 Sep 2008 18:33:46 +0000 http://lizards.opensuse.org/?p=179 Yesterday I wrote about YDialogSpy, the new interactive YaST dialog debugger. The plans for its future included showing the properties of the currently selected widget. Well, that future came much quicker than expected; it arrived late this afternoon:


(click for large versions)

The underlying abstract YaST UI library (libyui) already had most of what it took to make this happen: An abstract concept of properties for each widget class including setting, getting and enumerating those properties.

What I had to add was the table widget for the YDialogSpy window (of course) and to add some more fields of the YWidget base class of all YaST widgets to those properties (VStretch, HStretch, VWeight, HWeight). This has the added benefit that they can now also queried and changed as properties from YCP code.

BTW the funny thing about this YDialogSpy is that you can apply it onto itself: You can start another YDialogSpy from the YDialogSpy if you hit Ctrl-Shift-Alt-Y there. That’s how I colorized the widgets in the screen shots above.

Further reading
http://en.opensuse.org/YaST/Development/Misc/YDialogSpy

]]>
https://lizards.opensuse.org/2008/09/12/ydialogspy-can-now-show-widget-properties/feed/ 1