bool userw = props->hasValue("width");
bool userh = props->hasValue("height");
- // Expand some elements. Has to be done before the layouter sees them.
-// preprocess(props);
-
// Let the layout widget work in the same property subtree.
LayoutWidget wid(props);
}
}
-void
-FGDialog::preprocess (SGPropertyNode * prop)
-{
- for (int i = 0; i < prop->nChildren(); i++) {
- SGPropertyNode *child = prop->getChild(i);
- const char *name = child->getName();
-
- if (!strcmp(name, "title")) {
- prop->removeChild("title", child->getIndex(), false);
- SGPropertyNode *tit = fgGetNode("/sim/gui/title");
- if (!tit) {
- fprintf(stderr, "no tits here!\n");
- continue;
- }
- copyProperties(tit, prop->getChild(child->getIndex()));
- writeProperties(cerr, prop, true);
- } else
- preprocess(prop->getChild(i));
- }
-}
-
char **
FGDialog::make_char_array (int size)
{
// (PUCOL_LABEL, etc.) should pick up the <color> property.
void setColor(puObject * object, SGPropertyNode * props, int which = 0);
- // Expand some elements according to style templates.
- void preprocess (SGPropertyNode * props);
-
// The top-level PUI object.
puObject * _object;