* James Turner -- Friday 05 June 2009:
> Can anyone (with more experience of the GUI code and Nasal) suggest  
> how close I can get to a GUI like the one I've mocked-up below:

There are currently two ways:

- make the popup an extra dialog; See the dialog that's shown in "Model
  View" in the lower left corner of the screen if you click on the model
  name. It's defined in $FG_ROOT/gui/dialogs/model-view{,-select}.xml,
  of which the latter is the popup.

- just fill the combobox <value>s appropriately, and redraw the whole
  dialog. That's problematic, though, if it interferes with user input,
  because it happens while a user types into an input or something.
  You have to read out the dialog x/y coordinations and to redraw the
  dialog on the same place. The dialog dimension should better not
  change in the new dialog.


With some code in dialog.cxx live updates of lists could be implemented,
too. Recent changes made that easier than before. I haven't done
anything of that sort yet, because we were discussing a switche from
plib to osgWidget, and more plib specific code didn't seem a good
thing at the moment, even though that switch isn't imminent.

I'd probably go with the first solution.

m.
  

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to