[Flightgear-devel] Re: Autopilot GUI

2005-12-07 Thread Steve Knoblock
On Wed, 07 Dec 2005 12:00:22 -0600, you wrote:

What should be disabled? Only the Autopilot settings entry, or the
whole Autopilot menu? I wouldn't add this to the KAP140, though,
but rather to gui.nas' INIT function. (Currently we operate with
full property paths, and when someone inserts a menu entry, the
full paths might not address the same menu entry. Better have
everything in the same place if possible. At least for now.
I think about adding name tags to menu entries that are to be
disabled/enabled for safe access.)

What if the Autopilot menu entry was bound to a function in gui.nas
that looks at a property for the location of the autopilot dialog. The
default could point to the existing one, but an aircraft could specify
the location for the autopilot it was using. I am not sure this is
possible with the existing way configuration files work.

The existing Autopilot settings menu could be seen as applying to the
default autopilot now, and could be replaced for each autopilot. The
configuration file could even be moved to the generic instruments
folder or somewhere. You could have a null autopilot for when an
aircraft does not define one.

It asks a lot of non-technical users to modify the menubar.xml to add
the dialog for an autopilot. I am happy supporting enabling/disabling
a menu item, but an item still must be added to the menu bar manually,
unless I am missing something.

-sek



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] Re: Autopilot GUI

2005-12-07 Thread Melchior FRANZ
* Steve Knoblock -- Wednesday 07 December 2005 20:35:
 What should be disabled? Only the Autopilot settings entry, or the
 whole Autopilot menu? 

 What if the Autopilot menu entry was bound to a function [...]

Thanks, but I didn't ask *how* to do it (which I know pretty well),
but *which* *entry* to disable. I assume that the whole Autopilot
menu isn't functional when using the KAP140 (waypoints etc.).

m.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] Re: Autopilot GUI

2005-12-07 Thread Melchior FRANZ
* Melchior FRANZ -- Wednesday 07 December 2005 21:00:
 * Steve Knoblock -- Wednesday 07 December 2005 20:35:
  What if the Autopilot menu entry was bound to a function [...]
 
 Thanks, but I didn't ask *how* to do it [...]

But, yes, I had planned to let menubar.xml just call gui.autopilot(),
which would then by default open the dialog that it opens now. And
everyone could redefine gui.autopilot() to open some other dialog or
do other fancy stuff.  :-)

m.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d