| 10214 | |
| 10215 | |
| 10216 | bool Widget::addControlBox(Real *x, Real *y, Real *z, |
| 10217 | Real *w, Real *h, Real *d) |
| 10218 | // ---------------------------------------------------------------------------- |
| 10219 | // Module interface to add a control box to the current layout |
| 10220 | // ---------------------------------------------------------------------------- |
| 10221 | { |
| 10222 | Widget *widget = Tao(); |
| 10223 | Tree_p currentShape = widget->currentShape; |
| 10224 | Layout *layout = widget->layout; |
| 10225 | if (currentShape) |
| 10226 | layout->Add(new ControlBox(currentShape, x, y, z, w, h, d)); |
| 10227 | return true; |
| 10228 | } |
| 10229 | |
| 10230 | |
| 10231 | // ============================================================================ |