On May 23, 2008, at 8:56 AM, Jon A. Cruz wrote:

On May 23, 2008, at 12:34 AM, Jon A. Cruz wrote:


On May 19, 2008, at 10:07 AM, Alexandre Prokoudine wrote:

I'm looking at several recently added extensions (especially "3D
models", but also "Perfect Bound Book") and wondering if we can use
comboboxes instead of radiobuttons. That would shrink dialogs
vertically a lot.

You might want to look at things per-dialog or such.

For the toolbars I added one base class that takes a hint for creating separate buttons or a combo box.

Adding an "appearance" attribute set to "full", "compact",  or "minimal" would do the trick.

For example, polyhedron_3d.inx could have
    <param name="obj" type="optiongroup"  _gui-text="Object:">
become
    <param name="obj" type="optiongroup"  appearance="minimal" _gui-text="Object:">

BTW, it seemed like not too much for me, so I'm halfway through implementing that. Should be in either tonight or tomorrow.

The addition of combo boxes is now in.

For the 3D Polyhedron extension the dialog shrank from 700 pixels tall to 530 pixels tall. For the Perfect-Bound Cover, it went from 566 pixels tall to 406 pixels. So those were about 25% and 30% vertical space savings.

Please run through things to make sure they still work properly (I don't have lxml in python on this box, so I could test the full cycle). Also I only checked in changes to the 3D Polyhedron inx. Once things are checked, then someone can look at the extensions and figure out which dialogs need which sets changed from radio buttons over to combo boxes.


One possible enhancement would be to add the in-between "compact" option and have that show up as a list in a scroll window.