![]() |
VR-Forces 5.0.1 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 |
| bool | setCurrentAirport (const std::string airportName) |
| void | setCurrentIndex (int index) |
| ~DtAirportSelectionWidget () | |
Public Attributes | |
| QComboBox * | myAirportCombobox |
Protected Member Functions | |
| void | setUpGui () |
| void | completeSetup () |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| QHBoxLayout * | myHBoxLayout |
| QLabel * | myAirportLabel |
| QCompleter * | myAirportNameCompleter |
| DtAirportRunwayLoaderFromShp * | myLoader |
| makVrf::DtAirportSelectionWidget::DtAirportSelectionWidget | ( | makVrv::DtDe & | de, |
| QWidget * | parent = NULL, |
||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
Constructor.
| makVrf::DtAirportSelectionWidget::~DtAirportSelectionWidget | ( | ) |
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")
| bool makVrf::DtAirportSelectionWidget::setCurrentAirport | ( | const std::string | airportName | ) |
sets the current airport by name (e.g. "Boston Logan Intn'l (KBOS)")
| void makVrf::DtAirportSelectionWidget::setCurrentIndex | ( | int | index | ) |
sets the current index for the combo box of airports
|
protected |
sets up the gui widgets
|
protected |
populates the gui with data from the airport data loader
| QComboBox* makVrf::DtAirportSelectionWidget::myAirportCombobox |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |