1
0
Fork 0
This commit is contained in:
mfranz 2005-11-02 13:52:01 +00:00
parent d5116e496f
commit add06e613d

View file

@ -11,6 +11,10 @@
#include "AirportList.hxx"
#include "layout.hxx"
////////////////////////////////////////////////////////////////////////
// Implementation of GUIInfo.
////////////////////////////////////////////////////////////////////////
/**
* User data for a GUI object.
*/
@ -24,7 +28,21 @@ struct GUIInfo
int key;
};
GUIInfo::GUIInfo (FGDialog * d)
: dialog(d),
key(-1)
{
}
GUIInfo::~GUIInfo ()
{
for (unsigned int i = 0; i < bindings.size(); i++) {
delete bindings[i];
bindings[i] = 0;
}
}
/**
* Key handler.
*/
@ -285,26 +303,6 @@ copy_from_pui (puObject * object, SGPropertyNode * node)
}
////////////////////////////////////////////////////////////////////////
// Implementation of GUIInfo.
////////////////////////////////////////////////////////////////////////
GUIInfo::GUIInfo (FGDialog * d)
: dialog(d),
key(-1)
{
}
GUIInfo::~GUIInfo ()
{
for (unsigned int i = 0; i < bindings.size(); i++) {
delete bindings[i];
bindings[i] = 0;
}
}
////////////////////////////////////////////////////////////////////////
// Implementation of FGDialog.