VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtAirportSelectionWidget Class Reference

A widget class for encapsulating airport selection from a combo box.

Inheritance diagram for makVrf::DtAirportSelectionWidget:
Inheritance graph
[legend]

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

QComboBoxmyAirportCombobox
 

Protected Member Functions

void setUpGui ()
 
void completeSetup ()
 

Protected Attributes

makVrv::DtDemyDe
 
QHBoxLayout * myHBoxLayout
 
QLabelmyAirportLabel
 
QCompleter * myAirportNameCompleter
 
DtAirportRunwayLoaderFromShpmyLoader
 

Constructor & Destructor Documentation

makVrf::DtAirportSelectionWidget::DtAirportSelectionWidget ( makVrv::DtDe de,
QWidget *  parent = NULL,
const Qt::WindowFlags &  flags = 0 
)

Constructor.

makVrf::DtAirportSelectionWidget::~DtAirportSelectionWidget ( )

destructor

Member Function Documentation

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

void makVrf::DtAirportSelectionWidget::setUpGui ( )
protected

sets up the gui widgets

void makVrf::DtAirportSelectionWidget::completeSetup ( )
protected

populates the gui with data from the airport data loader

Member Data Documentation

QComboBox* makVrf::DtAirportSelectionWidget::myAirportCombobox
makVrv::DtDe& makVrf::DtAirportSelectionWidget::myDe
protected
QHBoxLayout* makVrf::DtAirportSelectionWidget::myHBoxLayout
protected
QLabel* makVrf::DtAirportSelectionWidget::myAirportLabel
protected
QCompleter* makVrf::DtAirportSelectionWidget::myAirportNameCompleter
protected
DtAirportRunwayLoaderFromShp* makVrf::DtAirportSelectionWidget::myLoader
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)