#ifndef __LAYOUT_HXX
#define __LAYOUT_HXX
-class SGPropertyNode;
+#include <simgear/props/props.hxx>
+
class puFont;
// For the purposes of doing layout management, widgets have a type,
LayoutWidget getChild(int i);
bool hasField(const char* f);
int getNum(const char* f);
- bool getBool(const char* f);
+ bool getBool(const char* f, bool dflt = false);
const char* getStr(const char* f);
void setNum(const char* f, int num);
void doHVBox(bool doLayout, bool vertical, int* w=0, int* h=0);
void doTable(bool doLayout, int* w=0, int* h=0);
- SGPropertyNode* _prop;
+ SGPropertyNode_ptr _prop;
};
#endif // __LAYOUT_HXX