![]() |
VR-Forces Developer's Guide
|
A widget class for encapsulating airport selection from a combo box.

Public Member Functions | |
| DtAirportSelectionWidget (makVrv::DtDe &de, QWidget *parent=NULL, const Qt::WindowFlags &flags=0) | |
| std::string | getSelectedAirportName () const |
| std::string | getSelectedIcaoCode () const |
| virtual bool | setCurrentAirport (const std::string airportName) |
| virtual void | setCurrentIndex (int index) |
| virtual | ~DtAirportSelectionWidget () override |
| bool | hasAerodromes () const |
Public Attributes | |
| boost::signals2::signal< void()> | signal_aerodromesSetup |
| QComboBox * | myAirportCombobox |
| QHBoxLayout * | myHBoxLayout |
| QLabel * | myAirportLabel |
| QCompleter * | myAirportNameCompleter |
Protected Member Functions | |
| void | setUpGui () |
| void | completeSetup () |
| virtual void | showEvent (QShowEvent *) override |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| boost::signals2::scoped_connection | myAerodromesCachedConnection |
| makVrf::DtAirportSelectionWidget::DtAirportSelectionWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent = NULL, |
||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
Constructor.
|
overridevirtual |
destructor
| std::string makVrf::DtAirportSelectionWidget::getSelectedAirportName | ( | ) | const |
returns the currently selected airport name (e.g. "Boston Logan Intn'l (KBOS)")
| std::string makVrf::DtAirportSelectionWidget::getSelectedIcaoCode | ( | ) | const |
\ brief returns the ICAO code for the selected airport (e.g. "KBOS")
|
virtual |
sets the current airport by name (e.g. "Boston Logan Intn'l (KBOS)")
|
virtual |
sets the current index for the combo box of airports
| bool makVrf::DtAirportSelectionWidget::hasAerodromes | ( | ) | const |
|
protected |
sets up the gui widgets
|
protected |
populates the gui with data from the airport data loader
|
overrideprotectedvirtual |
| boost::signals2::signal<void ()> makVrf::DtAirportSelectionWidget::signal_aerodromesSetup |
| QComboBox* makVrf::DtAirportSelectionWidget::myAirportCombobox |
| QHBoxLayout* makVrf::DtAirportSelectionWidget::myHBoxLayout |
| QLabel* makVrf::DtAirportSelectionWidget::myAirportLabel |
| QCompleter* makVrf::DtAirportSelectionWidget::myAirportNameCompleter |
|
protected |
|
protected |