would actually be an fgList class. The airport list is a PUCLASS_LIST, too,
so we have to check for that. -> Use getTypeString() for identification.
continue;
puObject *obj = _propertyObjects[i]->object;
- if (obj->getType() & PUCLASS_LIST) {
+ if (!strcmp(obj->getTypeString(), "fgList")) {
fgList *pl = static_cast<fgList *>(obj);
pl->update();
} else
\f
////////////////////////////////////////////////////////////////////////
-// Implementation of fgList and derived pui widgets
+// Implementation of fgValueList and derived pui widgets
////////////////////////////////////////////////////////////////////////
fgList(int x1, int y1, int x2, int y2, SGPropertyNode *p, int sw) :
fgValueList(p), puList(x1, y1, x2, y2, _list, sw) {}
virtual void update();
+ virtual const char *getTypeString() { return "fgList"; }
};
class fgComboBox : public fgValueList, public puaComboBox {