]> git.mxchange.org Git - flightgear.git/commitdiff
- move the ID stuff to dialog.hxx
authormfranz <mfranz>
Mon, 22 May 2006 16:14:50 +0000 (16:14 +0000)
committermfranz <mfranz>
Mon, 22 May 2006 16:14:50 +0000 (16:14 +0000)
- add an identifier to fgPropertyList(), which is also PUCLASS_LIST based

src/GUI/AirportList.hxx
src/GUI/dialog.cxx
src/GUI/dialog.hxx
src/GUI/property_list.cxx
src/GUI/property_list.hxx

index f4340d19c8aefccd39e674314628afbd4d557cbc..c7e6a11b5dcd9c154f5579777cc7a5442fa3d12e 100644 (file)
@@ -7,16 +7,9 @@
 #include STL_STRING
 
 #include <plib/pu.h>
+#include "dialog.hxx"
 
 
-// ugly temproary workaround for plib's lack of user defined class ids  FIXME
-#define FGCLASS_LIST        0x00000001
-#define FGCLASS_AIRPORTLIST 0x00000002
-class GUI_ID { public: GUI_ID(int id) : id(id) {} int id; };
-
-
-#include "puList.hxx"
-
 SG_USING_STD(string);
 
 class FGAirportList;
index bcd07aebfa6d78f47250f236742914cda0649565..7c9120c717ac71a4f8bdf5cee711d9029315049e 100644 (file)
@@ -16,6 +16,9 @@
 #include "property_list.hxx"
 #include "layout.hxx"
 
+
+
+
 ////////////////////////////////////////////////////////////////////////
 // Implementation of GUIInfo.
 ////////////////////////////////////////////////////////////////////////
index 802dea963f299d54c5d4dd19398f0054ef668a81..df981c81f07cbe60b6734db462d0f3f897d8f1df 100644 (file)
 #include <vector>
 SG_USING_STD(vector);
 
-#include "AirportList.hxx"
+
+// ugly temproary workaround for plib's lack of user defined class ids  FIXME
+#define FGCLASS_LIST          0x00000001
+#define FGCLASS_AIRPORTLIST   0x00000002
+#define FGCLASS_PROPERTYLIST  0x00000004
+class GUI_ID { public: GUI_ID(int id) : id(id) {} int id; };
+
 
 
 class FGDialog;
index a1f59624ee6094d11f6e31ad4182e3c7c7594acf..ba25849c88885040726ca1e8397d4285afc6d5fd 100644 (file)
@@ -80,6 +80,7 @@ static string getValueTypeString(const SGPropertyNode *node)
 
 PropertyList::PropertyList(int minx, int miny, int maxx, int maxy, SGPropertyNode *start) :
     puList(minx, miny, maxx, maxy, short(0), 20),
+    GUI_ID(FGCLASS_PROPERTYLIST),
     _curr(start),
     _flags(fgGetNode("/sim/gui/dialogs/property-browser/show-flags", true)),
     _return(0),
index 7d0792eda2f37f905b26ed3c369d8fd596e1c059..0b91154d9953c5500efb3a231a52dea76fc7ad24 100644 (file)
 
 #include <plib/pu.h>
 #include <simgear/props/props.hxx>
+#include "dialog.hxx"
 
 #include "puList.hxx"
 
-
-class PropertyList : public puList, public SGPropertyChangeListener {
+class PropertyList : public puList, public SGPropertyChangeListener, public GUI_ID {
 public:
     PropertyList(int minx, int miny, int maxx, int maxy, SGPropertyNode *);
     ~PropertyList();