]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/layout.hxx
Bugfix - untie property.
[flightgear.git] / src / GUI / layout.hxx
index 1819d8b4e2b0ad5592c4c00ff88a7eddd6fb4aa5..e2dce3b6de1c3e031d4fc4c854297bd31c279912 100644 (file)
@@ -1,7 +1,8 @@
 #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,
@@ -30,7 +31,7 @@ public:
     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);
 
@@ -50,7 +51,7 @@ private:
     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