remove commented out and non-functional code for now
This commit is contained in:
parent
ae96deb2c1
commit
e675f80a66
2 changed files with 0 additions and 27 deletions
|
@ -365,9 +365,6 @@ FGDialog::display (SGPropertyNode * props)
|
||||||
bool userw = props->hasValue("width");
|
bool userw = props->hasValue("width");
|
||||||
bool userh = props->hasValue("height");
|
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.
|
// Let the layout widget work in the same property subtree.
|
||||||
LayoutWidget wid(props);
|
LayoutWidget wid(props);
|
||||||
|
|
||||||
|
@ -701,27 +698,6 @@ FGDialog::setColor(puObject * object, SGPropertyNode * props, int which)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 **
|
char **
|
||||||
FGDialog::make_char_array (int size)
|
FGDialog::make_char_array (int size)
|
||||||
{
|
{
|
||||||
|
|
|
@ -132,9 +132,6 @@ private:
|
||||||
// (PUCOL_LABEL, etc.) should pick up the <color> property.
|
// (PUCOL_LABEL, etc.) should pick up the <color> property.
|
||||||
void setColor(puObject * object, SGPropertyNode * props, int which = 0);
|
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.
|
// The top-level PUI object.
|
||||||
puObject * _object;
|
puObject * _object;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue