]> git.mxchange.org Git - flightgear.git/commit
- undefine PUCLASS_LIST, as we have our own (old_warning--)
authormfranz <mfranz>
Tue, 16 May 2006 12:45:38 +0000 (12:45 +0000)
committermfranz <mfranz>
Tue, 16 May 2006 12:45:38 +0000 (12:45 +0000)
commit5a38a9d071f3d58b14225cbdcfdaf4abe1f0e2dc
tree07a694db2a84e998ef7d757493d91e20aa1c0dbe
parent95b6f8057aeae4276da69a42ab7204eb39393b1e
- undefine PUCLASS_LIST, as we have our own (old_warning--)
- PropertyObject: remove additional "values" member again
- don't create entry lists for <list>, <select>, and <combo> at dialog
  creation and delete them on dialog close, but let a separate class
  fgValueList handle this. The three widgets are now subclassed and the
  derived widget lets fgValueList manage the lists
- make <select> consistent with <list>. This breaks backwards
  compatibility, but not a single dialog in fgfs uses it and did so
  since ... forever. (Shoot me!)

Rationale: now that dialogs are a bit more dynamic than they used to be
(thanks to embedded Nasal), we have to delete and recreate entry lists
during dialog use. Deleting only at dialog closing doesn't cut it anymore.
Especially list widgets that are updated several times per second would
use up a lot of memory otherwise. The route-manager doesn't update that
often, but it did already leak. One TODO less.  :-)
src/GUI/dialog.cxx
src/GUI/dialog.hxx