It would be nice to somehow select departure airport from flightplan e.g.
- load flightplan
- select departure airport (from #2066 automatically from loaded flightplan)
- button/link (?) to automatically go to "Location" dialog and automatically select this departure airport
Otherwise one have to load flightplan, then manually go to location dialog and search for departure airport.
Right this would be good, I guess a button 'set departure' will work ? I don't want to set the departure airport automatically, that would be confusing for some people.
Ah but I can do a message
""plan departure airport is set to 'EDDM', but initial location is set to 'LFPG'. <click here="" to="" set="" the="" initial="" location="" eddm="">""</click>
... and hide this message when the airports agree?
How does that sound to you?
Yes, setting it automatically wouldn't be good. Button is best. Message will also helps new guys. It should find the airport and go to Location dialog for selecting e.g. parking position.
Done in FG commit fd69e84d43c4f17e68906ac3c56efa (on next)
Tested. Some issues.
First - only minor - maybe text should more style text "click here". Text is rather long and maybe somehone have to read it fully (yeah I know, hard task) :)
Second - also minor - maybe when departure airport and location are OK the text should dissapear and free occupied place (pack again form). Sorry, don't know if Qt can do it (it depends on layout managers - i came from java world)
Third - major - when location differs. I click on the text. I'm relocated to Location dialog (OK) with departure aiport selected. Next I click e.g. on runway to place plane on it. OK. BUT the location is not selected in data model. When I go to overview panel the location is not selected (and if there was earlier other airport it is deselected).
Ok, I know where the third issue came from. Works OK.
When I click on the plan to select Location i'm moved to the Location dialog. Next I select runway AND click "<- Back" button. I'm on the airport list so the selected airport is cleared.
This functionality works OK. Maybe some UX with Location selection. Can be closed.