VR-Forces 4.8 Class Documentation
 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. More...

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

Public Member Functions

 DtAirportSelectionWidget (makVrv::DtDe &de, QWidget *parent=NULL, const Qt::WindowFlags &flags=0)
 Constructor. More...
 
std::string getSelectedAirportName () const
 returns the currently selected airport name (e.g. "Boston Logan Intn'l (KBOS)") More...
 
std::string getSelectedIcaoCode () const
 \ brief returns the ICAO code for the selected airport (e.g. "KBOS") More...
 
bool setCurrentAirport (const std::string airportName)
 sets the current airport by name (e.g. "Boston Logan Intn'l (KBOS)") More...
 
void setCurrentIndex (int index)
 sets the current index for the combo box of airports More...
 
 ~DtAirportSelectionWidget ()
 destructor More...
 

Public Attributes

QComboBoxmyAirportCombobox
 

Protected Member Functions

void setUpGui ()
 sets up the gui widgets More...
 
void completeSetup ()
 populates the gui with data from the airport data loader More...
 

Protected Attributes

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

Detailed Description

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

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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)