Discussion of bug 3215 http://bugzilla.lyx.org/show_bug.cgi?id=3215 revealed some problems with the current UI in the graphics dialog. Attached is a screenshot of an idea for a new organization. The "Set width" and "Set height" checkboxes are enabled only when "Scale graphic" is not; when they are themselves unchecked, "auto" appears in the (disabled) text edit box where the length should go. The checkbox marked "Maintain aspect ratio" is enabled only if BOTH setWidth and setHeight are enabled, since that's the only time it has any effect, and it gets a nice explanatory tooltip.
The red color on "Set height" wouldn't be there in the final product. (I need to use a new validator to handle this. Speaking of which, anyone object to making addCheckedLineEdit take a QWidget instead of a QLabel? That makes for the simplest solution, since the "label" in this case is a QCheckBox.) I'm also not sure why the % sign in the "Scale graphic" line is cut off, but I had that problem before, anyway. Advice welcome. Comments? Richard -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto