]> git.mxchange.org Git - flightgear.git/commit
Melchior FRANZ:
authorehofman <ehofman>
Thu, 24 Mar 2005 13:41:43 +0000 (13:41 +0000)
committerehofman <ehofman>
Thu, 24 Mar 2005 13:41:43 +0000 (13:41 +0000)
commit4b116a1196bdc4ec742216f895672da0aaff4ba9
treebca010f81d52e17ef19dc6e726a1bd6f68df11bf
parentc89e5203a55c7ce4adc73c0fe16ca7d8ffc5afc6
Melchior FRANZ:

The dialog handling has been written at a time when only one dialog was
shown at the same time, and dialogs were shallow -- with only children, but
no grand-children. This makes finding a draggable spot on modern, dialogs
with nested objects quite a challenge. The patches fixes this, and other things:

- check full object tree on button press, not only the outmost layer;
  and don't give up just because we are in *something* (which could well be
  something harmless, like a group); only ignore a few, sensible objects
  (we don't want to drag after a click on a button or into an input field)

- don't lose dialogs as easily when dragging too fast (it does still happen
  if one manages to enter an editable field while dragging, but this is
  a plib problem and I don't feel like fixing that now  :-)

- don't "live"-update input fields while they are in edit mode

- remove some "if (foo) delete foo;" redundancy
src/GUI/dialog.cxx
src/GUI/dialog.hxx
src/GUI/gui_funcs.cxx
src/GUI/menubar.cxx