YaST/开发/其它

From openSUSE

Template:Traslation


Misc Development Related Articles

Button Order and Button Roles

KDE and GNOME are the major desktops on Linux machines. Not only do they use different toolkits (KDE uses Qt, GNOME uses Gtk), they also have different usability philosophies. The most visible of those is the button order:

KDE uses

Image:Kde-ok-cancel.png Image:Kde-continue-cancel.png Image:Kde-yes-no.png


GNOME uses

Image:Gnome-ok-cancel.png Image:Gnome-continue-cancel.png Image:Gnome-yes-no.png


YaST and its libyui (the abstract user interface library) now support both. But that requires some abstraction: A dedicated ButtonBox widget and "button roles".

Read more...


YDialogSpy - an Interactive Dialog Debugger

The YaST UI engine now features an interactive dialog debugger: YDialogSpy. This is useful for non-trival dialog such as this:

Image:Events-ycp-small.png

In the Qt UI and in the Gtk UI, hit the magic key combination

   Ctrl-Shift-Alt-Y

and you will get a YDialogSpy window like this:

Image:DialogSpy-02-small.png


Read more...


Testing the package UI

This is about testing the popup which is shown if the dependency check of the YaST package selector results in any unresolved issue (e.g. missing packages or libraries, conflicts caused by patches...). There is an easy way now to get the dependency popup to be able to see whether all information is shown correctly. The libzypp testsuite provides the program deptestomatic.multi which is able to read a solver test case (an XML file) and to create the package UI.

Image:Missing_lib_small.png

Read more...