I've now put everything in place in sg & fgfs that was need to replace
the old waypoint dialog with something fancier. I intend to throw out
auto_gui.[ch]xx, so I better warn you and ask for comments. If nobody
objects, then I'll commit this in a few days (I'm away over weekend).

  http://members.aon.at/mfranz/waypoints.jpg  [24 kB]


And it goes like this:

* move a few parts of auto_gui.cxx to route_mgr.cxx
* remove auto_gui.[ch]xx  (there are a few unused dialogs in there that
  will just get dropped without replacement; Easy to add later on as
  XML-dialogs if we need them. But I doubt we will.)
* implements almost all functionality as XML dialog with embedded Nasal
* adds a listener property that waits for the well-known waypoint
  specifications ([EMAIL PROTECTED] etc.), *and* for these commands:

  $CLEAR      ... to clear the route
  $POP        ... to remove the first entry
  $DELETE 3   ... to remove the 4th entry

  These commands replace the fgcommands, but if people insist, then I'll
  add regular fgcommands as wrappers.
* as written above, drop deprecated fgcommands:
  old-ap-add-waypoint-dialog, old-ap-pop-waypoint-dialog, 
old-ap-clear-route-dialog


Advantages:

* removes ugly and modal hardcoded dialog
* non-blocking, draggable
* dialog is "live": entries are immediately effective, the status line (top)
  shows current distance/Estimated Time of Arrival towards active waypoint
* the "Remove" button removes the selected entry, or the last if none selected
* input doesn't need to be in upper-case letters, but automatically converted 


TODO:

* allow to insert waypoints *in* the list (currently always appended)
* allow lon/lat waypoints in addition to airports & fixes

m.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to