trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2012

How to indent and disable a new GUI widget

From: Darrell Anderson <humanreadable@...>
Date: Sat, 6 Oct 2012 15:19:58 -0700 (PDT)
I'm fiddling with a bug report hoping to learn how to manipulate a check box in a kcontrol dialog.

I successfully added the checkbox and the check box functions correctly.

The next step is I want the check box indented under the previous check box to signify a dependency relationship:

| | Check box
    | | New check box

The control layouts are defined in a *.ui file. What is the correct way (examples) in a *.ui file to indent controls? I started playing with <grid></grid> and row/column. I had some nominal success but I don't really understand how row/column/rowspan/colspan all work together.

Second, the new check box should be disabled or ghosted when the parent check box is unchecked/disabled. The new check box should be enabled only when the parent check box is enabled/checked. Is that done in the *ui file or in the C++ code?

Thanks.

Darrell